stratosphere-cleanrooms-1.0.0: gen/Stratosphere/CleanRooms/Collaboration/DataEncryptionMetadataProperty.hs
module Stratosphere.CleanRooms.Collaboration.DataEncryptionMetadataProperty (
DataEncryptionMetadataProperty(..),
mkDataEncryptionMetadataProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataEncryptionMetadataProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-collaboration-dataencryptionmetadata.html>
DataEncryptionMetadataProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-collaboration-dataencryptionmetadata.html#cfn-cleanrooms-collaboration-dataencryptionmetadata-allowcleartext>
allowCleartext :: (Value Prelude.Bool),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-collaboration-dataencryptionmetadata.html#cfn-cleanrooms-collaboration-dataencryptionmetadata-allowduplicates>
allowDuplicates :: (Value Prelude.Bool),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-collaboration-dataencryptionmetadata.html#cfn-cleanrooms-collaboration-dataencryptionmetadata-allowjoinsoncolumnswithdifferentnames>
allowJoinsOnColumnsWithDifferentNames :: (Value Prelude.Bool),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-collaboration-dataencryptionmetadata.html#cfn-cleanrooms-collaboration-dataencryptionmetadata-preservenulls>
preserveNulls :: (Value Prelude.Bool)}
deriving stock (Prelude.Eq, Prelude.Show)
mkDataEncryptionMetadataProperty ::
Value Prelude.Bool
-> Value Prelude.Bool
-> Value Prelude.Bool
-> Value Prelude.Bool -> DataEncryptionMetadataProperty
mkDataEncryptionMetadataProperty
allowCleartext
allowDuplicates
allowJoinsOnColumnsWithDifferentNames
preserveNulls
= DataEncryptionMetadataProperty
{haddock_workaround_ = (), allowCleartext = allowCleartext,
allowDuplicates = allowDuplicates,
allowJoinsOnColumnsWithDifferentNames = allowJoinsOnColumnsWithDifferentNames,
preserveNulls = preserveNulls}
instance ToResourceProperties DataEncryptionMetadataProperty where
toResourceProperties DataEncryptionMetadataProperty {..}
= ResourceProperties
{awsType = "AWS::CleanRooms::Collaboration.DataEncryptionMetadata",
supportsTags = Prelude.False,
properties = ["AllowCleartext" JSON..= allowCleartext,
"AllowDuplicates" JSON..= allowDuplicates,
"AllowJoinsOnColumnsWithDifferentNames"
JSON..= allowJoinsOnColumnsWithDifferentNames,
"PreserveNulls" JSON..= preserveNulls]}
instance JSON.ToJSON DataEncryptionMetadataProperty where
toJSON DataEncryptionMetadataProperty {..}
= JSON.object
["AllowCleartext" JSON..= allowCleartext,
"AllowDuplicates" JSON..= allowDuplicates,
"AllowJoinsOnColumnsWithDifferentNames"
JSON..= allowJoinsOnColumnsWithDifferentNames,
"PreserveNulls" JSON..= preserveNulls]
instance Property "AllowCleartext" DataEncryptionMetadataProperty where
type PropertyType "AllowCleartext" DataEncryptionMetadataProperty = Value Prelude.Bool
set newValue DataEncryptionMetadataProperty {..}
= DataEncryptionMetadataProperty {allowCleartext = newValue, ..}
instance Property "AllowDuplicates" DataEncryptionMetadataProperty where
type PropertyType "AllowDuplicates" DataEncryptionMetadataProperty = Value Prelude.Bool
set newValue DataEncryptionMetadataProperty {..}
= DataEncryptionMetadataProperty {allowDuplicates = newValue, ..}
instance Property "AllowJoinsOnColumnsWithDifferentNames" DataEncryptionMetadataProperty where
type PropertyType "AllowJoinsOnColumnsWithDifferentNames" DataEncryptionMetadataProperty = Value Prelude.Bool
set newValue DataEncryptionMetadataProperty {..}
= DataEncryptionMetadataProperty
{allowJoinsOnColumnsWithDifferentNames = newValue, ..}
instance Property "PreserveNulls" DataEncryptionMetadataProperty where
type PropertyType "PreserveNulls" DataEncryptionMetadataProperty = Value Prelude.Bool
set newValue DataEncryptionMetadataProperty {..}
= DataEncryptionMetadataProperty {preserveNulls = newValue, ..}