packages feed

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

module Stratosphere.Config.ConfigRule.CustomPolicyDetailsProperty (
        CustomPolicyDetailsProperty(..), mkCustomPolicyDetailsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomPolicyDetailsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-custompolicydetails.html>
    CustomPolicyDetailsProperty {haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-custompolicydetails.html#cfn-config-configrule-custompolicydetails-enabledebuglogdelivery>
                                 enableDebugLogDelivery :: (Prelude.Maybe (Value Prelude.Bool)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-custompolicydetails.html#cfn-config-configrule-custompolicydetails-policyruntime>
                                 policyRuntime :: (Prelude.Maybe (Value Prelude.Text)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-custompolicydetails.html#cfn-config-configrule-custompolicydetails-policytext>
                                 policyText :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkCustomPolicyDetailsProperty :: CustomPolicyDetailsProperty
mkCustomPolicyDetailsProperty
  = CustomPolicyDetailsProperty
      {haddock_workaround_ = (),
       enableDebugLogDelivery = Prelude.Nothing,
       policyRuntime = Prelude.Nothing, policyText = Prelude.Nothing}
instance ToResourceProperties CustomPolicyDetailsProperty where
  toResourceProperties CustomPolicyDetailsProperty {..}
    = ResourceProperties
        {awsType = "AWS::Config::ConfigRule.CustomPolicyDetails",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "EnableDebugLogDelivery"
                              Prelude.<$> enableDebugLogDelivery,
                            (JSON..=) "PolicyRuntime" Prelude.<$> policyRuntime,
                            (JSON..=) "PolicyText" Prelude.<$> policyText])}
instance JSON.ToJSON CustomPolicyDetailsProperty where
  toJSON CustomPolicyDetailsProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "EnableDebugLogDelivery"
                 Prelude.<$> enableDebugLogDelivery,
               (JSON..=) "PolicyRuntime" Prelude.<$> policyRuntime,
               (JSON..=) "PolicyText" Prelude.<$> policyText]))
instance Property "EnableDebugLogDelivery" CustomPolicyDetailsProperty where
  type PropertyType "EnableDebugLogDelivery" CustomPolicyDetailsProperty = Value Prelude.Bool
  set newValue CustomPolicyDetailsProperty {..}
    = CustomPolicyDetailsProperty
        {enableDebugLogDelivery = Prelude.pure newValue, ..}
instance Property "PolicyRuntime" CustomPolicyDetailsProperty where
  type PropertyType "PolicyRuntime" CustomPolicyDetailsProperty = Value Prelude.Text
  set newValue CustomPolicyDetailsProperty {..}
    = CustomPolicyDetailsProperty
        {policyRuntime = Prelude.pure newValue, ..}
instance Property "PolicyText" CustomPolicyDetailsProperty where
  type PropertyType "PolicyText" CustomPolicyDetailsProperty = Value Prelude.Text
  set newValue CustomPolicyDetailsProperty {..}
    = CustomPolicyDetailsProperty
        {policyText = Prelude.pure newValue, ..}