module Stratosphere.S3.Bucket.ReplicationRuleProperty (
        module Exports, ReplicationRuleProperty(..),
        mkReplicationRuleProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.S3.Bucket.DeleteMarkerReplicationProperty as Exports
import {-# SOURCE #-} Stratosphere.S3.Bucket.ReplicationDestinationProperty as Exports
import {-# SOURCE #-} Stratosphere.S3.Bucket.ReplicationRuleFilterProperty as Exports
import {-# SOURCE #-} Stratosphere.S3.Bucket.SourceSelectionCriteriaProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ReplicationRuleProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationrule.html>
    ReplicationRuleProperty {ReplicationRuleProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationrule.html#cfn-s3-bucket-replicationrule-deletemarkerreplication>
                             ReplicationRuleProperty -> Maybe DeleteMarkerReplicationProperty
deleteMarkerReplication :: (Prelude.Maybe DeleteMarkerReplicationProperty),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationrule.html#cfn-s3-bucket-replicationrule-destination>
                             ReplicationRuleProperty -> ReplicationDestinationProperty
destination :: ReplicationDestinationProperty,
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationrule.html#cfn-s3-bucket-replicationrule-filter>
                             ReplicationRuleProperty -> Maybe ReplicationRuleFilterProperty
filter :: (Prelude.Maybe ReplicationRuleFilterProperty),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationrule.html#cfn-s3-bucket-replicationrule-id>
                             ReplicationRuleProperty -> Maybe (Value Text)
id :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationrule.html#cfn-s3-bucket-replicationrule-prefix>
                             ReplicationRuleProperty -> Maybe (Value Text)
prefix :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationrule.html#cfn-s3-bucket-replicationrule-priority>
                             ReplicationRuleProperty -> Maybe (Value Integer)
priority :: (Prelude.Maybe (Value Prelude.Integer)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationrule.html#cfn-s3-bucket-replicationrule-sourceselectioncriteria>
                             ReplicationRuleProperty -> Maybe SourceSelectionCriteriaProperty
sourceSelectionCriteria :: (Prelude.Maybe SourceSelectionCriteriaProperty),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationrule.html#cfn-s3-bucket-replicationrule-status>
                             ReplicationRuleProperty -> Value Text
status :: (Value Prelude.Text)}
  deriving stock (ReplicationRuleProperty -> ReplicationRuleProperty -> Bool
(ReplicationRuleProperty -> ReplicationRuleProperty -> Bool)
-> (ReplicationRuleProperty -> ReplicationRuleProperty -> Bool)
-> Eq ReplicationRuleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReplicationRuleProperty -> ReplicationRuleProperty -> Bool
== :: ReplicationRuleProperty -> ReplicationRuleProperty -> Bool
$c/= :: ReplicationRuleProperty -> ReplicationRuleProperty -> Bool
/= :: ReplicationRuleProperty -> ReplicationRuleProperty -> Bool
Prelude.Eq, Int -> ReplicationRuleProperty -> ShowS
[ReplicationRuleProperty] -> ShowS
ReplicationRuleProperty -> String
(Int -> ReplicationRuleProperty -> ShowS)
-> (ReplicationRuleProperty -> String)
-> ([ReplicationRuleProperty] -> ShowS)
-> Show ReplicationRuleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReplicationRuleProperty -> ShowS
showsPrec :: Int -> ReplicationRuleProperty -> ShowS
$cshow :: ReplicationRuleProperty -> String
show :: ReplicationRuleProperty -> String
$cshowList :: [ReplicationRuleProperty] -> ShowS
showList :: [ReplicationRuleProperty] -> ShowS
Prelude.Show)
mkReplicationRuleProperty ::
  ReplicationDestinationProperty
  -> Value Prelude.Text -> ReplicationRuleProperty
mkReplicationRuleProperty :: ReplicationDestinationProperty
-> Value Text -> ReplicationRuleProperty
mkReplicationRuleProperty ReplicationDestinationProperty
destination Value Text
status
  = ReplicationRuleProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), destination :: ReplicationDestinationProperty
destination = ReplicationDestinationProperty
destination,
       status :: Value Text
status = Value Text
status, deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
deleteMarkerReplication = Maybe DeleteMarkerReplicationProperty
forall a. Maybe a
Prelude.Nothing,
       filter :: Maybe ReplicationRuleFilterProperty
filter = Maybe ReplicationRuleFilterProperty
forall a. Maybe a
Prelude.Nothing, id :: Maybe (Value Text)
id = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       prefix :: Maybe (Value Text)
prefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, priority :: Maybe (Value Integer)
priority = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
sourceSelectionCriteria = Maybe SourceSelectionCriteriaProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ReplicationRuleProperty where
  toResourceProperties :: ReplicationRuleProperty -> ResourceProperties
toResourceProperties ReplicationRuleProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ReplicationRuleProperty -> ()
deleteMarkerReplication :: ReplicationRuleProperty -> Maybe DeleteMarkerReplicationProperty
destination :: ReplicationRuleProperty -> ReplicationDestinationProperty
filter :: ReplicationRuleProperty -> Maybe ReplicationRuleFilterProperty
id :: ReplicationRuleProperty -> Maybe (Value Text)
prefix :: ReplicationRuleProperty -> Maybe (Value Text)
priority :: ReplicationRuleProperty -> Maybe (Value Integer)
sourceSelectionCriteria :: ReplicationRuleProperty -> Maybe SourceSelectionCriteriaProperty
status :: ReplicationRuleProperty -> Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::S3::Bucket.ReplicationRule",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Destination" Key -> ReplicationDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ReplicationDestinationProperty
destination, Key
"Status" 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..= Value Text
status]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> DeleteMarkerReplicationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DeleteMarkerReplication"
                                 (DeleteMarkerReplicationProperty -> (Key, Value))
-> Maybe DeleteMarkerReplicationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeleteMarkerReplicationProperty
deleteMarkerReplication,
                               Key -> ReplicationRuleFilterProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Filter" (ReplicationRuleFilterProperty -> (Key, Value))
-> Maybe ReplicationRuleFilterProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReplicationRuleFilterProperty
filter,
                               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
"Id" (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)
id,
                               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
"Prefix" (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)
prefix,
                               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Priority" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
priority,
                               Key -> SourceSelectionCriteriaProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SourceSelectionCriteria"
                                 (SourceSelectionCriteriaProperty -> (Key, Value))
-> Maybe SourceSelectionCriteriaProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SourceSelectionCriteriaProperty
sourceSelectionCriteria]))}
instance JSON.ToJSON ReplicationRuleProperty where
  toJSON :: ReplicationRuleProperty -> Value
