module Stratosphere.KinesisFirehose.DeliveryStream.AuthenticationConfigurationProperty (
        AuthenticationConfigurationProperty(..),
        mkAuthenticationConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AuthenticationConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-authenticationconfiguration.html>
    AuthenticationConfigurationProperty {AuthenticationConfigurationProperty -> ()
haddock_workaround_ :: (),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-authenticationconfiguration.html#cfn-kinesisfirehose-deliverystream-authenticationconfiguration-connectivity>
                                         AuthenticationConfigurationProperty -> Value Text
connectivity :: (Value Prelude.Text),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-authenticationconfiguration.html#cfn-kinesisfirehose-deliverystream-authenticationconfiguration-rolearn>
                                         AuthenticationConfigurationProperty -> Value Text
roleARN :: (Value Prelude.Text)}
  deriving stock (AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
(AuthenticationConfigurationProperty
 -> AuthenticationConfigurationProperty -> Bool)
-> (AuthenticationConfigurationProperty
    -> AuthenticationConfigurationProperty -> Bool)
-> Eq AuthenticationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
== :: AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
$c/= :: AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
/= :: AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
Prelude.Eq, Int -> AuthenticationConfigurationProperty -> ShowS
[AuthenticationConfigurationProperty] -> ShowS
AuthenticationConfigurationProperty -> String
(Int -> AuthenticationConfigurationProperty -> ShowS)
-> (AuthenticationConfigurationProperty -> String)
-> ([AuthenticationConfigurationProperty] -> ShowS)
-> Show AuthenticationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AuthenticationConfigurationProperty -> ShowS
showsPrec :: Int -> AuthenticationConfigurationProperty -> ShowS
$cshow :: AuthenticationConfigurationProperty -> String
show :: AuthenticationConfigurationProperty -> String
$cshowList :: [AuthenticationConfigurationProperty] -> ShowS
showList :: [AuthenticationConfigurationProperty] -> ShowS
Prelude.Show)
mkAuthenticationConfigurationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> AuthenticationConfigurationProperty
mkAuthenticationConfigurationProperty :: Value Text -> Value Text -> AuthenticationConfigurationProperty
mkAuthenticationConfigurationProperty Value Text
connectivity Value Text
roleARN
  = AuthenticationConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), connectivity :: Value Text
connectivity = Value Text
connectivity,
       roleARN :: Value Text
roleARN = Value Text
roleARN}
instance ToResourceProperties AuthenticationConfigurationProperty where
  toResourceProperties :: AuthenticationConfigurationProperty -> ResourceProperties
toResourceProperties AuthenticationConfigurationProperty {()
Value Text
haddock_workaround_ :: AuthenticationConfigurationProperty -> ()
connectivity :: AuthenticationConfigurationProperty -> Value Text
roleARN :: AuthenticationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
connectivity :: Value Text
roleARN :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.AuthenticationConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Connectivity" 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
connectivity,
                       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 AuthenticationConfigurationProperty where
  toJSON :: AuthenticationConfigurationProperty -> Value
toJSON AuthenticationConfigurationProperty {()
Value Text
haddock_workaround_ :: AuthenticationConfigurationProperty -> ()
connectivity :: AuthenticationConfigurationProperty -> Value Text
roleARN :: AuthenticationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
connectivity :: Value Text
roleARN :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Connectivity" 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
connectivity, 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 "Connectivity" AuthenticationConfigurationProperty where
  type PropertyType "Connectivity" AuthenticationConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Connectivity" AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty
set PropertyType "Connectivity" AuthenticationConfigurationProperty
newValue AuthenticationConfigurationProperty {()
Value Text
haddock_workaround_ :: AuthenticationConfigurationProperty -> ()
connectivity :: AuthenticationConfigurationProperty -> Value Text
roleARN :: AuthenticationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
connectivity :: Value Text
roleARN :: Value Text
..}
    = AuthenticationConfigurationProperty {connectivity :: Value Text
connectivity = PropertyType "Connectivity" AuthenticationConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
roleARN :: Value Text
haddock_workaround_ :: ()
roleARN :: Value Text
..}
instance Property "RoleARN" AuthenticationConfigurationProperty where
  type PropertyType "RoleARN" AuthenticationConfigurationProperty = Value Prelude.Text
  set :: PropertyType "RoleARN" AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty
set PropertyType "RoleARN" AuthenticationConfigurationProperty
newValue AuthenticationConfigurationProperty {()
Value Text
haddock_workaround_ :: AuthenticationConfigurationProperty -> ()
connectivity :: AuthenticationConfigurationProperty -> Value Text
roleARN :: AuthenticationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
connectivity :: Value Text
roleARN :: Value Text
..}
    = AuthenticationConfigurationProperty {roleARN :: Value Text
roleARN = PropertyType "RoleARN" AuthenticationConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
connectivity :: Value Text
haddock_workaround_ :: ()
connectivity :: Value Text
..}