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