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