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