{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.WAFV2.Types
(
defaultService,
_WAFAssociatedItemException,
_WAFConfigurationWarningException,
_WAFDuplicateItemException,
_WAFExpiredManagedRuleGroupVersionException,
_WAFInternalErrorException,
_WAFInvalidOperationException,
_WAFInvalidParameterException,
_WAFInvalidPermissionPolicyException,
_WAFInvalidResourceException,
_WAFLimitsExceededException,
_WAFLogDestinationPermissionIssueException,
_WAFNonexistentItemException,
_WAFOptimisticLockException,
_WAFServiceLinkedRoleErrorException,
_WAFSubscriptionNotFoundException,
_WAFTagOperationException,
_WAFTagOperationInternalErrorException,
_WAFUnavailableEntityException,
ActionValue (..),
BodyParsingFallbackBehavior (..),
ComparisonOperator (..),
CountryCode (..),
FailureReason (..),
FallbackBehavior (..),
FilterBehavior (..),
FilterRequirement (..),
ForwardedIPPosition (..),
IPAddressVersion (..),
InspectionLevel (..),
JsonMatchScope (..),
LabelMatchScope (..),
MapMatchScope (..),
OversizeHandling (..),
PayloadType (..),
Platform (..),
PositionalConstraint (..),
RateBasedStatementAggregateKeyType (..),
ResourceType (..),
ResponseContentType (..),
Scope (..),
SensitivityLevel (..),
TextTransformationType (..),
AWSManagedRulesBotControlRuleSet (..),
newAWSManagedRulesBotControlRuleSet,
aWSManagedRulesBotControlRuleSet_inspectionLevel,
ActionCondition (..),
newActionCondition,
actionCondition_action,
All (..),
newAll,
AllQueryArguments (..),
newAllQueryArguments,
AllowAction (..),
newAllowAction,
allowAction_customRequestHandling,
AndStatement (..),
newAndStatement,
andStatement_statements,
BlockAction (..),
newBlockAction,
blockAction_customResponse,
Body (..),
newBody,
body_oversizeHandling,
ByteMatchStatement (..),
newByteMatchStatement,
byteMatchStatement_searchString,
byteMatchStatement_fieldToMatch,
byteMatchStatement_textTransformations,
byteMatchStatement_positionalConstraint,
CaptchaAction (..),
newCaptchaAction,
captchaAction_customRequestHandling,
CaptchaConfig (..),
newCaptchaConfig,
captchaConfig_immunityTimeProperty,
CaptchaResponse (..),
newCaptchaResponse,
captchaResponse_failureReason,
captchaResponse_responseCode,
captchaResponse_solveTimestamp,
ChallengeAction (..),
newChallengeAction,
challengeAction_customRequestHandling,
ChallengeConfig (..),
newChallengeConfig,
challengeConfig_immunityTimeProperty,
ChallengeResponse (..),
newChallengeResponse,
challengeResponse_failureReason,
challengeResponse_responseCode,
challengeResponse_solveTimestamp,
Condition (..),
newCondition,
condition_actionCondition,
condition_labelNameCondition,
CookieMatchPattern (..),
newCookieMatchPattern,
cookieMatchPattern_all,
cookieMatchPattern_excludedCookies,
cookieMatchPattern_includedCookies,
Cookies (..),
newCookies,
cookies_matchPattern,
cookies_matchScope,
cookies_oversizeHandling,
CountAction (..),
newCountAction,
countAction_customRequestHandling,
CustomHTTPHeader (..),
newCustomHTTPHeader,
customHTTPHeader_name,
customHTTPHeader_value,
CustomRequestHandling (..),
newCustomRequestHandling,
customRequestHandling_insertHeaders,
CustomResponse (..),
newCustomResponse,
customResponse_customResponseBodyKey,
customResponse_responseHeaders,
customResponse_responseCode,
CustomResponseBody (..),
newCustomResponseBody,
customResponseBody_contentType,
customResponseBody_content,
DefaultAction (..),
newDefaultAction,
defaultAction_allow,
defaultAction_block,
ExcludedRule (..),
newExcludedRule,
excludedRule_name,
FieldToMatch (..),
newFieldToMatch,
fieldToMatch_allQueryArguments,
fieldToMatch_body,
fieldToMatch_cookies,
fieldToMatch_headers,
fieldToMatch_jsonBody,
fieldToMatch_method,
fieldToMatch_queryString,
fieldToMatch_singleHeader,
fieldToMatch_singleQueryArgument,
fieldToMatch_uriPath,
Filter (..),
newFilter,
filter_behavior,
filter_requirement,
filter_conditions,
FirewallManagerRuleGroup (..),
newFirewallManagerRuleGroup,
firewallManagerRuleGroup_name,
firewallManagerRuleGroup_priority,
firewallManagerRuleGroup_firewallManagerStatement,
firewallManagerRuleGroup_overrideAction,
firewallManagerRuleGroup_visibilityConfig,
FirewallManagerStatement (..),
newFirewallManagerStatement,
firewallManagerStatement_managedRuleGroupStatement,
firewallManagerStatement_ruleGroupReferenceStatement,
ForwardedIPConfig (..),
newForwardedIPConfig,
forwardedIPConfig_headerName,
forwardedIPConfig_fallbackBehavior,
GeoMatchStatement (..),
newGeoMatchStatement,
geoMatchStatement_countryCodes,
geoMatchStatement_forwardedIPConfig,
HTTPHeader (..),
newHTTPHeader,
hTTPHeader_name,
hTTPHeader_value,
HTTPRequest (..),
newHTTPRequest,
hTTPRequest_clientIP,
hTTPRequest_country,
hTTPRequest_hTTPVersion,
hTTPRequest_headers,
hTTPRequest_method,
hTTPRequest_uri,
HeaderMatchPattern (..),
newHeaderMatchPattern,
headerMatchPattern_all,
headerMatchPattern_excludedHeaders,
headerMatchPattern_includedHeaders,
Headers (..),
newHeaders,
headers_matchPattern,
headers_matchScope,
headers_oversizeHandling,
IPSet (..),
newIPSet,
iPSet_description,
iPSet_name,
iPSet_id,
iPSet_arn,
iPSet_iPAddressVersion,
iPSet_addresses,
IPSetForwardedIPConfig (..),
newIPSetForwardedIPConfig,
iPSetForwardedIPConfig_headerName,
iPSetForwardedIPConfig_fallbackBehavior,
iPSetForwardedIPConfig_position,
IPSetReferenceStatement (..),
newIPSetReferenceStatement,
iPSetReferenceStatement_iPSetForwardedIPConfig,
iPSetReferenceStatement_arn,
IPSetSummary (..),
newIPSetSummary,
iPSetSummary_arn,
iPSetSummary_description,
iPSetSummary_id,
iPSetSummary_lockToken,
iPSetSummary_name,
ImmunityTimeProperty (..),
newImmunityTimeProperty,
immunityTimeProperty_immunityTime,
JsonBody (..),
newJsonBody,
jsonBody_invalidFallbackBehavior,
jsonBody_oversizeHandling,
jsonBody_matchPattern,
jsonBody_matchScope,
JsonMatchPattern (..),
newJsonMatchPattern,
jsonMatchPattern_all,
jsonMatchPattern_includedPaths,
Label (..),
newLabel,
label_name,
LabelMatchStatement (..),
newLabelMatchStatement,
labelMatchStatement_scope,
labelMatchStatement_key,
LabelNameCondition (..),
newLabelNameCondition,
labelNameCondition_labelName,
LabelSummary (..),
newLabelSummary,
labelSummary_name,
LoggingConfiguration (..),
newLoggingConfiguration,
loggingConfiguration_loggingFilter,
loggingConfiguration_managedByFirewallManager,
loggingConfiguration_redactedFields,
loggingConfiguration_resourceArn,
loggingConfiguration_logDestinationConfigs,
LoggingFilter (..),
newLoggingFilter,
loggingFilter_filters,
loggingFilter_defaultBehavior,
ManagedRuleGroupConfig (..),
newManagedRuleGroupConfig,
managedRuleGroupConfig_aWSManagedRulesBotControlRuleSet,
managedRuleGroupConfig_loginPath,
managedRuleGroupConfig_passwordField,
managedRuleGroupConfig_payloadType,
managedRuleGroupConfig_usernameField,
ManagedRuleGroupStatement (..),
newManagedRuleGroupStatement,
managedRuleGroupStatement_excludedRules,
managedRuleGroupStatement_managedRuleGroupConfigs,
managedRuleGroupStatement_ruleActionOverrides,
managedRuleGroupStatement_scopeDownStatement,
managedRuleGroupStatement_version,
managedRuleGroupStatement_vendorName,
managedRuleGroupStatement_name,
ManagedRuleGroupSummary (..),
newManagedRuleGroupSummary,
managedRuleGroupSummary_description,
managedRuleGroupSummary_name,
managedRuleGroupSummary_vendorName,
managedRuleGroupSummary_versioningSupported,
ManagedRuleGroupVersion (..),
newManagedRuleGroupVersion,
managedRuleGroupVersion_lastUpdateTimestamp,
managedRuleGroupVersion_name,
ManagedRuleSet (..),
newManagedRuleSet,
managedRuleSet_description,
managedRuleSet_labelNamespace,
managedRuleSet_publishedVersions,
managedRuleSet_recommendedVersion,
managedRuleSet_name,
managedRuleSet_id,
managedRuleSet_arn,
ManagedRuleSetSummary (..),
newManagedRuleSetSummary,
managedRuleSetSummary_arn,
managedRuleSetSummary_description,
managedRuleSetSummary_id,
managedRuleSetSummary_labelNamespace,
managedRuleSetSummary_lockToken,
managedRuleSetSummary_name,
ManagedRuleSetVersion (..),
newManagedRuleSetVersion,
managedRuleSetVersion_associatedRuleGroupArn,
managedRuleSetVersion_capacity,
managedRuleSetVersion_expiryTimestamp,
managedRuleSetVersion_forecastedLifetime,
managedRuleSetVersion_lastUpdateTimestamp,
managedRuleSetVersion_publishTimestamp,
Method (..),
newMethod,
MobileSdkRelease (..),
newMobileSdkRelease,
mobileSdkRelease_releaseNotes,
mobileSdkRelease_releaseVersion,
mobileSdkRelease_tags,
mobileSdkRelease_timestamp,
NoneAction (..),
newNoneAction,
NotStatement (..),
newNotStatement,
notStatement_statement,
OrStatement (..),
newOrStatement,
orStatement_statements,
OverrideAction (..),
newOverrideAction,
overrideAction_count,
overrideAction_none,
PasswordField (..),
newPasswordField,
passwordField_identifier,
QueryString (..),
newQueryString,
RateBasedStatement (..),
newRateBasedStatement,
rateBasedStatement_forwardedIPConfig,
rateBasedStatement_scopeDownStatement,
rateBasedStatement_limit,
rateBasedStatement_aggregateKeyType,
RateBasedStatementManagedKeysIPSet (..),
newRateBasedStatementManagedKeysIPSet,
rateBasedStatementManagedKeysIPSet_addresses,
rateBasedStatementManagedKeysIPSet_iPAddressVersion,
Regex (..),
newRegex,
regex_regexString,
RegexMatchStatement (..),
newRegexMatchStatement,
regexMatchStatement_regexString,
regexMatchStatement_fieldToMatch,
regexMatchStatement_textTransformations,
RegexPatternSet (..),
newRegexPatternSet,
regexPatternSet_arn,
regexPatternSet_description,
regexPatternSet_id,
regexPatternSet_name,
regexPatternSet_regularExpressionList,
RegexPatternSetReferenceStatement (..),
newRegexPatternSetReferenceStatement,
regexPatternSetReferenceStatement_arn,
regexPatternSetReferenceStatement_fieldToMatch,
regexPatternSetReferenceStatement_textTransformations,
RegexPatternSetSummary (..),
newRegexPatternSetSummary,
regexPatternSetSummary_arn,
regexPatternSetSummary_description,
regexPatternSetSummary_id,
regexPatternSetSummary_lockToken,
regexPatternSetSummary_name,
ReleaseSummary (..),
newReleaseSummary,
releaseSummary_releaseVersion,
releaseSummary_timestamp,
Rule (..),
newRule,
rule_action,
rule_captchaConfig,
rule_challengeConfig,
rule_overrideAction,
rule_ruleLabels,
rule_name,
rule_priority,
rule_statement,
rule_visibilityConfig,
RuleAction (..),
newRuleAction,
ruleAction_allow,
ruleAction_block,
ruleAction_captcha,
ruleAction_challenge,
ruleAction_count,
RuleActionOverride (..),
newRuleActionOverride,
ruleActionOverride_name,
ruleActionOverride_actionToUse,
RuleGroup (..),
newRuleGroup,
ruleGroup_availableLabels,
ruleGroup_consumedLabels,
ruleGroup_customResponseBodies,
ruleGroup_description,
ruleGroup_labelNamespace,
ruleGroup_rules,
ruleGroup_name,
ruleGroup_id,
ruleGroup_capacity,
ruleGroup_arn,
ruleGroup_visibilityConfig,
RuleGroupReferenceStatement (..),
newRuleGroupReferenceStatement,
ruleGroupReferenceStatement_excludedRules,
ruleGroupReferenceStatement_ruleActionOverrides,
ruleGroupReferenceStatement_arn,
RuleGroupSummary (..),
newRuleGroupSummary,
ruleGroupSummary_arn,
ruleGroupSummary_description,
ruleGroupSummary_id,
ruleGroupSummary_lockToken,
ruleGroupSummary_name,
RuleSummary (..),
newRuleSummary,
ruleSummary_action,
ruleSummary_name,
SampledHTTPRequest (..),
newSampledHTTPRequest,
sampledHTTPRequest_action,
sampledHTTPRequest_captchaResponse,
sampledHTTPRequest_challengeResponse,
sampledHTTPRequest_labels,
sampledHTTPRequest_overriddenAction,
sampledHTTPRequest_requestHeadersInserted,
sampledHTTPRequest_responseCodeSent,
sampledHTTPRequest_ruleNameWithinRuleGroup,
sampledHTTPRequest_timestamp,
sampledHTTPRequest_request,
sampledHTTPRequest_weight,
SingleHeader (..),
newSingleHeader,
singleHeader_name,
SingleQueryArgument (..),
newSingleQueryArgument,
singleQueryArgument_name,
SizeConstraintStatement (..),
newSizeConstraintStatement,
sizeConstraintStatement_fieldToMatch,
sizeConstraintStatement_comparisonOperator,
sizeConstraintStatement_size,
sizeConstraintStatement_textTransformations,
SqliMatchStatement (..),
newSqliMatchStatement,
sqliMatchStatement_sensitivityLevel,
sqliMatchStatement_fieldToMatch,
sqliMatchStatement_textTransformations,
Statement (..),
newStatement,
statement_andStatement,
statement_byteMatchStatement,
statement_geoMatchStatement,
statement_iPSetReferenceStatement,
statement_labelMatchStatement,
statement_managedRuleGroupStatement,
statement_notStatement,
statement_orStatement,
statement_rateBasedStatement,
statement_regexMatchStatement,
statement_regexPatternSetReferenceStatement,
statement_ruleGroupReferenceStatement,
statement_sizeConstraintStatement,
statement_sqliMatchStatement,
statement_xssMatchStatement,
Tag (..),
newTag,
tag_key,
tag_value,
TagInfoForResource (..),
newTagInfoForResource,
tagInfoForResource_resourceARN,
tagInfoForResource_tagList,
TextTransformation (..),
newTextTransformation,
textTransformation_priority,
textTransformation_type,
TimeWindow (..),
newTimeWindow,
timeWindow_startTime,
timeWindow_endTime,
UriPath (..),
newUriPath,
UsernameField (..),
newUsernameField,
usernameField_identifier,
VersionToPublish (..),
newVersionToPublish,
versionToPublish_associatedRuleGroupArn,
versionToPublish_forecastedLifetime,
VisibilityConfig (..),
newVisibilityConfig,
visibilityConfig_sampledRequestsEnabled,
visibilityConfig_cloudWatchMetricsEnabled,
visibilityConfig_metricName,
WebACL (..),
newWebACL,
webACL_capacity,
webACL_captchaConfig,
webACL_challengeConfig,
webACL_customResponseBodies,
webACL_description,
webACL_labelNamespace,
webACL_managedByFirewallManager,
webACL_postProcessFirewallManagerRuleGroups,
webACL_preProcessFirewallManagerRuleGroups,
webACL_rules,
webACL_tokenDomains,
webACL_name,
webACL_id,
webACL_arn,
webACL_defaultAction,
webACL_visibilityConfig,
WebACLSummary (..),
newWebACLSummary,
webACLSummary_arn,
webACLSummary_description,
webACLSummary_id,
webACLSummary_lockToken,
webACLSummary_name,
XssMatchStatement (..),
newXssMatchStatement,
xssMatchStatement_fieldToMatch,
xssMatchStatement_textTransformations,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
import Amazonka.WAFV2.Types.AWSManagedRulesBotControlRuleSet
import Amazonka.WAFV2.Types.ActionCondition
import Amazonka.WAFV2.Types.ActionValue
import Amazonka.WAFV2.Types.All
import Amazonka.WAFV2.Types.AllQueryArguments
import Amazonka.WAFV2.Types.AllowAction
import Amazonka.WAFV2.Types.AndStatement
import Amazonka.WAFV2.Types.BlockAction
import Amazonka.WAFV2.Types.Body
import Amazonka.WAFV2.Types.BodyParsingFallbackBehavior
import Amazonka.WAFV2.Types.ByteMatchStatement
import Amazonka.WAFV2.Types.CaptchaAction
import Amazonka.WAFV2.Types.CaptchaConfig
import Amazonka.WAFV2.Types.CaptchaResponse
import Amazonka.WAFV2.Types.ChallengeAction
import Amazonka.WAFV2.Types.ChallengeConfig
import Amazonka.WAFV2.Types.ChallengeResponse
import Amazonka.WAFV2.Types.ComparisonOperator
import Amazonka.WAFV2.Types.Condition
import Amazonka.WAFV2.Types.CookieMatchPattern
import Amazonka.WAFV2.Types.Cookies
import Amazonka.WAFV2.Types.CountAction
import Amazonka.WAFV2.Types.CountryCode
import Amazonka.WAFV2.Types.CustomHTTPHeader
import Amazonka.WAFV2.Types.CustomRequestHandling
import Amazonka.WAFV2.Types.CustomResponse
import Amazonka.WAFV2.Types.CustomResponseBody
import Amazonka.WAFV2.Types.DefaultAction
import Amazonka.WAFV2.Types.ExcludedRule
import Amazonka.WAFV2.Types.FailureReason
import Amazonka.WAFV2.Types.FallbackBehavior
import Amazonka.WAFV2.Types.FieldToMatch
import Amazonka.WAFV2.Types.Filter
import Amazonka.WAFV2.Types.FilterBehavior
import Amazonka.WAFV2.Types.FilterRequirement
import Amazonka.WAFV2.Types.FirewallManagerRuleGroup
import Amazonka.WAFV2.Types.FirewallManagerStatement
import Amazonka.WAFV2.Types.ForwardedIPConfig
import Amazonka.WAFV2.Types.ForwardedIPPosition
import Amazonka.WAFV2.Types.GeoMatchStatement
import Amazonka.WAFV2.Types.HTTPHeader
import Amazonka.WAFV2.Types.HTTPRequest
import Amazonka.WAFV2.Types.HeaderMatchPattern
import Amazonka.WAFV2.Types.Headers
import Amazonka.WAFV2.Types.IPAddressVersion
import Amazonka.WAFV2.Types.IPSet
import Amazonka.WAFV2.Types.IPSetForwardedIPConfig
import Amazonka.WAFV2.Types.IPSetReferenceStatement
import Amazonka.WAFV2.Types.IPSetSummary
import Amazonka.WAFV2.Types.ImmunityTimeProperty
import Amazonka.WAFV2.Types.InspectionLevel
import Amazonka.WAFV2.Types.JsonBody
import Amazonka.WAFV2.Types.JsonMatchPattern
import Amazonka.WAFV2.Types.JsonMatchScope
import Amazonka.WAFV2.Types.Label
import Amazonka.WAFV2.Types.LabelMatchScope
import Amazonka.WAFV2.Types.LabelMatchStatement
import Amazonka.WAFV2.Types.LabelNameCondition
import Amazonka.WAFV2.Types.LabelSummary
import Amazonka.WAFV2.Types.LoggingConfiguration
import Amazonka.WAFV2.Types.LoggingFilter
import Amazonka.WAFV2.Types.ManagedRuleGroupConfig
import Amazonka.WAFV2.Types.ManagedRuleGroupStatement
import Amazonka.WAFV2.Types.ManagedRuleGroupSummary
import Amazonka.WAFV2.Types.ManagedRuleGroupVersion
import Amazonka.WAFV2.Types.ManagedRuleSet
import Amazonka.WAFV2.Types.ManagedRuleSetSummary
import Amazonka.WAFV2.Types.ManagedRuleSetVersion
import Amazonka.WAFV2.Types.MapMatchScope
import Amazonka.WAFV2.Types.Method
import Amazonka.WAFV2.Types.MobileSdkRelease
import Amazonka.WAFV2.Types.NoneAction
import Amazonka.WAFV2.Types.NotStatement
import Amazonka.WAFV2.Types.OrStatement
import Amazonka.WAFV2.Types.OverrideAction
import Amazonka.WAFV2.Types.OversizeHandling
import Amazonka.WAFV2.Types.PasswordField
import Amazonka.WAFV2.Types.PayloadType
import Amazonka.WAFV2.Types.Platform
import Amazonka.WAFV2.Types.PositionalConstraint
import Amazonka.WAFV2.Types.QueryString
import Amazonka.WAFV2.Types.RateBasedStatement
import Amazonka.WAFV2.Types.RateBasedStatementAggregateKeyType
import Amazonka.WAFV2.Types.RateBasedStatementManagedKeysIPSet
import Amazonka.WAFV2.Types.Regex
import Amazonka.WAFV2.Types.RegexMatchStatement
import Amazonka.WAFV2.Types.RegexPatternSet
import Amazonka.WAFV2.Types.RegexPatternSetReferenceStatement
import Amazonka.WAFV2.Types.RegexPatternSetSummary
import Amazonka.WAFV2.Types.ReleaseSummary
import Amazonka.WAFV2.Types.ResourceType
import Amazonka.WAFV2.Types.ResponseContentType
import Amazonka.WAFV2.Types.Rule
import Amazonka.WAFV2.Types.RuleAction
import Amazonka.WAFV2.Types.RuleActionOverride
import Amazonka.WAFV2.Types.RuleGroup
import Amazonka.WAFV2.Types.RuleGroupReferenceStatement
import Amazonka.WAFV2.Types.RuleGroupSummary
import Amazonka.WAFV2.Types.RuleSummary
import Amazonka.WAFV2.Types.SampledHTTPRequest
import Amazonka.WAFV2.Types.Scope
import Amazonka.WAFV2.Types.SensitivityLevel
import Amazonka.WAFV2.Types.SingleHeader
import Amazonka.WAFV2.Types.SingleQueryArgument
import Amazonka.WAFV2.Types.SizeConstraintStatement
import Amazonka.WAFV2.Types.SqliMatchStatement
import Amazonka.WAFV2.Types.Statement
import Amazonka.WAFV2.Types.Tag
import Amazonka.WAFV2.Types.TagInfoForResource
import Amazonka.WAFV2.Types.TextTransformation
import Amazonka.WAFV2.Types.TextTransformationType
import Amazonka.WAFV2.Types.TimeWindow
import Amazonka.WAFV2.Types.UriPath
import Amazonka.WAFV2.Types.UsernameField
import Amazonka.WAFV2.Types.VersionToPublish
import Amazonka.WAFV2.Types.VisibilityConfig
import Amazonka.WAFV2.Types.WebACL
import Amazonka.WAFV2.Types.WebACLSummary
import Amazonka.WAFV2.Types.XssMatchStatement
defaultService :: Core.Service
defaultService :: Service
defaultService =
Core.Service
{ $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"WAFV2",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"wafv2",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"wafv2",
$sel:version:Service :: ByteString
Core.version = ByteString
"2019-07-29",
$sel:s3AddressingStyle:Service :: S3AddressingStyle
Core.s3AddressingStyle = S3AddressingStyle
Core.S3AddressingStyleAuto,
$sel:endpoint:Service :: Region -> Endpoint
Core.endpoint = Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:timeout:Service :: Maybe Seconds
Core.timeout = forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:check:Service :: Status -> Bool
Core.check = Status -> Bool
Core.statusSuccess,
$sel:error:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core.error = Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"WAFV2",
$sel:retry:Service :: Retry
Core.retry = Retry
retry
}
where
retry :: Retry
retry =
Core.Exponential
{ $sel:base:Exponential :: Double
Core.base = Double
5.0e-2,
$sel:growth:Exponential :: Int
Core.growth = Int
2,
$sel:attempts:Exponential :: Int
Core.attempts = Int
5,
$sel:check:Exponential :: ServiceError -> Maybe Text
Core.check = forall {a}. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Bool
Prelude.otherwise = forall a. Maybe a
Prelude.Nothing
_WAFAssociatedItemException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFAssociatedItemException :: forall a. AsError a => Fold a ServiceError
_WAFAssociatedItemException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFAssociatedItemException"
_WAFConfigurationWarningException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFConfigurationWarningException :: forall a. AsError a => Fold a ServiceError
_WAFConfigurationWarningException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFConfigurationWarningException"
_WAFDuplicateItemException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFDuplicateItemException :: forall a. AsError a => Fold a ServiceError
_WAFDuplicateItemException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFDuplicateItemException"
_WAFExpiredManagedRuleGroupVersionException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFExpiredManagedRuleGroupVersionException :: forall a. AsError a => Fold a ServiceError
_WAFExpiredManagedRuleGroupVersionException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFExpiredManagedRuleGroupVersionException"
_WAFInternalErrorException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFInternalErrorException :: forall a. AsError a => Fold a ServiceError
_WAFInternalErrorException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFInternalErrorException"
_WAFInvalidOperationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFInvalidOperationException :: forall a. AsError a => Fold a ServiceError
_WAFInvalidOperationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFInvalidOperationException"
_WAFInvalidParameterException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFInvalidParameterException :: forall a. AsError a => Fold a ServiceError
_WAFInvalidParameterException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFInvalidParameterException"
_WAFInvalidPermissionPolicyException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFInvalidPermissionPolicyException :: forall a. AsError a => Fold a ServiceError
_WAFInvalidPermissionPolicyException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFInvalidPermissionPolicyException"
_WAFInvalidResourceException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFInvalidResourceException :: forall a. AsError a => Fold a ServiceError
_WAFInvalidResourceException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFInvalidResourceException"
_WAFLimitsExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFLimitsExceededException :: forall a. AsError a => Fold a ServiceError
_WAFLimitsExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFLimitsExceededException"
_WAFLogDestinationPermissionIssueException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFLogDestinationPermissionIssueException :: forall a. AsError a => Fold a ServiceError
_WAFLogDestinationPermissionIssueException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFLogDestinationPermissionIssueException"
_WAFNonexistentItemException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFNonexistentItemException :: forall a. AsError a => Fold a ServiceError
_WAFNonexistentItemException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFNonexistentItemException"
_WAFOptimisticLockException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFOptimisticLockException :: forall a. AsError a => Fold a ServiceError
_WAFOptimisticLockException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFOptimisticLockException"
_WAFServiceLinkedRoleErrorException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFServiceLinkedRoleErrorException :: forall a. AsError a => Fold a ServiceError
_WAFServiceLinkedRoleErrorException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFServiceLinkedRoleErrorException"
_WAFSubscriptionNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFSubscriptionNotFoundException :: forall a. AsError a => Fold a ServiceError
_WAFSubscriptionNotFoundException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFSubscriptionNotFoundException"
_WAFTagOperationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFTagOperationException :: forall a. AsError a => Fold a ServiceError
_WAFTagOperationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFTagOperationException"
_WAFTagOperationInternalErrorException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFTagOperationInternalErrorException :: forall a. AsError a => Fold a ServiceError
_WAFTagOperationInternalErrorException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFTagOperationInternalErrorException"
_WAFUnavailableEntityException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WAFUnavailableEntityException :: forall a. AsError a => Fold a ServiceError
_WAFUnavailableEntityException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WAFUnavailableEntityException"