module Stratosphere.BCMDataExports.Export.S3DestinationProperty (
module Exports, S3DestinationProperty(..), mkS3DestinationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.BCMDataExports.Export.S3OutputConfigurationsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3DestinationProperty
=
S3DestinationProperty {S3DestinationProperty -> ()
haddock_workaround_ :: (),
S3DestinationProperty -> Value Text
s3Bucket :: (Value Prelude.Text),
S3DestinationProperty -> S3OutputConfigurationsProperty
s3OutputConfigurations :: S3OutputConfigurationsProperty,
S3DestinationProperty -> Value Text
s3Prefix :: (Value Prelude.Text),
S3DestinationProperty -> Value Text
s3Region :: (Value Prelude.Text)}
deriving stock (S3DestinationProperty -> S3DestinationProperty -> Bool
(S3DestinationProperty -> S3DestinationProperty -> Bool)
-> (S3DestinationProperty -> S3DestinationProperty -> Bool)
-> Eq S3DestinationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3DestinationProperty -> S3DestinationProperty -> Bool
== :: S3DestinationProperty -> S3DestinationProperty -> Bool
$c/= :: S3DestinationProperty -> S3DestinationProperty -> Bool
/= :: S3DestinationProperty -> S3DestinationProperty -> Bool
Prelude.Eq, Int -> S3DestinationProperty -> ShowS
[S3DestinationProperty] -> ShowS
S3DestinationProperty -> String
(Int -> S3DestinationProperty -> ShowS)
-> (S3DestinationProperty -> String)
-> ([S3DestinationProperty] -> ShowS)
-> Show S3DestinationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3DestinationProperty -> ShowS
showsPrec :: Int -> S3DestinationProperty -> ShowS
$cshow :: S3DestinationProperty -> String
show :: S3DestinationProperty -> String
$cshowList :: [S3DestinationProperty] -> ShowS
showList :: [S3DestinationProperty] -> ShowS
Prelude.Show)
mkS3DestinationProperty ::
Value Prelude.Text
-> S3OutputConfigurationsProperty
-> Value Prelude.Text
-> Value Prelude.Text -> S3DestinationProperty
mkS3DestinationProperty :: Value Text
-> S3OutputConfigurationsProperty
-> Value Text
-> Value Text
-> S3DestinationProperty
mkS3DestinationProperty
Value Text
s3Bucket
S3OutputConfigurationsProperty
s3OutputConfigurations
Value Text
s3Prefix
Value Text
s3Region
= S3DestinationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), s3Bucket :: Value Text
s3Bucket = Value Text
s3Bucket,
s3OutputConfigurations :: S3OutputConfigurationsProperty
s3OutputConfigurations = S3OutputConfigurationsProperty
s3OutputConfigurations,
s3Prefix :: Value Text
s3Prefix = Value Text
s3Prefix, s3Region :: Value Text
s3Region = Value Text
s3Region}
instance ToResourceProperties S3DestinationProperty where
toResourceProperties :: S3DestinationProperty -> ResourceProperties
toResourceProperties S3DestinationProperty {()
Value Text
S3OutputConfigurationsProperty
haddock_workaround_ :: S3DestinationProperty -> ()
s3Bucket :: S3DestinationProperty -> Value Text
s3OutputConfigurations :: S3DestinationProperty -> S3OutputConfigurationsProperty
s3Prefix :: S3DestinationProperty -> Value Text
s3Region :: S3DestinationProperty -> Value Text
haddock_workaround_ :: ()
s3Bucket :: Value Text
s3OutputConfigurations :: S3OutputConfigurationsProperty
s3Prefix :: Value Text
s3Region :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::BCMDataExports::Export.S3Destination",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"S3Bucket" 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
s3Bucket,
Key
"S3OutputConfigurations" Key -> S3OutputConfigurationsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3OutputConfigurationsProperty
s3OutputConfigurations,
Key
"S3Prefix" 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
s3Prefix, Key
"S3Region" 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
s3Region]}
instance JSON.ToJSON S3DestinationProperty where
toJSON :: S3DestinationProperty -> Value
toJSON S3DestinationProperty {()
Value Text
S3OutputConfigurationsProperty
haddock_workaround_ :: S3DestinationProperty -> ()
s3Bucket :: S3DestinationProperty -> Value Text
s3OutputConfigurations :: S3DestinationProperty -> S3OutputConfigurationsProperty
s3Prefix :: S3DestinationProperty -> Value Text
s3Region :: S3DestinationProperty -> Value Text
haddock_workaround_ :: ()
s3Bucket :: Value Text
s3OutputConfigurations :: S3OutputConfigurationsProperty
s3Prefix :: Value Text
s3Region :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"S3Bucket" 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
s3Bucket,
Key
"S3OutputConfigurations" Key -> S3OutputConfigurationsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3OutputConfigurationsProperty
s3OutputConfigurations,
Key
"S3Prefix" 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
s3Prefix, Key
"S3Region" 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
s3Region]
instance Property "S3Bucket" S3DestinationProperty where
type PropertyType "S3Bucket" S3DestinationProperty = Value Prelude.Text
set :: PropertyType "S3Bucket" S3DestinationProperty
-> S3DestinationProperty -> S3DestinationProperty
set PropertyType "S3Bucket" S3DestinationProperty
newValue S3DestinationProperty {()
Value Text
S3OutputConfigurationsProperty
haddock_workaround_ :: S3DestinationProperty -> ()
s3Bucket :: S3DestinationProperty -> Value Text
s3OutputConfigurations :: S3DestinationProperty -> S3OutputConfigurationsProperty
s3Prefix :: S3DestinationProperty -> Value Text
s3Region :: S3DestinationProperty -> Value Text
haddock_workaround_ :: ()
s3Bucket :: Value Text
s3OutputConfigurations :: S3OutputConfigurationsProperty
s3Prefix :: Value Text
s3Region :: Value Text
..}
= S3DestinationProperty {s3Bucket :: Value Text
s3Bucket = PropertyType "S3Bucket" S3DestinationProperty
Value Text
newValue, ()
Value Text
S3OutputConfigurationsProperty
haddock_workaround_ :: ()
s3OutputConfigurations :: S3OutputConfigurationsProperty
s3Prefix :: Value Text
s3Region :: Value Text
haddock_workaround_ :: ()
s3OutputConfigurations :: S3OutputConfigurationsProperty
s3Prefix :: Value Text
s3Region :: Value Text
..}
instance Property "S3OutputConfigurations" S3DestinationProperty where
type PropertyType "S3OutputConfigurations" S3DestinationProperty = S3OutputConfigurationsProperty
set :: PropertyType "S3OutputConfigurations" S3DestinationProperty
-> S3DestinationProperty -> S3DestinationProperty
set PropertyType "S3OutputConfigurations" S3DestinationProperty
newValue S3DestinationProperty {()
Value Text
S3OutputConfigurationsProperty
haddock_workaround_ :: S3DestinationProperty -> ()
s3Bucket :: S3DestinationProperty -> Value Text
s3OutputConfigurations :: S3DestinationProperty -> S3OutputConfigurationsProperty
s3Prefix :: S3DestinationProperty -> Value Text
s3Region :: S3DestinationProperty -> Value Text
haddock_workaround_ :: ()
s3Bucket :: Value Text
s3OutputConfigurations :: S3OutputConfigurationsProperty
s3Prefix :: Value Text
s3Region :: Value Text
..}
= S3DestinationProperty {s3OutputConfigurations :: S3OutputConfigurationsProperty
s3OutputConfigurations = PropertyType "S3OutputConfigurations" S3DestinationProperty
S3OutputConfigurationsProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
s3Bucket :: Value Text
s3Prefix :: Value Text
s3Region :: Value Text
haddock_workaround_ :: ()
s3Bucket :: Value Text
s3Prefix :: Value Text
s3Region :: Value Text
..}
instance Property "S3Prefix" S3DestinationProperty where
type PropertyType "S3Prefix" S3DestinationProperty = Value Prelude.Text
set :: PropertyType "S3Prefix" S3DestinationProperty
-> S3DestinationProperty -> S3DestinationProperty
set PropertyType "S3Prefix" S3DestinationProperty
newValue S3DestinationProperty {()
Value Text
S3OutputConfigurationsProperty
haddock_workaround_ :: S3DestinationProperty -> ()
s3Bucket :: S3DestinationProperty -> Value Text
s3OutputConfigurations :: S3DestinationProperty -> S3OutputConfigurationsProperty
s3Prefix :: S3DestinationProperty -> Value Text
s3Region :: S3DestinationProperty -> Value Text
haddock_workaround_ :: ()
s3Bucket :: Value Text
s3OutputConfigurations :: S3OutputConfigurationsProperty
s3Prefix :: Value Text
s3Region :: Value Text
..}
= S3DestinationProperty {s3Prefix :: Value Text
s3Prefix = PropertyType "S3Prefix" S3DestinationProperty
Value Text
newValue, ()
Value Text
S3OutputConfigurationsProperty
haddock_workaround_ :: ()
s3Bucket :: Value Text
s3OutputConfigurations :: S3OutputConfigurationsProperty
s3Region :: Value Text
haddock_workaround_ :: ()
s3Bucket :: Value Text
s3OutputConfigurations :: S3OutputConfigurationsProperty
s3Region :: Value Text
..}
instance Property "S3Region" S3DestinationProperty where
type PropertyType "S3Region" S3DestinationProperty = Value Prelude.Text
set :: PropertyType "S3Region" S3DestinationProperty
-> S3DestinationProperty -> S3DestinationProperty
set PropertyType "S3Region" S3DestinationProperty
newValue S3DestinationProperty {()
Value Text
S3OutputConfigurationsProperty
haddock_workaround_ :: S3DestinationProperty -> ()
s3Bucket :: S3DestinationProperty -> Value Text
s3OutputConfigurations :: S3DestinationProperty -> S3OutputConfigurationsProperty
s3Prefix :: S3DestinationProperty -> Value Text
s3Region :: S3DestinationProperty -> Value Text
haddock_workaround_ :: ()
s3Bucket :: Value Text
s3OutputConfigurations :: S3OutputConfigurationsProperty
s3Prefix :: Value Text
s3Region :: Value Text
..}
= S3DestinationProperty {s3Region :: Value Text
s3Region = PropertyType "S3Region" S3DestinationProperty
Value Text
newValue, ()
Value Text
S3OutputConfigurationsProperty
haddock_workaround_ :: ()
s3Bucket :: Value Text
s3OutputConfigurations :: S3OutputConfigurationsProperty
s3Prefix :: Value Text
haddock_workaround_ :: ()
s3Bucket :: Value Text
s3OutputConfigurations :: S3OutputConfigurationsProperty
s3Prefix :: Value Text
..}