module Stratosphere.ImageBuilder.ImagePipeline.EcrConfigurationProperty (
EcrConfigurationProperty(..), mkEcrConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EcrConfigurationProperty
=
EcrConfigurationProperty {EcrConfigurationProperty -> ()
haddock_workaround_ :: (),
EcrConfigurationProperty -> Maybe (ValueList Text)
containerTags :: (Prelude.Maybe (ValueList Prelude.Text)),
EcrConfigurationProperty -> Maybe (Value Text)
repositoryName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (EcrConfigurationProperty -> EcrConfigurationProperty -> Bool
(EcrConfigurationProperty -> EcrConfigurationProperty -> Bool)
-> (EcrConfigurationProperty -> EcrConfigurationProperty -> Bool)
-> Eq EcrConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EcrConfigurationProperty -> EcrConfigurationProperty -> Bool
== :: EcrConfigurationProperty -> EcrConfigurationProperty -> Bool
$c/= :: EcrConfigurationProperty -> EcrConfigurationProperty -> Bool
/= :: EcrConfigurationProperty -> EcrConfigurationProperty -> Bool
Prelude.Eq, Int -> EcrConfigurationProperty -> ShowS
[EcrConfigurationProperty] -> ShowS
EcrConfigurationProperty -> String
(Int -> EcrConfigurationProperty -> ShowS)
-> (EcrConfigurationProperty -> String)
-> ([EcrConfigurationProperty] -> ShowS)
-> Show EcrConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EcrConfigurationProperty -> ShowS
showsPrec :: Int -> EcrConfigurationProperty -> ShowS
$cshow :: EcrConfigurationProperty -> String
show :: EcrConfigurationProperty -> String
$cshowList :: [EcrConfigurationProperty] -> ShowS
showList :: [EcrConfigurationProperty] -> ShowS
Prelude.Show)
mkEcrConfigurationProperty :: EcrConfigurationProperty
mkEcrConfigurationProperty :: EcrConfigurationProperty
mkEcrConfigurationProperty
= EcrConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), containerTags :: Maybe (ValueList Text)
containerTags = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
repositoryName :: Maybe (Value Text)
repositoryName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EcrConfigurationProperty where
toResourceProperties :: EcrConfigurationProperty -> ResourceProperties
toResourceProperties EcrConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EcrConfigurationProperty -> ()
containerTags :: EcrConfigurationProperty -> Maybe (ValueList Text)
repositoryName :: EcrConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
containerTags :: Maybe (ValueList Text)
repositoryName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ImageBuilder::ImagePipeline.EcrConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContainerTags" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
containerTags,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RepositoryName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
repositoryName])}
instance JSON.ToJSON EcrConfigurationProperty where
toJSON :: EcrConfigurationProperty -> Value
toJSON EcrConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EcrConfigurationProperty -> ()
containerTags :: EcrConfigurationProperty -> Maybe (ValueList Text)
repositoryName :: EcrConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
containerTags :: Maybe (ValueList Text)
repositoryName :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContainerTags" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
containerTags,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RepositoryName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
repositoryName]))
instance Property "ContainerTags" EcrConfigurationProperty where
type PropertyType "ContainerTags" EcrConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "ContainerTags" EcrConfigurationProperty
-> EcrConfigurationProperty -> EcrConfigurationProperty
set PropertyType "ContainerTags" EcrConfigurationProperty
newValue EcrConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EcrConfigurationProperty -> ()
containerTags :: EcrConfigurationProperty -> Maybe (ValueList Text)
repositoryName :: EcrConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
containerTags :: Maybe (ValueList Text)
repositoryName :: Maybe (Value Text)
..}
= EcrConfigurationProperty
{containerTags :: Maybe (ValueList Text)
containerTags = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ContainerTags" EcrConfigurationProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
repositoryName :: Maybe (Value Text)
haddock_workaround_ :: ()
repositoryName :: Maybe (Value Text)
..}
instance Property "RepositoryName" EcrConfigurationProperty where
type PropertyType "RepositoryName" EcrConfigurationProperty = Value Prelude.Text
set :: PropertyType "RepositoryName" EcrConfigurationProperty
-> EcrConfigurationProperty -> EcrConfigurationProperty
set PropertyType "RepositoryName" EcrConfigurationProperty
newValue EcrConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EcrConfigurationProperty -> ()
containerTags :: EcrConfigurationProperty -> Maybe (ValueList Text)
repositoryName :: EcrConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
containerTags :: Maybe (ValueList Text)
repositoryName :: Maybe (Value Text)
..}
= EcrConfigurationProperty
{repositoryName :: Maybe (Value Text)
repositoryName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RepositoryName" EcrConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
containerTags :: Maybe (ValueList Text)
haddock_workaround_ :: ()
containerTags :: Maybe (ValueList Text)
..}