module Stratosphere.Omics.WorkflowVersion.RegistryMappingProperty (
        RegistryMappingProperty(..), mkRegistryMappingProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RegistryMappingProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-omics-workflowversion-registrymapping.html>
    RegistryMappingProperty {RegistryMappingProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-omics-workflowversion-registrymapping.html#cfn-omics-workflowversion-registrymapping-ecraccountid>
                             RegistryMappingProperty -> Maybe (Value Text)
ecrAccountId :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-omics-workflowversion-registrymapping.html#cfn-omics-workflowversion-registrymapping-ecrrepositoryprefix>
                             RegistryMappingProperty -> Maybe (Value Text)
ecrRepositoryPrefix :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-omics-workflowversion-registrymapping.html#cfn-omics-workflowversion-registrymapping-upstreamregistryurl>
                             RegistryMappingProperty -> Maybe (Value Text)
upstreamRegistryUrl :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-omics-workflowversion-registrymapping.html#cfn-omics-workflowversion-registrymapping-upstreamrepositoryprefix>
                             RegistryMappingProperty -> Maybe (Value Text)
upstreamRepositoryPrefix :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (RegistryMappingProperty -> RegistryMappingProperty -> Bool
(RegistryMappingProperty -> RegistryMappingProperty -> Bool)
-> (RegistryMappingProperty -> RegistryMappingProperty -> Bool)
-> Eq RegistryMappingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RegistryMappingProperty -> RegistryMappingProperty -> Bool
== :: RegistryMappingProperty -> RegistryMappingProperty -> Bool
$c/= :: RegistryMappingProperty -> RegistryMappingProperty -> Bool
/= :: RegistryMappingProperty -> RegistryMappingProperty -> Bool
Prelude.Eq, Int -> RegistryMappingProperty -> ShowS
[RegistryMappingProperty] -> ShowS
RegistryMappingProperty -> String
(Int -> RegistryMappingProperty -> ShowS)
-> (RegistryMappingProperty -> String)
-> ([RegistryMappingProperty] -> ShowS)
-> Show RegistryMappingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RegistryMappingProperty -> ShowS
showsPrec :: Int -> RegistryMappingProperty -> ShowS
$cshow :: RegistryMappingProperty -> String
show :: RegistryMappingProperty -> String
$cshowList :: [RegistryMappingProperty] -> ShowS
showList :: [RegistryMappingProperty] -> ShowS
Prelude.Show)
mkRegistryMappingProperty :: RegistryMappingProperty
mkRegistryMappingProperty :: RegistryMappingProperty
mkRegistryMappingProperty
  = RegistryMappingProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), ecrAccountId :: Maybe (Value Text)
ecrAccountId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       ecrRepositoryPrefix :: Maybe (Value Text)
ecrRepositoryPrefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       upstreamRegistryUrl :: Maybe (Value Text)
upstreamRegistryUrl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       upstreamRepositoryPrefix :: Maybe (Value Text)
upstreamRepositoryPrefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RegistryMappingProperty where
  toResourceProperties :: RegistryMappingProperty -> ResourceProperties
toResourceProperties RegistryMappingProperty {Maybe (Value Text)
()
haddock_workaround_ :: RegistryMappingProperty -> ()
ecrAccountId :: RegistryMappingProperty -> Maybe (Value Text)
ecrRepositoryPrefix :: RegistryMappingProperty -> Maybe (Value Text)
upstreamRegistryUrl :: RegistryMappingProperty -> Maybe (Value Text)
upstreamRepositoryPrefix :: RegistryMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ecrAccountId :: Maybe (Value Text)
ecrRepositoryPrefix :: Maybe (Value Text)
upstreamRegistryUrl :: Maybe (Value Text)
upstreamRepositoryPrefix :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Omics::WorkflowVersion.RegistryMapping",
         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
"EcrAccountId" (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)
ecrAccountId,
                            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
"EcrRepositoryPrefix" (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)
ecrRepositoryPrefix,
                            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
"UpstreamRegistryUrl" (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)
upstreamRegistryUrl,
                            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
"UpstreamRepositoryPrefix"
                              (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)
upstreamRepositoryPrefix])}
instance JSON.ToJSON RegistryMappingProperty where
  toJSON :: RegistryMappingProperty -> Value
