module Stratosphere.DataZone.Connection.RedshiftPropertiesInputProperty (
        module Exports, RedshiftPropertiesInputProperty(..),
        mkRedshiftPropertiesInputProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DataZone.Connection.RedshiftCredentialsProperty as Exports
import {-# SOURCE #-} Stratosphere.DataZone.Connection.RedshiftLineageSyncConfigurationInputProperty as Exports
import {-# SOURCE #-} Stratosphere.DataZone.Connection.RedshiftStoragePropertiesProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RedshiftPropertiesInputProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-redshiftpropertiesinput.html>
    RedshiftPropertiesInputProperty {RedshiftPropertiesInputProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-redshiftpropertiesinput.html#cfn-datazone-connection-redshiftpropertiesinput-credentials>
                                     RedshiftPropertiesInputProperty
-> Maybe RedshiftCredentialsProperty
credentials :: (Prelude.Maybe RedshiftCredentialsProperty),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-redshiftpropertiesinput.html#cfn-datazone-connection-redshiftpropertiesinput-databasename>
                                     RedshiftPropertiesInputProperty -> Maybe (Value Text)
databaseName :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-redshiftpropertiesinput.html#cfn-datazone-connection-redshiftpropertiesinput-host>
                                     RedshiftPropertiesInputProperty -> Maybe (Value Text)
host :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-redshiftpropertiesinput.html#cfn-datazone-connection-redshiftpropertiesinput-lineagesync>
                                     RedshiftPropertiesInputProperty
-> Maybe RedshiftLineageSyncConfigurationInputProperty
lineageSync :: (Prelude.Maybe RedshiftLineageSyncConfigurationInputProperty),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-redshiftpropertiesinput.html#cfn-datazone-connection-redshiftpropertiesinput-port>
                                     RedshiftPropertiesInputProperty -> Maybe (Value Double)
port :: (Prelude.Maybe (Value Prelude.Double)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-redshiftpropertiesinput.html#cfn-datazone-connection-redshiftpropertiesinput-storage>
                                     RedshiftPropertiesInputProperty
-> Maybe RedshiftStoragePropertiesProperty
storage :: (Prelude.Maybe RedshiftStoragePropertiesProperty)}
  deriving stock (RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty -> Bool
(RedshiftPropertiesInputProperty
 -> RedshiftPropertiesInputProperty -> Bool)
-> (RedshiftPropertiesInputProperty
    -> RedshiftPropertiesInputProperty -> Bool)
-> Eq RedshiftPropertiesInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty -> Bool
== :: RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty -> Bool
$c/= :: RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty -> Bool
/= :: RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty -> Bool
Prelude.Eq, Int -> RedshiftPropertiesInputProperty -> ShowS
[RedshiftPropertiesInputProperty] -> ShowS
RedshiftPropertiesInputProperty -> String
(Int -> RedshiftPropertiesInputProperty -> ShowS)
-> (RedshiftPropertiesInputProperty -> String)
-> ([RedshiftPropertiesInputProperty] -> ShowS)
-> Show RedshiftPropertiesInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RedshiftPropertiesInputProperty -> ShowS
showsPrec :: Int -> RedshiftPropertiesInputProperty -> ShowS
$cshow :: RedshiftPropertiesInputProperty -> String
show :: RedshiftPropertiesInputProperty -> String
$cshowList :: [RedshiftPropertiesInputProperty] -> ShowS
showList :: [RedshiftPropertiesInputProperty] -> ShowS
Prelude.Show)
mkRedshiftPropertiesInputProperty ::
  RedshiftPropertiesInputProperty
mkRedshiftPropertiesInputProperty :: RedshiftPropertiesInputProperty
mkRedshiftPropertiesInputProperty
  = RedshiftPropertiesInputProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), credentials :: Maybe RedshiftCredentialsProperty
credentials = Maybe RedshiftCredentialsProperty
forall a. Maybe a
Prelude.Nothing,
       databaseName :: Maybe (Value Text)
databaseName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, host :: Maybe (Value Text)
host = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
lineageSync = Maybe RedshiftLineageSyncConfigurationInputProperty
forall a. Maybe a
Prelude.Nothing, port :: Maybe (Value Double)
port = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       storage :: Maybe RedshiftStoragePropertiesProperty
storage = Maybe RedshiftStoragePropertiesProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RedshiftPropertiesInputProperty where
  toResourceProperties :: RedshiftPropertiesInputProperty -> ResourceProperties
toResourceProperties RedshiftPropertiesInputProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe RedshiftLineageSyncConfigurationInputProperty
Maybe RedshiftStoragePropertiesProperty
Maybe RedshiftCredentialsProperty
()
haddock_workaround_ :: RedshiftPropertiesInputProperty -> ()
credentials :: RedshiftPropertiesInputProperty
-> Maybe RedshiftCredentialsProperty
databaseName :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
host :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
lineageSync :: RedshiftPropertiesInputProperty
-> Maybe RedshiftLineageSyncConfigurationInputProperty
port :: RedshiftPropertiesInputProperty -> Maybe (Value Double)
storage :: RedshiftPropertiesInputProperty
-> Maybe RedshiftStoragePropertiesProperty
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataZone::Connection.RedshiftPropertiesInput",
         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 -> RedshiftCredentialsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Credentials" (RedshiftCredentialsProperty -> (Key, Value))
-> Maybe RedshiftCredentialsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RedshiftCredentialsProperty
credentials,
                            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
"DatabaseName" (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)
databaseName,
                            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
"Host" (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)
host,
                            Key
-> RedshiftLineageSyncConfigurationInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LineageSync" (RedshiftLineageSyncConfigurationInputProperty -> (Key, Value))
-> Maybe RedshiftLineageSyncConfigurationInputProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RedshiftLineageSyncConfigurationInputProperty
lineageSync,
                            Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Port" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
port,
                            Key -> RedshiftStoragePropertiesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Storage" (RedshiftStoragePropertiesProperty -> (Key, Value))
-> Maybe RedshiftStoragePropertiesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RedshiftStoragePropertiesProperty
storage])}
instance JSON.ToJSON RedshiftPropertiesInputProperty where
  toJSON :: RedshiftPropertiesInputProperty -> Value
toJSON RedshiftPropertiesInputProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe RedshiftLineageSyncConfigurationInputProperty
Maybe RedshiftStoragePropertiesProperty
Maybe RedshiftCredentialsProperty
()
haddock_workaround_ :: RedshiftPropertiesInputProperty -> ()
credentials :: RedshiftPropertiesInputProperty
-> Maybe RedshiftCredentialsProperty
databaseName :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
host :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
lineageSync :: RedshiftPropertiesInputProperty
-> Maybe RedshiftLineageSyncConfigurationInputProperty
port :: RedshiftPropertiesInputProperty -> Maybe (Value Double)
storage :: RedshiftPropertiesInputProperty
-> Maybe RedshiftStoragePropertiesProperty
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
..}
    = [(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 -> RedshiftCredentialsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Credentials" (RedshiftCredentialsProperty -> (Key, Value))
-> Maybe RedshiftCredentialsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RedshiftCredentialsProperty
credentials,
               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
"DatabaseName" (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)
databaseName,
               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
"Host" (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)
host,
               Key
-> RedshiftLineageSyncConfigurationInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LineageSync" (RedshiftLineageSyncConfigurationInputProperty -> (Key, Value))
-> Maybe RedshiftLineageSyncConfigurationInputProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RedshiftLineageSyncConfigurationInputProperty
lineageSync,
               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Port" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
port,
               Key -> RedshiftStoragePropertiesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Storage" (RedshiftStoragePropertiesProperty -> (Key, Value))
-> Maybe RedshiftStoragePropertiesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RedshiftStoragePropertiesProperty
storage]))
instance Property "Credentials" RedshiftPropertiesInputProperty where
  type PropertyType "Credentials" RedshiftPropertiesInputProperty = RedshiftCredentialsProperty
  set :: PropertyType "Credentials" RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty
