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 {CustomerContentEncryptionConfigurationProperty -> ()
haddock_workaround_ :: (),
                                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-customercontentencryptionconfiguration.html#cfn-athena-workgroup-customercontentencryptionconfiguration-kmskey>
                                                    CustomerContentEncryptionConfigurationProperty -> Value Text
kmsKey :: (Value Prelude.Text)}
  deriving stock (CustomerContentEncryptionConfigurationProperty
-> CustomerContentEncryptionConfigurationProperty -> Bool
(CustomerContentEncryptionConfigurationProperty
 -> CustomerContentEncryptionConfigurationProperty -> Bool)
-> (CustomerContentEncryptionConfigurationProperty
    -> CustomerContentEncryptionConfigurationProperty -> Bool)
-> Eq CustomerContentEncryptionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomerContentEncryptionConfigurationProperty
-> CustomerContentEncryptionConfigurationProperty -> Bool
== :: CustomerContentEncryptionConfigurationProperty
-> CustomerContentEncryptionConfigurationProperty -> Bool
$c/= :: CustomerContentEncryptionConfigurationProperty
-> CustomerContentEncryptionConfigurationProperty -> Bool
/= :: CustomerContentEncryptionConfigurationProperty
-> CustomerContentEncryptionConfigurationProperty -> Bool
Prelude.Eq, Int -> CustomerContentEncryptionConfigurationProperty -> ShowS
[CustomerContentEncryptionConfigurationProperty] -> ShowS
CustomerContentEncryptionConfigurationProperty -> String
(Int -> CustomerContentEncryptionConfigurationProperty -> ShowS)
-> (CustomerContentEncryptionConfigurationProperty -> String)
-> ([CustomerContentEncryptionConfigurationProperty] -> ShowS)
-> Show CustomerContentEncryptionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomerContentEncryptionConfigurationProperty -> ShowS
showsPrec :: Int -> CustomerContentEncryptionConfigurationProperty -> ShowS
$cshow :: CustomerContentEncryptionConfigurationProperty -> String
show :: CustomerContentEncryptionConfigurationProperty -> String
$cshowList :: [CustomerContentEncryptionConfigurationProperty] -> ShowS
showList :: [CustomerContentEncryptionConfigurationProperty] -> ShowS
Prelude.Show)
mkCustomerContentEncryptionConfigurationProperty ::
  Value Prelude.Text
  -> CustomerContentEncryptionConfigurationProperty
mkCustomerContentEncryptionConfigurationProperty :: Value Text -> CustomerContentEncryptionConfigurationProperty
mkCustomerContentEncryptionConfigurationProperty Value Text
kmsKey
  = CustomerContentEncryptionConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), kmsKey :: Value Text
kmsKey = Value Text
kmsKey}
instance ToResourceProperties CustomerContentEncryptionConfigurationProperty where
  toResourceProperties :: CustomerContentEncryptionConfigurationProperty
-> ResourceProperties
toResourceProperties
    CustomerContentEncryptionConfigurationProperty {()
Value Text
haddock_workaround_ :: CustomerContentEncryptionConfigurationProperty -> ()
kmsKey :: CustomerContentEncryptionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
kmsKey :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Athena::WorkGroup.CustomerContentEncryptionConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"KmsKey" 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
kmsKey]}
instance JSON.ToJSON CustomerContentEncryptionConfigurationProperty where
  toJSON :: CustomerContentEncryptionConfigurationProperty -> Value
toJSON CustomerContentEncryptionConfigurationProperty {()
Value Text
haddock_workaround_ :: CustomerContentEncryptionConfigurationProperty -> ()
kmsKey :: CustomerContentEncryptionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
kmsKey :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"KmsKey" 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
kmsKey]
instance Property "KmsKey" CustomerContentEncryptionConfigurationProperty where
  type PropertyType "KmsKey" CustomerContentEncryptionConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "KmsKey" CustomerContentEncryptionConfigurationProperty
-> CustomerContentEncryptionConfigurationProperty
-> CustomerContentEncryptionConfigurationProperty
set PropertyType
  "KmsKey" CustomerContentEncryptionConfigurationProperty
newValue CustomerContentEncryptionConfigurationProperty {()
Value Text
haddock_workaround_ :: CustomerContentEncryptionConfigurationProperty -> ()
kmsKey :: CustomerContentEncryptionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
kmsKey :: Value Text
..}
    = CustomerContentEncryptionConfigurationProperty
        {kmsKey :: Value Text
kmsKey = PropertyType
  "KmsKey" CustomerContentEncryptionConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}