module Stratosphere.AppFlow.Flow.UpsolverDestinationPropertiesProperty (
module Exports, UpsolverDestinationPropertiesProperty(..),
mkUpsolverDestinationPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppFlow.Flow.UpsolverS3OutputFormatConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UpsolverDestinationPropertiesProperty
=
UpsolverDestinationPropertiesProperty {UpsolverDestinationPropertiesProperty -> ()
haddock_workaround_ :: (),
UpsolverDestinationPropertiesProperty -> Value Text
bucketName :: (Value Prelude.Text),
UpsolverDestinationPropertiesProperty -> Maybe (Value Text)
bucketPrefix :: (Prelude.Maybe (Value Prelude.Text)),
UpsolverDestinationPropertiesProperty
-> UpsolverS3OutputFormatConfigProperty
s3OutputFormatConfig :: UpsolverS3OutputFormatConfigProperty}
deriving stock (UpsolverDestinationPropertiesProperty
-> UpsolverDestinationPropertiesProperty -> Bool
(UpsolverDestinationPropertiesProperty
-> UpsolverDestinationPropertiesProperty -> Bool)
-> (UpsolverDestinationPropertiesProperty
-> UpsolverDestinationPropertiesProperty -> Bool)
-> Eq UpsolverDestinationPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UpsolverDestinationPropertiesProperty
-> UpsolverDestinationPropertiesProperty -> Bool
== :: UpsolverDestinationPropertiesProperty
-> UpsolverDestinationPropertiesProperty -> Bool
$c/= :: UpsolverDestinationPropertiesProperty
-> UpsolverDestinationPropertiesProperty -> Bool
/= :: UpsolverDestinationPropertiesProperty
-> UpsolverDestinationPropertiesProperty -> Bool
Prelude.Eq, Int -> UpsolverDestinationPropertiesProperty -> ShowS
[UpsolverDestinationPropertiesProperty] -> ShowS
UpsolverDestinationPropertiesProperty -> String
(Int -> UpsolverDestinationPropertiesProperty -> ShowS)
-> (UpsolverDestinationPropertiesProperty -> String)
-> ([UpsolverDestinationPropertiesProperty] -> ShowS)
-> Show UpsolverDestinationPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UpsolverDestinationPropertiesProperty -> ShowS
showsPrec :: Int -> UpsolverDestinationPropertiesProperty -> ShowS
$cshow :: UpsolverDestinationPropertiesProperty -> String
show :: UpsolverDestinationPropertiesProperty -> String
$cshowList :: [UpsolverDestinationPropertiesProperty] -> ShowS
showList :: [UpsolverDestinationPropertiesProperty] -> ShowS
Prelude.Show)
mkUpsolverDestinationPropertiesProperty ::
Value Prelude.Text
-> UpsolverS3OutputFormatConfigProperty
-> UpsolverDestinationPropertiesProperty
mkUpsolverDestinationPropertiesProperty :: Value Text
-> UpsolverS3OutputFormatConfigProperty
-> UpsolverDestinationPropertiesProperty
mkUpsolverDestinationPropertiesProperty
Value Text
bucketName
UpsolverS3OutputFormatConfigProperty
s3OutputFormatConfig
= UpsolverDestinationPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), bucketName :: Value Text
bucketName = Value Text
bucketName,
s3OutputFormatConfig :: UpsolverS3OutputFormatConfigProperty
s3OutputFormatConfig = UpsolverS3OutputFormatConfigProperty
s3OutputFormatConfig,
bucketPrefix :: Maybe (Value Text)
bucketPrefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties UpsolverDestinationPropertiesProperty where
toResourceProperties :: UpsolverDestinationPropertiesProperty -> ResourceProperties
toResourceProperties UpsolverDestinationPropertiesProperty {Maybe (Value Text)
()
Value Text
UpsolverS3OutputFormatConfigProperty
haddock_workaround_ :: UpsolverDestinationPropertiesProperty -> ()
bucketName :: UpsolverDestinationPropertiesProperty -> Value Text
bucketPrefix :: UpsolverDestinationPropertiesProperty -> Maybe (Value Text)
s3OutputFormatConfig :: UpsolverDestinationPropertiesProperty
-> UpsolverS3OutputFormatConfigProperty
haddock_workaround_ :: ()
bucketName :: Value Text
bucketPrefix :: Maybe (Value Text)
s3OutputFormatConfig :: UpsolverS3OutputFormatConfigProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppFlow::Flow.UpsolverDestinationProperties",
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
"BucketName" 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
bucketName,
Key
"S3OutputFormatConfig" Key -> UpsolverS3OutputFormatConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= UpsolverS3OutputFormatConfigProperty
s3OutputFormatConfig]
([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]))}
instance JSON.ToJSON UpsolverDestinationPropertiesProperty where
toJSON :: UpsolverDestinationPropertiesProperty -> Value
toJSON UpsolverDestinationPropertiesProperty {Maybe (Value Text)
()
Value Text
UpsolverS3OutputFormatConfigProperty
haddock_workaround_ :: UpsolverDestinationPropertiesProperty -> ()
bucketName :: UpsolverDestinationPropertiesProperty -> Value Text
bucketPrefix :: UpsolverDestinationPropertiesProperty -> Maybe (Value Text)
s3OutputFormatConfig :: UpsolverDestinationPropertiesProperty
-> UpsolverS3OutputFormatConfigProperty
haddock_workaround_ :: ()
bucketName :: Value Text
bucketPrefix :: Maybe (Value Text)
s3OutputFormatConfig :: UpsolverS3OutputFormatConfigProperty
..}
= [(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
"BucketName" 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
bucketName,
Key
"S3OutputFormatConfig" Key -> UpsolverS3OutputFormatConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= UpsolverS3OutputFormatConfigProperty
s3OutputFormatConfig]
([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])))
instance Property "BucketName" UpsolverDestinationPropertiesProperty where
type PropertyType "BucketName" UpsolverDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType "BucketName" UpsolverDestinationPropertiesProperty
-> UpsolverDestinationPropertiesProperty
-> UpsolverDestinationPropertiesProperty
set PropertyType "BucketName" UpsolverDestinationPropertiesProperty
newValue UpsolverDestinationPropertiesProperty {Maybe (Value Text)
()
Value Text
UpsolverS3OutputFormatConfigProperty
haddock_workaround_ :: UpsolverDestinationPropertiesProperty -> ()
bucketName :: UpsolverDestinationPropertiesProperty -> Value Text
bucketPrefix :: UpsolverDestinationPropertiesProperty -> Maybe (Value Text)
s3OutputFormatConfig :: UpsolverDestinationPropertiesProperty
-> UpsolverS3OutputFormatConfigProperty
haddock_workaround_ :: ()
bucketName :: Value Text
bucketPrefix :: Maybe (Value Text)
s3OutputFormatConfig :: UpsolverS3OutputFormatConfigProperty
..}
= UpsolverDestinationPropertiesProperty {bucketName :: Value Text
bucketName = PropertyType "BucketName" UpsolverDestinationPropertiesProperty
Value Text
newValue, Maybe (Value Text)
()
UpsolverS3OutputFormatConfigProperty
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
s3OutputFormatConfig :: UpsolverS3OutputFormatConfigProperty
haddock_workaround_ :: ()
bucketPrefix :: Maybe (Value Text)
s3OutputFormatConfig :: UpsolverS3OutputFormatConfigProperty
..}
instance Property "BucketPrefix" UpsolverDestinationPropertiesProperty where
type PropertyType "BucketPrefix" UpsolverDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType "BucketPrefix" UpsolverDestinationPropertiesProperty
-> UpsolverDestinationPropertiesProperty
-> UpsolverDestinationPropertiesProperty
set PropertyType "BucketPrefix" UpsolverDestinationPropertiesProperty
newValue UpsolverDestinationPropertiesProperty {Maybe (Value Text)
()
Value Text
UpsolverS3OutputFormatConfigProperty
haddock_workaround_ :: UpsolverDestinationPropertiesProperty -> ()
bucketName :: UpsolverDestinationPropertiesProperty -> Value Text
bucketPrefix :: UpsolverDestinationPropertiesProperty -> Maybe (Value Text)
s3OutputFormatConfig :: UpsolverDestinationPropertiesProperty
-> UpsolverS3OutputFormatConfigProperty
haddock_workaround_ :: ()
bucketName :: Value Text
bucketPrefix :: Maybe (Value Text)
s3OutputFormatConfig :: UpsolverS3OutputFormatConfigProperty
..}
= UpsolverDestinationPropertiesProperty
{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" UpsolverDestinationPropertiesProperty
Value Text
newValue, ()
Value Text
UpsolverS3OutputFormatConfigProperty
haddock_workaround_ :: ()
bucketName :: Value Text
s3OutputFormatConfig :: UpsolverS3OutputFormatConfigProperty
haddock_workaround_ :: ()
bucketName :: Value Text
s3OutputFormatConfig :: UpsolverS3OutputFormatConfigProperty
..}
instance Property "S3OutputFormatConfig" UpsolverDestinationPropertiesProperty where
type PropertyType "S3OutputFormatConfig" UpsolverDestinationPropertiesProperty = UpsolverS3OutputFormatConfigProperty
set :: PropertyType
"S3OutputFormatConfig" UpsolverDestinationPropertiesProperty
-> UpsolverDestinationPropertiesProperty
-> UpsolverDestinationPropertiesProperty
set PropertyType
"S3OutputFormatConfig" UpsolverDestinationPropertiesProperty
newValue UpsolverDestinationPropertiesProperty {Maybe (Value Text)
()
Value Text
UpsolverS3OutputFormatConfigProperty
haddock_workaround_ :: UpsolverDestinationPropertiesProperty -> ()
bucketName :: UpsolverDestinationPropertiesProperty -> Value Text
bucketPrefix :: UpsolverDestinationPropertiesProperty -> Maybe (Value Text)
s3OutputFormatConfig :: UpsolverDestinationPropertiesProperty
-> UpsolverS3OutputFormatConfigProperty
haddock_workaround_ :: ()
bucketName :: Value Text
bucketPrefix :: Maybe (Value Text)
s3OutputFormatConfig :: UpsolverS3OutputFormatConfigProperty
..}
= UpsolverDestinationPropertiesProperty
{s3OutputFormatConfig :: UpsolverS3OutputFormatConfigProperty
s3OutputFormatConfig = PropertyType
"S3OutputFormatConfig" UpsolverDestinationPropertiesProperty
UpsolverS3OutputFormatConfigProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
bucketPrefix :: Maybe (Value Text)
haddock_workaround_ :: ()
bucketName :: Value Text
bucketPrefix :: Maybe (Value Text)
..}