module Stratosphere.Redshift.EventSubscription (
        EventSubscription(..), mkEventSubscription
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data EventSubscription
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-eventsubscription.html>
    EventSubscription {EventSubscription -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-eventsubscription.html#cfn-redshift-eventsubscription-enabled>
                       EventSubscription -> Maybe (Value Bool)
enabled :: (Prelude.Maybe (Value Prelude.Bool)),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-eventsubscription.html#cfn-redshift-eventsubscription-eventcategories>
                       EventSubscription -> Maybe (ValueList Text)
eventCategories :: (Prelude.Maybe (ValueList Prelude.Text)),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-eventsubscription.html#cfn-redshift-eventsubscription-severity>
                       EventSubscription -> Maybe (Value Text)
severity :: (Prelude.Maybe (Value Prelude.Text)),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-eventsubscription.html#cfn-redshift-eventsubscription-snstopicarn>
                       EventSubscription -> Maybe (Value Text)
snsTopicArn :: (Prelude.Maybe (Value Prelude.Text)),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-eventsubscription.html#cfn-redshift-eventsubscription-sourceids>
                       EventSubscription -> Maybe (ValueList Text)
sourceIds :: (Prelude.Maybe (ValueList Prelude.Text)),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-eventsubscription.html#cfn-redshift-eventsubscription-sourcetype>
                       EventSubscription -> Maybe (Value Text)
sourceType :: (Prelude.Maybe (Value Prelude.Text)),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-eventsubscription.html#cfn-redshift-eventsubscription-subscriptionname>
                       EventSubscription -> Value Text
subscriptionName :: (Value Prelude.Text),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-eventsubscription.html#cfn-redshift-eventsubscription-tags>
                       EventSubscription -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (EventSubscription -> EventSubscription -> Bool
(EventSubscription -> EventSubscription -> Bool)
-> (EventSubscription -> EventSubscription -> Bool)
-> Eq EventSubscription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EventSubscription -> EventSubscription -> Bool
== :: EventSubscription -> EventSubscription -> Bool
$c/= :: EventSubscription -> EventSubscription -> Bool
/= :: EventSubscription -> EventSubscription -> Bool
Prelude.Eq, Int -> EventSubscription -> ShowS
[EventSubscription] -> ShowS
EventSubscription -> String
(Int -> EventSubscription -> ShowS)
-> (EventSubscription -> String)
-> ([EventSubscription] -> ShowS)
-> Show EventSubscription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EventSubscription -> ShowS
showsPrec :: Int -> EventSubscription -> ShowS
$cshow :: EventSubscription -> String
show :: EventSubscription -> String
$cshowList :: [EventSubscription] -> ShowS
showList :: [EventSubscription] -> ShowS
Prelude.Show)
mkEventSubscription :: Value Prelude.Text -> EventSubscription
mkEventSubscription :: Value Text -> EventSubscription
mkEventSubscription Value Text
subscriptionName
  = EventSubscription
      {haddock_workaround_ :: ()
haddock_workaround_ = (), subscriptionName :: Value Text
subscriptionName = Value Text
subscriptionName,
       enabled :: Maybe (Value Bool)
enabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, eventCategories :: Maybe (ValueList Text)
eventCategories = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       severity :: Maybe (Value Text)
severity = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, snsTopicArn :: Maybe (Value Text)
snsTopicArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       sourceIds :: Maybe (ValueList Text)
sourceIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, sourceType :: Maybe (Value Text)
sourceType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EventSubscription where
  toResourceProperties :: EventSubscription -> ResourceProperties
toResourceProperties EventSubscription {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EventSubscription -> ()
enabled :: EventSubscription -> Maybe (Value Bool)
eventCategories :: EventSubscription -> Maybe (ValueList Text)
severity :: EventSubscription -> Maybe (Value Text)
snsTopicArn :: EventSubscription -> Maybe (Value Text)
sourceIds :: EventSubscription -> Maybe (ValueList Text)
sourceType :: EventSubscription -> Maybe (Value Text)
subscriptionName :: EventSubscription -> Value Text
tags :: EventSubscription -> Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Redshift::EventSubscription",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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
"SubscriptionName" 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
subscriptionName]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled,
                               Key -> ValueList 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
"EventCategories" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
eventCategories,
                               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
"Severity" (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)
severity,
                               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
"SnsTopicArn" (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)
snsTopicArn,
                               Key -> ValueList 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
"SourceIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
sourceIds,
                               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
"SourceType" (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)
sourceType,
                               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON EventSubscription where
  toJSON :: EventSubscription -> Value
toJSON EventSubscription {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EventSubscription -> ()
enabled :: EventSubscription -> Maybe (Value Bool)
eventCategories :: EventSubscription -> Maybe (ValueList Text)
severity :: EventSubscription -> Maybe (Value Text)
snsTopicArn :: EventSubscription -> Maybe (Value Text)
sourceIds :: EventSubscription -> Maybe (ValueList Text)
sourceType :: EventSubscription -> Maybe (Value Text)
subscriptionName :: EventSubscription -> Value Text
tags :: EventSubscription -> Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
    = [(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
"SubscriptionName" 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
subscriptionName]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled,
                  Key -> ValueList 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
"EventCategories" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
eventCategories,
                  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
"Severity" (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)
severity,
                  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
"SnsTopicArn" (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)
snsTopicArn,
                  Key -> ValueList 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
"SourceIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
sourceIds,
                  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
"SourceType" (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)
sourceType,
                  Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "Enabled" EventSubscription where
  type PropertyType "Enabled" EventSubscription = Value Prelude.Bool
  set :: PropertyType "Enabled" EventSubscription
-> EventSubscription -> EventSubscription
set PropertyType "Enabled" EventSubscription
newValue EventSubscription {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EventSubscription -> ()
enabled :: EventSubscription -> Maybe (Value Bool)
eventCategories :: EventSubscription -> Maybe (ValueList Text)
severity :: EventSubscription -> Maybe (Value Text)
snsTopicArn :: EventSubscription -> Maybe (Value Text)
sourceIds :: EventSubscription -> Maybe (ValueList Text)
sourceType :: EventSubscription -> Maybe (Value Text)
subscriptionName :: EventSubscription -> Value Text
tags :: EventSubscription -> Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
    = EventSubscription {enabled :: Maybe (Value Bool)
enabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Enabled" EventSubscription
Value Bool
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "EventCategories" EventSubscription where
  type PropertyType "EventCategories" EventSubscription = ValueList Prelude.Text
  set :: PropertyType "EventCategories" EventSubscription
-> EventSubscription -> EventSubscription
set PropertyType "EventCategories" EventSubscription
newValue EventSubscription {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EventSubscription -> ()
enabled :: EventSubscription -> Maybe (Value Bool)
eventCategories :: EventSubscription -> Maybe (ValueList Text)
severity :: EventSubscription -> Maybe (Value Text)
snsTopicArn :: EventSubscription -> Maybe (Value Text)
sourceIds :: EventSubscription -> Maybe (ValueList Text)
sourceType :: EventSubscription -> Maybe (Value Text)
subscriptionName :: EventSubscription -> Value Text
tags :: EventSubscription -> Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
    = EventSubscription {eventCategories :: Maybe (ValueList Text)
eventCategories = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EventCategories" EventSubscription
ValueList Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Severity" EventSubscription where
  type PropertyType "Severity" EventSubscription = Value Prelude.Text
  set :: PropertyType "Severity" EventSubscription
-> EventSubscription -> EventSubscription
set PropertyType "Severity" EventSubscription
newValue EventSubscription {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EventSubscription -> ()
enabled :: EventSubscription -> Maybe (Value Bool)
eventCategories :: EventSubscription -> Maybe (ValueList Text)
severity :: EventSubscription -> Maybe (Value Text)
snsTopicArn :: EventSubscription -> Maybe (Value Text)
sourceIds :: EventSubscription -> Maybe (ValueList Text)
sourceType :: EventSubscription -> Maybe (Value Text)
subscriptionName :: EventSubscription -> Value Text
tags :: EventSubscription -> Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
    = EventSubscription {severity :: Maybe (Value Text)
severity = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Severity" EventSubscription
Value Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "SnsTopicArn" EventSubscription where
  type PropertyType "SnsTopicArn" EventSubscription = Value Prelude.Text
  set :: PropertyType "SnsTopicArn" EventSubscription
-> EventSubscription -> EventSubscription
set PropertyType "SnsTopicArn" EventSubscription
newValue EventSubscription {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EventSubscription -> ()
enabled :: EventSubscription -> Maybe (Value Bool)
eventCategories :: EventSubscription -> Maybe (ValueList Text)
severity :: EventSubscription -> Maybe (Value Text)
snsTopicArn :: EventSubscription -> Maybe (Value Text)
sourceIds :: EventSubscription -> Maybe (ValueList Text)
sourceType :: EventSubscription -> Maybe (Value Text)
subscriptionName :: EventSubscription -> Value Text
tags :: EventSubscription -> Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
    = EventSubscription {snsTopicArn :: Maybe (Value Text)
snsTopicArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SnsTopicArn" EventSubscription
Value Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "SourceIds" EventSubscription where
  type PropertyType "SourceIds" EventSubscription = ValueList Prelude.Text
  set :: PropertyType "SourceIds" EventSubscription
-> EventSubscription -> EventSubscription
set PropertyType "SourceIds" EventSubscription
newValue EventSubscription {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EventSubscription -> ()
enabled :: EventSubscription -> Maybe (Value Bool)
eventCategories :: EventSubscription -> Maybe (ValueList Text)
severity :: EventSubscription -> Maybe (Value Text)
snsTopicArn :: EventSubscription -> Maybe (Value Text)
sourceIds :: EventSubscription -> Maybe (ValueList Text)
sourceType :: EventSubscription -> Maybe (Value Text)
subscriptionName :: EventSubscription -> Value Text
tags :: EventSubscription -> Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
    = EventSubscription {sourceIds :: Maybe (ValueList Text)
sourceIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SourceIds" EventSubscription
ValueList Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "SourceType" EventSubscription where
  type PropertyType "SourceType" EventSubscription = Value Prelude.Text
  set :: PropertyType "SourceType" EventSubscription
-> EventSubscription -> EventSubscription
set PropertyType "SourceType" EventSubscription
newValue EventSubscription {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EventSubscription -> ()
enabled :: EventSubscription -> Maybe (Value Bool)
eventCategories :: EventSubscription -> Maybe (ValueList Text)
severity :: EventSubscription -> Maybe (Value Text)
snsTopicArn :: EventSubscription -> Maybe (Value Text)
sourceIds :: EventSubscription -> Maybe (ValueList Text)
sourceType :: EventSubscription -> Maybe (Value Text)
subscriptionName :: EventSubscription -> Value Text
tags :: EventSubscription -> Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
    = EventSubscription {sourceType :: Maybe (Value Text)
sourceType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SourceType" EventSubscription
Value Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "SubscriptionName" EventSubscription where
  type PropertyType "SubscriptionName" EventSubscription = Value Prelude.Text
  set :: PropertyType "SubscriptionName" EventSubscription
-> EventSubscription -> EventSubscription
set PropertyType "SubscriptionName" EventSubscription
newValue EventSubscription {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EventSubscription -> ()
enabled :: EventSubscription -> Maybe (Value Bool)
eventCategories :: EventSubscription -> Maybe (ValueList Text)
severity :: EventSubscription -> Maybe (Value Text)
snsTopicArn :: EventSubscription -> Maybe (Value Text)
sourceIds :: EventSubscription -> Maybe (ValueList Text)
sourceType :: EventSubscription -> Maybe (Value Text)
subscriptionName :: EventSubscription -> Value Text
tags :: EventSubscription -> Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
    = EventSubscription {subscriptionName :: Value Text
subscriptionName = PropertyType "SubscriptionName" EventSubscription
Value Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" EventSubscription where
  type PropertyType "Tags" EventSubscription = [Tag]
  set :: PropertyType "Tags" EventSubscription
-> EventSubscription -> EventSubscription
set PropertyType "Tags" EventSubscription
newValue EventSubscription {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EventSubscription -> ()
enabled :: EventSubscription -> Maybe (Value Bool)
eventCategories :: EventSubscription -> Maybe (ValueList Text)
severity :: EventSubscription -> Maybe (Value Text)
snsTopicArn :: EventSubscription -> Maybe (Value Text)
sourceIds :: EventSubscription -> Maybe (ValueList Text)
sourceType :: EventSubscription -> Maybe (Value Text)
subscriptionName :: EventSubscription -> Value Text
tags :: EventSubscription -> Maybe [Tag]
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
tags :: Maybe [Tag]
..}
    = EventSubscription {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" EventSubscription
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
eventCategories :: Maybe (ValueList Text)
severity :: Maybe (Value Text)
snsTopicArn :: Maybe (Value Text)
sourceIds :: Maybe (ValueList Text)
sourceType :: Maybe (Value Text)
subscriptionName :: Value Text
..}