module Stratosphere.AppFlow.Flow.RedshiftDestinationPropertiesProperty (
module Exports, RedshiftDestinationPropertiesProperty(..),
mkRedshiftDestinationPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppFlow.Flow.ErrorHandlingConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RedshiftDestinationPropertiesProperty
=
RedshiftDestinationPropertiesProperty {RedshiftDestinationPropertiesProperty -> ()
haddock_workaround_ :: (),
RedshiftDestinationPropertiesProperty -> Maybe (Value Text)
bucketPrefix :: (Prelude.Maybe (Value Prelude.Text)),
RedshiftDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
errorHandlingConfig :: (Prelude.Maybe ErrorHandlingConfigProperty),
RedshiftDestinationPropertiesProperty -> Value Text
intermediateBucketName :: (Value Prelude.Text),
RedshiftDestinationPropertiesProperty -> Value Text
object :: (Value Prelude.Text)}
deriving stock (RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty -> Bool
(RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty -> Bool)
-> (RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty -> Bool)
-> Eq RedshiftDestinationPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty -> Bool
== :: RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty -> Bool
$c/= :: RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty -> Bool
/= :: RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty -> Bool
Prelude.Eq, Int -> RedshiftDestinationPropertiesProperty -> ShowS
[RedshiftDestinationPropertiesProperty] -> ShowS
RedshiftDestinationPropertiesProperty -> String
(Int -> RedshiftDestinationPropertiesProperty -> ShowS)
-> (RedshiftDestinationPropertiesProperty -> String)
-> ([RedshiftDestinationPropertiesProperty] -> ShowS)
-> Show RedshiftDestinationPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RedshiftDestinationPropertiesProperty -> ShowS
showsPrec :: Int -> RedshiftDestinationPropertiesProperty -> ShowS
$cshow :: RedshiftDestinationPropertiesProperty -> String
show :: RedshiftDestinationPropertiesProperty -> String
$cshowList :: [RedshiftDestinationPropertiesProperty] -> ShowS
showList :: [RedshiftDestinationPropertiesProperty] -> ShowS
Prelude.Show)
mkRedshiftDestinationPropertiesProperty ::
Value Prelude.Text
-> Value Prelude.Text -> RedshiftDestinationPropertiesProperty
mkRedshiftDestinationPropertiesProperty :: Value Text -> Value Text -> RedshiftDestinationPropertiesProperty
mkRedshiftDestinationPropertiesProperty
Value Text
intermediateBucketName
Value Text
object
= RedshiftDestinationPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
intermediateBucketName :: Value Text
intermediateBucketName = Value Text
intermediateBucketName, object :: Value Text
object = Value Text
object,
bucketPrefix :: Maybe (Value Text)
bucketPrefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
errorHandlingConfig = Maybe ErrorHandlingConfigProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RedshiftDestinationPropertiesProperty where
toResourceProperties :: RedshiftDestinationPropertiesProperty -> ResourceProperties
toResourceProperties RedshiftDestinationPropertiesProperty {Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: RedshiftDestinationPropertiesProperty -> ()
bucketPrefix :: RedshiftDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: RedshiftDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
intermediateBucketName :: RedshiftDestinationPropertiesProperty -> Value Text
object :: RedshiftDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
intermediateBucketName :: Value Text
object :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppFlow::Flow.RedshiftDestinationProperties",
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
"IntermediateBucketName" 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
intermediateBucketName,
Key
"Object" 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
object]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"BucketPrefix" (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)
bucketPrefix,
Key -> ErrorHandlingConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ErrorHandlingConfig" (ErrorHandlingConfigProperty -> (Key, Value))
-> Maybe ErrorHandlingConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ErrorHandlingConfigProperty
errorHandlingConfig]))}
instance JSON.ToJSON RedshiftDestinationPropertiesProperty where
toJSON :: RedshiftDestinationPropertiesProperty -> Value
toJSON RedshiftDestinationPropertiesProperty {Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: RedshiftDestinationPropertiesProperty -> ()
bucketPrefix :: RedshiftDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: RedshiftDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
intermediateBucketName :: RedshiftDestinationPropertiesProperty -> Value Text
object :: RedshiftDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
intermediateBucketName :: Value Text
object :: 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
"IntermediateBucketName" 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
intermediateBucketName,
Key
"Object" 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
object]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"BucketPrefix" (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)
bucketPrefix,
Key -> ErrorHandlingConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ErrorHandlingConfig" (ErrorHandlingConfigProperty -> (Key, Value))
-> Maybe ErrorHandlingConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ErrorHandlingConfigProperty
errorHandlingConfig])))
instance Property "BucketPrefix" RedshiftDestinationPropertiesProperty where
type PropertyType "BucketPrefix" RedshiftDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType "BucketPrefix" RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty
set PropertyType "BucketPrefix" RedshiftDestinationPropertiesProperty
newValue RedshiftDestinationPropertiesProperty {Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: RedshiftDestinationPropertiesProperty -> ()
bucketPrefix :: RedshiftDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: RedshiftDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
intermediateBucketName :: RedshiftDestinationPropertiesProperty -> Value Text
object :: RedshiftDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
intermediateBucketName :: Value Text
object :: Value Text
..}
= RedshiftDestinationPropertiesProperty
{bucketPrefix :: Maybe (Value Text)
bucketPrefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BucketPrefix" RedshiftDestinationPropertiesProperty
Value Text
newValue, Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
intermediateBucketName :: Value Text
object :: Value Text
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
intermediateBucketName :: Value Text
object :: Value Text
..}
instance Property "ErrorHandlingConfig" RedshiftDestinationPropertiesProperty where
type PropertyType "ErrorHandlingConfig" RedshiftDestinationPropertiesProperty = ErrorHandlingConfigProperty
set :: PropertyType
"ErrorHandlingConfig" RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty
set PropertyType
"ErrorHandlingConfig" RedshiftDestinationPropertiesProperty
newValue RedshiftDestinationPropertiesProperty {Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: RedshiftDestinationPropertiesProperty -> ()
bucketPrefix :: RedshiftDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: RedshiftDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
intermediateBucketName :: RedshiftDestinationPropertiesProperty -> Value Text
object :: RedshiftDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
intermediateBucketName :: Value Text
object :: Value Text
..}
= RedshiftDestinationPropertiesProperty
{errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
errorHandlingConfig = ErrorHandlingConfigProperty -> Maybe ErrorHandlingConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ErrorHandlingConfig" RedshiftDestinationPropertiesProperty
ErrorHandlingConfigProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
intermediateBucketName :: Value Text
object :: Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
intermediateBucketName :: Value Text
object :: Value Text
..}
instance Property "IntermediateBucketName" RedshiftDestinationPropertiesProperty where
type PropertyType "IntermediateBucketName" RedshiftDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType
"IntermediateBucketName" RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty
set PropertyType
"IntermediateBucketName" RedshiftDestinationPropertiesProperty
newValue RedshiftDestinationPropertiesProperty {Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: RedshiftDestinationPropertiesProperty -> ()
bucketPrefix :: RedshiftDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: RedshiftDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
intermediateBucketName :: RedshiftDestinationPropertiesProperty -> Value Text
object :: RedshiftDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
intermediateBucketName :: Value Text
object :: Value Text
..}
= RedshiftDestinationPropertiesProperty
{intermediateBucketName :: Value Text
intermediateBucketName = PropertyType
"IntermediateBucketName" RedshiftDestinationPropertiesProperty
Value Text
newValue, Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
object :: Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
object :: Value Text
..}
instance Property "Object" RedshiftDestinationPropertiesProperty where
type PropertyType "Object" RedshiftDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType "Object" RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty
-> RedshiftDestinationPropertiesProperty
set PropertyType "Object" RedshiftDestinationPropertiesProperty
newValue RedshiftDestinationPropertiesProperty {Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: RedshiftDestinationPropertiesProperty -> ()
bucketPrefix :: RedshiftDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: RedshiftDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
intermediateBucketName :: RedshiftDestinationPropertiesProperty -> Value Text
object :: RedshiftDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
intermediateBucketName :: Value Text
object :: Value Text
..}
= RedshiftDestinationPropertiesProperty {object :: Value Text
object = PropertyType "Object" RedshiftDestinationPropertiesProperty
Value Text
newValue, Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
intermediateBucketName :: Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
intermediateBucketName :: Value Text
..}