module Stratosphere.SNS.Topic.LoggingConfigProperty (
LoggingConfigProperty(..), mkLoggingConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LoggingConfigProperty
=
LoggingConfigProperty {LoggingConfigProperty -> ()
haddock_workaround_ :: (),
LoggingConfigProperty -> Maybe (Value Text)
failureFeedbackRoleArn :: (Prelude.Maybe (Value Prelude.Text)),
LoggingConfigProperty -> Value Text
protocol :: (Value Prelude.Text),
LoggingConfigProperty -> Maybe (Value Text)
successFeedbackRoleArn :: (Prelude.Maybe (Value Prelude.Text)),
LoggingConfigProperty -> Maybe (Value Text)
successFeedbackSampleRate :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (LoggingConfigProperty -> LoggingConfigProperty -> Bool
(LoggingConfigProperty -> LoggingConfigProperty -> Bool)
-> (LoggingConfigProperty -> LoggingConfigProperty -> Bool)
-> Eq LoggingConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LoggingConfigProperty -> LoggingConfigProperty -> Bool
== :: LoggingConfigProperty -> LoggingConfigProperty -> Bool
$c/= :: LoggingConfigProperty -> LoggingConfigProperty -> Bool
/= :: LoggingConfigProperty -> LoggingConfigProperty -> Bool
Prelude.Eq, Int -> LoggingConfigProperty -> ShowS
[LoggingConfigProperty] -> ShowS
LoggingConfigProperty -> String
(Int -> LoggingConfigProperty -> ShowS)
-> (LoggingConfigProperty -> String)
-> ([LoggingConfigProperty] -> ShowS)
-> Show LoggingConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LoggingConfigProperty -> ShowS
showsPrec :: Int -> LoggingConfigProperty -> ShowS
$cshow :: LoggingConfigProperty -> String
show :: LoggingConfigProperty -> String
$cshowList :: [LoggingConfigProperty] -> ShowS
showList :: [LoggingConfigProperty] -> ShowS
Prelude.Show)
mkLoggingConfigProperty ::
Value Prelude.Text -> LoggingConfigProperty
mkLoggingConfigProperty :: Value Text -> LoggingConfigProperty
mkLoggingConfigProperty Value Text
protocol
= LoggingConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), protocol :: Value Text
protocol = Value Text
protocol,
failureFeedbackRoleArn :: Maybe (Value Text)
failureFeedbackRoleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
successFeedbackRoleArn :: Maybe (Value Text)
successFeedbackRoleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
successFeedbackSampleRate :: Maybe (Value Text)
successFeedbackSampleRate = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LoggingConfigProperty where
toResourceProperties :: LoggingConfigProperty -> ResourceProperties
toResourceProperties LoggingConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LoggingConfigProperty -> ()
failureFeedbackRoleArn :: LoggingConfigProperty -> Maybe (Value Text)
protocol :: LoggingConfigProperty -> Value Text
successFeedbackRoleArn :: LoggingConfigProperty -> Maybe (Value Text)
successFeedbackSampleRate :: LoggingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
failureFeedbackRoleArn :: Maybe (Value Text)
protocol :: Value Text
successFeedbackRoleArn :: Maybe (Value Text)
successFeedbackSampleRate :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SNS::Topic.LoggingConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Protocol" 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
protocol]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"FailureFeedbackRoleArn"
(Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
failureFeedbackRoleArn,
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..=) Key
"SuccessFeedbackRoleArn"
(Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
successFeedbackRoleArn,
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..=) Key
"SuccessFeedbackSampleRate"
(Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
successFeedbackSampleRate]))}
instance JSON.ToJSON LoggingConfigProperty where
toJSON :: LoggingConfigProperty -> Value
toJSON LoggingConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LoggingConfigProperty -> ()
failureFeedbackRoleArn :: LoggingConfigProperty -> Maybe (Value Text)
protocol :: LoggingConfigProperty -> Value Text
successFeedbackRoleArn :: LoggingConfigProperty -> Maybe (Value Text)
successFeedbackSampleRate :: LoggingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
failureFeedbackRoleArn :: Maybe (Value Text)
protocol :: Value Text
successFeedbackRoleArn :: Maybe (Value Text)
successFeedbackSampleRate :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Protocol" 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
protocol]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"FailureFeedbackRoleArn"
(Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
failureFeedbackRoleArn,
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..=) Key
"SuccessFeedbackRoleArn"
(Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
successFeedbackRoleArn,
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..=) Key
"SuccessFeedbackSampleRate"
(Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
successFeedbackSampleRate])))
instance Property "FailureFeedbackRoleArn" LoggingConfigProperty where
type PropertyType "FailureFeedbackRoleArn" LoggingConfigProperty = Value Prelude.Text
set :: PropertyType "FailureFeedbackRoleArn" LoggingConfigProperty
-> LoggingConfigProperty -> LoggingConfigProperty
set PropertyType "FailureFeedbackRoleArn" LoggingConfigProperty
newValue LoggingConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LoggingConfigProperty -> ()
failureFeedbackRoleArn :: LoggingConfigProperty -> Maybe (Value Text)
protocol :: LoggingConfigProperty -> Value Text
successFeedbackRoleArn :: LoggingConfigProperty -> Maybe (Value Text)
successFeedbackSampleRate :: LoggingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
failureFeedbackRoleArn :: Maybe (Value Text)
protocol :: Value Text
successFeedbackRoleArn :: Maybe (Value Text)
successFeedbackSampleRate :: Maybe (Value Text)
..}
= LoggingConfigProperty
{failureFeedbackRoleArn :: Maybe (Value Text)
failureFeedbackRoleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FailureFeedbackRoleArn" LoggingConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
protocol :: Value Text
successFeedbackRoleArn :: Maybe (Value Text)
successFeedbackSampleRate :: Maybe (Value Text)
haddock_workaround_ :: ()
protocol :: Value Text
successFeedbackRoleArn :: Maybe (Value Text)
successFeedbackSampleRate :: Maybe (Value Text)
..}
instance Property "Protocol" LoggingConfigProperty where
type PropertyType "Protocol" LoggingConfigProperty = Value Prelude.Text
set :: PropertyType "Protocol" LoggingConfigProperty
-> LoggingConfigProperty -> LoggingConfigProperty
set PropertyType "Protocol" LoggingConfigProperty
newValue LoggingConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LoggingConfigProperty -> ()
failureFeedbackRoleArn :: LoggingConfigProperty -> Maybe (Value Text)
protocol :: LoggingConfigProperty -> Value Text
successFeedbackRoleArn :: LoggingConfigProperty -> Maybe (Value Text)
successFeedbackSampleRate :: LoggingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
failureFeedbackRoleArn :: Maybe (Value Text)
protocol :: Value Text
successFeedbackRoleArn :: Maybe (Value Text)
successFeedbackSampleRate :: Maybe (Value Text)
..}
= LoggingConfigProperty {protocol :: Value Text
protocol = PropertyType "Protocol" LoggingConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
failureFeedbackRoleArn :: Maybe (Value Text)
successFeedbackRoleArn :: Maybe (Value Text)
successFeedbackSampleRate :: Maybe (Value Text)
haddock_workaround_ :: ()
failureFeedbackRoleArn :: Maybe (Value Text)
successFeedbackRoleArn :: Maybe (Value Text)
successFeedbackSampleRate :: Maybe (Value Text)
..}
instance Property "SuccessFeedbackRoleArn" LoggingConfigProperty where
type PropertyType "SuccessFeedbackRoleArn" LoggingConfigProperty = Value Prelude.Text
set :: PropertyType "SuccessFeedbackRoleArn" LoggingConfigProperty
-> LoggingConfigProperty -> LoggingConfigProperty
set PropertyType "SuccessFeedbackRoleArn" LoggingConfigProperty
newValue LoggingConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LoggingConfigProperty -> ()
failureFeedbackRoleArn :: LoggingConfigProperty -> Maybe (Value Text)
protocol :: LoggingConfigProperty -> Value Text
successFeedbackRoleArn :: LoggingConfigProperty -> Maybe (Value Text)
successFeedbackSampleRate :: LoggingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
failureFeedbackRoleArn :: Maybe (Value Text)
protocol :: Value Text
successFeedbackRoleArn :: Maybe (Value Text)
successFeedbackSampleRate :: Maybe (Value Text)
..}
= LoggingConfigProperty
{successFeedbackRoleArn :: Maybe (Value Text)
successFeedbackRoleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SuccessFeedbackRoleArn" LoggingConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
failureFeedbackRoleArn :: Maybe (Value Text)
protocol :: Value Text
successFeedbackSampleRate :: Maybe (Value Text)
haddock_workaround_ :: ()
failureFeedbackRoleArn :: Maybe (Value Text)
protocol :: Value Text
successFeedbackSampleRate :: Maybe (Value Text)
..}
instance Property "SuccessFeedbackSampleRate" LoggingConfigProperty where
type PropertyType "SuccessFeedbackSampleRate" LoggingConfigProperty = Value Prelude.Text
set :: PropertyType "SuccessFeedbackSampleRate" LoggingConfigProperty
-> LoggingConfigProperty -> LoggingConfigProperty
set PropertyType "SuccessFeedbackSampleRate" LoggingConfigProperty
newValue LoggingConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LoggingConfigProperty -> ()
failureFeedbackRoleArn :: LoggingConfigProperty -> Maybe (Value Text)
protocol :: LoggingConfigProperty -> Value Text
successFeedbackRoleArn :: LoggingConfigProperty -> Maybe (Value Text)
successFeedbackSampleRate :: LoggingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
failureFeedbackRoleArn :: Maybe (Value Text)
protocol :: Value Text
successFeedbackRoleArn :: Maybe (Value Text)
successFeedbackSampleRate :: Maybe (Value Text)
..}
= LoggingConfigProperty
{successFeedbackSampleRate :: Maybe (Value Text)
successFeedbackSampleRate = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SuccessFeedbackSampleRate" LoggingConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
failureFeedbackRoleArn :: Maybe (Value Text)
protocol :: Value Text
successFeedbackRoleArn :: Maybe (Value Text)
haddock_workaround_ :: ()
failureFeedbackRoleArn :: Maybe (Value Text)
protocol :: Value Text
successFeedbackRoleArn :: Maybe (Value Text)
..}