toJSON ReplicationRuleProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ReplicationRuleProperty -> ()
deleteMarkerReplication :: ReplicationRuleProperty -> Maybe DeleteMarkerReplicationProperty
destination :: ReplicationRuleProperty -> ReplicationDestinationProperty
filter :: ReplicationRuleProperty -> Maybe ReplicationRuleFilterProperty
id :: ReplicationRuleProperty -> Maybe (Value Text)
prefix :: ReplicationRuleProperty -> Maybe (Value Text)
priority :: ReplicationRuleProperty -> Maybe (Value Integer)
sourceSelectionCriteria :: ReplicationRuleProperty -> Maybe SourceSelectionCriteriaProperty
status :: ReplicationRuleProperty -> Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Destination" Key -> ReplicationDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ReplicationDestinationProperty
destination, Key
"Status" 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..= Value Text
status]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> DeleteMarkerReplicationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DeleteMarkerReplication"
                    (DeleteMarkerReplicationProperty -> (Key, Value))
-> Maybe DeleteMarkerReplicationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeleteMarkerReplicationProperty
deleteMarkerReplication,
                  Key -> ReplicationRuleFilterProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Filter" (ReplicationRuleFilterProperty -> (Key, Value))
-> Maybe ReplicationRuleFilterProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReplicationRuleFilterProperty
filter,
                  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
