module Stratosphere.S3.Bucket.ReplicationTimeProperty (
module Exports, ReplicationTimeProperty(..),
mkReplicationTimeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.S3.Bucket.ReplicationTimeValueProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ReplicationTimeProperty
=
ReplicationTimeProperty {ReplicationTimeProperty -> ()
haddock_workaround_ :: (),
ReplicationTimeProperty -> Value Text
status :: (Value Prelude.Text),
ReplicationTimeProperty -> ReplicationTimeValueProperty
time :: ReplicationTimeValueProperty}
deriving stock (ReplicationTimeProperty -> ReplicationTimeProperty -> Bool
(ReplicationTimeProperty -> ReplicationTimeProperty -> Bool)
-> (ReplicationTimeProperty -> ReplicationTimeProperty -> Bool)
-> Eq ReplicationTimeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReplicationTimeProperty -> ReplicationTimeProperty -> Bool
== :: ReplicationTimeProperty -> ReplicationTimeProperty -> Bool
$c/= :: ReplicationTimeProperty -> ReplicationTimeProperty -> Bool
/= :: ReplicationTimeProperty -> ReplicationTimeProperty -> Bool
Prelude.Eq, Int -> ReplicationTimeProperty -> ShowS
[ReplicationTimeProperty] -> ShowS
ReplicationTimeProperty -> String
(Int -> ReplicationTimeProperty -> ShowS)
-> (ReplicationTimeProperty -> String)
-> ([ReplicationTimeProperty] -> ShowS)
-> Show ReplicationTimeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReplicationTimeProperty -> ShowS
showsPrec :: Int -> ReplicationTimeProperty -> ShowS
$cshow :: ReplicationTimeProperty -> String
show :: ReplicationTimeProperty -> String
$cshowList :: [ReplicationTimeProperty] -> ShowS
showList :: [ReplicationTimeProperty] -> ShowS
Prelude.Show)
mkReplicationTimeProperty ::
Value Prelude.Text
-> ReplicationTimeValueProperty -> ReplicationTimeProperty
mkReplicationTimeProperty :: Value Text
-> ReplicationTimeValueProperty -> ReplicationTimeProperty
mkReplicationTimeProperty Value Text
status ReplicationTimeValueProperty
time
= ReplicationTimeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), status :: Value Text
status = Value Text
status, time :: ReplicationTimeValueProperty
time = ReplicationTimeValueProperty
time}
instance ToResourceProperties ReplicationTimeProperty where
toResourceProperties :: ReplicationTimeProperty -> ResourceProperties
toResourceProperties ReplicationTimeProperty {()
Value Text
ReplicationTimeValueProperty
haddock_workaround_ :: ReplicationTimeProperty -> ()
status :: ReplicationTimeProperty -> Value Text
time :: ReplicationTimeProperty -> ReplicationTimeValueProperty
haddock_workaround_ :: ()
status :: Value Text
time :: ReplicationTimeValueProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::S3::Bucket.ReplicationTime",
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, Key
"Time" Key -> ReplicationTimeValueProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ReplicationTimeValueProperty
time]}
instance JSON.ToJSON ReplicationTimeProperty where
toJSON :: ReplicationTimeProperty -> Value
toJSON ReplicationTimeProperty {()
Value Text
ReplicationTimeValueProperty
haddock_workaround_ :: ReplicationTimeProperty -> ()
status :: ReplicationTimeProperty -> Value Text
time :: ReplicationTimeProperty -> ReplicationTimeValueProperty
haddock_workaround_ :: ()
status :: Value Text
time :: ReplicationTimeValueProperty
..}
= [(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, Key
"Time" Key -> ReplicationTimeValueProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ReplicationTimeValueProperty
time]
instance Property "Status" ReplicationTimeProperty where
type PropertyType "Status" ReplicationTimeProperty = Value Prelude.Text
set :: PropertyType "Status" ReplicationTimeProperty
-> ReplicationTimeProperty -> ReplicationTimeProperty
set PropertyType "Status" ReplicationTimeProperty
newValue ReplicationTimeProperty {()
Value Text
ReplicationTimeValueProperty
haddock_workaround_ :: ReplicationTimeProperty -> ()
status :: ReplicationTimeProperty -> Value Text
time :: ReplicationTimeProperty -> ReplicationTimeValueProperty
haddock_workaround_ :: ()
status :: Value Text
time :: ReplicationTimeValueProperty
..}
= ReplicationTimeProperty {status :: Value Text
status = PropertyType "Status" ReplicationTimeProperty
Value Text
newValue, ()
ReplicationTimeValueProperty
haddock_workaround_ :: ()
time :: ReplicationTimeValueProperty
haddock_workaround_ :: ()
time :: ReplicationTimeValueProperty
..}
instance Property "Time" ReplicationTimeProperty where
type PropertyType "Time" ReplicationTimeProperty = ReplicationTimeValueProperty
set :: PropertyType "Time" ReplicationTimeProperty
-> ReplicationTimeProperty -> ReplicationTimeProperty
set PropertyType "Time" ReplicationTimeProperty
newValue ReplicationTimeProperty {()
Value Text
ReplicationTimeValueProperty
haddock_workaround_ :: ReplicationTimeProperty -> ()
status :: ReplicationTimeProperty -> Value Text
time :: ReplicationTimeProperty -> ReplicationTimeValueProperty
haddock_workaround_ :: ()
status :: Value Text
time :: ReplicationTimeValueProperty
..}
= ReplicationTimeProperty {time :: ReplicationTimeValueProperty
time = PropertyType "Time" ReplicationTimeProperty
ReplicationTimeValueProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
status :: Value Text
haddock_workaround_ :: ()
status :: Value Text
..}