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