toJSON RegistryMappingProperty {Maybe (Value Text)
()
haddock_workaround_ :: RegistryMappingProperty -> ()
ecrAccountId :: RegistryMappingProperty -> Maybe (Value Text)
ecrRepositoryPrefix :: RegistryMappingProperty -> Maybe (Value Text)
upstreamRegistryUrl :: RegistryMappingProperty -> Maybe (Value Text)
upstreamRepositoryPrefix :: RegistryMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ecrAccountId :: Maybe (Value Text)
ecrRepositoryPrefix :: Maybe (Value Text)
upstreamRegistryUrl :: Maybe (Value Text)
upstreamRepositoryPrefix :: 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
"EcrAccountId" (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)
ecrAccountId,
               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
"EcrRepositoryPrefix" (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)
ecrRepositoryPrefix,
               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
"UpstreamRegistryUrl" (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)
upstreamRegistryUrl,
               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
"UpstreamRepositoryPrefix"
                 (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)
upstreamRepositoryPrefix]))
instance Property "EcrAccountId" RegistryMappingProperty where
  type PropertyType "EcrAccountId" RegistryMappingProperty = Value Prelude.Text
  set :: PropertyType "EcrAccountId" RegistryMappingProperty
-> RegistryMappingProperty -> RegistryMappingProperty
set PropertyType "EcrAccountId" RegistryMappingProperty
newValue RegistryMappingProperty {Maybe (Value Text)
()
haddock_workaround_ :: RegistryMappingProperty -> ()
ecrAccountId :: RegistryMappingProperty -> Maybe (Value Text)
ecrRepositoryPrefix :: RegistryMappingProperty -> Maybe (Value Text)
upstreamRegistryUrl :: RegistryMappingProperty -> Maybe (Value Text)
upstreamRepositoryPrefix :: RegistryMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ecrAccountId :: Maybe (Value Text)
ecrRepositoryPrefix :: Maybe (Value Text)
upstreamRegistryUrl :: Maybe (Value Text)
upstreamRepositoryPrefix :: Maybe (Value Text)
..}
    = RegistryMappingProperty
        {ecrAccountId :: Maybe (Value Text)
ecrAccountId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EcrAccountId" RegistryMappingProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
ecrRepositoryPrefix :: Maybe (Value Text)
upstreamRegistryUrl :: Maybe (Value Text)
upstreamRepositoryPrefix :: Maybe (Value Text)
haddock_workaround_ :: ()
ecrRepositoryPrefix :: Maybe (Value Text)
upstreamRegistryUrl :: Maybe (Value Text)
upstreamRepositoryPrefix :: Maybe (Value Text)
..}
instance Property "EcrRepositoryPrefix" RegistryMappingProperty where
  type PropertyType "EcrRepositoryPrefix" RegistryMappingProperty = Value Prelude.Text
  set :: PropertyType "EcrRepositoryPrefix" RegistryMappingProperty
