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