{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SecurityHub.Types.AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SecurityHub.Types.AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The container path, mount options, and size (in MiB) of a tmpfs mount.
--
-- /See:/ 'newAwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' smart constructor.
data AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails = AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails'
  { -- | The maximum size (in MiB) of the tmpfs volume.
    AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Maybe Int
size :: Prelude.Maybe Prelude.Int,
    -- | The absolute file path where the tmpfs volume is to be mounted.
    AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Maybe Text
containerPath :: Prelude.Maybe Prelude.Text,
    -- | The list of tmpfs volume mount options.
    AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Maybe [Text]
mountOptions :: Prelude.Maybe [Prelude.Text]
  }
  deriving (AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Bool
(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
 -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
 -> Bool)
-> (AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
    -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
    -> Bool)
-> Eq
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Bool
$c/= :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Bool
== :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Bool
$c== :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Bool
Prelude.Eq, ReadPrec
  [AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]
ReadPrec
  AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
Int
-> ReadS
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
ReadS
  [AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]
(Int
 -> ReadS
      AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails)
-> ReadS
     [AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]
-> ReadPrec
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> ReadPrec
     [AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]
-> Read
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec
  [AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]
$creadListPrec :: ReadPrec
  [AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]
readPrec :: ReadPrec
  AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
$creadPrec :: ReadPrec
  AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
readList :: ReadS
  [AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]
$creadList :: ReadS
  [AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]
readsPrec :: Int
-> ReadS
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
$creadsPrec :: Int
-> ReadS
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
Prelude.Read, Int
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> ShowS
[AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]
-> ShowS
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> String
(Int
 -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
 -> ShowS)
-> (AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
    -> String)
-> ([AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]
    -> ShowS)
-> Show
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]
-> ShowS
$cshowList :: [AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]
-> ShowS
show :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> String
$cshow :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> String
showsPrec :: Int
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> ShowS
$cshowsPrec :: Int
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> ShowS
Prelude.Show, (forall x.
 AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
 -> Rep
      AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
      x)
-> (forall x.
    Rep
      AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
      x
    -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails)
-> Generic
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
forall x.
Rep
  AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
  x
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
forall x.
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Rep
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
     x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep
  AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
  x
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
$cfrom :: forall x.
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Rep
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
     x
Prelude.Generic)

-- |
-- Create a value of 'AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'size', 'awsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails_size' - The maximum size (in MiB) of the tmpfs volume.
--
-- 'containerPath', 'awsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails_containerPath' - The absolute file path where the tmpfs volume is to be mounted.
--
-- 'mountOptions', 'awsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails_mountOptions' - The list of tmpfs volume mount options.
newAwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails ::
  AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
newAwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
newAwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails =
  AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' :: Maybe Int
-> Maybe Text
-> Maybe [Text]
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails'
    { $sel:size:AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' :: Maybe Int
size =
        Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:containerPath:AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' :: Maybe Text
containerPath =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:mountOptions:AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' :: Maybe [Text]
mountOptions =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing
    }

-- | The maximum size (in MiB) of the tmpfs volume.
awsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails_size :: Lens.Lens' AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails (Prelude.Maybe Prelude.Int)
awsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails_size :: (Maybe Int -> f (Maybe Int))
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> f AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
awsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails_size = (AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
 -> Maybe Int)
-> (AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
    -> Maybe Int
    -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails)
-> Lens
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' {Maybe Int
size :: Maybe Int
$sel:size:AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Maybe Int
size} -> Maybe Int
size) (\s :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
s@AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' {} Maybe Int
a -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
s {$sel:size:AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' :: Maybe Int
size = Maybe Int
a} :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails)

-- | The absolute file path where the tmpfs volume is to be mounted.
awsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails_containerPath :: Lens.Lens' AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails (Prelude.Maybe Prelude.Text)
awsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails_containerPath :: (Maybe Text -> f (Maybe Text))
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> f AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
awsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails_containerPath = (AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
 -> Maybe Text)
-> (AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
    -> Maybe Text
    -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails)
-> Lens
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' {Maybe Text
containerPath :: Maybe Text
$sel:containerPath:AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Maybe Text
containerPath} -> Maybe Text
containerPath) (\s :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
s@AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' {} Maybe Text
a -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
s {$sel:containerPath:AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' :: Maybe Text
containerPath = Maybe Text
a} :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails)

-- | The list of tmpfs volume mount options.
awsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails_mountOptions :: Lens.Lens' AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails (Prelude.Maybe [Prelude.Text])
awsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails_mountOptions :: (Maybe [Text] -> f (Maybe [Text]))
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> f AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
awsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails_mountOptions = (AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
 -> Maybe [Text])
-> (AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
    -> Maybe [Text]
    -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails)
-> Lens
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' {Maybe [Text]
mountOptions :: Maybe [Text]
$sel:mountOptions:AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Maybe [Text]
mountOptions} -> Maybe [Text]
mountOptions) (\s :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
s@AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' {} Maybe [Text]
a -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
s {$sel:mountOptions:AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' :: Maybe [Text]
mountOptions = Maybe [Text]
a} :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails) ((Maybe [Text] -> f (Maybe [Text]))
 -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
 -> f AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> f AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Core.FromJSON
    AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
  where
  parseJSON :: Value
-> Parser
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
parseJSON =
    String
-> (Object
    -> Parser
         AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails)
-> Value
-> Parser
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails"
      ( \Object
x ->
          Maybe Int
-> Maybe Text
-> Maybe [Text]
-> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails'
            (Maybe Int
 -> Maybe Text
 -> Maybe [Text]
 -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe [Text]
      -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Size")
              Parser
  (Maybe Text
   -> Maybe [Text]
   -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe [Text]
      -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ContainerPath")
              Parser
  (Maybe [Text]
   -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails)
-> Parser (Maybe [Text])
-> Parser
     AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MountOptions" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
      )

instance
  Prelude.Hashable
    AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails

instance
  Prelude.NFData
    AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails

instance
  Core.ToJSON
    AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
  where
  toJSON :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Value
toJSON
    AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' {Maybe Int
Maybe [Text]
Maybe Text
mountOptions :: Maybe [Text]
containerPath :: Maybe Text
size :: Maybe Int
$sel:mountOptions:AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Maybe [Text]
$sel:containerPath:AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Maybe Text
$sel:size:AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails' :: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails
-> Maybe Int
..} =
      [Pair] -> Value
Core.object
        ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
            [ (Text
"Size" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
size,
              (Text
"ContainerPath" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
containerPath,
              (Text
"MountOptions" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
mountOptions
            ]
        )