module Stratosphere.ECR.PublicRepository.RepositoryCatalogDataProperty (
RepositoryCatalogDataProperty(..), mkRepositoryCatalogDataProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RepositoryCatalogDataProperty
=
RepositoryCatalogDataProperty {RepositoryCatalogDataProperty -> ()
haddock_workaround_ :: (),
RepositoryCatalogDataProperty -> Maybe (Value Text)
aboutText :: (Prelude.Maybe (Value Prelude.Text)),
RepositoryCatalogDataProperty -> Maybe (ValueList Text)
architectures :: (Prelude.Maybe (ValueList Prelude.Text)),
RepositoryCatalogDataProperty -> Maybe (ValueList Text)
operatingSystems :: (Prelude.Maybe (ValueList Prelude.Text)),
RepositoryCatalogDataProperty -> Maybe (Value Text)
repositoryDescription :: (Prelude.Maybe (Value Prelude.Text)),
RepositoryCatalogDataProperty -> Maybe (Value Text)
usageText :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (RepositoryCatalogDataProperty
-> RepositoryCatalogDataProperty -> Bool
(RepositoryCatalogDataProperty
-> RepositoryCatalogDataProperty -> Bool)
-> (RepositoryCatalogDataProperty
-> RepositoryCatalogDataProperty -> Bool)
-> Eq RepositoryCatalogDataProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RepositoryCatalogDataProperty
-> RepositoryCatalogDataProperty -> Bool
== :: RepositoryCatalogDataProperty
-> RepositoryCatalogDataProperty -> Bool
$c/= :: RepositoryCatalogDataProperty
-> RepositoryCatalogDataProperty -> Bool
/= :: RepositoryCatalogDataProperty
-> RepositoryCatalogDataProperty -> Bool
Prelude.Eq, Int -> RepositoryCatalogDataProperty -> ShowS
[RepositoryCatalogDataProperty] -> ShowS
RepositoryCatalogDataProperty -> String
(Int -> RepositoryCatalogDataProperty -> ShowS)
-> (RepositoryCatalogDataProperty -> String)
-> ([RepositoryCatalogDataProperty] -> ShowS)
-> Show RepositoryCatalogDataProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RepositoryCatalogDataProperty -> ShowS
showsPrec :: Int -> RepositoryCatalogDataProperty -> ShowS
$cshow :: RepositoryCatalogDataProperty -> String
show :: RepositoryCatalogDataProperty -> String
$cshowList :: [RepositoryCatalogDataProperty] -> ShowS
showList :: [RepositoryCatalogDataProperty] -> ShowS
Prelude.Show)
mkRepositoryCatalogDataProperty :: RepositoryCatalogDataProperty
mkRepositoryCatalogDataProperty :: RepositoryCatalogDataProperty
mkRepositoryCatalogDataProperty
= RepositoryCatalogDataProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), aboutText :: Maybe (Value Text)
aboutText = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
architectures :: Maybe (ValueList Text)
architectures = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
operatingSystems :: Maybe (ValueList Text)
operatingSystems = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
repositoryDescription :: Maybe (Value Text)
repositoryDescription = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
usageText :: Maybe (Value Text)
usageText = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RepositoryCatalogDataProperty where
toResourceProperties :: RepositoryCatalogDataProperty -> ResourceProperties
toResourceProperties RepositoryCatalogDataProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RepositoryCatalogDataProperty -> ()
aboutText :: RepositoryCatalogDataProperty -> Maybe (Value Text)
architectures :: RepositoryCatalogDataProperty -> Maybe (ValueList Text)
operatingSystems :: RepositoryCatalogDataProperty -> Maybe (ValueList Text)
repositoryDescription :: RepositoryCatalogDataProperty -> Maybe (Value Text)
usageText :: RepositoryCatalogDataProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
architectures :: Maybe (ValueList Text)
operatingSystems :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
usageText :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ECR::PublicRepository.RepositoryCatalogData",
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 -> 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
"AboutText" (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)
aboutText,
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
"Architectures" (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)
architectures,
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
"OperatingSystems" (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)
operatingSystems,
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
"RepositoryDescription"
(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)
repositoryDescription,
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
"UsageText" (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)
usageText])}
instance JSON.ToJSON RepositoryCatalogDataProperty where
toJSON :: RepositoryCatalogDataProperty -> Value
toJSON RepositoryCatalogDataProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RepositoryCatalogDataProperty -> ()
aboutText :: RepositoryCatalogDataProperty -> Maybe (Value Text)
architectures :: RepositoryCatalogDataProperty -> Maybe (ValueList Text)
operatingSystems :: RepositoryCatalogDataProperty -> Maybe (ValueList Text)
repositoryDescription :: RepositoryCatalogDataProperty -> Maybe (Value Text)
usageText :: RepositoryCatalogDataProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
architectures :: Maybe (ValueList Text)
operatingSystems :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
usageText :: 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 -> 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
"AboutText" (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)
aboutText,
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
"Architectures" (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)
architectures,
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
"OperatingSystems" (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)
operatingSystems,
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
"RepositoryDescription"
(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)
repositoryDescription,
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
"UsageText" (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)
usageText]))
instance Property "AboutText" RepositoryCatalogDataProperty where
type PropertyType "AboutText" RepositoryCatalogDataProperty = Value Prelude.Text
set :: PropertyType "AboutText" RepositoryCatalogDataProperty
-> RepositoryCatalogDataProperty -> RepositoryCatalogDataProperty
set PropertyType "AboutText" RepositoryCatalogDataProperty
newValue RepositoryCatalogDataProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RepositoryCatalogDataProperty -> ()
aboutText :: RepositoryCatalogDataProperty -> Maybe (Value Text)
architectures :: RepositoryCatalogDataProperty -> Maybe (ValueList Text)
operatingSystems :: RepositoryCatalogDataProperty -> Maybe (ValueList Text)
repositoryDescription :: RepositoryCatalogDataProperty -> Maybe (Value Text)
usageText :: RepositoryCatalogDataProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
architectures :: Maybe (ValueList Text)
operatingSystems :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
usageText :: Maybe (Value Text)
..}
= RepositoryCatalogDataProperty
{aboutText :: Maybe (Value Text)
aboutText = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AboutText" RepositoryCatalogDataProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
architectures :: Maybe (ValueList Text)
operatingSystems :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
usageText :: Maybe (Value Text)
haddock_workaround_ :: ()
architectures :: Maybe (ValueList Text)
operatingSystems :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
usageText :: Maybe (Value Text)
..}
instance Property "Architectures" RepositoryCatalogDataProperty where
type PropertyType "Architectures" RepositoryCatalogDataProperty = ValueList Prelude.Text
set :: PropertyType "Architectures" RepositoryCatalogDataProperty
-> RepositoryCatalogDataProperty -> RepositoryCatalogDataProperty
set PropertyType "Architectures" RepositoryCatalogDataProperty
newValue RepositoryCatalogDataProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RepositoryCatalogDataProperty -> ()
aboutText :: RepositoryCatalogDataProperty -> Maybe (Value Text)
architectures :: RepositoryCatalogDataProperty -> Maybe (ValueList Text)
operatingSystems :: RepositoryCatalogDataProperty -> Maybe (ValueList Text)
repositoryDescription :: RepositoryCatalogDataProperty -> Maybe (Value Text)
usageText :: RepositoryCatalogDataProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
architectures :: Maybe (ValueList Text)
operatingSystems :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
usageText :: Maybe (Value Text)
..}
= RepositoryCatalogDataProperty
{architectures :: Maybe (ValueList Text)
architectures = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Architectures" RepositoryCatalogDataProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
operatingSystems :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
usageText :: Maybe (Value Text)
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
operatingSystems :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
usageText :: Maybe (Value Text)
..}
instance Property "OperatingSystems" RepositoryCatalogDataProperty where
type PropertyType "OperatingSystems" RepositoryCatalogDataProperty = ValueList Prelude.Text
set :: PropertyType "OperatingSystems" RepositoryCatalogDataProperty
-> RepositoryCatalogDataProperty -> RepositoryCatalogDataProperty
set PropertyType "OperatingSystems" RepositoryCatalogDataProperty
newValue RepositoryCatalogDataProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RepositoryCatalogDataProperty -> ()
aboutText :: RepositoryCatalogDataProperty -> Maybe (Value Text)
architectures :: RepositoryCatalogDataProperty -> Maybe (ValueList Text)
operatingSystems :: RepositoryCatalogDataProperty -> Maybe (ValueList Text)
repositoryDescription :: RepositoryCatalogDataProperty -> Maybe (Value Text)
usageText :: RepositoryCatalogDataProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
architectures :: Maybe (ValueList Text)
operatingSystems :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
usageText :: Maybe (Value Text)
..}
= RepositoryCatalogDataProperty
{operatingSystems :: Maybe (ValueList Text)
operatingSystems = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OperatingSystems" RepositoryCatalogDataProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
architectures :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
usageText :: Maybe (Value Text)
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
architectures :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
usageText :: Maybe (Value Text)
..}
instance Property "RepositoryDescription" RepositoryCatalogDataProperty where
type PropertyType "RepositoryDescription" RepositoryCatalogDataProperty = Value Prelude.Text
set :: PropertyType "RepositoryDescription" RepositoryCatalogDataProperty
-> RepositoryCatalogDataProperty -> RepositoryCatalogDataProperty
set PropertyType "RepositoryDescription" RepositoryCatalogDataProperty
newValue RepositoryCatalogDataProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RepositoryCatalogDataProperty -> ()
aboutText :: RepositoryCatalogDataProperty -> Maybe (Value Text)
architectures :: RepositoryCatalogDataProperty -> Maybe (ValueList Text)
operatingSystems :: RepositoryCatalogDataProperty -> Maybe (ValueList Text)
repositoryDescription :: RepositoryCatalogDataProperty -> Maybe (Value Text)
usageText :: RepositoryCatalogDataProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
architectures :: Maybe (ValueList Text)
operatingSystems :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
usageText :: Maybe (Value Text)
..}
= RepositoryCatalogDataProperty
{repositoryDescription :: Maybe (Value Text)
repositoryDescription = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RepositoryDescription" RepositoryCatalogDataProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
architectures :: Maybe (ValueList Text)
operatingSystems :: Maybe (ValueList Text)
usageText :: Maybe (Value Text)
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
architectures :: Maybe (ValueList Text)
operatingSystems :: Maybe (ValueList Text)
usageText :: Maybe (Value Text)
..}
instance Property "UsageText" RepositoryCatalogDataProperty where
type PropertyType "UsageText" RepositoryCatalogDataProperty = Value Prelude.Text
set :: PropertyType "UsageText" RepositoryCatalogDataProperty
-> RepositoryCatalogDataProperty -> RepositoryCatalogDataProperty
set PropertyType "UsageText" RepositoryCatalogDataProperty
newValue RepositoryCatalogDataProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RepositoryCatalogDataProperty -> ()
aboutText :: RepositoryCatalogDataProperty -> Maybe (Value Text)
architectures :: RepositoryCatalogDataProperty -> Maybe (ValueList Text)
operatingSystems :: RepositoryCatalogDataProperty -> Maybe (ValueList Text)
repositoryDescription :: RepositoryCatalogDataProperty -> Maybe (Value Text)
usageText :: RepositoryCatalogDataProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
architectures :: Maybe (ValueList Text)
operatingSystems :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
usageText :: Maybe (Value Text)
..}
= RepositoryCatalogDataProperty
{usageText :: Maybe (Value Text)
usageText = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UsageText" RepositoryCatalogDataProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
architectures :: Maybe (ValueList Text)
operatingSystems :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
haddock_workaround_ :: ()
aboutText :: Maybe (Value Text)
architectures :: Maybe (ValueList Text)
operatingSystems :: Maybe (ValueList Text)
repositoryDescription :: Maybe (Value Text)
..}