module Stratosphere.CloudFront.RealtimeLogConfig.EndPointProperty (
module Exports, EndPointProperty(..), mkEndPointProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CloudFront.RealtimeLogConfig.KinesisStreamConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EndPointProperty
=
EndPointProperty {EndPointProperty -> ()
haddock_workaround_ :: (),
EndPointProperty -> KinesisStreamConfigProperty
kinesisStreamConfig :: KinesisStreamConfigProperty,
EndPointProperty -> Value Text
streamType :: (Value Prelude.Text)}
deriving stock (EndPointProperty -> EndPointProperty -> Bool
(EndPointProperty -> EndPointProperty -> Bool)
-> (EndPointProperty -> EndPointProperty -> Bool)
-> Eq EndPointProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EndPointProperty -> EndPointProperty -> Bool
== :: EndPointProperty -> EndPointProperty -> Bool
$c/= :: EndPointProperty -> EndPointProperty -> Bool
/= :: EndPointProperty -> EndPointProperty -> Bool
Prelude.Eq, Int -> EndPointProperty -> ShowS
[EndPointProperty] -> ShowS
EndPointProperty -> String
(Int -> EndPointProperty -> ShowS)
-> (EndPointProperty -> String)
-> ([EndPointProperty] -> ShowS)
-> Show EndPointProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EndPointProperty -> ShowS
showsPrec :: Int -> EndPointProperty -> ShowS
$cshow :: EndPointProperty -> String
show :: EndPointProperty -> String
$cshowList :: [EndPointProperty] -> ShowS
showList :: [EndPointProperty] -> ShowS
Prelude.Show)
mkEndPointProperty ::
KinesisStreamConfigProperty
-> Value Prelude.Text -> EndPointProperty
mkEndPointProperty :: KinesisStreamConfigProperty -> Value Text -> EndPointProperty
mkEndPointProperty KinesisStreamConfigProperty
kinesisStreamConfig Value Text
streamType
= EndPointProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
kinesisStreamConfig :: KinesisStreamConfigProperty
kinesisStreamConfig = KinesisStreamConfigProperty
kinesisStreamConfig, streamType :: Value Text
streamType = Value Text
streamType}
instance ToResourceProperties EndPointProperty where
toResourceProperties :: EndPointProperty -> ResourceProperties
toResourceProperties EndPointProperty {()
Value Text
KinesisStreamConfigProperty
haddock_workaround_ :: EndPointProperty -> ()
kinesisStreamConfig :: EndPointProperty -> KinesisStreamConfigProperty
streamType :: EndPointProperty -> Value Text
haddock_workaround_ :: ()
kinesisStreamConfig :: KinesisStreamConfigProperty
streamType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CloudFront::RealtimeLogConfig.EndPoint",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"KinesisStreamConfig" Key -> KinesisStreamConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= KinesisStreamConfigProperty
kinesisStreamConfig,
Key
"StreamType" 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
streamType]}
instance JSON.ToJSON EndPointProperty where
toJSON :: EndPointProperty -> Value
toJSON EndPointProperty {()
Value Text
KinesisStreamConfigProperty
haddock_workaround_ :: EndPointProperty -> ()
kinesisStreamConfig :: EndPointProperty -> KinesisStreamConfigProperty
streamType :: EndPointProperty -> Value Text
haddock_workaround_ :: ()
kinesisStreamConfig :: KinesisStreamConfigProperty
streamType :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"KinesisStreamConfig" Key -> KinesisStreamConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= KinesisStreamConfigProperty
kinesisStreamConfig,
Key
"StreamType" 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
streamType]
instance Property "KinesisStreamConfig" EndPointProperty where
type PropertyType "KinesisStreamConfig" EndPointProperty = KinesisStreamConfigProperty
set :: PropertyType "KinesisStreamConfig" EndPointProperty
-> EndPointProperty -> EndPointProperty
set PropertyType "KinesisStreamConfig" EndPointProperty
newValue EndPointProperty {()
Value Text
KinesisStreamConfigProperty
haddock_workaround_ :: EndPointProperty -> ()
kinesisStreamConfig :: EndPointProperty -> KinesisStreamConfigProperty
streamType :: EndPointProperty -> Value Text
haddock_workaround_ :: ()
kinesisStreamConfig :: KinesisStreamConfigProperty
streamType :: Value Text
..}
= EndPointProperty {kinesisStreamConfig :: KinesisStreamConfigProperty
kinesisStreamConfig = PropertyType "KinesisStreamConfig" EndPointProperty
KinesisStreamConfigProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
streamType :: Value Text
haddock_workaround_ :: ()
streamType :: Value Text
..}
instance Property "StreamType" EndPointProperty where
type PropertyType "StreamType" EndPointProperty = Value Prelude.Text
set :: PropertyType "StreamType" EndPointProperty
-> EndPointProperty -> EndPointProperty
set PropertyType "StreamType" EndPointProperty
newValue EndPointProperty {()
Value Text
KinesisStreamConfigProperty
haddock_workaround_ :: EndPointProperty -> ()
kinesisStreamConfig :: EndPointProperty -> KinesisStreamConfigProperty
streamType :: EndPointProperty -> Value Text
haddock_workaround_ :: ()
kinesisStreamConfig :: KinesisStreamConfigProperty
streamType :: Value Text
..}
= EndPointProperty {streamType :: Value Text
streamType = PropertyType "StreamType" EndPointProperty
Value Text
newValue, ()
KinesisStreamConfigProperty
haddock_workaround_ :: ()
kinesisStreamConfig :: KinesisStreamConfigProperty
haddock_workaround_ :: ()
kinesisStreamConfig :: KinesisStreamConfigProperty
..}