packages feed

stratosphere-config-1.0.0: gen/Stratosphere/Config/ConfigRule/ComplianceProperty.hs

module Stratosphere.Config.ConfigRule.ComplianceProperty (
        ComplianceProperty(..), mkComplianceProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ComplianceProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-compliance.html>
    ComplianceProperty {haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-compliance.html#cfn-config-configrule-compliance-type>
                        type' :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkComplianceProperty :: ComplianceProperty
mkComplianceProperty
  = ComplianceProperty
      {haddock_workaround_ = (), type' = Prelude.Nothing}
instance ToResourceProperties ComplianceProperty where
  toResourceProperties ComplianceProperty {..}
    = ResourceProperties
        {awsType = "AWS::Config::ConfigRule.Compliance",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes [(JSON..=) "Type" Prelude.<$> type'])}
instance JSON.ToJSON ComplianceProperty where
  toJSON ComplianceProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes [(JSON..=) "Type" Prelude.<$> type']))
instance Property "Type" ComplianceProperty where
  type PropertyType "Type" ComplianceProperty = Value Prelude.Text
  set newValue ComplianceProperty {..}
    = ComplianceProperty {type' = Prelude.pure newValue, ..}