module Stratosphere.AppFlow.Flow.S3InputFormatConfigProperty (
        S3InputFormatConfigProperty(..), mkS3InputFormatConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3InputFormatConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-s3inputformatconfig.html>
    S3InputFormatConfigProperty {S3InputFormatConfigProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-s3inputformatconfig.html#cfn-appflow-flow-s3inputformatconfig-s3inputfiletype>
                                 S3InputFormatConfigProperty -> Maybe (Value Text)
s3InputFileType :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (S3InputFormatConfigProperty -> S3InputFormatConfigProperty -> Bool
(S3InputFormatConfigProperty
 -> S3InputFormatConfigProperty -> Bool)
-> (S3InputFormatConfigProperty
    -> S3InputFormatConfigProperty -> Bool)
-> Eq S3InputFormatConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3InputFormatConfigProperty -> S3InputFormatConfigProperty -> Bool
== :: S3InputFormatConfigProperty -> S3InputFormatConfigProperty -> Bool
$c/= :: S3InputFormatConfigProperty -> S3InputFormatConfigProperty -> Bool
/= :: S3InputFormatConfigProperty -> S3InputFormatConfigProperty -> Bool
Prelude.Eq, Int -> S3InputFormatConfigProperty -> ShowS
[S3InputFormatConfigProperty] -> ShowS
S3InputFormatConfigProperty -> String
(Int -> S3InputFormatConfigProperty -> ShowS)
-> (S3InputFormatConfigProperty -> String)
-> ([S3InputFormatConfigProperty] -> ShowS)
-> Show S3InputFormatConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3InputFormatConfigProperty -> ShowS
showsPrec :: Int -> S3InputFormatConfigProperty -> ShowS
$cshow :: S3InputFormatConfigProperty -> String
show :: S3InputFormatConfigProperty -> String
$cshowList :: [S3InputFormatConfigProperty] -> ShowS
showList :: [S3InputFormatConfigProperty] -> ShowS
Prelude.Show)
mkS3InputFormatConfigProperty :: S3InputFormatConfigProperty
mkS3InputFormatConfigProperty :: S3InputFormatConfigProperty
mkS3InputFormatConfigProperty
  = S3InputFormatConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), s3InputFileType :: Maybe (Value Text)
s3InputFileType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3InputFormatConfigProperty where
  toResourceProperties :: S3InputFormatConfigProperty -> ResourceProperties
toResourceProperties S3InputFormatConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3InputFormatConfigProperty -> ()
s3InputFileType :: S3InputFormatConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3InputFileType :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppFlow::Flow.S3InputFormatConfig",
         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 -> 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
"S3InputFileType" (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)
s3InputFileType])}
instance JSON.ToJSON S3InputFormatConfigProperty where
  toJSON :: S3InputFormatConfigProperty -> Value
toJSON S3InputFormatConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3InputFormatConfigProperty -> ()
s3InputFileType :: S3InputFormatConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3InputFileType :: Maybe (Value Text)
..}
    = [(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 -> 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
"S3InputFileType" (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)
s3InputFileType]))
instance Property "S3InputFileType" S3InputFormatConfigProperty where
  type PropertyType "S3InputFileType" S3InputFormatConfigProperty = Value Prelude.Text
  set :: PropertyType "S3InputFileType" S3InputFormatConfigProperty
-> S3InputFormatConfigProperty -> S3InputFormatConfigProperty
set PropertyType "S3InputFileType" S3InputFormatConfigProperty
newValue S3InputFormatConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3InputFormatConfigProperty -> ()
s3InputFileType :: S3InputFormatConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3InputFileType :: Maybe (Value Text)
..}
    = S3InputFormatConfigProperty
        {s3InputFileType :: Maybe (Value Text)
s3InputFileType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3InputFileType" S3InputFormatConfigProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}