module Stratosphere.IVSChat.LoggingConfiguration.FirehoseDestinationConfigurationProperty (
FirehoseDestinationConfigurationProperty(..),
mkFirehoseDestinationConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FirehoseDestinationConfigurationProperty
=
FirehoseDestinationConfigurationProperty {FirehoseDestinationConfigurationProperty -> ()
haddock_workaround_ :: (),
FirehoseDestinationConfigurationProperty -> Value Text
deliveryStreamName :: (Value Prelude.Text)}
deriving stock (FirehoseDestinationConfigurationProperty
-> FirehoseDestinationConfigurationProperty -> Bool
(FirehoseDestinationConfigurationProperty
-> FirehoseDestinationConfigurationProperty -> Bool)
-> (FirehoseDestinationConfigurationProperty
-> FirehoseDestinationConfigurationProperty -> Bool)
-> Eq FirehoseDestinationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FirehoseDestinationConfigurationProperty
-> FirehoseDestinationConfigurationProperty -> Bool
== :: FirehoseDestinationConfigurationProperty
-> FirehoseDestinationConfigurationProperty -> Bool
$c/= :: FirehoseDestinationConfigurationProperty
-> FirehoseDestinationConfigurationProperty -> Bool
/= :: FirehoseDestinationConfigurationProperty
-> FirehoseDestinationConfigurationProperty -> Bool
Prelude.Eq, Int -> FirehoseDestinationConfigurationProperty -> ShowS
[FirehoseDestinationConfigurationProperty] -> ShowS
FirehoseDestinationConfigurationProperty -> String
(Int -> FirehoseDestinationConfigurationProperty -> ShowS)
-> (FirehoseDestinationConfigurationProperty -> String)
-> ([FirehoseDestinationConfigurationProperty] -> ShowS)
-> Show FirehoseDestinationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FirehoseDestinationConfigurationProperty -> ShowS
showsPrec :: Int -> FirehoseDestinationConfigurationProperty -> ShowS
$cshow :: FirehoseDestinationConfigurationProperty -> String
show :: FirehoseDestinationConfigurationProperty -> String
$cshowList :: [FirehoseDestinationConfigurationProperty] -> ShowS
showList :: [FirehoseDestinationConfigurationProperty] -> ShowS
Prelude.Show)
mkFirehoseDestinationConfigurationProperty ::
Value Prelude.Text -> FirehoseDestinationConfigurationProperty
mkFirehoseDestinationConfigurationProperty :: Value Text -> FirehoseDestinationConfigurationProperty
mkFirehoseDestinationConfigurationProperty Value Text
deliveryStreamName
= FirehoseDestinationConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), deliveryStreamName :: Value Text
deliveryStreamName = Value Text
deliveryStreamName}
instance ToResourceProperties FirehoseDestinationConfigurationProperty where
toResourceProperties :: FirehoseDestinationConfigurationProperty -> ResourceProperties
toResourceProperties FirehoseDestinationConfigurationProperty {()
Value Text
haddock_workaround_ :: FirehoseDestinationConfigurationProperty -> ()
deliveryStreamName :: FirehoseDestinationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
deliveryStreamName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IVSChat::LoggingConfiguration.FirehoseDestinationConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"DeliveryStreamName" 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
deliveryStreamName]}
instance JSON.ToJSON FirehoseDestinationConfigurationProperty where
toJSON :: FirehoseDestinationConfigurationProperty -> Value
toJSON FirehoseDestinationConfigurationProperty {()
Value Text
haddock_workaround_ :: FirehoseDestinationConfigurationProperty -> ()
deliveryStreamName :: FirehoseDestinationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
deliveryStreamName :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"DeliveryStreamName" 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
deliveryStreamName]
instance Property "DeliveryStreamName" FirehoseDestinationConfigurationProperty where
type PropertyType "DeliveryStreamName" FirehoseDestinationConfigurationProperty = Value Prelude.Text
set :: PropertyType
"DeliveryStreamName" FirehoseDestinationConfigurationProperty
-> FirehoseDestinationConfigurationProperty
-> FirehoseDestinationConfigurationProperty
set PropertyType
"DeliveryStreamName" FirehoseDestinationConfigurationProperty
newValue FirehoseDestinationConfigurationProperty {()
Value Text
haddock_workaround_ :: FirehoseDestinationConfigurationProperty -> ()
deliveryStreamName :: FirehoseDestinationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
deliveryStreamName :: Value Text
..}
= FirehoseDestinationConfigurationProperty
{deliveryStreamName :: Value Text
deliveryStreamName = PropertyType
"DeliveryStreamName" FirehoseDestinationConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}