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