{-# 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 #-}
module Amazonka.SecurityHub.Types.AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails = AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails'
{
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Maybe Text
value :: Prelude.Maybe Prelude.Text,
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Maybe Text
name :: Prelude.Maybe Prelude.Text
}
deriving (AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Bool
(AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Bool)
-> (AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Bool)
-> Eq AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Bool
$c/= :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Bool
== :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Bool
$c== :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Bool
Prelude.Eq, ReadPrec
[AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails]
ReadPrec AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
Int
-> ReadS AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
ReadS [AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails]
(Int
-> ReadS
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails)
-> ReadS
[AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails]
-> ReadPrec
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> ReadPrec
[AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails]
-> Read AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec
[AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails]
$creadListPrec :: ReadPrec
[AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails]
readPrec :: ReadPrec AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
$creadPrec :: ReadPrec AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
readList :: ReadS [AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails]
$creadList :: ReadS [AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails]
readsPrec :: Int
-> ReadS AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
$creadsPrec :: Int
-> ReadS AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
Prelude.Read, Int
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> ShowS
[AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails]
-> ShowS
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> String
(Int
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> ShowS)
-> (AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> String)
-> ([AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails]
-> ShowS)
-> Show AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails]
-> ShowS
$cshowList :: [AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails]
-> ShowS
show :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> String
$cshow :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> String
showsPrec :: Int
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> ShowS
$cshowsPrec :: Int
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> ShowS
Prelude.Show, (forall x.
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Rep
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails x)
-> (forall x.
Rep AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails x
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails)
-> Generic
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
forall x.
Rep AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails x
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
forall x.
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Rep AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails x
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
$cfrom :: forall x.
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Rep AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails x
Prelude.Generic)
newAwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails ::
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
newAwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
newAwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails =
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails' :: Maybe Text
-> Maybe Text
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails'
{ $sel:value:AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails' :: Maybe Text
value =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails' :: Maybe Text
name =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
awsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails_value :: Lens.Lens' AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails (Prelude.Maybe Prelude.Text)
awsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails_value :: (Maybe Text -> f (Maybe Text))
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> f AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
awsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails_value = (AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Maybe Text)
-> (AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Maybe Text
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails)
-> Lens
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails' {Maybe Text
value :: Maybe Text
$sel:value:AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails' :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Maybe Text
value} -> Maybe Text
value) (\s :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
s@AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails' {} Maybe Text
a -> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
s {$sel:value:AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails' :: Maybe Text
value = Maybe Text
a} :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails)
awsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails_name :: Lens.Lens' AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails (Prelude.Maybe Prelude.Text)
awsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails_name :: (Maybe Text -> f (Maybe Text))
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> f AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
awsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails_name = (AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Maybe Text)
-> (AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Maybe Text
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails)
-> Lens
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails' {Maybe Text
name :: Maybe Text
$sel:name:AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails' :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Maybe Text
name} -> Maybe Text
name) (\s :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
s@AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails' {} Maybe Text
a -> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
s {$sel:name:AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails' :: Maybe Text
name = Maybe Text
a} :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails)
instance
Core.FromJSON
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
where
parseJSON :: Value
-> Parser
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
parseJSON =
String
-> (Object
-> Parser
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails)
-> Value
-> Parser
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails"
( \Object
x ->
Maybe Text
-> Maybe Text
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails'
(Maybe Text
-> Maybe Text
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails)
forall (f :: * -> *) a b. Functor 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
"Value") Parser
(Maybe Text
-> AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails)
-> Parser (Maybe Text)
-> Parser
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
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
"Name")
)
instance
Prelude.Hashable
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
instance
Prelude.NFData
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
instance
Core.ToJSON
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
where
toJSON :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails -> Value
toJSON
AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails' {Maybe Text
name :: Maybe Text
value :: Maybe Text
$sel:name:AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails' :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Maybe Text
$sel:value:AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails' :: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
-> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Value" 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
value,
(Text
"Name" 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
name
]
)