module Stratosphere.S3.Bucket.MetadataTableEncryptionConfigurationProperty (
        MetadataTableEncryptionConfigurationProperty(..),
        mkMetadataTableEncryptionConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MetadataTableEncryptionConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-metadatatableencryptionconfiguration.html>
    MetadataTableEncryptionConfigurationProperty {MetadataTableEncryptionConfigurationProperty -> ()
haddock_workaround_ :: (),
                                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-metadatatableencryptionconfiguration.html#cfn-s3-bucket-metadatatableencryptionconfiguration-kmskeyarn>
                                                  MetadataTableEncryptionConfigurationProperty -> Maybe (Value Text)
kmsKeyArn :: (Prelude.Maybe (Value Prelude.Text)),
                                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-metadatatableencryptionconfiguration.html#cfn-s3-bucket-metadatatableencryptionconfiguration-ssealgorithm>
                                                  MetadataTableEncryptionConfigurationProperty -> Value Text
sseAlgorithm :: (Value Prelude.Text)}
  deriving stock (MetadataTableEncryptionConfigurationProperty
-> MetadataTableEncryptionConfigurationProperty -> Bool
(MetadataTableEncryptionConfigurationProperty
 -> MetadataTableEncryptionConfigurationProperty -> Bool)
-> (MetadataTableEncryptionConfigurationProperty
    -> MetadataTableEncryptionConfigurationProperty -> Bool)
-> Eq MetadataTableEncryptionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MetadataTableEncryptionConfigurationProperty
-> MetadataTableEncryptionConfigurationProperty -> Bool
== :: MetadataTableEncryptionConfigurationProperty
-> MetadataTableEncryptionConfigurationProperty -> Bool
$c/= :: MetadataTableEncryptionConfigurationProperty
-> MetadataTableEncryptionConfigurationProperty -> Bool
/= :: MetadataTableEncryptionConfigurationProperty
-> MetadataTableEncryptionConfigurationProperty -> Bool
Prelude.Eq, Int -> MetadataTableEncryptionConfigurationProperty -> ShowS
[MetadataTableEncryptionConfigurationProperty] -> ShowS
MetadataTableEncryptionConfigurationProperty -> String
(Int -> MetadataTableEncryptionConfigurationProperty -> ShowS)
-> (MetadataTableEncryptionConfigurationProperty -> String)
-> ([MetadataTableEncryptionConfigurationProperty] -> ShowS)
-> Show MetadataTableEncryptionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MetadataTableEncryptionConfigurationProperty -> ShowS
showsPrec :: Int -> MetadataTableEncryptionConfigurationProperty -> ShowS
$cshow :: MetadataTableEncryptionConfigurationProperty -> String
show :: MetadataTableEncryptionConfigurationProperty -> String
$cshowList :: [MetadataTableEncryptionConfigurationProperty] -> ShowS
showList :: [MetadataTableEncryptionConfigurationProperty] -> ShowS
Prelude.Show)
mkMetadataTableEncryptionConfigurationProperty ::
  Value Prelude.Text -> MetadataTableEncryptionConfigurationProperty
mkMetadataTableEncryptionConfigurationProperty :: Value Text -> MetadataTableEncryptionConfigurationProperty
mkMetadataTableEncryptionConfigurationProperty Value Text
sseAlgorithm
  = MetadataTableEncryptionConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), sseAlgorithm :: Value Text
sseAlgorithm = Value Text
sseAlgorithm,
       kmsKeyArn :: Maybe (Value Text)
kmsKeyArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MetadataTableEncryptionConfigurationProperty where
  toResourceProperties :: MetadataTableEncryptionConfigurationProperty -> ResourceProperties
toResourceProperties
    MetadataTableEncryptionConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetadataTableEncryptionConfigurationProperty -> ()
kmsKeyArn :: MetadataTableEncryptionConfigurationProperty -> Maybe (Value Text)
sseAlgorithm :: MetadataTableEncryptionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
sseAlgorithm :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::S3::Bucket.MetadataTableEncryptionConfiguration",
         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
"SseAlgorithm" 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
sseAlgorithm]
                           ([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
"KmsKeyArn" (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)
kmsKeyArn]))}
instance JSON.ToJSON MetadataTableEncryptionConfigurationProperty where
  toJSON :: MetadataTableEncryptionConfigurationProperty -> Value
toJSON MetadataTableEncryptionConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetadataTableEncryptionConfigurationProperty -> ()
kmsKeyArn :: MetadataTableEncryptionConfigurationProperty -> Maybe (Value Text)
sseAlgorithm :: MetadataTableEncryptionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
sseAlgorithm :: 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
"SseAlgorithm" 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
sseAlgorithm]
              ([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
"KmsKeyArn" (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)
kmsKeyArn])))
instance Property "KmsKeyArn" MetadataTableEncryptionConfigurationProperty where
  type PropertyType "KmsKeyArn" MetadataTableEncryptionConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "KmsKeyArn" MetadataTableEncryptionConfigurationProperty
-> MetadataTableEncryptionConfigurationProperty
-> MetadataTableEncryptionConfigurationProperty
set PropertyType
  "KmsKeyArn" MetadataTableEncryptionConfigurationProperty
newValue MetadataTableEncryptionConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetadataTableEncryptionConfigurationProperty -> ()
kmsKeyArn :: MetadataTableEncryptionConfigurationProperty -> Maybe (Value Text)
sseAlgorithm :: MetadataTableEncryptionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
sseAlgorithm :: Value Text
..}
    = MetadataTableEncryptionConfigurationProperty
        {kmsKeyArn :: Maybe (Value Text)
kmsKeyArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "KmsKeyArn" MetadataTableEncryptionConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
sseAlgorithm :: Value Text
haddock_workaround_ :: ()
sseAlgorithm :: Value Text
..}
instance Property "SseAlgorithm" MetadataTableEncryptionConfigurationProperty where
  type PropertyType "SseAlgorithm" MetadataTableEncryptionConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "SseAlgorithm" MetadataTableEncryptionConfigurationProperty
-> MetadataTableEncryptionConfigurationProperty
-> MetadataTableEncryptionConfigurationProperty
set PropertyType
  "SseAlgorithm" MetadataTableEncryptionConfigurationProperty
newValue MetadataTableEncryptionConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetadataTableEncryptionConfigurationProperty -> ()
kmsKeyArn :: MetadataTableEncryptionConfigurationProperty -> Maybe (Value Text)
sseAlgorithm :: MetadataTableEncryptionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
sseAlgorithm :: Value Text
..}
    = MetadataTableEncryptionConfigurationProperty
        {sseAlgorithm :: Value Text
sseAlgorithm = PropertyType
  "SseAlgorithm" MetadataTableEncryptionConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
..}