module Stratosphere.CloudFront.RealtimeLogConfig.KinesisStreamConfigProperty (
        KinesisStreamConfigProperty(..), mkKinesisStreamConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data KinesisStreamConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html>
    KinesisStreamConfigProperty {KinesisStreamConfigProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html#cfn-cloudfront-realtimelogconfig-kinesisstreamconfig-rolearn>
                                 KinesisStreamConfigProperty -> Value Text
roleArn :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html#cfn-cloudfront-realtimelogconfig-kinesisstreamconfig-streamarn>
                                 KinesisStreamConfigProperty -> Value Text
streamArn :: (Value Prelude.Text)}
  deriving stock (KinesisStreamConfigProperty -> KinesisStreamConfigProperty -> Bool
(KinesisStreamConfigProperty
 -> KinesisStreamConfigProperty -> Bool)
-> (KinesisStreamConfigProperty
    -> KinesisStreamConfigProperty -> Bool)
-> Eq KinesisStreamConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: KinesisStreamConfigProperty -> KinesisStreamConfigProperty -> Bool
== :: KinesisStreamConfigProperty -> KinesisStreamConfigProperty -> Bool
$c/= :: KinesisStreamConfigProperty -> KinesisStreamConfigProperty -> Bool
/= :: KinesisStreamConfigProperty -> KinesisStreamConfigProperty -> Bool
Prelude.Eq, Int -> KinesisStreamConfigProperty -> ShowS
[KinesisStreamConfigProperty] -> ShowS
KinesisStreamConfigProperty -> String
(Int -> KinesisStreamConfigProperty -> ShowS)
-> (KinesisStreamConfigProperty -> String)
-> ([KinesisStreamConfigProperty] -> ShowS)
-> Show KinesisStreamConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> KinesisStreamConfigProperty -> ShowS
showsPrec :: Int -> KinesisStreamConfigProperty -> ShowS
$cshow :: KinesisStreamConfigProperty -> String
show :: KinesisStreamConfigProperty -> String
$cshowList :: [KinesisStreamConfigProperty] -> ShowS
showList :: [KinesisStreamConfigProperty] -> ShowS
Prelude.Show)
mkKinesisStreamConfigProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> KinesisStreamConfigProperty
mkKinesisStreamConfigProperty :: Value Text -> Value Text -> KinesisStreamConfigProperty
mkKinesisStreamConfigProperty Value Text
roleArn Value Text
streamArn
  = KinesisStreamConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), roleArn :: Value Text
roleArn = Value Text
roleArn,
       streamArn :: Value Text
streamArn = Value Text
streamArn}
instance ToResourceProperties KinesisStreamConfigProperty where
  toResourceProperties :: KinesisStreamConfigProperty -> ResourceProperties
toResourceProperties KinesisStreamConfigProperty {()
Value Text
haddock_workaround_ :: KinesisStreamConfigProperty -> ()
roleArn :: KinesisStreamConfigProperty -> Value Text
streamArn :: KinesisStreamConfigProperty -> Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
streamArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CloudFront::RealtimeLogConfig.KinesisStreamConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [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,
                       Key
"StreamArn" 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
streamArn]}
instance JSON.ToJSON KinesisStreamConfigProperty where
  toJSON :: KinesisStreamConfigProperty -> Value
toJSON KinesisStreamConfigProperty {()
Value Text
haddock_workaround_ :: KinesisStreamConfigProperty -> ()
roleArn :: KinesisStreamConfigProperty -> Value Text
streamArn :: KinesisStreamConfigProperty -> Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
streamArn :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [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, Key
"StreamArn" 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
streamArn]
instance Property "RoleArn" KinesisStreamConfigProperty where
  type PropertyType "RoleArn" KinesisStreamConfigProperty = Value Prelude.Text
  set :: PropertyType "RoleArn" KinesisStreamConfigProperty
-> KinesisStreamConfigProperty -> KinesisStreamConfigProperty
set PropertyType "RoleArn" KinesisStreamConfigProperty
newValue KinesisStreamConfigProperty {()
Value Text
haddock_workaround_ :: KinesisStreamConfigProperty -> ()
roleArn :: KinesisStreamConfigProperty -> Value Text
streamArn :: KinesisStreamConfigProperty -> Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
streamArn :: Value Text
..}
    = KinesisStreamConfigProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" KinesisStreamConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
streamArn :: Value Text
haddock_workaround_ :: ()
streamArn :: Value Text
..}
instance Property "StreamArn" KinesisStreamConfigProperty where
  type PropertyType "StreamArn" KinesisStreamConfigProperty = Value Prelude.Text
  set :: PropertyType "StreamArn" KinesisStreamConfigProperty
-> KinesisStreamConfigProperty -> KinesisStreamConfigProperty
set PropertyType "StreamArn" KinesisStreamConfigProperty
newValue KinesisStreamConfigProperty {()
Value Text
haddock_workaround_ :: KinesisStreamConfigProperty -> ()
roleArn :: KinesisStreamConfigProperty -> Value Text
streamArn :: KinesisStreamConfigProperty -> Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
streamArn :: Value Text
..}
    = KinesisStreamConfigProperty {streamArn :: Value Text
streamArn = PropertyType "StreamArn" KinesisStreamConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
..}