module Stratosphere.S3.Bucket.MetadataConfigurationProperty (
module Exports, MetadataConfigurationProperty(..),
mkMetadataConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.S3.Bucket.InventoryTableConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.S3.Bucket.JournalTableConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.S3.Bucket.MetadataDestinationProperty as Exports
import Stratosphere.ResourceProperties
data MetadataConfigurationProperty
=
MetadataConfigurationProperty {MetadataConfigurationProperty -> ()
haddock_workaround_ :: (),
MetadataConfigurationProperty -> Maybe MetadataDestinationProperty
destination :: (Prelude.Maybe MetadataDestinationProperty),
MetadataConfigurationProperty
-> Maybe InventoryTableConfigurationProperty
inventoryTableConfiguration :: (Prelude.Maybe InventoryTableConfigurationProperty),
MetadataConfigurationProperty -> JournalTableConfigurationProperty
journalTableConfiguration :: JournalTableConfigurationProperty}
deriving stock (MetadataConfigurationProperty
-> MetadataConfigurationProperty -> Bool
(MetadataConfigurationProperty
-> MetadataConfigurationProperty -> Bool)
-> (MetadataConfigurationProperty
-> MetadataConfigurationProperty -> Bool)
-> Eq MetadataConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MetadataConfigurationProperty
-> MetadataConfigurationProperty -> Bool
== :: MetadataConfigurationProperty
-> MetadataConfigurationProperty -> Bool
$c/= :: MetadataConfigurationProperty
-> MetadataConfigurationProperty -> Bool
/= :: MetadataConfigurationProperty
-> MetadataConfigurationProperty -> Bool
Prelude.Eq, Int -> MetadataConfigurationProperty -> ShowS
[MetadataConfigurationProperty] -> ShowS
MetadataConfigurationProperty -> String
(Int -> MetadataConfigurationProperty -> ShowS)
-> (MetadataConfigurationProperty -> String)
-> ([MetadataConfigurationProperty] -> ShowS)
-> Show MetadataConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MetadataConfigurationProperty -> ShowS
showsPrec :: Int -> MetadataConfigurationProperty -> ShowS
$cshow :: MetadataConfigurationProperty -> String
show :: MetadataConfigurationProperty -> String
$cshowList :: [MetadataConfigurationProperty] -> ShowS
showList :: [MetadataConfigurationProperty] -> ShowS
Prelude.Show)
mkMetadataConfigurationProperty ::
JournalTableConfigurationProperty -> MetadataConfigurationProperty
mkMetadataConfigurationProperty :: JournalTableConfigurationProperty -> MetadataConfigurationProperty
mkMetadataConfigurationProperty JournalTableConfigurationProperty
journalTableConfiguration
= MetadataConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
journalTableConfiguration :: JournalTableConfigurationProperty
journalTableConfiguration = JournalTableConfigurationProperty
journalTableConfiguration,
destination :: Maybe MetadataDestinationProperty
destination = Maybe MetadataDestinationProperty
forall a. Maybe a
Prelude.Nothing,
inventoryTableConfiguration :: Maybe InventoryTableConfigurationProperty
inventoryTableConfiguration = Maybe InventoryTableConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MetadataConfigurationProperty where
toResourceProperties :: MetadataConfigurationProperty -> ResourceProperties
toResourceProperties MetadataConfigurationProperty {Maybe MetadataDestinationProperty
Maybe InventoryTableConfigurationProperty
()
JournalTableConfigurationProperty
haddock_workaround_ :: MetadataConfigurationProperty -> ()
destination :: MetadataConfigurationProperty -> Maybe MetadataDestinationProperty
inventoryTableConfiguration :: MetadataConfigurationProperty
-> Maybe InventoryTableConfigurationProperty
journalTableConfiguration :: MetadataConfigurationProperty -> JournalTableConfigurationProperty
haddock_workaround_ :: ()
destination :: Maybe MetadataDestinationProperty
inventoryTableConfiguration :: Maybe InventoryTableConfigurationProperty
journalTableConfiguration :: JournalTableConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::S3::Bucket.MetadataConfiguration",
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
"JournalTableConfiguration" Key -> JournalTableConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= JournalTableConfigurationProperty
journalTableConfiguration]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> MetadataDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Destination" (MetadataDestinationProperty -> (Key, Value))
-> Maybe MetadataDestinationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetadataDestinationProperty
destination,
Key -> InventoryTableConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InventoryTableConfiguration"
(InventoryTableConfigurationProperty -> (Key, Value))
-> Maybe InventoryTableConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InventoryTableConfigurationProperty
inventoryTableConfiguration]))}
instance JSON.ToJSON MetadataConfigurationProperty where
toJSON :: MetadataConfigurationProperty -> Value
toJSON MetadataConfigurationProperty {Maybe MetadataDestinationProperty
Maybe InventoryTableConfigurationProperty
()
JournalTableConfigurationProperty
haddock_workaround_ :: MetadataConfigurationProperty -> ()
destination :: MetadataConfigurationProperty -> Maybe MetadataDestinationProperty
inventoryTableConfiguration :: MetadataConfigurationProperty
-> Maybe InventoryTableConfigurationProperty
journalTableConfiguration :: MetadataConfigurationProperty -> JournalTableConfigurationProperty
haddock_workaround_ :: ()
destination :: Maybe MetadataDestinationProperty
inventoryTableConfiguration :: Maybe InventoryTableConfigurationProperty
journalTableConfiguration :: JournalTableConfigurationProperty
..}
= [(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
"JournalTableConfiguration" Key -> JournalTableConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= JournalTableConfigurationProperty
journalTableConfiguration]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> MetadataDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Destination" (MetadataDestinationProperty -> (Key, Value))
-> Maybe MetadataDestinationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetadataDestinationProperty
destination,
Key -> InventoryTableConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InventoryTableConfiguration"
(InventoryTableConfigurationProperty -> (Key, Value))
-> Maybe InventoryTableConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InventoryTableConfigurationProperty
inventoryTableConfiguration])))
instance Property "Destination" MetadataConfigurationProperty where
type PropertyType "Destination" MetadataConfigurationProperty = MetadataDestinationProperty
set :: PropertyType "Destination" MetadataConfigurationProperty
-> MetadataConfigurationProperty -> MetadataConfigurationProperty
set PropertyType "Destination" MetadataConfigurationProperty
newValue MetadataConfigurationProperty {Maybe MetadataDestinationProperty
Maybe InventoryTableConfigurationProperty
()
JournalTableConfigurationProperty
haddock_workaround_ :: MetadataConfigurationProperty -> ()
destination :: MetadataConfigurationProperty -> Maybe MetadataDestinationProperty
inventoryTableConfiguration :: MetadataConfigurationProperty
-> Maybe InventoryTableConfigurationProperty
journalTableConfiguration :: MetadataConfigurationProperty -> JournalTableConfigurationProperty
haddock_workaround_ :: ()
destination :: Maybe MetadataDestinationProperty
inventoryTableConfiguration :: Maybe InventoryTableConfigurationProperty
journalTableConfiguration :: JournalTableConfigurationProperty
..}
= MetadataConfigurationProperty
{destination :: Maybe MetadataDestinationProperty
destination = MetadataDestinationProperty -> Maybe MetadataDestinationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Destination" MetadataConfigurationProperty
MetadataDestinationProperty
newValue, Maybe InventoryTableConfigurationProperty
()
JournalTableConfigurationProperty
haddock_workaround_ :: ()
inventoryTableConfiguration :: Maybe InventoryTableConfigurationProperty
journalTableConfiguration :: JournalTableConfigurationProperty
haddock_workaround_ :: ()
inventoryTableConfiguration :: Maybe InventoryTableConfigurationProperty
journalTableConfiguration :: JournalTableConfigurationProperty
..}
instance Property "InventoryTableConfiguration" MetadataConfigurationProperty where
type PropertyType "InventoryTableConfiguration" MetadataConfigurationProperty = InventoryTableConfigurationProperty
set :: PropertyType
"InventoryTableConfiguration" MetadataConfigurationProperty
-> MetadataConfigurationProperty -> MetadataConfigurationProperty
set PropertyType
"InventoryTableConfiguration" MetadataConfigurationProperty
newValue MetadataConfigurationProperty {Maybe MetadataDestinationProperty
Maybe InventoryTableConfigurationProperty
()
JournalTableConfigurationProperty
haddock_workaround_ :: MetadataConfigurationProperty -> ()
destination :: MetadataConfigurationProperty -> Maybe MetadataDestinationProperty
inventoryTableConfiguration :: MetadataConfigurationProperty
-> Maybe InventoryTableConfigurationProperty
journalTableConfiguration :: MetadataConfigurationProperty -> JournalTableConfigurationProperty
haddock_workaround_ :: ()
destination :: Maybe MetadataDestinationProperty
inventoryTableConfiguration :: Maybe InventoryTableConfigurationProperty
journalTableConfiguration :: JournalTableConfigurationProperty
..}
= MetadataConfigurationProperty
{inventoryTableConfiguration :: Maybe InventoryTableConfigurationProperty
inventoryTableConfiguration = InventoryTableConfigurationProperty
-> Maybe InventoryTableConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"InventoryTableConfiguration" MetadataConfigurationProperty
InventoryTableConfigurationProperty
newValue, Maybe MetadataDestinationProperty
()
JournalTableConfigurationProperty
haddock_workaround_ :: ()
destination :: Maybe MetadataDestinationProperty
journalTableConfiguration :: JournalTableConfigurationProperty
haddock_workaround_ :: ()
destination :: Maybe MetadataDestinationProperty
journalTableConfiguration :: JournalTableConfigurationProperty
..}
instance Property "JournalTableConfiguration" MetadataConfigurationProperty where
type PropertyType "JournalTableConfiguration" MetadataConfigurationProperty = JournalTableConfigurationProperty
set :: PropertyType
"JournalTableConfiguration" MetadataConfigurationProperty
-> MetadataConfigurationProperty -> MetadataConfigurationProperty
set PropertyType
"JournalTableConfiguration" MetadataConfigurationProperty
newValue MetadataConfigurationProperty {Maybe MetadataDestinationProperty
Maybe InventoryTableConfigurationProperty
()
JournalTableConfigurationProperty
haddock_workaround_ :: MetadataConfigurationProperty -> ()
destination :: MetadataConfigurationProperty -> Maybe MetadataDestinationProperty
inventoryTableConfiguration :: MetadataConfigurationProperty
-> Maybe InventoryTableConfigurationProperty
journalTableConfiguration :: MetadataConfigurationProperty -> JournalTableConfigurationProperty
haddock_workaround_ :: ()
destination :: Maybe MetadataDestinationProperty
inventoryTableConfiguration :: Maybe InventoryTableConfigurationProperty
journalTableConfiguration :: JournalTableConfigurationProperty
..}
= MetadataConfigurationProperty
{journalTableConfiguration :: JournalTableConfigurationProperty
journalTableConfiguration = PropertyType
"JournalTableConfiguration" MetadataConfigurationProperty
JournalTableConfigurationProperty
newValue, Maybe MetadataDestinationProperty
Maybe InventoryTableConfigurationProperty
()
haddock_workaround_ :: ()
destination :: Maybe MetadataDestinationProperty
inventoryTableConfiguration :: Maybe InventoryTableConfigurationProperty
haddock_workaround_ :: ()
destination :: Maybe MetadataDestinationProperty
inventoryTableConfiguration :: Maybe InventoryTableConfigurationProperty
..}