module Stratosphere.IVSChat.LoggingConfiguration.S3DestinationConfigurationProperty (
        S3DestinationConfigurationProperty(..),
        mkS3DestinationConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3DestinationConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivschat-loggingconfiguration-s3destinationconfiguration.html>
    S3DestinationConfigurationProperty {S3DestinationConfigurationProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivschat-loggingconfiguration-s3destinationconfiguration.html#cfn-ivschat-loggingconfiguration-s3destinationconfiguration-bucketname>
                                        S3DestinationConfigurationProperty -> Value Text
bucketName :: (Value Prelude.Text)}
  deriving stock (S3DestinationConfigurationProperty
-> S3DestinationConfigurationProperty -> Bool
(S3DestinationConfigurationProperty
 -> S3DestinationConfigurationProperty -> Bool)
-> (S3DestinationConfigurationProperty
    -> S3DestinationConfigurationProperty -> Bool)
-> Eq S3DestinationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3DestinationConfigurationProperty
-> S3DestinationConfigurationProperty -> Bool
== :: S3DestinationConfigurationProperty
-> S3DestinationConfigurationProperty -> Bool
$c/= :: S3DestinationConfigurationProperty
-> S3DestinationConfigurationProperty -> Bool
/= :: S3DestinationConfigurationProperty
-> S3DestinationConfigurationProperty -> Bool
Prelude.Eq, Int -> S3DestinationConfigurationProperty -> ShowS
[S3DestinationConfigurationProperty] -> ShowS
S3DestinationConfigurationProperty -> String
(Int -> S3DestinationConfigurationProperty -> ShowS)
-> (S3DestinationConfigurationProperty -> String)
-> ([S3DestinationConfigurationProperty] -> ShowS)
-> Show S3DestinationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3DestinationConfigurationProperty -> ShowS
showsPrec :: Int -> S3DestinationConfigurationProperty -> ShowS
$cshow :: S3DestinationConfigurationProperty -> String
show :: S3DestinationConfigurationProperty -> String
$cshowList :: [S3DestinationConfigurationProperty] -> ShowS
showList :: [S3DestinationConfigurationProperty] -> ShowS
Prelude.Show)
mkS3DestinationConfigurationProperty ::
  Value Prelude.Text -> S3DestinationConfigurationProperty
mkS3DestinationConfigurationProperty :: Value Text -> S3DestinationConfigurationProperty
mkS3DestinationConfigurationProperty Value Text
bucketName
  = S3DestinationConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), bucketName :: Value Text
bucketName = Value Text
bucketName}
instance ToResourceProperties S3DestinationConfigurationProperty where
  toResourceProperties :: S3DestinationConfigurationProperty -> ResourceProperties
toResourceProperties S3DestinationConfigurationProperty {()
Value Text
haddock_workaround_ :: S3DestinationConfigurationProperty -> ()
bucketName :: S3DestinationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IVSChat::LoggingConfiguration.S3DestinationConfiguration",
         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 S3DestinationConfigurationProperty where
  toJSON :: S3DestinationConfigurationProperty -> Value
toJSON S3DestinationConfigurationProperty {()
Value Text
haddock_workaround_ :: S3DestinationConfigurationProperty -> ()
bucketName :: S3DestinationConfigurationProperty -> 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" S3DestinationConfigurationProperty where
  type PropertyType "BucketName" S3DestinationConfigurationProperty = Value Prelude.Text
  set :: PropertyType "BucketName" S3DestinationConfigurationProperty
-> S3DestinationConfigurationProperty
-> S3DestinationConfigurationProperty
set PropertyType "BucketName" S3DestinationConfigurationProperty
newValue S3DestinationConfigurationProperty {()
Value Text
haddock_workaround_ :: S3DestinationConfigurationProperty -> ()
bucketName :: S3DestinationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
..}
    = S3DestinationConfigurationProperty {bucketName :: Value Text
bucketName = PropertyType "BucketName" S3DestinationConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}