module Stratosphere.S3.Bucket.EncryptionConfigurationProperty (
        EncryptionConfigurationProperty(..),
        mkEncryptionConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EncryptionConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-encryptionconfiguration.html>
    EncryptionConfigurationProperty {EncryptionConfigurationProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-encryptionconfiguration.html#cfn-s3-bucket-encryptionconfiguration-replicakmskeyid>
                                     EncryptionConfigurationProperty -> Value Text
replicaKmsKeyID :: (Value Prelude.Text)}
  deriving stock (EncryptionConfigurationProperty
-> EncryptionConfigurationProperty -> Bool
(EncryptionConfigurationProperty
 -> EncryptionConfigurationProperty -> Bool)
-> (EncryptionConfigurationProperty
    -> EncryptionConfigurationProperty -> Bool)
-> Eq EncryptionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EncryptionConfigurationProperty
-> EncryptionConfigurationProperty -> Bool
== :: EncryptionConfigurationProperty
-> EncryptionConfigurationProperty -> Bool
$c/= :: EncryptionConfigurationProperty
-> EncryptionConfigurationProperty -> Bool
/= :: EncryptionConfigurationProperty
-> EncryptionConfigurationProperty -> Bool
Prelude.Eq, Int -> EncryptionConfigurationProperty -> ShowS
[EncryptionConfigurationProperty] -> ShowS
EncryptionConfigurationProperty -> String
(Int -> EncryptionConfigurationProperty -> ShowS)
-> (EncryptionConfigurationProperty -> String)
-> ([EncryptionConfigurationProperty] -> ShowS)
-> Show EncryptionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EncryptionConfigurationProperty -> ShowS
showsPrec :: Int -> EncryptionConfigurationProperty -> ShowS
$cshow :: EncryptionConfigurationProperty -> String
show :: EncryptionConfigurationProperty -> String
$cshowList :: [EncryptionConfigurationProperty] -> ShowS
showList :: [EncryptionConfigurationProperty] -> ShowS
Prelude.Show)
mkEncryptionConfigurationProperty ::
  Value Prelude.Text -> EncryptionConfigurationProperty
mkEncryptionConfigurationProperty :: Value Text -> EncryptionConfigurationProperty
mkEncryptionConfigurationProperty Value Text
replicaKmsKeyID
  = EncryptionConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), replicaKmsKeyID :: Value Text
replicaKmsKeyID = Value Text
replicaKmsKeyID}
instance ToResourceProperties EncryptionConfigurationProperty where
  toResourceProperties :: EncryptionConfigurationProperty -> ResourceProperties
toResourceProperties EncryptionConfigurationProperty {()
Value Text
haddock_workaround_ :: EncryptionConfigurationProperty -> ()
replicaKmsKeyID :: EncryptionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
replicaKmsKeyID :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::S3::Bucket.EncryptionConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ReplicaKmsKeyID" 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
replicaKmsKeyID]}
instance JSON.ToJSON EncryptionConfigurationProperty where
  toJSON :: EncryptionConfigurationProperty -> Value
toJSON EncryptionConfigurationProperty {()
Value Text
haddock_workaround_ :: EncryptionConfigurationProperty -> ()
replicaKmsKeyID :: EncryptionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
replicaKmsKeyID :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"ReplicaKmsKeyID" 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
replicaKmsKeyID]
instance Property "ReplicaKmsKeyID" EncryptionConfigurationProperty where
  type PropertyType "ReplicaKmsKeyID" EncryptionConfigurationProperty = Value Prelude.Text
  set :: PropertyType "ReplicaKmsKeyID" EncryptionConfigurationProperty
-> EncryptionConfigurationProperty
-> EncryptionConfigurationProperty
set PropertyType "ReplicaKmsKeyID" EncryptionConfigurationProperty
newValue EncryptionConfigurationProperty {()
Value Text
haddock_workaround_ :: EncryptionConfigurationProperty -> ()
replicaKmsKeyID :: EncryptionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
replicaKmsKeyID :: Value Text
..}
    = EncryptionConfigurationProperty {replicaKmsKeyID :: Value Text
replicaKmsKeyID = PropertyType "ReplicaKmsKeyID" EncryptionConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}