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