module Stratosphere.AppFlow.Flow.SnowflakeDestinationPropertiesProperty (
module Exports, SnowflakeDestinationPropertiesProperty(..),
mkSnowflakeDestinationPropertiesProperty
) 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 SnowflakeDestinationPropertiesProperty
=
SnowflakeDestinationPropertiesProperty {SnowflakeDestinationPropertiesProperty -> ()
haddock_workaround_ :: (),
SnowflakeDestinationPropertiesProperty -> Maybe (Value Text)
bucketPrefix :: (Prelude.Maybe (Value Prelude.Text)),
SnowflakeDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
errorHandlingConfig :: (Prelude.Maybe ErrorHandlingConfigProperty),
SnowflakeDestinationPropertiesProperty -> Value Text
intermediateBucketName :: (Value Prelude.Text),
SnowflakeDestinationPropertiesProperty -> Value Text
object :: (Value Prelude.Text)}
deriving stock (SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty -> Bool
(SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty -> Bool)
-> (SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty -> Bool)
-> Eq SnowflakeDestinationPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty -> Bool
== :: SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty -> Bool
$c/= :: SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty -> Bool
/= :: SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty -> Bool
Prelude.Eq, Int -> SnowflakeDestinationPropertiesProperty -> ShowS
[SnowflakeDestinationPropertiesProperty] -> ShowS
SnowflakeDestinationPropertiesProperty -> String
(Int -> SnowflakeDestinationPropertiesProperty -> ShowS)
-> (SnowflakeDestinationPropertiesProperty -> String)
-> ([SnowflakeDestinationPropertiesProperty] -> ShowS)
-> Show SnowflakeDestinationPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SnowflakeDestinationPropertiesProperty -> ShowS
showsPrec :: Int -> SnowflakeDestinationPropertiesProperty -> ShowS
$cshow :: SnowflakeDestinationPropertiesProperty -> String
show :: SnowflakeDestinationPropertiesProperty -> String
$cshowList :: [SnowflakeDestinationPropertiesProperty] -> ShowS
showList :: [SnowflakeDestinationPropertiesProperty] -> ShowS
Prelude.Show)
mkSnowflakeDestinationPropertiesProperty ::
Value Prelude.Text
-> Value Prelude.Text -> SnowflakeDestinationPropertiesProperty
mkSnowflakeDestinationPropertiesProperty :: Value Text -> Value Text -> SnowflakeDestinationPropertiesProperty
mkSnowflakeDestinationPropertiesProperty
Value Text
intermediateBucketName
Value Text
object
= SnowflakeDestinationPropertiesProperty
{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 SnowflakeDestinationPropertiesProperty where
toResourceProperties :: SnowflakeDestinationPropertiesProperty -> ResourceProperties
toResourceProperties SnowflakeDestinationPropertiesProperty {Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: SnowflakeDestinationPropertiesProperty -> ()
bucketPrefix :: SnowflakeDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: SnowflakeDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
intermediateBucketName :: SnowflakeDestinationPropertiesProperty -> Value Text
object :: SnowflakeDestinationPropertiesProperty -> 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.SnowflakeDestinationProperties",
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 SnowflakeDestinationPropertiesProperty where
toJSON :: SnowflakeDestinationPropertiesProperty -> Value
toJSON SnowflakeDestinationPropertiesProperty {Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: SnowflakeDestinationPropertiesProperty -> ()
bucketPrefix :: SnowflakeDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: SnowflakeDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
intermediateBucketName :: SnowflakeDestinationPropertiesProperty -> Value Text
object :: SnowflakeDestinationPropertiesProperty -> 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" SnowflakeDestinationPropertiesProperty where
type PropertyType "BucketPrefix" SnowflakeDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType "BucketPrefix" SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty
set PropertyType "BucketPrefix" SnowflakeDestinationPropertiesProperty
newValue SnowflakeDestinationPropertiesProperty {Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: SnowflakeDestinationPropertiesProperty -> ()
bucketPrefix :: SnowflakeDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: SnowflakeDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
intermediateBucketName :: SnowflakeDestinationPropertiesProperty -> Value Text
object :: SnowflakeDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
intermediateBucketName :: Value Text
object :: Value Text
..}
= SnowflakeDestinationPropertiesProperty
{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" SnowflakeDestinationPropertiesProperty
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" SnowflakeDestinationPropertiesProperty where
type PropertyType "ErrorHandlingConfig" SnowflakeDestinationPropertiesProperty = ErrorHandlingConfigProperty
set :: PropertyType
"ErrorHandlingConfig" SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty
set PropertyType
"ErrorHandlingConfig" SnowflakeDestinationPropertiesProperty
newValue SnowflakeDestinationPropertiesProperty {Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: SnowflakeDestinationPropertiesProperty -> ()
bucketPrefix :: SnowflakeDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: SnowflakeDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
intermediateBucketName :: SnowflakeDestinationPropertiesProperty -> Value Text
object :: SnowflakeDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
intermediateBucketName :: Value Text
object :: Value Text
..}
= SnowflakeDestinationPropertiesProperty
{errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
errorHandlingConfig = ErrorHandlingConfigProperty -> Maybe ErrorHandlingConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ErrorHandlingConfig" SnowflakeDestinationPropertiesProperty
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" SnowflakeDestinationPropertiesProperty where
type PropertyType "IntermediateBucketName" SnowflakeDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType
"IntermediateBucketName" SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty
set PropertyType
"IntermediateBucketName" SnowflakeDestinationPropertiesProperty
newValue SnowflakeDestinationPropertiesProperty {Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: SnowflakeDestinationPropertiesProperty -> ()
bucketPrefix :: SnowflakeDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: SnowflakeDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
intermediateBucketName :: SnowflakeDestinationPropertiesProperty -> Value Text
object :: SnowflakeDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
intermediateBucketName :: Value Text
object :: Value Text
..}
= SnowflakeDestinationPropertiesProperty
{intermediateBucketName :: Value Text
intermediateBucketName = PropertyType
"IntermediateBucketName" SnowflakeDestinationPropertiesProperty
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" SnowflakeDestinationPropertiesProperty where
type PropertyType "Object" SnowflakeDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType "Object" SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty
-> SnowflakeDestinationPropertiesProperty
set PropertyType "Object" SnowflakeDestinationPropertiesProperty
newValue SnowflakeDestinationPropertiesProperty {Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: SnowflakeDestinationPropertiesProperty -> ()
bucketPrefix :: SnowflakeDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: SnowflakeDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
intermediateBucketName :: SnowflakeDestinationPropertiesProperty -> Value Text
object :: SnowflakeDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
intermediateBucketName :: Value Text
object :: Value Text
..}
= SnowflakeDestinationPropertiesProperty {object :: Value Text
object = PropertyType "Object" SnowflakeDestinationPropertiesProperty
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
..}