content: module Stratosphere.QBusiness.Application.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
    = EncryptionConfigurationProperty {kmsKeyId :: (Prelude.Maybe (Value Prelude.Text))}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkEncryptionConfigurationProperty ::
    EncryptionConfigurationProperty
  mkEncryptionConfigurationProperty
    = EncryptionConfigurationProperty {kmsKeyId = Prelude.Nothing}
  instance ToResourceProperties EncryptionConfigurationProperty where
    toResourceProperties EncryptionConfigurationProperty {..}
      = ResourceProperties
          {awsType = "AWS::QBusiness::Application.EncryptionConfiguration",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes [(JSON..=) "KmsKeyId" Prelude.<$> kmsKeyId])}
  instance JSON.ToJSON EncryptionConfigurationProperty where
    toJSON EncryptionConfigurationProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes [(JSON..=) "KmsKeyId" Prelude.<$> kmsKeyId]))
  instance Property "KmsKeyId" EncryptionConfigurationProperty where
    type PropertyType "KmsKeyId" EncryptionConfigurationProperty = Value Prelude.Text
    set newValue EncryptionConfigurationProperty {}
      = EncryptionConfigurationProperty
          {kmsKeyId = Prelude.pure newValue, ..}