module Stratosphere.SecurityLake.DataLake.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: EncryptionConfigurationProperty {haddock_workaround_ :: (), -- | See: kmsKeyId :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkEncryptionConfigurationProperty :: EncryptionConfigurationProperty mkEncryptionConfigurationProperty = EncryptionConfigurationProperty {haddock_workaround_ = (), kmsKeyId = Prelude.Nothing} instance ToResourceProperties EncryptionConfigurationProperty where toResourceProperties EncryptionConfigurationProperty {..} = ResourceProperties {awsType = "AWS::SecurityLake::DataLake.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, ..}