{-# 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.AwsEcrRepositoryDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SecurityHub.Types.AwsEcrRepositoryImageScanningConfigurationDetails
import Amazonka.SecurityHub.Types.AwsEcrRepositoryLifecyclePolicyDetails
data AwsEcrRepositoryDetails = AwsEcrRepositoryDetails'
{
AwsEcrRepositoryDetails -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
AwsEcrRepositoryDetails
-> Maybe AwsEcrRepositoryImageScanningConfigurationDetails
imageScanningConfiguration :: Prelude.Maybe AwsEcrRepositoryImageScanningConfigurationDetails,
AwsEcrRepositoryDetails -> Maybe Text
repositoryPolicyText :: Prelude.Maybe Prelude.Text,
AwsEcrRepositoryDetails -> Maybe Text
repositoryName :: Prelude.Maybe Prelude.Text,
AwsEcrRepositoryDetails -> Maybe Text
imageTagMutability :: Prelude.Maybe Prelude.Text,
AwsEcrRepositoryDetails
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
lifecyclePolicy :: Prelude.Maybe AwsEcrRepositoryLifecyclePolicyDetails
}
deriving (AwsEcrRepositoryDetails -> AwsEcrRepositoryDetails -> Bool
(AwsEcrRepositoryDetails -> AwsEcrRepositoryDetails -> Bool)
-> (AwsEcrRepositoryDetails -> AwsEcrRepositoryDetails -> Bool)
-> Eq AwsEcrRepositoryDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsEcrRepositoryDetails -> AwsEcrRepositoryDetails -> Bool
$c/= :: AwsEcrRepositoryDetails -> AwsEcrRepositoryDetails -> Bool
== :: AwsEcrRepositoryDetails -> AwsEcrRepositoryDetails -> Bool
$c== :: AwsEcrRepositoryDetails -> AwsEcrRepositoryDetails -> Bool
Prelude.Eq, ReadPrec [AwsEcrRepositoryDetails]
ReadPrec AwsEcrRepositoryDetails
Int -> ReadS AwsEcrRepositoryDetails
ReadS [AwsEcrRepositoryDetails]
(Int -> ReadS AwsEcrRepositoryDetails)
-> ReadS [AwsEcrRepositoryDetails]
-> ReadPrec AwsEcrRepositoryDetails
-> ReadPrec [AwsEcrRepositoryDetails]
-> Read AwsEcrRepositoryDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsEcrRepositoryDetails]
$creadListPrec :: ReadPrec [AwsEcrRepositoryDetails]
readPrec :: ReadPrec AwsEcrRepositoryDetails
$creadPrec :: ReadPrec AwsEcrRepositoryDetails
readList :: ReadS [AwsEcrRepositoryDetails]
$creadList :: ReadS [AwsEcrRepositoryDetails]
readsPrec :: Int -> ReadS AwsEcrRepositoryDetails
$creadsPrec :: Int -> ReadS AwsEcrRepositoryDetails
Prelude.Read, Int -> AwsEcrRepositoryDetails -> ShowS
[AwsEcrRepositoryDetails] -> ShowS
AwsEcrRepositoryDetails -> String
(Int -> AwsEcrRepositoryDetails -> ShowS)
-> (AwsEcrRepositoryDetails -> String)
-> ([AwsEcrRepositoryDetails] -> ShowS)
-> Show AwsEcrRepositoryDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsEcrRepositoryDetails] -> ShowS
$cshowList :: [AwsEcrRepositoryDetails] -> ShowS
show :: AwsEcrRepositoryDetails -> String
$cshow :: AwsEcrRepositoryDetails -> String
showsPrec :: Int -> AwsEcrRepositoryDetails -> ShowS
$cshowsPrec :: Int -> AwsEcrRepositoryDetails -> ShowS
Prelude.Show, (forall x.
AwsEcrRepositoryDetails -> Rep AwsEcrRepositoryDetails x)
-> (forall x.
Rep AwsEcrRepositoryDetails x -> AwsEcrRepositoryDetails)
-> Generic AwsEcrRepositoryDetails
forall x. Rep AwsEcrRepositoryDetails x -> AwsEcrRepositoryDetails
forall x. AwsEcrRepositoryDetails -> Rep AwsEcrRepositoryDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AwsEcrRepositoryDetails x -> AwsEcrRepositoryDetails
$cfrom :: forall x. AwsEcrRepositoryDetails -> Rep AwsEcrRepositoryDetails x
Prelude.Generic)
newAwsEcrRepositoryDetails ::
AwsEcrRepositoryDetails
newAwsEcrRepositoryDetails :: AwsEcrRepositoryDetails
newAwsEcrRepositoryDetails =
AwsEcrRepositoryDetails' :: Maybe Text
-> Maybe AwsEcrRepositoryImageScanningConfigurationDetails
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> AwsEcrRepositoryDetails
AwsEcrRepositoryDetails'
{ $sel:arn:AwsEcrRepositoryDetails' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:imageScanningConfiguration:AwsEcrRepositoryDetails' :: Maybe AwsEcrRepositoryImageScanningConfigurationDetails
imageScanningConfiguration = Maybe AwsEcrRepositoryImageScanningConfigurationDetails
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryPolicyText:AwsEcrRepositoryDetails' :: Maybe Text
repositoryPolicyText = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:AwsEcrRepositoryDetails' :: Maybe Text
repositoryName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:imageTagMutability:AwsEcrRepositoryDetails' :: Maybe Text
imageTagMutability = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lifecyclePolicy:AwsEcrRepositoryDetails' :: Maybe AwsEcrRepositoryLifecyclePolicyDetails
lifecyclePolicy = Maybe AwsEcrRepositoryLifecyclePolicyDetails
forall a. Maybe a
Prelude.Nothing
}
awsEcrRepositoryDetails_arn :: Lens.Lens' AwsEcrRepositoryDetails (Prelude.Maybe Prelude.Text)
awsEcrRepositoryDetails_arn :: (Maybe Text -> f (Maybe Text))
-> AwsEcrRepositoryDetails -> f AwsEcrRepositoryDetails
awsEcrRepositoryDetails_arn = (AwsEcrRepositoryDetails -> Maybe Text)
-> (AwsEcrRepositoryDetails
-> Maybe Text -> AwsEcrRepositoryDetails)
-> Lens
AwsEcrRepositoryDetails
AwsEcrRepositoryDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrRepositoryDetails' {Maybe Text
arn :: Maybe Text
$sel:arn:AwsEcrRepositoryDetails' :: AwsEcrRepositoryDetails -> Maybe Text
arn} -> Maybe Text
arn) (\s :: AwsEcrRepositoryDetails
s@AwsEcrRepositoryDetails' {} Maybe Text
a -> AwsEcrRepositoryDetails
s {$sel:arn:AwsEcrRepositoryDetails' :: Maybe Text
arn = Maybe Text
a} :: AwsEcrRepositoryDetails)
awsEcrRepositoryDetails_imageScanningConfiguration :: Lens.Lens' AwsEcrRepositoryDetails (Prelude.Maybe AwsEcrRepositoryImageScanningConfigurationDetails)
awsEcrRepositoryDetails_imageScanningConfiguration :: (Maybe AwsEcrRepositoryImageScanningConfigurationDetails
-> f (Maybe AwsEcrRepositoryImageScanningConfigurationDetails))
-> AwsEcrRepositoryDetails -> f AwsEcrRepositoryDetails
awsEcrRepositoryDetails_imageScanningConfiguration = (AwsEcrRepositoryDetails
-> Maybe AwsEcrRepositoryImageScanningConfigurationDetails)
-> (AwsEcrRepositoryDetails
-> Maybe AwsEcrRepositoryImageScanningConfigurationDetails
-> AwsEcrRepositoryDetails)
-> Lens
AwsEcrRepositoryDetails
AwsEcrRepositoryDetails
(Maybe AwsEcrRepositoryImageScanningConfigurationDetails)
(Maybe AwsEcrRepositoryImageScanningConfigurationDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrRepositoryDetails' {Maybe AwsEcrRepositoryImageScanningConfigurationDetails
imageScanningConfiguration :: Maybe AwsEcrRepositoryImageScanningConfigurationDetails
$sel:imageScanningConfiguration:AwsEcrRepositoryDetails' :: AwsEcrRepositoryDetails
-> Maybe AwsEcrRepositoryImageScanningConfigurationDetails
imageScanningConfiguration} -> Maybe AwsEcrRepositoryImageScanningConfigurationDetails
imageScanningConfiguration) (\s :: AwsEcrRepositoryDetails
s@AwsEcrRepositoryDetails' {} Maybe AwsEcrRepositoryImageScanningConfigurationDetails
a -> AwsEcrRepositoryDetails
s {$sel:imageScanningConfiguration:AwsEcrRepositoryDetails' :: Maybe AwsEcrRepositoryImageScanningConfigurationDetails
imageScanningConfiguration = Maybe AwsEcrRepositoryImageScanningConfigurationDetails
a} :: AwsEcrRepositoryDetails)
awsEcrRepositoryDetails_repositoryPolicyText :: Lens.Lens' AwsEcrRepositoryDetails (Prelude.Maybe Prelude.Text)
awsEcrRepositoryDetails_repositoryPolicyText :: (Maybe Text -> f (Maybe Text))
-> AwsEcrRepositoryDetails -> f AwsEcrRepositoryDetails
awsEcrRepositoryDetails_repositoryPolicyText = (AwsEcrRepositoryDetails -> Maybe Text)
-> (AwsEcrRepositoryDetails
-> Maybe Text -> AwsEcrRepositoryDetails)
-> Lens
AwsEcrRepositoryDetails
AwsEcrRepositoryDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrRepositoryDetails' {Maybe Text
repositoryPolicyText :: Maybe Text
$sel:repositoryPolicyText:AwsEcrRepositoryDetails' :: AwsEcrRepositoryDetails -> Maybe Text
repositoryPolicyText} -> Maybe Text
repositoryPolicyText) (\s :: AwsEcrRepositoryDetails
s@AwsEcrRepositoryDetails' {} Maybe Text
a -> AwsEcrRepositoryDetails
s {$sel:repositoryPolicyText:AwsEcrRepositoryDetails' :: Maybe Text
repositoryPolicyText = Maybe Text
a} :: AwsEcrRepositoryDetails)
awsEcrRepositoryDetails_repositoryName :: Lens.Lens' AwsEcrRepositoryDetails (Prelude.Maybe Prelude.Text)
awsEcrRepositoryDetails_repositoryName :: (Maybe Text -> f (Maybe Text))
-> AwsEcrRepositoryDetails -> f AwsEcrRepositoryDetails
awsEcrRepositoryDetails_repositoryName = (AwsEcrRepositoryDetails -> Maybe Text)
-> (AwsEcrRepositoryDetails
-> Maybe Text -> AwsEcrRepositoryDetails)
-> Lens
AwsEcrRepositoryDetails
AwsEcrRepositoryDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrRepositoryDetails' {Maybe Text
repositoryName :: Maybe Text
$sel:repositoryName:AwsEcrRepositoryDetails' :: AwsEcrRepositoryDetails -> Maybe Text
repositoryName} -> Maybe Text
repositoryName) (\s :: AwsEcrRepositoryDetails
s@AwsEcrRepositoryDetails' {} Maybe Text
a -> AwsEcrRepositoryDetails
s {$sel:repositoryName:AwsEcrRepositoryDetails' :: Maybe Text
repositoryName = Maybe Text
a} :: AwsEcrRepositoryDetails)
awsEcrRepositoryDetails_imageTagMutability :: Lens.Lens' AwsEcrRepositoryDetails (Prelude.Maybe Prelude.Text)
awsEcrRepositoryDetails_imageTagMutability :: (Maybe Text -> f (Maybe Text))
-> AwsEcrRepositoryDetails -> f AwsEcrRepositoryDetails
awsEcrRepositoryDetails_imageTagMutability = (AwsEcrRepositoryDetails -> Maybe Text)
-> (AwsEcrRepositoryDetails
-> Maybe Text -> AwsEcrRepositoryDetails)
-> Lens
AwsEcrRepositoryDetails
AwsEcrRepositoryDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrRepositoryDetails' {Maybe Text
imageTagMutability :: Maybe Text
$sel:imageTagMutability:AwsEcrRepositoryDetails' :: AwsEcrRepositoryDetails -> Maybe Text
imageTagMutability} -> Maybe Text
imageTagMutability) (\s :: AwsEcrRepositoryDetails
s@AwsEcrRepositoryDetails' {} Maybe Text
a -> AwsEcrRepositoryDetails
s {$sel:imageTagMutability:AwsEcrRepositoryDetails' :: Maybe Text
imageTagMutability = Maybe Text
a} :: AwsEcrRepositoryDetails)
awsEcrRepositoryDetails_lifecyclePolicy :: Lens.Lens' AwsEcrRepositoryDetails (Prelude.Maybe AwsEcrRepositoryLifecyclePolicyDetails)
awsEcrRepositoryDetails_lifecyclePolicy :: (Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> f (Maybe AwsEcrRepositoryLifecyclePolicyDetails))
-> AwsEcrRepositoryDetails -> f AwsEcrRepositoryDetails
awsEcrRepositoryDetails_lifecyclePolicy = (AwsEcrRepositoryDetails
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails)
-> (AwsEcrRepositoryDetails
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> AwsEcrRepositoryDetails)
-> Lens
AwsEcrRepositoryDetails
AwsEcrRepositoryDetails
(Maybe AwsEcrRepositoryLifecyclePolicyDetails)
(Maybe AwsEcrRepositoryLifecyclePolicyDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrRepositoryDetails' {Maybe AwsEcrRepositoryLifecyclePolicyDetails
lifecyclePolicy :: Maybe AwsEcrRepositoryLifecyclePolicyDetails
$sel:lifecyclePolicy:AwsEcrRepositoryDetails' :: AwsEcrRepositoryDetails
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
lifecyclePolicy} -> Maybe AwsEcrRepositoryLifecyclePolicyDetails
lifecyclePolicy) (\s :: AwsEcrRepositoryDetails
s@AwsEcrRepositoryDetails' {} Maybe AwsEcrRepositoryLifecyclePolicyDetails
a -> AwsEcrRepositoryDetails
s {$sel:lifecyclePolicy:AwsEcrRepositoryDetails' :: Maybe AwsEcrRepositoryLifecyclePolicyDetails
lifecyclePolicy = Maybe AwsEcrRepositoryLifecyclePolicyDetails
a} :: AwsEcrRepositoryDetails)
instance Core.FromJSON AwsEcrRepositoryDetails where
parseJSON :: Value -> Parser AwsEcrRepositoryDetails
parseJSON =
String
-> (Object -> Parser AwsEcrRepositoryDetails)
-> Value
-> Parser AwsEcrRepositoryDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"AwsEcrRepositoryDetails"
( \Object
x ->
Maybe Text
-> Maybe AwsEcrRepositoryImageScanningConfigurationDetails
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> AwsEcrRepositoryDetails
AwsEcrRepositoryDetails'
(Maybe Text
-> Maybe AwsEcrRepositoryImageScanningConfigurationDetails
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> AwsEcrRepositoryDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe AwsEcrRepositoryImageScanningConfigurationDetails
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> AwsEcrRepositoryDetails)
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
"Arn")
Parser
(Maybe AwsEcrRepositoryImageScanningConfigurationDetails
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> AwsEcrRepositoryDetails)
-> Parser (Maybe AwsEcrRepositoryImageScanningConfigurationDetails)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> AwsEcrRepositoryDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Parser (Maybe AwsEcrRepositoryImageScanningConfigurationDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ImageScanningConfiguration")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> AwsEcrRepositoryDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> AwsEcrRepositoryDetails)
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
"RepositoryPolicyText")
Parser
(Maybe Text
-> Maybe Text
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> AwsEcrRepositoryDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> AwsEcrRepositoryDetails)
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
"RepositoryName")
Parser
(Maybe Text
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> AwsEcrRepositoryDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> AwsEcrRepositoryDetails)
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
"ImageTagMutability")
Parser
(Maybe AwsEcrRepositoryLifecyclePolicyDetails
-> AwsEcrRepositoryDetails)
-> Parser (Maybe AwsEcrRepositoryLifecyclePolicyDetails)
-> Parser AwsEcrRepositoryDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe AwsEcrRepositoryLifecyclePolicyDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LifecyclePolicy")
)
instance Prelude.Hashable AwsEcrRepositoryDetails
instance Prelude.NFData AwsEcrRepositoryDetails
instance Core.ToJSON AwsEcrRepositoryDetails where
toJSON :: AwsEcrRepositoryDetails -> Value
toJSON AwsEcrRepositoryDetails' {Maybe Text
Maybe AwsEcrRepositoryImageScanningConfigurationDetails
Maybe AwsEcrRepositoryLifecyclePolicyDetails
lifecyclePolicy :: Maybe AwsEcrRepositoryLifecyclePolicyDetails
imageTagMutability :: Maybe Text
repositoryName :: Maybe Text
repositoryPolicyText :: Maybe Text
imageScanningConfiguration :: Maybe AwsEcrRepositoryImageScanningConfigurationDetails
arn :: Maybe Text
$sel:lifecyclePolicy:AwsEcrRepositoryDetails' :: AwsEcrRepositoryDetails
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails
$sel:imageTagMutability:AwsEcrRepositoryDetails' :: AwsEcrRepositoryDetails -> Maybe Text
$sel:repositoryName:AwsEcrRepositoryDetails' :: AwsEcrRepositoryDetails -> Maybe Text
$sel:repositoryPolicyText:AwsEcrRepositoryDetails' :: AwsEcrRepositoryDetails -> Maybe Text
$sel:imageScanningConfiguration:AwsEcrRepositoryDetails' :: AwsEcrRepositoryDetails
-> Maybe AwsEcrRepositoryImageScanningConfigurationDetails
$sel:arn:AwsEcrRepositoryDetails' :: AwsEcrRepositoryDetails -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Arn" 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
arn,
(Text
"ImageScanningConfiguration" Text -> AwsEcrRepositoryImageScanningConfigurationDetails -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(AwsEcrRepositoryImageScanningConfigurationDetails -> Pair)
-> Maybe AwsEcrRepositoryImageScanningConfigurationDetails
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsEcrRepositoryImageScanningConfigurationDetails
imageScanningConfiguration,
(Text
"RepositoryPolicyText" 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
repositoryPolicyText,
(Text
"RepositoryName" 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
repositoryName,
(Text
"ImageTagMutability" 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
imageTagMutability,
(Text
"LifecyclePolicy" Text -> AwsEcrRepositoryLifecyclePolicyDetails -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(AwsEcrRepositoryLifecyclePolicyDetails -> Pair)
-> Maybe AwsEcrRepositoryLifecyclePolicyDetails -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsEcrRepositoryLifecyclePolicyDetails
lifecyclePolicy
]
)