"Id" (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)
id,
                  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
"Prefix" (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)
prefix,
                  Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Priority" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
priority,
                  Key -> SourceSelectionCriteriaProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SourceSelectionCriteria"
                    (SourceSelectionCriteriaProperty -> (Key, Value))
-> Maybe SourceSelectionCriteriaProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SourceSelectionCriteriaProperty
sourceSelectionCriteria])))
instance Property "DeleteMarkerReplication" ReplicationRuleProperty where
  type PropertyType "DeleteMarkerReplication" ReplicationRuleProperty = DeleteMarkerReplicationProperty
  set :: PropertyType "DeleteMarkerReplication" ReplicationRuleProperty
-> ReplicationRuleProperty -> ReplicationRuleProperty
set PropertyType "DeleteMarkerReplication" ReplicationRuleProperty
newValue ReplicationRuleProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ReplicationRuleProperty -> ()
deleteMarkerReplication :: ReplicationRuleProperty -> Maybe DeleteMarkerReplicationProperty
destination :: ReplicationRuleProperty -> ReplicationDestinationProperty
filter :: ReplicationRuleProperty -> Maybe ReplicationRuleFilterProperty
id :: ReplicationRuleProperty -> Maybe (Value Text)
prefix :: ReplicationRuleProperty -> Maybe (Value Text)
priority :: ReplicationRuleProperty -> Maybe (Value Integer)
sourceSelectionCriteria :: ReplicationRuleProperty -> Maybe SourceSelectionCriteriaProperty
status :: ReplicationRuleProperty -> Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
    = ReplicationRuleProperty
        {deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
deleteMarkerReplication = DeleteMarkerReplicationProperty
-> Maybe DeleteMarkerReplicationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DeleteMarkerReplication" ReplicationRuleProperty
DeleteMarkerReplicationProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ()
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
haddock_workaround_ :: ()
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
instance Property "Destination" ReplicationRuleProperty where
  type PropertyType "Destination" ReplicationRuleProperty = ReplicationDestinationProperty
  set :: PropertyType "Destination" ReplicationRuleProperty
-> ReplicationRuleProperty -> ReplicationRuleProperty
set PropertyType "Destination" ReplicationRuleProperty
newValue ReplicationRuleProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ReplicationRuleProperty -> ()
deleteMarkerReplication :: ReplicationRuleProperty -> Maybe DeleteMarkerReplicationProperty
destination :: ReplicationRuleProperty -> ReplicationDestinationProperty
filter :: ReplicationRuleProperty -> Maybe ReplicationRuleFilterProperty
id :: ReplicationRuleProperty -> Maybe (Value Text)
prefix :: ReplicationRuleProperty -> Maybe (Value Text)
priority :: ReplicationRuleProperty -> Maybe (Value Integer)
sourceSelectionCriteria :: ReplicationRuleProperty -> Maybe SourceSelectionCriteriaProperty
status :: ReplicationRuleProperty -> Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
    = ReplicationRuleProperty {destination :: ReplicationDestinationProperty
destination = PropertyType "Destination" ReplicationRuleProperty
ReplicationDestinationProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
instance Property "Filter" ReplicationRuleProperty where
  type PropertyType "Filter" ReplicationRuleProperty = ReplicationRuleFilterProperty
  set :: PropertyType "Filter" ReplicationRuleProperty
-> ReplicationRuleProperty -> ReplicationRuleProperty
set PropertyType "Filter" ReplicationRuleProperty
newValue ReplicationRuleProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ReplicationRuleProperty -> ()
deleteMarkerReplication :: ReplicationRuleProperty -> Maybe DeleteMarkerReplicationProperty
destination :: ReplicationRuleProperty -> ReplicationDestinationProperty
filter :: ReplicationRuleProperty -> Maybe ReplicationRuleFilterProperty
id :: ReplicationRuleProperty -> Maybe (Value Text)
prefix :: ReplicationRuleProperty -> Maybe (Value Text)
priority :: ReplicationRuleProperty -> Maybe (Value Integer)
sourceSelectionCriteria :: ReplicationRuleProperty -> Maybe SourceSelectionCriteriaProperty
status :: ReplicationRuleProperty -> Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
    = ReplicationRuleProperty {filter :: Maybe ReplicationRuleFilterProperty
filter = ReplicationRuleFilterProperty
-> Maybe ReplicationRuleFilterProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Filter" ReplicationRuleProperty
ReplicationRuleFilterProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
instance Property "Id" ReplicationRuleProperty where
  type PropertyType "Id" ReplicationRuleProperty = Value Prelude.Text
  set :: PropertyType "Id" ReplicationRuleProperty
-> ReplicationRuleProperty -> ReplicationRuleProperty
set PropertyType "Id" ReplicationRuleProperty
newValue ReplicationRuleProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ReplicationRuleProperty -> ()
deleteMarkerReplication :: ReplicationRuleProperty -> Maybe DeleteMarkerReplicationProperty
destination :: ReplicationRuleProperty -> ReplicationDestinationProperty
filter :: ReplicationRuleProperty -> Maybe ReplicationRuleFilterProperty
id :: ReplicationRuleProperty -> Maybe (Value Text)
prefix :: ReplicationRuleProperty -> Maybe (Value Text)
priority :: ReplicationRuleProperty -> Maybe (Value Integer)
sourceSelectionCriteria :: ReplicationRuleProperty -> Maybe SourceSelectionCriteriaProperty
status :: ReplicationRuleProperty -> Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
    = ReplicationRuleProperty {id :: Maybe (Value Text)
id = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Id" ReplicationRuleProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
instance Property "Prefix" ReplicationRuleProperty where
  type PropertyType "Prefix" ReplicationRuleProperty = Value Prelude.Text
  set :: PropertyType "Prefix" ReplicationRuleProperty
-> ReplicationRuleProperty -> ReplicationRuleProperty
set PropertyType "Prefix" ReplicationRuleProperty
newValue ReplicationRuleProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ReplicationRuleProperty -> ()
deleteMarkerReplication :: ReplicationRuleProperty -> Maybe DeleteMarkerReplicationProperty
destination :: ReplicationRuleProperty -> ReplicationDestinationProperty
filter :: ReplicationRuleProperty -> Maybe ReplicationRuleFilterProperty
id :: ReplicationRuleProperty -> Maybe (Value Text)
prefix :: ReplicationRuleProperty -> Maybe (Value Text)
priority :: ReplicationRuleProperty -> Maybe (Value Integer)
sourceSelectionCriteria :: ReplicationRuleProperty -> Maybe SourceSelectionCriteriaProperty
status :: ReplicationRuleProperty -> Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
    = ReplicationRuleProperty {prefix :: Maybe (Value Text)
prefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Prefix" ReplicationRuleProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
instance Property "Priority" ReplicationRuleProperty where
  type PropertyType "Priority" ReplicationRuleProperty = Value Prelude.Integer
  set :: PropertyType "Priority" ReplicationRuleProperty
-> ReplicationRuleProperty -> ReplicationRuleProperty
set PropertyType "Priority" ReplicationRuleProperty
newValue ReplicationRuleProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ReplicationRuleProperty -> ()
deleteMarkerReplication :: ReplicationRuleProperty -> Maybe DeleteMarkerReplicationProperty
destination :: ReplicationRuleProperty -> ReplicationDestinationProperty
filter :: ReplicationRuleProperty -> Maybe ReplicationRuleFilterProperty
id :: ReplicationRuleProperty -> Maybe (Value Text)
prefix :: ReplicationRuleProperty -> Maybe (Value Text)
priority :: ReplicationRuleProperty -> Maybe (Value Integer)
sourceSelectionCriteria :: ReplicationRuleProperty -> Maybe SourceSelectionCriteriaProperty
status :: ReplicationRuleProperty -> Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
    = ReplicationRuleProperty {priority :: Maybe (Value Integer)
priority = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Priority" ReplicationRuleProperty
Value Integer
newValue, Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
instance Property "SourceSelectionCriteria" ReplicationRuleProperty where
  type PropertyType "SourceSelectionCriteria" ReplicationRuleProperty = SourceSelectionCriteriaProperty
  set :: PropertyType "SourceSelectionCriteria" ReplicationRuleProperty
-> ReplicationRuleProperty -> ReplicationRuleProperty
set PropertyType "SourceSelectionCriteria" ReplicationRuleProperty
newValue ReplicationRuleProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ReplicationRuleProperty -> ()
deleteMarkerReplication :: ReplicationRuleProperty -> Maybe DeleteMarkerReplicationProperty
destination :: ReplicationRuleProperty -> ReplicationDestinationProperty
filter :: ReplicationRuleProperty -> Maybe ReplicationRuleFilterProperty
id :: ReplicationRuleProperty -> Maybe (Value Text)
prefix :: ReplicationRuleProperty -> Maybe (Value Text)
priority :: ReplicationRuleProperty -> Maybe (Value Integer)
sourceSelectionCriteria :: ReplicationRuleProperty -> Maybe SourceSelectionCriteriaProperty
status :: ReplicationRuleProperty -> Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
    = ReplicationRuleProperty
        {sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
sourceSelectionCriteria = SourceSelectionCriteriaProperty
-> Maybe SourceSelectionCriteriaProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SourceSelectionCriteria" ReplicationRuleProperty
SourceSelectionCriteriaProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
status :: Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
status :: Value Text
..}
instance Property "Status" ReplicationRuleProperty where
  type PropertyType "Status" ReplicationRuleProperty = Value Prelude.Text
  set :: PropertyType "Status" ReplicationRuleProperty
-> ReplicationRuleProperty -> ReplicationRuleProperty
set PropertyType "Status" ReplicationRuleProperty
newValue ReplicationRuleProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
Value Text
ReplicationDestinationProperty
haddock_workaround_ :: ReplicationRuleProperty -> ()
deleteMarkerReplication :: ReplicationRuleProperty -> Maybe DeleteMarkerReplicationProperty
destination :: ReplicationRuleProperty -> ReplicationDestinationProperty
filter :: ReplicationRuleProperty -> Maybe ReplicationRuleFilterProperty
id :: ReplicationRuleProperty -> Maybe (Value Text)
prefix :: ReplicationRuleProperty -> Maybe (Value Text)
priority :: ReplicationRuleProperty -> Maybe (Value Integer)
sourceSelectionCriteria :: ReplicationRuleProperty -> Maybe SourceSelectionCriteriaProperty
status :: ReplicationRuleProperty -> Value Text
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
status :: Value Text
..}
    = ReplicationRuleProperty {status :: Value Text
status = PropertyType "Status" ReplicationRuleProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe DeleteMarkerReplicationProperty
Maybe SourceSelectionCriteriaProperty
Maybe ReplicationRuleFilterProperty
()
ReplicationDestinationProperty
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
haddock_workaround_ :: ()
deleteMarkerReplication :: Maybe DeleteMarkerReplicationProperty
destination :: ReplicationDestinationProperty
filter :: Maybe ReplicationRuleFilterProperty
id :: Maybe (Value Text)
prefix :: Maybe (Value Text)
priority :: Maybe (Value Integer)
sourceSelectionCriteria :: Maybe SourceSelectionCriteriaProperty
..}