module Stratosphere.SecurityLake.DataLake.ReplicationConfigurationProperty (
        ReplicationConfigurationProperty(..),
        mkReplicationConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ReplicationConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-datalake-replicationconfiguration.html>
    ReplicationConfigurationProperty {ReplicationConfigurationProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-datalake-replicationconfiguration.html#cfn-securitylake-datalake-replicationconfiguration-regions>
                                      ReplicationConfigurationProperty -> Maybe (ValueList Text)
regions :: (Prelude.Maybe (ValueList Prelude.Text)),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-datalake-replicationconfiguration.html#cfn-securitylake-datalake-replicationconfiguration-rolearn>
                                      ReplicationConfigurationProperty -> Maybe (Value Text)
roleArn :: (Prelude.Maybe (Value Prelude.Text))}
  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 ::
  ReplicationConfigurationProperty
mkReplicationConfigurationProperty :: ReplicationConfigurationProperty
mkReplicationConfigurationProperty
  = ReplicationConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), regions :: Maybe (ValueList Text)
regions = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       roleArn :: Maybe (Value Text)
roleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ReplicationConfigurationProperty where
  toResourceProperties :: ReplicationConfigurationProperty -> ResourceProperties
toResourceProperties ReplicationConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ReplicationConfigurationProperty -> ()
regions :: ReplicationConfigurationProperty -> Maybe (ValueList Text)
roleArn :: ReplicationConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
regions :: Maybe (ValueList Text)
roleArn :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SecurityLake::DataLake.ReplicationConfiguration",
         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
"Regions" (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)
regions,
                            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
"RoleArn" (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)
roleArn])}
instance JSON.ToJSON ReplicationConfigurationProperty where
  toJSON :: ReplicationConfigurationProperty -> Value
toJSON ReplicationConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ReplicationConfigurationProperty -> ()
regions :: ReplicationConfigurationProperty -> Maybe (ValueList Text)
roleArn :: ReplicationConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
regions :: Maybe (ValueList Text)
roleArn :: 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
"Regions" (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)
regions,
               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
"RoleArn" (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)
roleArn]))
instance Property "Regions" ReplicationConfigurationProperty where
  type PropertyType "Regions" ReplicationConfigurationProperty = ValueList Prelude.Text
  set :: PropertyType "Regions" ReplicationConfigurationProperty
-> ReplicationConfigurationProperty
-> ReplicationConfigurationProperty
set PropertyType "Regions" ReplicationConfigurationProperty
newValue ReplicationConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ReplicationConfigurationProperty -> ()
regions :: ReplicationConfigurationProperty -> Maybe (ValueList Text)
roleArn :: ReplicationConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
regions :: Maybe (ValueList Text)
roleArn :: Maybe (Value Text)
..}
    = ReplicationConfigurationProperty
        {regions :: Maybe (ValueList Text)
regions = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Regions" ReplicationConfigurationProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
..}
instance Property "RoleArn" ReplicationConfigurationProperty where
  type PropertyType "RoleArn" ReplicationConfigurationProperty = Value Prelude.Text
  set :: PropertyType "RoleArn" ReplicationConfigurationProperty
-> ReplicationConfigurationProperty
-> ReplicationConfigurationProperty
set PropertyType "RoleArn" ReplicationConfigurationProperty
newValue ReplicationConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ReplicationConfigurationProperty -> ()
regions :: ReplicationConfigurationProperty -> Maybe (ValueList Text)
roleArn :: ReplicationConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
regions :: Maybe (ValueList Text)
roleArn :: Maybe (Value Text)
..}
    = ReplicationConfigurationProperty
        {roleArn :: Maybe (Value Text)
roleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RoleArn" ReplicationConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
regions :: Maybe (ValueList Text)
haddock_workaround_ :: ()
regions :: Maybe (ValueList Text)
..}