module Stratosphere.KinesisFirehose.DeliveryStream.SnowflakeRoleConfigurationProperty (
        SnowflakeRoleConfigurationProperty(..),
        mkSnowflakeRoleConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SnowflakeRoleConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakeroleconfiguration.html>
    SnowflakeRoleConfigurationProperty {SnowflakeRoleConfigurationProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakeroleconfiguration.html#cfn-kinesisfirehose-deliverystream-snowflakeroleconfiguration-enabled>
                                        SnowflakeRoleConfigurationProperty -> Maybe (Value Bool)
enabled :: (Prelude.Maybe (Value Prelude.Bool)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakeroleconfiguration.html#cfn-kinesisfirehose-deliverystream-snowflakeroleconfiguration-snowflakerole>
                                        SnowflakeRoleConfigurationProperty -> Maybe (Value Text)
snowflakeRole :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (SnowflakeRoleConfigurationProperty
-> SnowflakeRoleConfigurationProperty -> Bool
(SnowflakeRoleConfigurationProperty
 -> SnowflakeRoleConfigurationProperty -> Bool)
-> (SnowflakeRoleConfigurationProperty
    -> SnowflakeRoleConfigurationProperty -> Bool)
-> Eq SnowflakeRoleConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SnowflakeRoleConfigurationProperty
-> SnowflakeRoleConfigurationProperty -> Bool
== :: SnowflakeRoleConfigurationProperty
-> SnowflakeRoleConfigurationProperty -> Bool
$c/= :: SnowflakeRoleConfigurationProperty
-> SnowflakeRoleConfigurationProperty -> Bool
/= :: SnowflakeRoleConfigurationProperty
-> SnowflakeRoleConfigurationProperty -> Bool
Prelude.Eq, Int -> SnowflakeRoleConfigurationProperty -> ShowS
[SnowflakeRoleConfigurationProperty] -> ShowS
SnowflakeRoleConfigurationProperty -> String
(Int -> SnowflakeRoleConfigurationProperty -> ShowS)
-> (SnowflakeRoleConfigurationProperty -> String)
-> ([SnowflakeRoleConfigurationProperty] -> ShowS)
-> Show SnowflakeRoleConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SnowflakeRoleConfigurationProperty -> ShowS
showsPrec :: Int -> SnowflakeRoleConfigurationProperty -> ShowS
$cshow :: SnowflakeRoleConfigurationProperty -> String
show :: SnowflakeRoleConfigurationProperty -> String
$cshowList :: [SnowflakeRoleConfigurationProperty] -> ShowS
showList :: [SnowflakeRoleConfigurationProperty] -> ShowS
Prelude.Show)
mkSnowflakeRoleConfigurationProperty ::
  SnowflakeRoleConfigurationProperty
mkSnowflakeRoleConfigurationProperty :: SnowflakeRoleConfigurationProperty
mkSnowflakeRoleConfigurationProperty
  = SnowflakeRoleConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Maybe (Value Bool)
enabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       snowflakeRole :: Maybe (Value Text)
snowflakeRole = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SnowflakeRoleConfigurationProperty where
  toResourceProperties :: SnowflakeRoleConfigurationProperty -> ResourceProperties
toResourceProperties SnowflakeRoleConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: SnowflakeRoleConfigurationProperty -> ()
enabled :: SnowflakeRoleConfigurationProperty -> Maybe (Value Bool)
snowflakeRole :: SnowflakeRoleConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
snowflakeRole :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.SnowflakeRoleConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled,
                            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..=) Key
"SnowflakeRole" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
snowflakeRole])}
instance JSON.ToJSON SnowflakeRoleConfigurationProperty where
  toJSON :: SnowflakeRoleConfigurationProperty -> Value
toJSON SnowflakeRoleConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: SnowflakeRoleConfigurationProperty -> ()
enabled :: SnowflakeRoleConfigurationProperty -> Maybe (Value Bool)
snowflakeRole :: SnowflakeRoleConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
snowflakeRole :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled,
               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..=) Key
"SnowflakeRole" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
snowflakeRole]))
instance Property "Enabled" SnowflakeRoleConfigurationProperty where
  type PropertyType "Enabled" SnowflakeRoleConfigurationProperty = Value Prelude.Bool
  set :: PropertyType "Enabled" SnowflakeRoleConfigurationProperty
-> SnowflakeRoleConfigurationProperty
-> SnowflakeRoleConfigurationProperty
set PropertyType "Enabled" SnowflakeRoleConfigurationProperty
newValue SnowflakeRoleConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: SnowflakeRoleConfigurationProperty -> ()
enabled :: SnowflakeRoleConfigurationProperty -> Maybe (Value Bool)
snowflakeRole :: SnowflakeRoleConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
snowflakeRole :: Maybe (Value Text)
..}
    = SnowflakeRoleConfigurationProperty
        {enabled :: Maybe (Value Bool)
enabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Enabled" SnowflakeRoleConfigurationProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
snowflakeRole :: Maybe (Value Text)
haddock_workaround_ :: ()
snowflakeRole :: Maybe (Value Text)
..}
instance Property "SnowflakeRole" SnowflakeRoleConfigurationProperty where
  type PropertyType "SnowflakeRole" SnowflakeRoleConfigurationProperty = Value Prelude.Text
  set :: PropertyType "SnowflakeRole" SnowflakeRoleConfigurationProperty
-> SnowflakeRoleConfigurationProperty
-> SnowflakeRoleConfigurationProperty
set PropertyType "SnowflakeRole" SnowflakeRoleConfigurationProperty
newValue SnowflakeRoleConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: SnowflakeRoleConfigurationProperty -> ()
enabled :: SnowflakeRoleConfigurationProperty -> Maybe (Value Bool)
snowflakeRole :: SnowflakeRoleConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
snowflakeRole :: Maybe (Value Text)
..}
    = SnowflakeRoleConfigurationProperty
        {snowflakeRole :: Maybe (Value Text)
snowflakeRole = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SnowflakeRole" SnowflakeRoleConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}