module Stratosphere.S3.Bucket.ReplicaModificationsProperty (
        ReplicaModificationsProperty(..), mkReplicaModificationsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ReplicaModificationsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicamodifications.html>
    ReplicaModificationsProperty {ReplicaModificationsProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicamodifications.html#cfn-s3-bucket-replicamodifications-status>
                                  ReplicaModificationsProperty -> Value Text
status :: (Value Prelude.Text)}
  deriving stock (ReplicaModificationsProperty
-> ReplicaModificationsProperty -> Bool
(ReplicaModificationsProperty
 -> ReplicaModificationsProperty -> Bool)
-> (ReplicaModificationsProperty
    -> ReplicaModificationsProperty -> Bool)
-> Eq ReplicaModificationsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReplicaModificationsProperty
-> ReplicaModificationsProperty -> Bool
== :: ReplicaModificationsProperty
-> ReplicaModificationsProperty -> Bool
$c/= :: ReplicaModificationsProperty
-> ReplicaModificationsProperty -> Bool
/= :: ReplicaModificationsProperty
-> ReplicaModificationsProperty -> Bool
Prelude.Eq, Int -> ReplicaModificationsProperty -> ShowS
[ReplicaModificationsProperty] -> ShowS
ReplicaModificationsProperty -> String
(Int -> ReplicaModificationsProperty -> ShowS)
-> (ReplicaModificationsProperty -> String)
-> ([ReplicaModificationsProperty] -> ShowS)
-> Show ReplicaModificationsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReplicaModificationsProperty -> ShowS
showsPrec :: Int -> ReplicaModificationsProperty -> ShowS
$cshow :: ReplicaModificationsProperty -> String
show :: ReplicaModificationsProperty -> String
$cshowList :: [ReplicaModificationsProperty] -> ShowS
showList :: [ReplicaModificationsProperty] -> ShowS
Prelude.Show)
mkReplicaModificationsProperty ::
  Value Prelude.Text -> ReplicaModificationsProperty
mkReplicaModificationsProperty :: Value Text -> ReplicaModificationsProperty
mkReplicaModificationsProperty Value Text
status
  = ReplicaModificationsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), status :: Value Text
status = Value Text
status}
instance ToResourceProperties ReplicaModificationsProperty where
  toResourceProperties :: ReplicaModificationsProperty -> ResourceProperties
toResourceProperties ReplicaModificationsProperty {()
Value Text
haddock_workaround_ :: ReplicaModificationsProperty -> ()
status :: ReplicaModificationsProperty -> Value Text
haddock_workaround_ :: ()
status :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::S3::Bucket.ReplicaModifications",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [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]}
instance JSON.ToJSON ReplicaModificationsProperty where
  toJSON :: ReplicaModificationsProperty -> Value
toJSON ReplicaModificationsProperty {()
Value Text
haddock_workaround_ :: ReplicaModificationsProperty -> ()
status :: ReplicaModificationsProperty -> Value Text
haddock_workaround_ :: ()
status :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [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]
instance Property "Status" ReplicaModificationsProperty where
  type PropertyType "Status" ReplicaModificationsProperty = Value Prelude.Text
  set :: PropertyType "Status" ReplicaModificationsProperty
-> ReplicaModificationsProperty -> ReplicaModificationsProperty
set PropertyType "Status" ReplicaModificationsProperty
newValue ReplicaModificationsProperty {()
Value Text
haddock_workaround_ :: ReplicaModificationsProperty -> ()
status :: ReplicaModificationsProperty -> Value Text
haddock_workaround_ :: ()
status :: Value Text
..}
    = ReplicaModificationsProperty {status :: Value Text
status = PropertyType "Status" ReplicaModificationsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}