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