packages feed

stratosphere-cleanrooms-1.0.0: gen/Stratosphere/CleanRooms/IdNamespaceAssociation/IdMappingConfigProperty.hs

module Stratosphere.CleanRooms.IdNamespaceAssociation.IdMappingConfigProperty (
        IdMappingConfigProperty(..), mkIdMappingConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IdMappingConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idmappingconfig.html>
    IdMappingConfigProperty {haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idmappingconfig.html#cfn-cleanrooms-idnamespaceassociation-idmappingconfig-allowuseasdimensioncolumn>
                             allowUseAsDimensionColumn :: (Value Prelude.Bool)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkIdMappingConfigProperty ::
  Value Prelude.Bool -> IdMappingConfigProperty
mkIdMappingConfigProperty allowUseAsDimensionColumn
  = IdMappingConfigProperty
      {haddock_workaround_ = (),
       allowUseAsDimensionColumn = allowUseAsDimensionColumn}
instance ToResourceProperties IdMappingConfigProperty where
  toResourceProperties IdMappingConfigProperty {..}
    = ResourceProperties
        {awsType = "AWS::CleanRooms::IdNamespaceAssociation.IdMappingConfig",
         supportsTags = Prelude.False,
         properties = ["AllowUseAsDimensionColumn"
                         JSON..= allowUseAsDimensionColumn]}
instance JSON.ToJSON IdMappingConfigProperty where
  toJSON IdMappingConfigProperty {..}
    = JSON.object
        ["AllowUseAsDimensionColumn" JSON..= allowUseAsDimensionColumn]
instance Property "AllowUseAsDimensionColumn" IdMappingConfigProperty where
  type PropertyType "AllowUseAsDimensionColumn" IdMappingConfigProperty = Value Prelude.Bool
  set newValue IdMappingConfigProperty {..}
    = IdMappingConfigProperty
        {allowUseAsDimensionColumn = newValue, ..}