content: module Stratosphere.Bedrock.DataSource.ServerSideEncryptionConfigurationProperty (
          ServerSideEncryptionConfigurationProperty(..),
          mkServerSideEncryptionConfigurationProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data ServerSideEncryptionConfigurationProperty
    = ServerSideEncryptionConfigurationProperty {kmsKeyArn :: (Prelude.Maybe (Value Prelude.Text))}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkServerSideEncryptionConfigurationProperty ::
    ServerSideEncryptionConfigurationProperty
  mkServerSideEncryptionConfigurationProperty
    = ServerSideEncryptionConfigurationProperty
        {kmsKeyArn = Prelude.Nothing}
  instance ToResourceProperties ServerSideEncryptionConfigurationProperty where
    toResourceProperties ServerSideEncryptionConfigurationProperty {..}
      = ResourceProperties
          {awsType = "AWS::Bedrock::DataSource.ServerSideEncryptionConfiguration",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes [(JSON..=) "KmsKeyArn" Prelude.<$> kmsKeyArn])}
  instance JSON.ToJSON ServerSideEncryptionConfigurationProperty where
    toJSON ServerSideEncryptionConfigurationProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes [(JSON..=) "KmsKeyArn" Prelude.<$> kmsKeyArn]))
  instance Property "KmsKeyArn" ServerSideEncryptionConfigurationProperty where
    type PropertyType "KmsKeyArn" ServerSideEncryptionConfigurationProperty = Value Prelude.Text
    set newValue ServerSideEncryptionConfigurationProperty {}
      = ServerSideEncryptionConfigurationProperty
          {kmsKeyArn = Prelude.pure newValue, ..}