packages feed

stratosphere-cognito-1.0.0: gen/Stratosphere/Cognito/UserPoolRiskConfigurationAttachment/RiskExceptionConfigurationTypeProperty.hs

module Stratosphere.Cognito.UserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty (
        RiskExceptionConfigurationTypeProperty(..),
        mkRiskExceptionConfigurationTypeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RiskExceptionConfigurationTypeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype.html>
    RiskExceptionConfigurationTypeProperty {haddock_workaround_ :: (),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype-blockediprangelist>
                                            blockedIPRangeList :: (Prelude.Maybe (ValueList Prelude.Text)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype-skippediprangelist>
                                            skippedIPRangeList :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkRiskExceptionConfigurationTypeProperty ::
  RiskExceptionConfigurationTypeProperty
mkRiskExceptionConfigurationTypeProperty
  = RiskExceptionConfigurationTypeProperty
      {haddock_workaround_ = (), blockedIPRangeList = Prelude.Nothing,
       skippedIPRangeList = Prelude.Nothing}
instance ToResourceProperties RiskExceptionConfigurationTypeProperty where
  toResourceProperties RiskExceptionConfigurationTypeProperty {..}
    = ResourceProperties
        {awsType = "AWS::Cognito::UserPoolRiskConfigurationAttachment.RiskExceptionConfigurationType",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "BlockedIPRangeList" Prelude.<$> blockedIPRangeList,
                            (JSON..=) "SkippedIPRangeList" Prelude.<$> skippedIPRangeList])}
instance JSON.ToJSON RiskExceptionConfigurationTypeProperty where
  toJSON RiskExceptionConfigurationTypeProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "BlockedIPRangeList" Prelude.<$> blockedIPRangeList,
               (JSON..=) "SkippedIPRangeList" Prelude.<$> skippedIPRangeList]))
instance Property "BlockedIPRangeList" RiskExceptionConfigurationTypeProperty where
  type PropertyType "BlockedIPRangeList" RiskExceptionConfigurationTypeProperty = ValueList Prelude.Text
  set newValue RiskExceptionConfigurationTypeProperty {..}
    = RiskExceptionConfigurationTypeProperty
        {blockedIPRangeList = Prelude.pure newValue, ..}
instance Property "SkippedIPRangeList" RiskExceptionConfigurationTypeProperty where
  type PropertyType "SkippedIPRangeList" RiskExceptionConfigurationTypeProperty = ValueList Prelude.Text
  set newValue RiskExceptionConfigurationTypeProperty {..}
    = RiskExceptionConfigurationTypeProperty
        {skippedIPRangeList = Prelude.pure newValue, ..}