module Stratosphere.NetworkFirewall.FirewallPolicy.PolicyVariablesProperty ( module Exports, PolicyVariablesProperty(..), mkPolicyVariablesProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.NetworkFirewall.FirewallPolicy.IPSetProperty as Exports import Stratosphere.ResourceProperties data PolicyVariablesProperty = -- | See: PolicyVariablesProperty {haddock_workaround_ :: (), -- | See: ruleVariables :: (Prelude.Maybe (Prelude.Map Prelude.Text IPSetProperty))} deriving stock (Prelude.Eq, Prelude.Show) mkPolicyVariablesProperty :: PolicyVariablesProperty mkPolicyVariablesProperty = PolicyVariablesProperty {haddock_workaround_ = (), ruleVariables = Prelude.Nothing} instance ToResourceProperties PolicyVariablesProperty where toResourceProperties PolicyVariablesProperty {..} = ResourceProperties {awsType = "AWS::NetworkFirewall::FirewallPolicy.PolicyVariables", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "RuleVariables" Prelude.<$> ruleVariables])} instance JSON.ToJSON PolicyVariablesProperty where toJSON PolicyVariablesProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "RuleVariables" Prelude.<$> ruleVariables])) instance Property "RuleVariables" PolicyVariablesProperty where type PropertyType "RuleVariables" PolicyVariablesProperty = Prelude.Map Prelude.Text IPSetProperty set newValue PolicyVariablesProperty {..} = PolicyVariablesProperty {ruleVariables = Prelude.pure newValue, ..}