stratosphere-athena-1.0.0: gen/Stratosphere/Athena/WorkGroup/CustomerContentEncryptionConfigurationProperty.hs
module Stratosphere.Athena.WorkGroup.CustomerContentEncryptionConfigurationProperty (
CustomerContentEncryptionConfigurationProperty(..),
mkCustomerContentEncryptionConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomerContentEncryptionConfigurationProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-customercontentencryptionconfiguration.html>
CustomerContentEncryptionConfigurationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-customercontentencryptionconfiguration.html#cfn-athena-workgroup-customercontentencryptionconfiguration-kmskey>
kmsKey :: (Value Prelude.Text)}
deriving stock (Prelude.Eq, Prelude.Show)
mkCustomerContentEncryptionConfigurationProperty ::
Value Prelude.Text
-> CustomerContentEncryptionConfigurationProperty
mkCustomerContentEncryptionConfigurationProperty kmsKey
= CustomerContentEncryptionConfigurationProperty
{haddock_workaround_ = (), kmsKey = kmsKey}
instance ToResourceProperties CustomerContentEncryptionConfigurationProperty where
toResourceProperties
CustomerContentEncryptionConfigurationProperty {..}
= ResourceProperties
{awsType = "AWS::Athena::WorkGroup.CustomerContentEncryptionConfiguration",
supportsTags = Prelude.False,
properties = ["KmsKey" JSON..= kmsKey]}
instance JSON.ToJSON CustomerContentEncryptionConfigurationProperty where
toJSON CustomerContentEncryptionConfigurationProperty {..}
= JSON.object ["KmsKey" JSON..= kmsKey]
instance Property "KmsKey" CustomerContentEncryptionConfigurationProperty where
type PropertyType "KmsKey" CustomerContentEncryptionConfigurationProperty = Value Prelude.Text
set newValue CustomerContentEncryptionConfigurationProperty {..}
= CustomerContentEncryptionConfigurationProperty
{kmsKey = newValue, ..}