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