module Stratosphere.Connect.Rule.RuleTriggerEventSourceProperty (
RuleTriggerEventSourceProperty(..),
mkRuleTriggerEventSourceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RuleTriggerEventSourceProperty
=
RuleTriggerEventSourceProperty {RuleTriggerEventSourceProperty -> ()
haddock_workaround_ :: (),
RuleTriggerEventSourceProperty -> Value Text
eventSourceName :: (Value Prelude.Text),
RuleTriggerEventSourceProperty -> Maybe (Value Text)
integrationAssociationArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (RuleTriggerEventSourceProperty
-> RuleTriggerEventSourceProperty -> Bool
(RuleTriggerEventSourceProperty
-> RuleTriggerEventSourceProperty -> Bool)
-> (RuleTriggerEventSourceProperty
-> RuleTriggerEventSourceProperty -> Bool)
-> Eq RuleTriggerEventSourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RuleTriggerEventSourceProperty
-> RuleTriggerEventSourceProperty -> Bool
== :: RuleTriggerEventSourceProperty
-> RuleTriggerEventSourceProperty -> Bool
$c/= :: RuleTriggerEventSourceProperty
-> RuleTriggerEventSourceProperty -> Bool
/= :: RuleTriggerEventSourceProperty
-> RuleTriggerEventSourceProperty -> Bool
Prelude.Eq, Int -> RuleTriggerEventSourceProperty -> ShowS
[RuleTriggerEventSourceProperty] -> ShowS
RuleTriggerEventSourceProperty -> String
(Int -> RuleTriggerEventSourceProperty -> ShowS)
-> (RuleTriggerEventSourceProperty -> String)
-> ([RuleTriggerEventSourceProperty] -> ShowS)
-> Show RuleTriggerEventSourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RuleTriggerEventSourceProperty -> ShowS
showsPrec :: Int -> RuleTriggerEventSourceProperty -> ShowS
$cshow :: RuleTriggerEventSourceProperty -> String
show :: RuleTriggerEventSourceProperty -> String
$cshowList :: [RuleTriggerEventSourceProperty] -> ShowS
showList :: [RuleTriggerEventSourceProperty] -> ShowS
Prelude.Show)
mkRuleTriggerEventSourceProperty ::
Value Prelude.Text -> RuleTriggerEventSourceProperty
mkRuleTriggerEventSourceProperty :: Value Text -> RuleTriggerEventSourceProperty
mkRuleTriggerEventSourceProperty Value Text
eventSourceName
= RuleTriggerEventSourceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), eventSourceName :: Value Text
eventSourceName = Value Text
eventSourceName,
integrationAssociationArn :: Maybe (Value Text)
integrationAssociationArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RuleTriggerEventSourceProperty where
toResourceProperties :: RuleTriggerEventSourceProperty -> ResourceProperties
toResourceProperties RuleTriggerEventSourceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuleTriggerEventSourceProperty -> ()
eventSourceName :: RuleTriggerEventSourceProperty -> Value Text
integrationAssociationArn :: RuleTriggerEventSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
eventSourceName :: Value Text
integrationAssociationArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::Rule.RuleTriggerEventSource",
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
"EventSourceName" 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
eventSourceName]
([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
"IntegrationAssociationArn"
(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)
integrationAssociationArn]))}
instance JSON.ToJSON RuleTriggerEventSourceProperty where
toJSON :: RuleTriggerEventSourceProperty -> Value
toJSON RuleTriggerEventSourceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuleTriggerEventSourceProperty -> ()
eventSourceName :: RuleTriggerEventSourceProperty -> Value Text
integrationAssociationArn :: RuleTriggerEventSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
eventSourceName :: Value Text
integrationAssociationArn :: 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
"EventSourceName" 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
eventSourceName]
([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
"IntegrationAssociationArn"
(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)
integrationAssociationArn])))
instance Property "EventSourceName" RuleTriggerEventSourceProperty where
type PropertyType "EventSourceName" RuleTriggerEventSourceProperty = Value Prelude.Text
set :: PropertyType "EventSourceName" RuleTriggerEventSourceProperty
-> RuleTriggerEventSourceProperty -> RuleTriggerEventSourceProperty
set PropertyType "EventSourceName" RuleTriggerEventSourceProperty
newValue RuleTriggerEventSourceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuleTriggerEventSourceProperty -> ()
eventSourceName :: RuleTriggerEventSourceProperty -> Value Text
integrationAssociationArn :: RuleTriggerEventSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
eventSourceName :: Value Text
integrationAssociationArn :: Maybe (Value Text)
..}
= RuleTriggerEventSourceProperty {eventSourceName :: Value Text
eventSourceName = PropertyType "EventSourceName" RuleTriggerEventSourceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
integrationAssociationArn :: Maybe (Value Text)
haddock_workaround_ :: ()
integrationAssociationArn :: Maybe (Value Text)
..}
instance Property "IntegrationAssociationArn" RuleTriggerEventSourceProperty where
type PropertyType "IntegrationAssociationArn" RuleTriggerEventSourceProperty = Value Prelude.Text
set :: PropertyType
"IntegrationAssociationArn" RuleTriggerEventSourceProperty
-> RuleTriggerEventSourceProperty -> RuleTriggerEventSourceProperty
set PropertyType
"IntegrationAssociationArn" RuleTriggerEventSourceProperty
newValue RuleTriggerEventSourceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuleTriggerEventSourceProperty -> ()
eventSourceName :: RuleTriggerEventSourceProperty -> Value Text
integrationAssociationArn :: RuleTriggerEventSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
eventSourceName :: Value Text
integrationAssociationArn :: Maybe (Value Text)
..}
= RuleTriggerEventSourceProperty
{integrationAssociationArn :: Maybe (Value Text)
integrationAssociationArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"IntegrationAssociationArn" RuleTriggerEventSourceProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
eventSourceName :: Value Text
haddock_workaround_ :: ()
eventSourceName :: Value Text
..}