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