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