module Stratosphere.ECR.ReplicationConfiguration.ReplicationConfigurationProperty (
        module Exports, ReplicationConfigurationProperty(..),
        mkReplicationConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ECR.ReplicationConfiguration.ReplicationRuleProperty as Exports
import Stratosphere.ResourceProperties
data ReplicationConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-replicationconfiguration-replicationconfiguration.html>
    ReplicationConfigurationProperty {ReplicationConfigurationProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-replicationconfiguration-replicationconfiguration.html#cfn-ecr-replicationconfiguration-replicationconfiguration-rules>
                                      ReplicationConfigurationProperty -> [ReplicationRuleProperty]
rules :: [ReplicationRuleProperty]}
  deriving stock (ReplicationConfigurationProperty
-> ReplicationConfigurationProperty -> Bool
(ReplicationConfigurationProperty
 -> ReplicationConfigurationProperty -> Bool)
-> (ReplicationConfigurationProperty
    -> ReplicationConfigurationProperty -> Bool)
-> Eq ReplicationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReplicationConfigurationProperty
-> ReplicationConfigurationProperty -> Bool
== :: ReplicationConfigurationProperty
-> ReplicationConfigurationProperty -> Bool
$c/= :: ReplicationConfigurationProperty
-> ReplicationConfigurationProperty -> Bool
/= :: ReplicationConfigurationProperty
-> ReplicationConfigurationProperty -> Bool
Prelude.Eq, Int -> ReplicationConfigurationProperty -> ShowS
[ReplicationConfigurationProperty] -> ShowS
ReplicationConfigurationProperty -> String
(Int -> ReplicationConfigurationProperty -> ShowS)
-> (ReplicationConfigurationProperty -> String)
-> ([ReplicationConfigurationProperty] -> ShowS)
-> Show ReplicationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReplicationConfigurationProperty -> ShowS
showsPrec :: Int -> ReplicationConfigurationProperty -> ShowS
$cshow :: ReplicationConfigurationProperty -> String
show :: ReplicationConfigurationProperty -> String
$cshowList :: [ReplicationConfigurationProperty] -> ShowS
showList :: [ReplicationConfigurationProperty] -> ShowS
Prelude.Show)
mkReplicationConfigurationProperty ::
  [ReplicationRuleProperty] -> ReplicationConfigurationProperty
mkReplicationConfigurationProperty :: [ReplicationRuleProperty] -> ReplicationConfigurationProperty
mkReplicationConfigurationProperty [ReplicationRuleProperty]
rules
  = ReplicationConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), rules :: [ReplicationRuleProperty]
rules = [ReplicationRuleProperty]
rules}
instance ToResourceProperties ReplicationConfigurationProperty where
  toResourceProperties :: ReplicationConfigurationProperty -> ResourceProperties
toResourceProperties ReplicationConfigurationProperty {[ReplicationRuleProperty]
()
haddock_workaround_ :: ReplicationConfigurationProperty -> ()
rules :: ReplicationConfigurationProperty -> [ReplicationRuleProperty]
haddock_workaround_ :: ()
rules :: [ReplicationRuleProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ECR::ReplicationConfiguration.ReplicationConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Rules" Key -> [ReplicationRuleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [ReplicationRuleProperty]
rules]}
instance JSON.ToJSON ReplicationConfigurationProperty where
  toJSON :: ReplicationConfigurationProperty -> Value
toJSON ReplicationConfigurationProperty {[ReplicationRuleProperty]
()
haddock_workaround_ :: ReplicationConfigurationProperty -> ()
rules :: ReplicationConfigurationProperty -> [ReplicationRuleProperty]
haddock_workaround_ :: ()
rules :: [ReplicationRuleProperty]
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Rules" Key -> [ReplicationRuleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [ReplicationRuleProperty]
rules]
instance Property "Rules" ReplicationConfigurationProperty where
  type PropertyType "Rules" ReplicationConfigurationProperty = [ReplicationRuleProperty]
  set :: PropertyType "Rules" ReplicationConfigurationProperty
-> ReplicationConfigurationProperty
-> ReplicationConfigurationProperty
set PropertyType "Rules" ReplicationConfigurationProperty
newValue ReplicationConfigurationProperty {[ReplicationRuleProperty]
()
haddock_workaround_ :: ReplicationConfigurationProperty -> ()
rules :: ReplicationConfigurationProperty -> [ReplicationRuleProperty]
haddock_workaround_ :: ()
rules :: [ReplicationRuleProperty]
..}
    = ReplicationConfigurationProperty {rules :: [ReplicationRuleProperty]
rules = [ReplicationRuleProperty]
PropertyType "Rules" ReplicationConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}