set PropertyType "Credentials" RedshiftPropertiesInputProperty
newValue RedshiftPropertiesInputProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe RedshiftLineageSyncConfigurationInputProperty
Maybe RedshiftStoragePropertiesProperty
Maybe RedshiftCredentialsProperty
()
haddock_workaround_ :: RedshiftPropertiesInputProperty -> ()
credentials :: RedshiftPropertiesInputProperty
-> Maybe RedshiftCredentialsProperty
databaseName :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
host :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
lineageSync :: RedshiftPropertiesInputProperty
-> Maybe RedshiftLineageSyncConfigurationInputProperty
port :: RedshiftPropertiesInputProperty -> Maybe (Value Double)
storage :: RedshiftPropertiesInputProperty
-> Maybe RedshiftStoragePropertiesProperty
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
..}
    = RedshiftPropertiesInputProperty
        {credentials :: Maybe RedshiftCredentialsProperty
credentials = RedshiftCredentialsProperty -> Maybe RedshiftCredentialsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Credentials" RedshiftPropertiesInputProperty
RedshiftCredentialsProperty
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe RedshiftLineageSyncConfigurationInputProperty
Maybe RedshiftStoragePropertiesProperty
()
haddock_workaround_ :: ()
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
haddock_workaround_ :: ()
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
..}
instance Property "DatabaseName" RedshiftPropertiesInputProperty where
  type PropertyType "DatabaseName" RedshiftPropertiesInputProperty = Value Prelude.Text
  set :: PropertyType "DatabaseName" RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty
set PropertyType "DatabaseName" RedshiftPropertiesInputProperty
newValue RedshiftPropertiesInputProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe RedshiftLineageSyncConfigurationInputProperty
Maybe RedshiftStoragePropertiesProperty
Maybe RedshiftCredentialsProperty
()
haddock_workaround_ :: RedshiftPropertiesInputProperty -> ()
credentials :: RedshiftPropertiesInputProperty
-> Maybe RedshiftCredentialsProperty
databaseName :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
host :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
lineageSync :: RedshiftPropertiesInputProperty
-> Maybe RedshiftLineageSyncConfigurationInputProperty
port :: RedshiftPropertiesInputProperty -> Maybe (Value Double)
storage :: RedshiftPropertiesInputProperty
-> Maybe RedshiftStoragePropertiesProperty
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
..}
    = RedshiftPropertiesInputProperty
        {databaseName :: Maybe (Value Text)
databaseName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatabaseName" RedshiftPropertiesInputProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe RedshiftLineageSyncConfigurationInputProperty
Maybe RedshiftStoragePropertiesProperty
Maybe RedshiftCredentialsProperty
()
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
..}
instance Property "Host" RedshiftPropertiesInputProperty where
  type PropertyType "Host" RedshiftPropertiesInputProperty = Value Prelude.Text
  set :: PropertyType "Host" RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty
set PropertyType "Host" RedshiftPropertiesInputProperty
newValue RedshiftPropertiesInputProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe RedshiftLineageSyncConfigurationInputProperty
Maybe RedshiftStoragePropertiesProperty
Maybe RedshiftCredentialsProperty
()
haddock_workaround_ :: RedshiftPropertiesInputProperty -> ()
credentials :: RedshiftPropertiesInputProperty
-> Maybe RedshiftCredentialsProperty
databaseName :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
host :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
lineageSync :: RedshiftPropertiesInputProperty
-> Maybe RedshiftLineageSyncConfigurationInputProperty
port :: RedshiftPropertiesInputProperty -> Maybe (Value Double)
storage :: RedshiftPropertiesInputProperty
-> Maybe RedshiftStoragePropertiesProperty
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
..}
    = RedshiftPropertiesInputProperty
        {host :: Maybe (Value Text)
host = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Host" RedshiftPropertiesInputProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe RedshiftLineageSyncConfigurationInputProperty
Maybe RedshiftStoragePropertiesProperty
Maybe RedshiftCredentialsProperty
()
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
..}
instance Property "LineageSync" RedshiftPropertiesInputProperty where
  type PropertyType "LineageSync" RedshiftPropertiesInputProperty = RedshiftLineageSyncConfigurationInputProperty
  set :: PropertyType "LineageSync" RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty
