module Stratosphere.S3.Bucket.ReplicationRuleAndOperatorProperty (
module Exports, ReplicationRuleAndOperatorProperty(..),
mkReplicationRuleAndOperatorProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.S3.Bucket.TagFilterProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ReplicationRuleAndOperatorProperty
=
ReplicationRuleAndOperatorProperty {ReplicationRuleAndOperatorProperty -> ()
haddock_workaround_ :: (),
ReplicationRuleAndOperatorProperty -> Maybe (Value Text)
prefix :: (Prelude.Maybe (Value Prelude.Text)),
ReplicationRuleAndOperatorProperty -> Maybe [TagFilterProperty]
tagFilters :: (Prelude.Maybe [TagFilterProperty])}
deriving stock (ReplicationRuleAndOperatorProperty
-> ReplicationRuleAndOperatorProperty -> Bool
(ReplicationRuleAndOperatorProperty
-> ReplicationRuleAndOperatorProperty -> Bool)
-> (ReplicationRuleAndOperatorProperty
-> ReplicationRuleAndOperatorProperty -> Bool)
-> Eq ReplicationRuleAndOperatorProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReplicationRuleAndOperatorProperty
-> ReplicationRuleAndOperatorProperty -> Bool
== :: ReplicationRuleAndOperatorProperty
-> ReplicationRuleAndOperatorProperty -> Bool
$c/= :: ReplicationRuleAndOperatorProperty
-> ReplicationRuleAndOperatorProperty -> Bool
/= :: ReplicationRuleAndOperatorProperty
-> ReplicationRuleAndOperatorProperty -> Bool
Prelude.Eq, Int -> ReplicationRuleAndOperatorProperty -> ShowS
[ReplicationRuleAndOperatorProperty] -> ShowS
ReplicationRuleAndOperatorProperty -> String
(Int -> ReplicationRuleAndOperatorProperty -> ShowS)
-> (ReplicationRuleAndOperatorProperty -> String)
-> ([ReplicationRuleAndOperatorProperty] -> ShowS)
-> Show ReplicationRuleAndOperatorProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReplicationRuleAndOperatorProperty -> ShowS
showsPrec :: Int -> ReplicationRuleAndOperatorProperty -> ShowS
$cshow :: ReplicationRuleAndOperatorProperty -> String
show :: ReplicationRuleAndOperatorProperty -> String
$cshowList :: [ReplicationRuleAndOperatorProperty] -> ShowS
showList :: [ReplicationRuleAndOperatorProperty] -> ShowS
Prelude.Show)
mkReplicationRuleAndOperatorProperty ::
ReplicationRuleAndOperatorProperty
mkReplicationRuleAndOperatorProperty :: ReplicationRuleAndOperatorProperty
mkReplicationRuleAndOperatorProperty
= ReplicationRuleAndOperatorProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), prefix :: Maybe (Value Text)
prefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tagFilters :: Maybe [TagFilterProperty]
tagFilters = Maybe [TagFilterProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ReplicationRuleAndOperatorProperty where
toResourceProperties :: ReplicationRuleAndOperatorProperty -> ResourceProperties
toResourceProperties ReplicationRuleAndOperatorProperty {Maybe [TagFilterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ReplicationRuleAndOperatorProperty -> ()
prefix :: ReplicationRuleAndOperatorProperty -> Maybe (Value Text)
tagFilters :: ReplicationRuleAndOperatorProperty -> Maybe [TagFilterProperty]
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
tagFilters :: Maybe [TagFilterProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::S3::Bucket.ReplicationRuleAndOperator",
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
"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 -> [TagFilterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TagFilters" ([TagFilterProperty] -> (Key, Value))
-> Maybe [TagFilterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [TagFilterProperty]
tagFilters])}
instance JSON.ToJSON ReplicationRuleAndOperatorProperty where
toJSON :: ReplicationRuleAndOperatorProperty -> Value
toJSON ReplicationRuleAndOperatorProperty {Maybe [TagFilterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ReplicationRuleAndOperatorProperty -> ()
prefix :: ReplicationRuleAndOperatorProperty -> Maybe (Value Text)
tagFilters :: ReplicationRuleAndOperatorProperty -> Maybe [TagFilterProperty]
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
tagFilters :: Maybe [TagFilterProperty]
..}
= [(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
"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 -> [TagFilterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TagFilters" ([TagFilterProperty] -> (Key, Value))
-> Maybe [TagFilterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [TagFilterProperty]
tagFilters]))
instance Property "Prefix" ReplicationRuleAndOperatorProperty where
type PropertyType "Prefix" ReplicationRuleAndOperatorProperty = Value Prelude.Text
set :: PropertyType "Prefix" ReplicationRuleAndOperatorProperty
-> ReplicationRuleAndOperatorProperty
-> ReplicationRuleAndOperatorProperty
set PropertyType "Prefix" ReplicationRuleAndOperatorProperty
newValue ReplicationRuleAndOperatorProperty {Maybe [TagFilterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ReplicationRuleAndOperatorProperty -> ()
prefix :: ReplicationRuleAndOperatorProperty -> Maybe (Value Text)
tagFilters :: ReplicationRuleAndOperatorProperty -> Maybe [TagFilterProperty]
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
tagFilters :: Maybe [TagFilterProperty]
..}
= ReplicationRuleAndOperatorProperty
{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" ReplicationRuleAndOperatorProperty
Value Text
newValue, Maybe [TagFilterProperty]
()
haddock_workaround_ :: ()
tagFilters :: Maybe [TagFilterProperty]
haddock_workaround_ :: ()
tagFilters :: Maybe [TagFilterProperty]
..}
instance Property "TagFilters" ReplicationRuleAndOperatorProperty where
type PropertyType "TagFilters" ReplicationRuleAndOperatorProperty = [TagFilterProperty]
set :: PropertyType "TagFilters" ReplicationRuleAndOperatorProperty
-> ReplicationRuleAndOperatorProperty
-> ReplicationRuleAndOperatorProperty
set PropertyType "TagFilters" ReplicationRuleAndOperatorProperty
newValue ReplicationRuleAndOperatorProperty {Maybe [TagFilterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ReplicationRuleAndOperatorProperty -> ()
prefix :: ReplicationRuleAndOperatorProperty -> Maybe (Value Text)
tagFilters :: ReplicationRuleAndOperatorProperty -> Maybe [TagFilterProperty]
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
tagFilters :: Maybe [TagFilterProperty]
..}
= ReplicationRuleAndOperatorProperty
{tagFilters :: Maybe [TagFilterProperty]
tagFilters = [TagFilterProperty] -> Maybe [TagFilterProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [TagFilterProperty]
PropertyType "TagFilters" ReplicationRuleAndOperatorProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
..}