module Stratosphere.IVS.StorageConfiguration.S3StorageConfigurationProperty (
        S3StorageConfigurationProperty(..),
        mkS3StorageConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3StorageConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-storageconfiguration-s3storageconfiguration.html>
    S3StorageConfigurationProperty {S3StorageConfigurationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-storageconfiguration-s3storageconfiguration.html#cfn-ivs-storageconfiguration-s3storageconfiguration-bucketname>
                                    S3StorageConfigurationProperty -> Value Text
bucketName :: (Value Prelude.Text)}
  deriving stock (S3StorageConfigurationProperty
-> S3StorageConfigurationProperty -> Bool
(S3StorageConfigurationProperty
 -> S3StorageConfigurationProperty -> Bool)
-> (S3StorageConfigurationProperty
    -> S3StorageConfigurationProperty -> Bool)
-> Eq S3StorageConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3StorageConfigurationProperty
-> S3StorageConfigurationProperty -> Bool
== :: S3StorageConfigurationProperty
-> S3StorageConfigurationProperty -> Bool
$c/= :: S3StorageConfigurationProperty
-> S3StorageConfigurationProperty -> Bool
/= :: S3StorageConfigurationProperty
-> S3StorageConfigurationProperty -> Bool
Prelude.Eq, Int -> S3StorageConfigurationProperty -> ShowS
[S3StorageConfigurationProperty] -> ShowS
S3StorageConfigurationProperty -> String
(Int -> S3StorageConfigurationProperty -> ShowS)
-> (S3StorageConfigurationProperty -> String)
-> ([S3StorageConfigurationProperty] -> ShowS)
-> Show S3StorageConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3StorageConfigurationProperty -> ShowS
showsPrec :: Int -> S3StorageConfigurationProperty -> ShowS
$cshow :: S3StorageConfigurationProperty -> String
show :: S3StorageConfigurationProperty -> String
$cshowList :: [S3StorageConfigurationProperty] -> ShowS
showList :: [S3StorageConfigurationProperty] -> ShowS
Prelude.Show)
mkS3StorageConfigurationProperty ::
  Value Prelude.Text -> S3StorageConfigurationProperty
mkS3StorageConfigurationProperty :: Value Text -> S3StorageConfigurationProperty
mkS3StorageConfigurationProperty Value Text
bucketName
  = S3StorageConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), bucketName :: Value Text
bucketName = Value Text
bucketName}
instance ToResourceProperties S3StorageConfigurationProperty where
  toResourceProperties :: S3StorageConfigurationProperty -> ResourceProperties
toResourceProperties S3StorageConfigurationProperty {()
Value Text
haddock_workaround_ :: S3StorageConfigurationProperty -> ()
bucketName :: S3StorageConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IVS::StorageConfiguration.S3StorageConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"BucketName" 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
bucketName]}
instance JSON.ToJSON S3StorageConfigurationProperty where
  toJSON :: S3StorageConfigurationProperty -> Value
toJSON S3StorageConfigurationProperty {()
Value Text
haddock_workaround_ :: S3StorageConfigurationProperty -> ()
bucketName :: S3StorageConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"BucketName" 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
bucketName]
instance Property "BucketName" S3StorageConfigurationProperty where
  type PropertyType "BucketName" S3StorageConfigurationProperty = Value Prelude.Text
  set :: PropertyType "BucketName" S3StorageConfigurationProperty
-> S3StorageConfigurationProperty -> S3StorageConfigurationProperty
set PropertyType "BucketName" S3StorageConfigurationProperty
newValue S3StorageConfigurationProperty {()
Value Text
haddock_workaround_ :: S3StorageConfigurationProperty -> ()
bucketName :: S3StorageConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
..}
    = S3StorageConfigurationProperty {bucketName :: Value Text
bucketName = PropertyType "BucketName" S3StorageConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}