-> RegistryMappingProperty -> RegistryMappingProperty
set PropertyType "EcrRepositoryPrefix" RegistryMappingProperty
newValue RegistryMappingProperty {Maybe (Value Text)
()
haddock_workaround_ :: RegistryMappingProperty -> ()
ecrAccountId :: RegistryMappingProperty -> Maybe (Value Text)
ecrRepositoryPrefix :: RegistryMappingProperty -> Maybe (Value Text)
upstreamRegistryUrl :: RegistryMappingProperty -> Maybe (Value Text)
upstreamRepositoryPrefix :: RegistryMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ecrAccountId :: Maybe (Value Text)
ecrRepositoryPrefix :: Maybe (Value Text)
upstreamRegistryUrl :: Maybe (Value Text)
upstreamRepositoryPrefix :: Maybe (Value Text)
..}
    = RegistryMappingProperty
        {ecrRepositoryPrefix :: Maybe (Value Text)
ecrRepositoryPrefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EcrRepositoryPrefix" RegistryMappingProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
ecrAccountId :: Maybe (Value Text)
upstreamRegistryUrl :: Maybe (Value Text)
upstreamRepositoryPrefix :: Maybe (Value Text)
haddock_workaround_ :: ()
ecrAccountId :: Maybe (Value Text)
upstreamRegistryUrl :: Maybe (Value Text)
upstreamRepositoryPrefix :: Maybe (Value Text)
..}
instance Property "UpstreamRegistryUrl" RegistryMappingProperty where
  type PropertyType "UpstreamRegistryUrl" RegistryMappingProperty = Value Prelude.Text
  set :: PropertyType "UpstreamRegistryUrl" RegistryMappingProperty
-> RegistryMappingProperty -> RegistryMappingProperty
set PropertyType "UpstreamRegistryUrl" RegistryMappingProperty
newValue RegistryMappingProperty {Maybe (Value Text)
()
haddock_workaround_ :: RegistryMappingProperty -> ()
ecrAccountId :: RegistryMappingProperty -> Maybe (Value Text)
ecrRepositoryPrefix :: RegistryMappingProperty -> Maybe (Value Text)
upstreamRegistryUrl :: RegistryMappingProperty -> Maybe (Value Text)
upstreamRepositoryPrefix :: RegistryMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ecrAccountId :: Maybe (Value Text)
ecrRepositoryPrefix :: Maybe (Value Text)
upstreamRegistryUrl :: Maybe (Value Text)
upstreamRepositoryPrefix :: Maybe (Value Text)
..}
    = RegistryMappingProperty
        {upstreamRegistryUrl :: Maybe (Value Text)
upstreamRegistryUrl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UpstreamRegistryUrl" RegistryMappingProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
ecrAccountId :: Maybe (Value Text)
ecrRepositoryPrefix :: Maybe (Value Text)
upstreamRepositoryPrefix :: Maybe (Value Text)
haddock_workaround_ :: ()
ecrAccountId :: Maybe (Value Text)
ecrRepositoryPrefix :: Maybe (Value Text)
upstreamRepositoryPrefix :: Maybe (Value Text)
..}
instance Property "UpstreamRepositoryPrefix" RegistryMappingProperty where
  type PropertyType "UpstreamRepositoryPrefix" RegistryMappingProperty = Value Prelude.Text
  set :: PropertyType "UpstreamRepositoryPrefix" RegistryMappingProperty
-> RegistryMappingProperty -> RegistryMappingProperty
set PropertyType "UpstreamRepositoryPrefix" RegistryMappingProperty
newValue RegistryMappingProperty {Maybe (Value Text)
()
haddock_workaround_ :: RegistryMappingProperty -> ()
ecrAccountId :: RegistryMappingProperty -> Maybe (Value Text)
ecrRepositoryPrefix :: RegistryMappingProperty -> Maybe (Value Text)
upstreamRegistryUrl :: RegistryMappingProperty -> Maybe (Value Text)
upstreamRepositoryPrefix :: RegistryMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ecrAccountId :: Maybe (Value Text)
ecrRepositoryPrefix :: Maybe (Value Text)
upstreamRegistryUrl :: Maybe (Value Text)
upstreamRepositoryPrefix :: Maybe (Value Text)
..}
    = RegistryMappingProperty
        {upstreamRepositoryPrefix :: Maybe (Value Text)
upstreamRepositoryPrefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UpstreamRepositoryPrefix" RegistryMappingProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
ecrAccountId :: Maybe (Value Text)
ecrRepositoryPrefix :: Maybe (Value Text)
upstreamRegistryUrl :: Maybe (Value Text)
haddock_workaround_ :: ()
ecrAccountId :: Maybe (Value Text)
ecrRepositoryPrefix :: Maybe (Value Text)
upstreamRegistryUrl :: Maybe (Value Text)
..}