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