packages feed

stratosphere-cleanrooms-1.0.0: gen/Stratosphere/CleanRooms/ConfiguredTableAssociation/ConfiguredTableAssociationAnalysisRuleProperty.hs

module Stratosphere.CleanRooms.ConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleProperty (
        module Exports, ConfiguredTableAssociationAnalysisRuleProperty(..),
        mkConfiguredTableAssociationAnalysisRuleProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CleanRooms.ConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConfiguredTableAssociationAnalysisRuleProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrule.html>
    ConfiguredTableAssociationAnalysisRuleProperty {haddock_workaround_ :: (),
                                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrule.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrule-policy>
                                                    policy :: ConfiguredTableAssociationAnalysisRulePolicyProperty,
                                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrule.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrule-type>
                                                    type' :: (Value Prelude.Text)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkConfiguredTableAssociationAnalysisRuleProperty ::
  ConfiguredTableAssociationAnalysisRulePolicyProperty
  -> Value Prelude.Text
     -> ConfiguredTableAssociationAnalysisRuleProperty
mkConfiguredTableAssociationAnalysisRuleProperty policy type'
  = ConfiguredTableAssociationAnalysisRuleProperty
      {haddock_workaround_ = (), policy = policy, type' = type'}
instance ToResourceProperties ConfiguredTableAssociationAnalysisRuleProperty where
  toResourceProperties
    ConfiguredTableAssociationAnalysisRuleProperty {..}
    = ResourceProperties
        {awsType = "AWS::CleanRooms::ConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRule",
         supportsTags = Prelude.False,
         properties = ["Policy" JSON..= policy, "Type" JSON..= type']}
instance JSON.ToJSON ConfiguredTableAssociationAnalysisRuleProperty where
  toJSON ConfiguredTableAssociationAnalysisRuleProperty {..}
    = JSON.object ["Policy" JSON..= policy, "Type" JSON..= type']
instance Property "Policy" ConfiguredTableAssociationAnalysisRuleProperty where
  type PropertyType "Policy" ConfiguredTableAssociationAnalysisRuleProperty = ConfiguredTableAssociationAnalysisRulePolicyProperty
  set newValue ConfiguredTableAssociationAnalysisRuleProperty {..}
    = ConfiguredTableAssociationAnalysisRuleProperty
        {policy = newValue, ..}
instance Property "Type" ConfiguredTableAssociationAnalysisRuleProperty where
  type PropertyType "Type" ConfiguredTableAssociationAnalysisRuleProperty = Value Prelude.Text
  set newValue ConfiguredTableAssociationAnalysisRuleProperty {..}
    = ConfiguredTableAssociationAnalysisRuleProperty
        {type' = newValue, ..}