set PropertyType "LineageSync" RedshiftPropertiesInputProperty
newValue RedshiftPropertiesInputProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe RedshiftLineageSyncConfigurationInputProperty
Maybe RedshiftStoragePropertiesProperty
Maybe RedshiftCredentialsProperty
()
haddock_workaround_ :: RedshiftPropertiesInputProperty -> ()
credentials :: RedshiftPropertiesInputProperty
-> Maybe RedshiftCredentialsProperty
databaseName :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
host :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
lineageSync :: RedshiftPropertiesInputProperty
-> Maybe RedshiftLineageSyncConfigurationInputProperty
port :: RedshiftPropertiesInputProperty -> Maybe (Value Double)
storage :: RedshiftPropertiesInputProperty
-> Maybe RedshiftStoragePropertiesProperty
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
..}
    = RedshiftPropertiesInputProperty
        {lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
lineageSync = RedshiftLineageSyncConfigurationInputProperty
-> Maybe RedshiftLineageSyncConfigurationInputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LineageSync" RedshiftPropertiesInputProperty
RedshiftLineageSyncConfigurationInputProperty
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe RedshiftStoragePropertiesProperty
Maybe RedshiftCredentialsProperty
()
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
..}
instance Property "Port" RedshiftPropertiesInputProperty where
  type PropertyType "Port" RedshiftPropertiesInputProperty = Value Prelude.Double
  set :: PropertyType "Port" RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty
set PropertyType "Port" RedshiftPropertiesInputProperty
newValue RedshiftPropertiesInputProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe RedshiftLineageSyncConfigurationInputProperty
Maybe RedshiftStoragePropertiesProperty
Maybe RedshiftCredentialsProperty
()
haddock_workaround_ :: RedshiftPropertiesInputProperty -> ()
credentials :: RedshiftPropertiesInputProperty
-> Maybe RedshiftCredentialsProperty
databaseName :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
host :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
lineageSync :: RedshiftPropertiesInputProperty
-> Maybe RedshiftLineageSyncConfigurationInputProperty
port :: RedshiftPropertiesInputProperty -> Maybe (Value Double)
storage :: RedshiftPropertiesInputProperty
-> Maybe RedshiftStoragePropertiesProperty
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
..}
    = RedshiftPropertiesInputProperty
        {port :: Maybe (Value Double)
port = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Port" RedshiftPropertiesInputProperty
Value Double
newValue, Maybe (Value Text)
Maybe RedshiftLineageSyncConfigurationInputProperty
Maybe RedshiftStoragePropertiesProperty
Maybe RedshiftCredentialsProperty
()
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
storage :: Maybe RedshiftStoragePropertiesProperty
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
storage :: Maybe RedshiftStoragePropertiesProperty
..}
instance Property "Storage" RedshiftPropertiesInputProperty where
  type PropertyType "Storage" RedshiftPropertiesInputProperty = RedshiftStoragePropertiesProperty
  set :: PropertyType "Storage" RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty
-> RedshiftPropertiesInputProperty
set PropertyType "Storage" RedshiftPropertiesInputProperty
newValue RedshiftPropertiesInputProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe RedshiftLineageSyncConfigurationInputProperty
Maybe RedshiftStoragePropertiesProperty
Maybe RedshiftCredentialsProperty
()
haddock_workaround_ :: RedshiftPropertiesInputProperty -> ()
credentials :: RedshiftPropertiesInputProperty
-> Maybe RedshiftCredentialsProperty
databaseName :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
host :: RedshiftPropertiesInputProperty -> Maybe (Value Text)
lineageSync :: RedshiftPropertiesInputProperty
-> Maybe RedshiftLineageSyncConfigurationInputProperty
port :: RedshiftPropertiesInputProperty -> Maybe (Value Double)
storage :: RedshiftPropertiesInputProperty
-> Maybe RedshiftStoragePropertiesProperty
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
storage :: Maybe RedshiftStoragePropertiesProperty
..}
    = RedshiftPropertiesInputProperty
        {storage :: Maybe RedshiftStoragePropertiesProperty
storage = RedshiftStoragePropertiesProperty
-> Maybe RedshiftStoragePropertiesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Storage" RedshiftPropertiesInputProperty
RedshiftStoragePropertiesProperty
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe RedshiftLineageSyncConfigurationInputProperty
Maybe RedshiftCredentialsProperty
()
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
haddock_workaround_ :: ()
credentials :: Maybe RedshiftCredentialsProperty
databaseName :: Maybe (Value Text)
host :: Maybe (Value Text)
lineageSync :: Maybe RedshiftLineageSyncConfigurationInputProperty
port :: Maybe (Value Double)
..}