module Stratosphere.QuickSight.DataSource.RedshiftIAMParametersProperty (
RedshiftIAMParametersProperty(..), mkRedshiftIAMParametersProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RedshiftIAMParametersProperty
=
RedshiftIAMParametersProperty {RedshiftIAMParametersProperty -> ()
haddock_workaround_ :: (),
RedshiftIAMParametersProperty -> Maybe (Value Bool)
autoCreateDatabaseUser :: (Prelude.Maybe (Value Prelude.Bool)),
RedshiftIAMParametersProperty -> Maybe (ValueList Text)
databaseGroups :: (Prelude.Maybe (ValueList Prelude.Text)),
RedshiftIAMParametersProperty -> Maybe (Value Text)
databaseUser :: (Prelude.Maybe (Value Prelude.Text)),
RedshiftIAMParametersProperty -> Value Text
roleArn :: (Value Prelude.Text)}
deriving stock (RedshiftIAMParametersProperty
-> RedshiftIAMParametersProperty -> Bool
(RedshiftIAMParametersProperty
-> RedshiftIAMParametersProperty -> Bool)
-> (RedshiftIAMParametersProperty
-> RedshiftIAMParametersProperty -> Bool)
-> Eq RedshiftIAMParametersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RedshiftIAMParametersProperty
-> RedshiftIAMParametersProperty -> Bool
== :: RedshiftIAMParametersProperty
-> RedshiftIAMParametersProperty -> Bool
$c/= :: RedshiftIAMParametersProperty
-> RedshiftIAMParametersProperty -> Bool
/= :: RedshiftIAMParametersProperty
-> RedshiftIAMParametersProperty -> Bool
Prelude.Eq, Int -> RedshiftIAMParametersProperty -> ShowS
[RedshiftIAMParametersProperty] -> ShowS
RedshiftIAMParametersProperty -> String
(Int -> RedshiftIAMParametersProperty -> ShowS)
-> (RedshiftIAMParametersProperty -> String)
-> ([RedshiftIAMParametersProperty] -> ShowS)
-> Show RedshiftIAMParametersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RedshiftIAMParametersProperty -> ShowS
showsPrec :: Int -> RedshiftIAMParametersProperty -> ShowS
$cshow :: RedshiftIAMParametersProperty -> String
show :: RedshiftIAMParametersProperty -> String
$cshowList :: [RedshiftIAMParametersProperty] -> ShowS
showList :: [RedshiftIAMParametersProperty] -> ShowS
Prelude.Show)
mkRedshiftIAMParametersProperty ::
Value Prelude.Text -> RedshiftIAMParametersProperty
mkRedshiftIAMParametersProperty :: Value Text -> RedshiftIAMParametersProperty
mkRedshiftIAMParametersProperty Value Text
roleArn
= RedshiftIAMParametersProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), roleArn :: Value Text
roleArn = Value Text
roleArn,
autoCreateDatabaseUser :: Maybe (Value Bool)
autoCreateDatabaseUser = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
databaseGroups :: Maybe (ValueList Text)
databaseGroups = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, databaseUser :: Maybe (Value Text)
databaseUser = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RedshiftIAMParametersProperty where
toResourceProperties :: RedshiftIAMParametersProperty -> ResourceProperties
toResourceProperties RedshiftIAMParametersProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RedshiftIAMParametersProperty -> ()
autoCreateDatabaseUser :: RedshiftIAMParametersProperty -> Maybe (Value Bool)
databaseGroups :: RedshiftIAMParametersProperty -> Maybe (ValueList Text)
databaseUser :: RedshiftIAMParametersProperty -> Maybe (Value Text)
roleArn :: RedshiftIAMParametersProperty -> Value Text
haddock_workaround_ :: ()
autoCreateDatabaseUser :: Maybe (Value Bool)
databaseGroups :: Maybe (ValueList Text)
databaseUser :: Maybe (Value Text)
roleArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::DataSource.RedshiftIAMParameters",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[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]
([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
"AutoCreateDatabaseUser"
(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)
autoCreateDatabaseUser,
Key -> ValueList 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
"DatabaseGroups" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
databaseGroups,
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
"DatabaseUser" (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)
databaseUser]))}
instance JSON.ToJSON RedshiftIAMParametersProperty where
toJSON :: RedshiftIAMParametersProperty -> Value
toJSON RedshiftIAMParametersProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RedshiftIAMParametersProperty -> ()
autoCreateDatabaseUser :: RedshiftIAMParametersProperty -> Maybe (Value Bool)
databaseGroups :: RedshiftIAMParametersProperty -> Maybe (ValueList Text)
databaseUser :: RedshiftIAMParametersProperty -> Maybe (Value Text)
roleArn :: RedshiftIAMParametersProperty -> Value Text
haddock_workaround_ :: ()
autoCreateDatabaseUser :: Maybe (Value Bool)
databaseGroups :: Maybe (ValueList Text)
databaseUser :: Maybe (Value Text)
roleArn :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[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]
([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
"AutoCreateDatabaseUser"
(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)
autoCreateDatabaseUser,
Key -> ValueList 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
"DatabaseGroups" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
databaseGroups,
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
"DatabaseUser" (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)
databaseUser])))
instance Property "AutoCreateDatabaseUser" RedshiftIAMParametersProperty where
type PropertyType "AutoCreateDatabaseUser" RedshiftIAMParametersProperty = Value Prelude.Bool
set :: PropertyType "AutoCreateDatabaseUser" RedshiftIAMParametersProperty
-> RedshiftIAMParametersProperty -> RedshiftIAMParametersProperty
set PropertyType "AutoCreateDatabaseUser" RedshiftIAMParametersProperty
newValue RedshiftIAMParametersProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RedshiftIAMParametersProperty -> ()
autoCreateDatabaseUser :: RedshiftIAMParametersProperty -> Maybe (Value Bool)
databaseGroups :: RedshiftIAMParametersProperty -> Maybe (ValueList Text)
databaseUser :: RedshiftIAMParametersProperty -> Maybe (Value Text)
roleArn :: RedshiftIAMParametersProperty -> Value Text
haddock_workaround_ :: ()
autoCreateDatabaseUser :: Maybe (Value Bool)
databaseGroups :: Maybe (ValueList Text)
databaseUser :: Maybe (Value Text)
roleArn :: Value Text
..}
= RedshiftIAMParametersProperty
{autoCreateDatabaseUser :: Maybe (Value Bool)
autoCreateDatabaseUser = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AutoCreateDatabaseUser" RedshiftIAMParametersProperty
Value Bool
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
databaseGroups :: Maybe (ValueList Text)
databaseUser :: Maybe (Value Text)
roleArn :: Value Text
haddock_workaround_ :: ()
databaseGroups :: Maybe (ValueList Text)
databaseUser :: Maybe (Value Text)
roleArn :: Value Text
..}
instance Property "DatabaseGroups" RedshiftIAMParametersProperty where
type PropertyType "DatabaseGroups" RedshiftIAMParametersProperty = ValueList Prelude.Text
set :: PropertyType "DatabaseGroups" RedshiftIAMParametersProperty
-> RedshiftIAMParametersProperty -> RedshiftIAMParametersProperty
set PropertyType "DatabaseGroups" RedshiftIAMParametersProperty
newValue RedshiftIAMParametersProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RedshiftIAMParametersProperty -> ()
autoCreateDatabaseUser :: RedshiftIAMParametersProperty -> Maybe (Value Bool)
databaseGroups :: RedshiftIAMParametersProperty -> Maybe (ValueList Text)
databaseUser :: RedshiftIAMParametersProperty -> Maybe (Value Text)
roleArn :: RedshiftIAMParametersProperty -> Value Text
haddock_workaround_ :: ()
autoCreateDatabaseUser :: Maybe (Value Bool)
databaseGroups :: Maybe (ValueList Text)
databaseUser :: Maybe (Value Text)
roleArn :: Value Text
..}
= RedshiftIAMParametersProperty
{databaseGroups :: Maybe (ValueList Text)
databaseGroups = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatabaseGroups" RedshiftIAMParametersProperty
ValueList Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
autoCreateDatabaseUser :: Maybe (Value Bool)
databaseUser :: Maybe (Value Text)
roleArn :: Value Text
haddock_workaround_ :: ()
autoCreateDatabaseUser :: Maybe (Value Bool)
databaseUser :: Maybe (Value Text)
roleArn :: Value Text
..}
instance Property "DatabaseUser" RedshiftIAMParametersProperty where
type PropertyType "DatabaseUser" RedshiftIAMParametersProperty = Value Prelude.Text
set :: PropertyType "DatabaseUser" RedshiftIAMParametersProperty
-> RedshiftIAMParametersProperty -> RedshiftIAMParametersProperty
set PropertyType "DatabaseUser" RedshiftIAMParametersProperty
newValue RedshiftIAMParametersProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RedshiftIAMParametersProperty -> ()
autoCreateDatabaseUser :: RedshiftIAMParametersProperty -> Maybe (Value Bool)
databaseGroups :: RedshiftIAMParametersProperty -> Maybe (ValueList Text)
databaseUser :: RedshiftIAMParametersProperty -> Maybe (Value Text)
roleArn :: RedshiftIAMParametersProperty -> Value Text
haddock_workaround_ :: ()
autoCreateDatabaseUser :: Maybe (Value Bool)
databaseGroups :: Maybe (ValueList Text)
databaseUser :: Maybe (Value Text)
roleArn :: Value Text
..}
= RedshiftIAMParametersProperty
{databaseUser :: Maybe (Value Text)
databaseUser = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatabaseUser" RedshiftIAMParametersProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
autoCreateDatabaseUser :: Maybe (Value Bool)
databaseGroups :: Maybe (ValueList Text)
roleArn :: Value Text
haddock_workaround_ :: ()
autoCreateDatabaseUser :: Maybe (Value Bool)
databaseGroups :: Maybe (ValueList Text)
roleArn :: Value Text
..}
instance Property "RoleArn" RedshiftIAMParametersProperty where
type PropertyType "RoleArn" RedshiftIAMParametersProperty = Value Prelude.Text
set :: PropertyType "RoleArn" RedshiftIAMParametersProperty
-> RedshiftIAMParametersProperty -> RedshiftIAMParametersProperty
set PropertyType "RoleArn" RedshiftIAMParametersProperty
newValue RedshiftIAMParametersProperty {Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RedshiftIAMParametersProperty -> ()
autoCreateDatabaseUser :: RedshiftIAMParametersProperty -> Maybe (Value Bool)
databaseGroups :: RedshiftIAMParametersProperty -> Maybe (ValueList Text)
databaseUser :: RedshiftIAMParametersProperty -> Maybe (Value Text)
roleArn :: RedshiftIAMParametersProperty -> Value Text
haddock_workaround_ :: ()
autoCreateDatabaseUser :: Maybe (Value Bool)
databaseGroups :: Maybe (ValueList Text)
databaseUser :: Maybe (Value Text)
roleArn :: Value Text
..}
= RedshiftIAMParametersProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" RedshiftIAMParametersProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
autoCreateDatabaseUser :: Maybe (Value Bool)
databaseGroups :: Maybe (ValueList Text)
databaseUser :: Maybe (Value Text)
haddock_workaround_ :: ()
autoCreateDatabaseUser :: Maybe (Value Bool)
databaseGroups :: Maybe (ValueList Text)
databaseUser :: Maybe (Value Text)
..}