@aws-sdk/client-waf 3.30.0 → 3.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/cjs/WAFClient.js +13 -13
- package/dist/cjs/WAFClient.js.map +1 -1
- package/dist/cjs/commands/CreateByteMatchSetCommand.js +3 -3
- package/dist/cjs/commands/CreateByteMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/CreateGeoMatchSetCommand.js +3 -3
- package/dist/cjs/commands/CreateGeoMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/CreateIPSetCommand.js +3 -3
- package/dist/cjs/commands/CreateIPSetCommand.js.map +1 -1
- package/dist/cjs/commands/CreateRateBasedRuleCommand.js +3 -3
- package/dist/cjs/commands/CreateRateBasedRuleCommand.js.map +1 -1
- package/dist/cjs/commands/CreateRegexMatchSetCommand.js +3 -3
- package/dist/cjs/commands/CreateRegexMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/CreateRegexPatternSetCommand.js +3 -3
- package/dist/cjs/commands/CreateRegexPatternSetCommand.js.map +1 -1
- package/dist/cjs/commands/CreateRuleCommand.js +3 -3
- package/dist/cjs/commands/CreateRuleCommand.js.map +1 -1
- package/dist/cjs/commands/CreateRuleGroupCommand.js +3 -3
- package/dist/cjs/commands/CreateRuleGroupCommand.js.map +1 -1
- package/dist/cjs/commands/CreateSizeConstraintSetCommand.js +3 -3
- package/dist/cjs/commands/CreateSizeConstraintSetCommand.js.map +1 -1
- package/dist/cjs/commands/CreateSqlInjectionMatchSetCommand.js +3 -3
- package/dist/cjs/commands/CreateSqlInjectionMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/CreateWebACLCommand.js +3 -3
- package/dist/cjs/commands/CreateWebACLCommand.js.map +1 -1
- package/dist/cjs/commands/CreateWebACLMigrationStackCommand.js +3 -3
- package/dist/cjs/commands/CreateWebACLMigrationStackCommand.js.map +1 -1
- package/dist/cjs/commands/CreateXssMatchSetCommand.js +3 -3
- package/dist/cjs/commands/CreateXssMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteByteMatchSetCommand.js +3 -3
- package/dist/cjs/commands/DeleteByteMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteGeoMatchSetCommand.js +3 -3
- package/dist/cjs/commands/DeleteGeoMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteIPSetCommand.js +3 -3
- package/dist/cjs/commands/DeleteIPSetCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteLoggingConfigurationCommand.js +3 -3
- package/dist/cjs/commands/DeleteLoggingConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/DeletePermissionPolicyCommand.js +3 -3
- package/dist/cjs/commands/DeletePermissionPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteRateBasedRuleCommand.js +3 -3
- package/dist/cjs/commands/DeleteRateBasedRuleCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteRegexMatchSetCommand.js +3 -3
- package/dist/cjs/commands/DeleteRegexMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteRegexPatternSetCommand.js +3 -3
- package/dist/cjs/commands/DeleteRegexPatternSetCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteRuleCommand.js +3 -3
- package/dist/cjs/commands/DeleteRuleCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteRuleGroupCommand.js +3 -3
- package/dist/cjs/commands/DeleteRuleGroupCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteSizeConstraintSetCommand.js +3 -3
- package/dist/cjs/commands/DeleteSizeConstraintSetCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteSqlInjectionMatchSetCommand.js +3 -3
- package/dist/cjs/commands/DeleteSqlInjectionMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteWebACLCommand.js +3 -3
- package/dist/cjs/commands/DeleteWebACLCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteXssMatchSetCommand.js +3 -3
- package/dist/cjs/commands/DeleteXssMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/GetByteMatchSetCommand.js +3 -3
- package/dist/cjs/commands/GetByteMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/GetChangeTokenCommand.js +3 -3
- package/dist/cjs/commands/GetChangeTokenCommand.js.map +1 -1
- package/dist/cjs/commands/GetChangeTokenStatusCommand.js +3 -3
- package/dist/cjs/commands/GetChangeTokenStatusCommand.js.map +1 -1
- package/dist/cjs/commands/GetGeoMatchSetCommand.js +3 -3
- package/dist/cjs/commands/GetGeoMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/GetIPSetCommand.js +3 -3
- package/dist/cjs/commands/GetIPSetCommand.js.map +1 -1
- package/dist/cjs/commands/GetLoggingConfigurationCommand.js +3 -3
- package/dist/cjs/commands/GetLoggingConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/GetPermissionPolicyCommand.js +3 -3
- package/dist/cjs/commands/GetPermissionPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/GetRateBasedRuleCommand.js +3 -3
- package/dist/cjs/commands/GetRateBasedRuleCommand.js.map +1 -1
- package/dist/cjs/commands/GetRateBasedRuleManagedKeysCommand.js +3 -3
- package/dist/cjs/commands/GetRateBasedRuleManagedKeysCommand.js.map +1 -1
- package/dist/cjs/commands/GetRegexMatchSetCommand.js +3 -3
- package/dist/cjs/commands/GetRegexMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/GetRegexPatternSetCommand.js +3 -3
- package/dist/cjs/commands/GetRegexPatternSetCommand.js.map +1 -1
- package/dist/cjs/commands/GetRuleCommand.js +3 -3
- package/dist/cjs/commands/GetRuleCommand.js.map +1 -1
- package/dist/cjs/commands/GetRuleGroupCommand.js +3 -3
- package/dist/cjs/commands/GetRuleGroupCommand.js.map +1 -1
- package/dist/cjs/commands/GetSampledRequestsCommand.js +3 -3
- package/dist/cjs/commands/GetSampledRequestsCommand.js.map +1 -1
- package/dist/cjs/commands/GetSizeConstraintSetCommand.js +3 -3
- package/dist/cjs/commands/GetSizeConstraintSetCommand.js.map +1 -1
- package/dist/cjs/commands/GetSqlInjectionMatchSetCommand.js +3 -3
- package/dist/cjs/commands/GetSqlInjectionMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/GetWebACLCommand.js +3 -3
- package/dist/cjs/commands/GetWebACLCommand.js.map +1 -1
- package/dist/cjs/commands/GetXssMatchSetCommand.js +3 -3
- package/dist/cjs/commands/GetXssMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/ListActivatedRulesInRuleGroupCommand.js +3 -3
- package/dist/cjs/commands/ListActivatedRulesInRuleGroupCommand.js.map +1 -1
- package/dist/cjs/commands/ListByteMatchSetsCommand.js +3 -3
- package/dist/cjs/commands/ListByteMatchSetsCommand.js.map +1 -1
- package/dist/cjs/commands/ListGeoMatchSetsCommand.js +3 -3
- package/dist/cjs/commands/ListGeoMatchSetsCommand.js.map +1 -1
- package/dist/cjs/commands/ListIPSetsCommand.js +3 -3
- package/dist/cjs/commands/ListIPSetsCommand.js.map +1 -1
- package/dist/cjs/commands/ListLoggingConfigurationsCommand.js +3 -3
- package/dist/cjs/commands/ListLoggingConfigurationsCommand.js.map +1 -1
- package/dist/cjs/commands/ListRateBasedRulesCommand.js +3 -3
- package/dist/cjs/commands/ListRateBasedRulesCommand.js.map +1 -1
- package/dist/cjs/commands/ListRegexMatchSetsCommand.js +3 -3
- package/dist/cjs/commands/ListRegexMatchSetsCommand.js.map +1 -1
- package/dist/cjs/commands/ListRegexPatternSetsCommand.js +3 -3
- package/dist/cjs/commands/ListRegexPatternSetsCommand.js.map +1 -1
- package/dist/cjs/commands/ListRuleGroupsCommand.js +3 -3
- package/dist/cjs/commands/ListRuleGroupsCommand.js.map +1 -1
- package/dist/cjs/commands/ListRulesCommand.js +3 -3
- package/dist/cjs/commands/ListRulesCommand.js.map +1 -1
- package/dist/cjs/commands/ListSizeConstraintSetsCommand.js +3 -3
- package/dist/cjs/commands/ListSizeConstraintSetsCommand.js.map +1 -1
- package/dist/cjs/commands/ListSqlInjectionMatchSetsCommand.js +3 -3
- package/dist/cjs/commands/ListSqlInjectionMatchSetsCommand.js.map +1 -1
- package/dist/cjs/commands/ListSubscribedRuleGroupsCommand.js +3 -3
- package/dist/cjs/commands/ListSubscribedRuleGroupsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/ListWebACLsCommand.js +3 -3
- package/dist/cjs/commands/ListWebACLsCommand.js.map +1 -1
- package/dist/cjs/commands/ListXssMatchSetsCommand.js +3 -3
- package/dist/cjs/commands/ListXssMatchSetsCommand.js.map +1 -1
- package/dist/cjs/commands/PutLoggingConfigurationCommand.js +3 -3
- package/dist/cjs/commands/PutLoggingConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/PutPermissionPolicyCommand.js +3 -3
- package/dist/cjs/commands/PutPermissionPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateByteMatchSetCommand.js +3 -3
- package/dist/cjs/commands/UpdateByteMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateGeoMatchSetCommand.js +3 -3
- package/dist/cjs/commands/UpdateGeoMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateIPSetCommand.js +3 -3
- package/dist/cjs/commands/UpdateIPSetCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateRateBasedRuleCommand.js +3 -3
- package/dist/cjs/commands/UpdateRateBasedRuleCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateRegexMatchSetCommand.js +3 -3
- package/dist/cjs/commands/UpdateRegexMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateRegexPatternSetCommand.js +3 -3
- package/dist/cjs/commands/UpdateRegexPatternSetCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateRuleCommand.js +3 -3
- package/dist/cjs/commands/UpdateRuleCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateRuleGroupCommand.js +3 -3
- package/dist/cjs/commands/UpdateRuleGroupCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateSizeConstraintSetCommand.js +3 -3
- package/dist/cjs/commands/UpdateSizeConstraintSetCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateSqlInjectionMatchSetCommand.js +3 -3
- package/dist/cjs/commands/UpdateSqlInjectionMatchSetCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateWebACLCommand.js +3 -3
- package/dist/cjs/commands/UpdateWebACLCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateXssMatchSetCommand.js +3 -3
- package/dist/cjs/commands/UpdateXssMatchSetCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +80 -80
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_json1_1.js +182 -180
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/WAF.js +1 -14
- package/dist/es/WAF.js.map +1 -1
- package/dist/es/WAFClient.js +1 -19
- package/dist/es/WAFClient.js.map +1 -1
- package/dist/es/commands/CreateByteMatchSetCommand.js +2 -58
- package/dist/es/commands/CreateByteMatchSetCommand.js.map +1 -1
- package/dist/es/commands/CreateGeoMatchSetCommand.js +2 -55
- package/dist/es/commands/CreateGeoMatchSetCommand.js.map +1 -1
- package/dist/es/commands/CreateIPSetCommand.js +2 -60
- package/dist/es/commands/CreateIPSetCommand.js.map +1 -1
- package/dist/es/commands/CreateRateBasedRuleCommand.js +2 -120
- package/dist/es/commands/CreateRateBasedRuleCommand.js.map +1 -1
- package/dist/es/commands/CreateRegexMatchSetCommand.js +2 -58
- package/dist/es/commands/CreateRegexMatchSetCommand.js.map +1 -1
- package/dist/es/commands/CreateRegexPatternSetCommand.js +2 -54
- package/dist/es/commands/CreateRegexPatternSetCommand.js.map +1 -1
- package/dist/es/commands/CreateRuleCommand.js +2 -78
- package/dist/es/commands/CreateRuleCommand.js.map +1 -1
- package/dist/es/commands/CreateRuleGroupCommand.js +2 -49
- package/dist/es/commands/CreateRuleGroupCommand.js.map +1 -1
- package/dist/es/commands/CreateSizeConstraintSetCommand.js +2 -58
- package/dist/es/commands/CreateSizeConstraintSetCommand.js.map +1 -1
- package/dist/es/commands/CreateSqlInjectionMatchSetCommand.js +2 -56
- package/dist/es/commands/CreateSqlInjectionMatchSetCommand.js.map +1 -1
- package/dist/es/commands/CreateWebACLCommand.js +2 -66
- package/dist/es/commands/CreateWebACLCommand.js.map +1 -1
- package/dist/es/commands/CreateWebACLMigrationStackCommand.js +2 -34
- package/dist/es/commands/CreateWebACLMigrationStackCommand.js.map +1 -1
- package/dist/es/commands/CreateXssMatchSetCommand.js +2 -56
- package/dist/es/commands/CreateXssMatchSetCommand.js.map +1 -1
- package/dist/es/commands/DeleteByteMatchSetCommand.js +2 -50
- package/dist/es/commands/DeleteByteMatchSetCommand.js.map +1 -1
- package/dist/es/commands/DeleteGeoMatchSetCommand.js +2 -50
- package/dist/es/commands/DeleteGeoMatchSetCommand.js.map +1 -1
- package/dist/es/commands/DeleteIPSetCommand.js +2 -50
- package/dist/es/commands/DeleteIPSetCommand.js.map +1 -1
- package/dist/es/commands/DeleteLoggingConfigurationCommand.js +2 -36
- package/dist/es/commands/DeleteLoggingConfigurationCommand.js.map +1 -1
- package/dist/es/commands/DeletePermissionPolicyCommand.js +2 -36
- package/dist/es/commands/DeletePermissionPolicyCommand.js.map +1 -1
- package/dist/es/commands/DeleteRateBasedRuleCommand.js +2 -54
- package/dist/es/commands/DeleteRateBasedRuleCommand.js.map +1 -1
- package/dist/es/commands/DeleteRegexMatchSetCommand.js +2 -50
- package/dist/es/commands/DeleteRegexMatchSetCommand.js.map +1 -1
- package/dist/es/commands/DeleteRegexPatternSetCommand.js +2 -36
- package/dist/es/commands/DeleteRegexPatternSetCommand.js.map +1 -1
- package/dist/es/commands/DeleteRuleCommand.js +2 -50
- package/dist/es/commands/DeleteRuleCommand.js.map +1 -1
- package/dist/es/commands/DeleteRuleGroupCommand.js +2 -50
- package/dist/es/commands/DeleteRuleGroupCommand.js.map +1 -1
- package/dist/es/commands/DeleteSizeConstraintSetCommand.js +2 -50
- package/dist/es/commands/DeleteSizeConstraintSetCommand.js.map +1 -1
- package/dist/es/commands/DeleteSqlInjectionMatchSetCommand.js +2 -51
- package/dist/es/commands/DeleteSqlInjectionMatchSetCommand.js.map +1 -1
- package/dist/es/commands/DeleteWebACLCommand.js +2 -48
- package/dist/es/commands/DeleteWebACLCommand.js.map +1 -1
- package/dist/es/commands/DeleteXssMatchSetCommand.js +2 -51
- package/dist/es/commands/DeleteXssMatchSetCommand.js.map +1 -1
- package/dist/es/commands/GetByteMatchSetCommand.js +2 -35
- package/dist/es/commands/GetByteMatchSetCommand.js.map +1 -1
- package/dist/es/commands/GetChangeTokenCommand.js +2 -41
- package/dist/es/commands/GetChangeTokenCommand.js.map +1 -1
- package/dist/es/commands/GetChangeTokenStatusCommand.js +2 -51
- package/dist/es/commands/GetChangeTokenStatusCommand.js.map +1 -1
- package/dist/es/commands/GetGeoMatchSetCommand.js +2 -35
- package/dist/es/commands/GetGeoMatchSetCommand.js.map +1 -1
- package/dist/es/commands/GetIPSetCommand.js +2 -35
- package/dist/es/commands/GetIPSetCommand.js.map +1 -1
- package/dist/es/commands/GetLoggingConfigurationCommand.js +2 -35
- package/dist/es/commands/GetLoggingConfigurationCommand.js.map +1 -1
- package/dist/es/commands/GetPermissionPolicyCommand.js +2 -35
- package/dist/es/commands/GetPermissionPolicyCommand.js.map +1 -1
- package/dist/es/commands/GetRateBasedRuleCommand.js +2 -37
- package/dist/es/commands/GetRateBasedRuleCommand.js.map +1 -1
- package/dist/es/commands/GetRateBasedRuleManagedKeysCommand.js +2 -37
- package/dist/es/commands/GetRateBasedRuleManagedKeysCommand.js.map +1 -1
- package/dist/es/commands/GetRegexMatchSetCommand.js +2 -35
- package/dist/es/commands/GetRegexMatchSetCommand.js.map +1 -1
- package/dist/es/commands/GetRegexPatternSetCommand.js +2 -35
- package/dist/es/commands/GetRegexPatternSetCommand.js.map +1 -1
- package/dist/es/commands/GetRuleCommand.js +2 -35
- package/dist/es/commands/GetRuleCommand.js.map +1 -1
- package/dist/es/commands/GetRuleGroupCommand.js +2 -36
- package/dist/es/commands/GetRuleGroupCommand.js.map +1 -1
- package/dist/es/commands/GetSampledRequestsCommand.js +2 -39
- package/dist/es/commands/GetSampledRequestsCommand.js.map +1 -1
- package/dist/es/commands/GetSizeConstraintSetCommand.js +2 -35
- package/dist/es/commands/GetSizeConstraintSetCommand.js.map +1 -1
- package/dist/es/commands/GetSqlInjectionMatchSetCommand.js +2 -35
- package/dist/es/commands/GetSqlInjectionMatchSetCommand.js.map +1 -1
- package/dist/es/commands/GetWebACLCommand.js +2 -35
- package/dist/es/commands/GetWebACLCommand.js.map +1 -1
- package/dist/es/commands/GetXssMatchSetCommand.js +2 -35
- package/dist/es/commands/GetXssMatchSetCommand.js.map +1 -1
- package/dist/es/commands/ListActivatedRulesInRuleGroupCommand.js +2 -35
- package/dist/es/commands/ListActivatedRulesInRuleGroupCommand.js.map +1 -1
- package/dist/es/commands/ListByteMatchSetsCommand.js +2 -35
- package/dist/es/commands/ListByteMatchSetsCommand.js.map +1 -1
- package/dist/es/commands/ListGeoMatchSetsCommand.js +2 -35
- package/dist/es/commands/ListGeoMatchSetsCommand.js.map +1 -1
- package/dist/es/commands/ListIPSetsCommand.js +2 -35
- package/dist/es/commands/ListIPSetsCommand.js.map +1 -1
- package/dist/es/commands/ListLoggingConfigurationsCommand.js +2 -35
- package/dist/es/commands/ListLoggingConfigurationsCommand.js.map +1 -1
- package/dist/es/commands/ListRateBasedRulesCommand.js +2 -35
- package/dist/es/commands/ListRateBasedRulesCommand.js.map +1 -1
- package/dist/es/commands/ListRegexMatchSetsCommand.js +2 -35
- package/dist/es/commands/ListRegexMatchSetsCommand.js.map +1 -1
- package/dist/es/commands/ListRegexPatternSetsCommand.js +2 -35
- package/dist/es/commands/ListRegexPatternSetsCommand.js.map +1 -1
- package/dist/es/commands/ListRuleGroupsCommand.js +2 -35
- package/dist/es/commands/ListRuleGroupsCommand.js.map +1 -1
- package/dist/es/commands/ListRulesCommand.js +2 -35
- package/dist/es/commands/ListRulesCommand.js.map +1 -1
- package/dist/es/commands/ListSizeConstraintSetsCommand.js +2 -35
- package/dist/es/commands/ListSizeConstraintSetsCommand.js.map +1 -1
- package/dist/es/commands/ListSqlInjectionMatchSetsCommand.js +2 -35
- package/dist/es/commands/ListSqlInjectionMatchSetsCommand.js.map +1 -1
- package/dist/es/commands/ListSubscribedRuleGroupsCommand.js +2 -35
- package/dist/es/commands/ListSubscribedRuleGroupsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -36
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/ListWebACLsCommand.js +2 -35
- package/dist/es/commands/ListWebACLsCommand.js.map +1 -1
- package/dist/es/commands/ListXssMatchSetsCommand.js +2 -35
- package/dist/es/commands/ListXssMatchSetsCommand.js.map +1 -1
- package/dist/es/commands/PutLoggingConfigurationCommand.js +2 -52
- package/dist/es/commands/PutLoggingConfigurationCommand.js.map +1 -1
- package/dist/es/commands/PutPermissionPolicyCommand.js +2 -67
- package/dist/es/commands/PutPermissionPolicyCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -36
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -35
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateByteMatchSetCommand.js +2 -73
- package/dist/es/commands/UpdateByteMatchSetCommand.js.map +1 -1
- package/dist/es/commands/UpdateGeoMatchSetCommand.js +2 -65
- package/dist/es/commands/UpdateGeoMatchSetCommand.js.map +1 -1
- package/dist/es/commands/UpdateIPSetCommand.js +2 -100
- package/dist/es/commands/UpdateIPSetCommand.js.map +1 -1
- package/dist/es/commands/UpdateRateBasedRuleCommand.js +2 -81
- package/dist/es/commands/UpdateRateBasedRuleCommand.js.map +1 -1
- package/dist/es/commands/UpdateRegexMatchSetCommand.js +2 -69
- package/dist/es/commands/UpdateRegexMatchSetCommand.js.map +1 -1
- package/dist/es/commands/UpdateRegexPatternSetCommand.js +2 -74
- package/dist/es/commands/UpdateRegexPatternSetCommand.js.map +1 -1
- package/dist/es/commands/UpdateRuleCommand.js +2 -76
- package/dist/es/commands/UpdateRuleCommand.js.map +1 -1
- package/dist/es/commands/UpdateRuleGroupCommand.js +2 -59
- package/dist/es/commands/UpdateRuleGroupCommand.js.map +1 -1
- package/dist/es/commands/UpdateSizeConstraintSetCommand.js +2 -77
- package/dist/es/commands/UpdateSizeConstraintSetCommand.js.map +1 -1
- package/dist/es/commands/UpdateSqlInjectionMatchSetCommand.js +2 -76
- package/dist/es/commands/UpdateSqlInjectionMatchSetCommand.js.map +1 -1
- package/dist/es/commands/UpdateWebACLCommand.js +2 -106
- package/dist/es/commands/UpdateWebACLCommand.js.map +1 -1
- package/dist/es/commands/UpdateXssMatchSetCommand.js +2 -78
- package/dist/es/commands/UpdateXssMatchSetCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -684
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/protocols/Aws_json1_1.js +2124 -2127
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_json1_1.ts +8 -3
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -3,71 +3,13 @@ import { CreateIPSetRequest, CreateIPSetResponse } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_1CreateIPSetCommand, serializeAws_json1_1CreateIPSetCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <note>
|
|
8
|
-
* <p>This is <b>AWS WAF Classic</b> documentation. For
|
|
9
|
-
* more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
|
|
10
|
-
* WAF Classic</a> in the developer guide.</p>
|
|
11
|
-
* <p>
|
|
12
|
-
* <b>For the latest version of AWS
|
|
13
|
-
* WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p>
|
|
14
|
-
* </note>
|
|
15
|
-
* <p>Creates an <a>IPSet</a>, which you use to specify which web requests
|
|
16
|
-
* that
|
|
17
|
-
* you want to allow or block based on the IP addresses that the requests
|
|
18
|
-
* originate from. For example, if you're receiving a lot of requests from one or more
|
|
19
|
-
* individual IP addresses or one or more ranges of IP addresses and you want to block the
|
|
20
|
-
* requests, you can create an <code>IPSet</code> that contains those IP addresses and then
|
|
21
|
-
* configure AWS WAF to block the requests. </p>
|
|
22
|
-
* <p>To create and configure an <code>IPSet</code>, perform the following steps:</p>
|
|
23
|
-
* <ol>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of a
|
|
26
|
-
* <code>CreateIPSet</code> request.</p>
|
|
27
|
-
* </li>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>Submit a <code>CreateIPSet</code> request.</p>
|
|
30
|
-
* </li>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
|
|
33
|
-
* <a>UpdateIPSet</a> request.</p>
|
|
34
|
-
* </li>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>Submit an <code>UpdateIPSet</code> request to specify the IP addresses that you want AWS WAF to watch for.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* </ol>
|
|
39
|
-
* <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
|
|
40
|
-
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
|
|
41
|
-
* @example
|
|
42
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
43
|
-
* ```javascript
|
|
44
|
-
* import { WAFClient, CreateIPSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
45
|
-
* // const { WAFClient, CreateIPSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
46
|
-
* const client = new WAFClient(config);
|
|
47
|
-
* const command = new CreateIPSetCommand(input);
|
|
48
|
-
* const response = await client.send(command);
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @see {@link CreateIPSetCommandInput} for command's `input` shape.
|
|
52
|
-
* @see {@link CreateIPSetCommandOutput} for command's `response` shape.
|
|
53
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
var CreateIPSetCommand = /** @class */ (function (_super) {
|
|
6
|
+
var CreateIPSetCommand = (function (_super) {
|
|
57
7
|
__extends(CreateIPSetCommand, _super);
|
|
58
|
-
// Start section: command_properties
|
|
59
|
-
// End section: command_properties
|
|
60
8
|
function CreateIPSetCommand(input) {
|
|
61
|
-
var _this =
|
|
62
|
-
// Start section: command_constructor
|
|
63
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
64
10
|
_this.input = input;
|
|
65
11
|
return _this;
|
|
66
|
-
// End section: command_constructor
|
|
67
12
|
}
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
13
|
CreateIPSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
72
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
73
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateIPSetCommand.js","sourceRoot":"","sources":["../../../commands/CreateIPSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EACL,wCAAwC,EACxC,sCAAsC,GACvC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateIPSetCommand.js","sourceRoot":"","sources":["../../../commands/CreateIPSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EACL,wCAAwC,EACxC,sCAAsC,GACvC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAgE7D;IAAwC,sCAIvC;IAIC,4BAAqB,KAA8B;QAAnD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAyB;;IAInD,CAAC;IAKD,8CAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,oBAAoB,CAAC;QACzC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,kBAAkB,CAAC,kBAAkB;YAC9D,wBAAwB,EAAE,mBAAmB,CAAC,kBAAkB;SACjE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,sCAAS,GAAjB,UAAkB,KAA8B,EAAE,OAAuB;QACvE,OAAO,sCAAsC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAEO,wCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,wCAAwC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAIH,yBAAC;AAAD,CAAC,AAtDD,CAAwC,QAAQ,GAsD/C"}
|
|
@@ -3,131 +3,13 @@ import { CreateRateBasedRuleRequest, CreateRateBasedRuleResponse } from "../mode
|
|
|
3
3
|
import { deserializeAws_json1_1CreateRateBasedRuleCommand, serializeAws_json1_1CreateRateBasedRuleCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <note>
|
|
8
|
-
* <p>This is <b>AWS WAF Classic</b> documentation. For
|
|
9
|
-
* more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
|
|
10
|
-
* WAF Classic</a> in the developer guide.</p>
|
|
11
|
-
* <p>
|
|
12
|
-
* <b>For the latest version of AWS
|
|
13
|
-
* WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p>
|
|
14
|
-
* </note>
|
|
15
|
-
* <p>Creates a <a>RateBasedRule</a>. The <code>RateBasedRule</code> contains a
|
|
16
|
-
* <code>RateLimit</code>, which specifies the maximum number of requests that AWS WAF allows
|
|
17
|
-
* from a specified IP address in a five-minute period.
|
|
18
|
-
* The <code>RateBasedRule</code> also
|
|
19
|
-
* contains the <code>IPSet</code> objects, <code>ByteMatchSet</code> objects, and other
|
|
20
|
-
* predicates that identify the requests that you want to count or block if these requests
|
|
21
|
-
* exceed the <code>RateLimit</code>.</p>
|
|
22
|
-
* <p>If you add more than one predicate to a <code>RateBasedRule</code>, a request not
|
|
23
|
-
* only must exceed the <code>RateLimit</code>, but it also must match all the
|
|
24
|
-
* conditions to be counted or blocked. For example, suppose you add the following to a
|
|
25
|
-
* <code>RateBasedRule</code>:</p>
|
|
26
|
-
* <ul>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>An <code>IPSet</code> that matches the IP address <code>192.0.2.44/32</code>
|
|
29
|
-
* </p>
|
|
30
|
-
* </li>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>A <code>ByteMatchSet</code> that matches <code>BadBot</code> in the
|
|
33
|
-
* <code>User-Agent</code> header</p>
|
|
34
|
-
* </li>
|
|
35
|
-
* </ul>
|
|
36
|
-
* <p>Further, you specify a <code>RateLimit</code> of 1,000.</p>
|
|
37
|
-
* <p>You then add the <code>RateBasedRule</code> to a <code>WebACL</code> and specify that
|
|
38
|
-
* you want to block requests that meet the conditions in the rule. For a request to be
|
|
39
|
-
* blocked, it must come from the IP address 192.0.2.44 <i>and</i> the
|
|
40
|
-
* <code>User-Agent</code> header in the request must contain the value
|
|
41
|
-
* <code>BadBot</code>. Further, requests that match these two conditions must be received at
|
|
42
|
-
* a rate of more than 1,000 requests every five minutes. If both conditions are met and the
|
|
43
|
-
* rate is exceeded, AWS WAF blocks the requests. If the rate drops below 1,000 for a
|
|
44
|
-
* five-minute period, AWS WAF no longer blocks the requests.</p>
|
|
45
|
-
*
|
|
46
|
-
* <p>As a second example, suppose you want to limit requests to a particular page on your site. To do this, you could add the following to a
|
|
47
|
-
* <code>RateBasedRule</code>:</p>
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* <ul>
|
|
51
|
-
* <li>
|
|
52
|
-
* <p>A <code>ByteMatchSet</code> with <code>FieldToMatch</code> of <code>URI</code>
|
|
53
|
-
* </p>
|
|
54
|
-
* </li>
|
|
55
|
-
* <li>
|
|
56
|
-
* <p>A <code>PositionalConstraint</code> of <code>STARTS_WITH</code>
|
|
57
|
-
* </p>
|
|
58
|
-
* </li>
|
|
59
|
-
* <li>
|
|
60
|
-
* <p>A <code>TargetString</code> of <code>login</code>
|
|
61
|
-
* </p>
|
|
62
|
-
* </li>
|
|
63
|
-
* </ul>
|
|
64
|
-
* <p>Further, you specify a <code>RateLimit</code> of 1,000.</p>
|
|
65
|
-
* <p>By adding this <code>RateBasedRule</code> to a <code>WebACL</code>, you could limit requests to your login page without affecting the rest of your site.</p>
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* <p>To create and configure a <code>RateBasedRule</code>, perform the following
|
|
69
|
-
* steps:</p>
|
|
70
|
-
* <ol>
|
|
71
|
-
* <li>
|
|
72
|
-
* <p>Create and update the predicates that you want to include in the rule. For more
|
|
73
|
-
* information, see <a>CreateByteMatchSet</a>, <a>CreateIPSet</a>,
|
|
74
|
-
* and <a>CreateSqlInjectionMatchSet</a>.</p>
|
|
75
|
-
* </li>
|
|
76
|
-
* <li>
|
|
77
|
-
* <p>Use <a>GetChangeToken</a> to get the change token that you provide
|
|
78
|
-
* in the <code>ChangeToken</code> parameter of a <code>CreateRule</code>
|
|
79
|
-
* request.</p>
|
|
80
|
-
* </li>
|
|
81
|
-
* <li>
|
|
82
|
-
* <p>Submit a <code>CreateRateBasedRule</code> request.</p>
|
|
83
|
-
* </li>
|
|
84
|
-
* <li>
|
|
85
|
-
* <p>Use <code>GetChangeToken</code> to get the change token that you provide in the
|
|
86
|
-
* <code>ChangeToken</code> parameter of an <a>UpdateRule</a>
|
|
87
|
-
* request.</p>
|
|
88
|
-
* </li>
|
|
89
|
-
* <li>
|
|
90
|
-
* <p>Submit an <code>UpdateRateBasedRule</code> request to specify the predicates
|
|
91
|
-
* that you want to include in the rule.</p>
|
|
92
|
-
* </li>
|
|
93
|
-
* <li>
|
|
94
|
-
* <p>Create and update a <code>WebACL</code> that contains the
|
|
95
|
-
* <code>RateBasedRule</code>. For more information, see <a>CreateWebACL</a>.</p>
|
|
96
|
-
* </li>
|
|
97
|
-
* </ol>
|
|
98
|
-
* <p>For more information about how to use the AWS WAF API to allow or block HTTP requests,
|
|
99
|
-
* see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer
|
|
100
|
-
* Guide</a>.</p>
|
|
101
|
-
* @example
|
|
102
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
103
|
-
* ```javascript
|
|
104
|
-
* import { WAFClient, CreateRateBasedRuleCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
105
|
-
* // const { WAFClient, CreateRateBasedRuleCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
106
|
-
* const client = new WAFClient(config);
|
|
107
|
-
* const command = new CreateRateBasedRuleCommand(input);
|
|
108
|
-
* const response = await client.send(command);
|
|
109
|
-
* ```
|
|
110
|
-
*
|
|
111
|
-
* @see {@link CreateRateBasedRuleCommandInput} for command's `input` shape.
|
|
112
|
-
* @see {@link CreateRateBasedRuleCommandOutput} for command's `response` shape.
|
|
113
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
114
|
-
*
|
|
115
|
-
*/
|
|
116
|
-
var CreateRateBasedRuleCommand = /** @class */ (function (_super) {
|
|
6
|
+
var CreateRateBasedRuleCommand = (function (_super) {
|
|
117
7
|
__extends(CreateRateBasedRuleCommand, _super);
|
|
118
|
-
// Start section: command_properties
|
|
119
|
-
// End section: command_properties
|
|
120
8
|
function CreateRateBasedRuleCommand(input) {
|
|
121
|
-
var _this =
|
|
122
|
-
// Start section: command_constructor
|
|
123
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
124
10
|
_this.input = input;
|
|
125
11
|
return _this;
|
|
126
|
-
// End section: command_constructor
|
|
127
12
|
}
|
|
128
|
-
/**
|
|
129
|
-
* @internal
|
|
130
|
-
*/
|
|
131
13
|
CreateRateBasedRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
132
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
133
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateRateBasedRuleCommand.js","sourceRoot":"","sources":["../../../commands/CreateRateBasedRuleCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EACL,gDAAgD,EAChD,8CAA8C,GAC/C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateRateBasedRuleCommand.js","sourceRoot":"","sources":["../../../commands/CreateRateBasedRuleCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EACL,gDAAgD,EAChD,8CAA8C,GAC/C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA4H7D;IAAgD,8CAI/C;IAIC,oCAAqB,KAAsC;QAA3D,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAiC;;IAI3D,CAAC;IAKD,sDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,4BAA4B,CAAC;QACjD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,0BAA0B,CAAC,kBAAkB;YACtE,wBAAwB,EAAE,2BAA2B,CAAC,kBAAkB;SACzE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,8CAAS,GAAjB,UAAkB,KAAsC,EAAE,OAAuB;QAC/E,OAAO,8CAA8C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAEO,gDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,gDAAgD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAIH,iCAAC;AAAD,CAAC,AAtDD,CAAgD,QAAQ,GAsDvD"}
|
|
@@ -3,69 +3,13 @@ import { CreateRegexMatchSetRequest, CreateRegexMatchSetResponse } from "../mode
|
|
|
3
3
|
import { deserializeAws_json1_1CreateRegexMatchSetCommand, serializeAws_json1_1CreateRegexMatchSetCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <note>
|
|
8
|
-
* <p>This is <b>AWS WAF Classic</b> documentation. For
|
|
9
|
-
* more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
|
|
10
|
-
* WAF Classic</a> in the developer guide.</p>
|
|
11
|
-
* <p>
|
|
12
|
-
* <b>For the latest version of AWS
|
|
13
|
-
* WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p>
|
|
14
|
-
* </note>
|
|
15
|
-
* <p>Creates a <a>RegexMatchSet</a>. You then use <a>UpdateRegexMatchSet</a> to identify the part of a
|
|
16
|
-
* web request that you want AWS WAF to inspect, such as the values of the <code>User-Agent</code> header or the query string.
|
|
17
|
-
* For example, you can create a <code>RegexMatchSet</code> that contains a <code>RegexMatchTuple</code> that looks for any requests with <code>User-Agent</code> headers
|
|
18
|
-
* that match a <code>RegexPatternSet</code> with pattern <code>B[a@]dB[o0]t</code>. You can then configure AWS WAF to reject those requests.</p>
|
|
19
|
-
* <p>To create and configure a <code>RegexMatchSet</code>, perform the following steps:</p>
|
|
20
|
-
* <ol>
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of a
|
|
23
|
-
* <code>CreateRegexMatchSet</code> request.</p>
|
|
24
|
-
* </li>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>Submit a <code>CreateRegexMatchSet</code> request.</p>
|
|
27
|
-
* </li>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
|
|
30
|
-
* <code>UpdateRegexMatchSet</code> request.</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>Submit an <a>UpdateRegexMatchSet</a> request to specify the part of the request that you want AWS WAF to inspect
|
|
34
|
-
* (for example, the header or the URI) and the value, using a <code>RegexPatternSet</code>, that you want AWS WAF to watch for.</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* </ol>
|
|
37
|
-
* <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
|
|
38
|
-
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
|
|
39
|
-
* @example
|
|
40
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
41
|
-
* ```javascript
|
|
42
|
-
* import { WAFClient, CreateRegexMatchSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
43
|
-
* // const { WAFClient, CreateRegexMatchSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
44
|
-
* const client = new WAFClient(config);
|
|
45
|
-
* const command = new CreateRegexMatchSetCommand(input);
|
|
46
|
-
* const response = await client.send(command);
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @see {@link CreateRegexMatchSetCommandInput} for command's `input` shape.
|
|
50
|
-
* @see {@link CreateRegexMatchSetCommandOutput} for command's `response` shape.
|
|
51
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
var CreateRegexMatchSetCommand = /** @class */ (function (_super) {
|
|
6
|
+
var CreateRegexMatchSetCommand = (function (_super) {
|
|
55
7
|
__extends(CreateRegexMatchSetCommand, _super);
|
|
56
|
-
// Start section: command_properties
|
|
57
|
-
// End section: command_properties
|
|
58
8
|
function CreateRegexMatchSetCommand(input) {
|
|
59
|
-
var _this =
|
|
60
|
-
// Start section: command_constructor
|
|
61
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
62
10
|
_this.input = input;
|
|
63
11
|
return _this;
|
|
64
|
-
// End section: command_constructor
|
|
65
12
|
}
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
13
|
CreateRegexMatchSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
70
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
71
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateRegexMatchSetCommand.js","sourceRoot":"","sources":["../../../commands/CreateRegexMatchSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EACL,gDAAgD,EAChD,8CAA8C,GAC/C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateRegexMatchSetCommand.js","sourceRoot":"","sources":["../../../commands/CreateRegexMatchSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EACL,gDAAgD,EAChD,8CAA8C,GAC/C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA8D7D;IAAgD,8CAI/C;IAIC,oCAAqB,KAAsC;QAA3D,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAiC;;IAI3D,CAAC;IAKD,sDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,4BAA4B,CAAC;QACjD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,0BAA0B,CAAC,kBAAkB;YACtE,wBAAwB,EAAE,2BAA2B,CAAC,kBAAkB;SACzE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,8CAAS,GAAjB,UAAkB,KAAsC,EAAE,OAAuB;QAC/E,OAAO,8CAA8C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAEO,gDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,gDAAgD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAIH,iCAAC;AAAD,CAAC,AAtDD,CAAgD,QAAQ,GAsDvD"}
|
|
@@ -3,65 +3,13 @@ import { CreateRegexPatternSetRequest, CreateRegexPatternSetResponse } from "../
|
|
|
3
3
|
import { deserializeAws_json1_1CreateRegexPatternSetCommand, serializeAws_json1_1CreateRegexPatternSetCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <note>
|
|
8
|
-
* <p>This is <b>AWS WAF Classic</b> documentation. For
|
|
9
|
-
* more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
|
|
10
|
-
* WAF Classic</a> in the developer guide.</p>
|
|
11
|
-
* <p>
|
|
12
|
-
* <b>For the latest version of AWS
|
|
13
|
-
* WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p>
|
|
14
|
-
* </note>
|
|
15
|
-
* <p>Creates a <code>RegexPatternSet</code>. You then use <a>UpdateRegexPatternSet</a> to specify the regular expression (regex) pattern that you want AWS WAF to search for, such as <code>B[a@]dB[o0]t</code>. You can then configure AWS WAF to reject those requests.</p>
|
|
16
|
-
* <p>To create and configure a <code>RegexPatternSet</code>, perform the following steps:</p>
|
|
17
|
-
* <ol>
|
|
18
|
-
* <li>
|
|
19
|
-
* <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of a
|
|
20
|
-
* <code>CreateRegexPatternSet</code> request.</p>
|
|
21
|
-
* </li>
|
|
22
|
-
* <li>
|
|
23
|
-
* <p>Submit a <code>CreateRegexPatternSet</code> request.</p>
|
|
24
|
-
* </li>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
|
|
27
|
-
* <code>UpdateRegexPatternSet</code> request.</p>
|
|
28
|
-
* </li>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>Submit an <a>UpdateRegexPatternSet</a> request to specify the string that you want AWS WAF to watch for.</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* </ol>
|
|
33
|
-
* <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
|
|
34
|
-
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
|
|
35
|
-
* @example
|
|
36
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
-
* ```javascript
|
|
38
|
-
* import { WAFClient, CreateRegexPatternSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
39
|
-
* // const { WAFClient, CreateRegexPatternSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
40
|
-
* const client = new WAFClient(config);
|
|
41
|
-
* const command = new CreateRegexPatternSetCommand(input);
|
|
42
|
-
* const response = await client.send(command);
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @see {@link CreateRegexPatternSetCommandInput} for command's `input` shape.
|
|
46
|
-
* @see {@link CreateRegexPatternSetCommandOutput} for command's `response` shape.
|
|
47
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
var CreateRegexPatternSetCommand = /** @class */ (function (_super) {
|
|
6
|
+
var CreateRegexPatternSetCommand = (function (_super) {
|
|
51
7
|
__extends(CreateRegexPatternSetCommand, _super);
|
|
52
|
-
// Start section: command_properties
|
|
53
|
-
// End section: command_properties
|
|
54
8
|
function CreateRegexPatternSetCommand(input) {
|
|
55
|
-
var _this =
|
|
56
|
-
// Start section: command_constructor
|
|
57
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
58
10
|
_this.input = input;
|
|
59
11
|
return _this;
|
|
60
|
-
// End section: command_constructor
|
|
61
12
|
}
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
13
|
CreateRegexPatternSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
66
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateRegexPatternSetCommand.js","sourceRoot":"","sources":["../../../commands/CreateRegexPatternSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AACjG,OAAO,EACL,kDAAkD,EAClD,gDAAgD,GACjD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateRegexPatternSetCommand.js","sourceRoot":"","sources":["../../../commands/CreateRegexPatternSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AACjG,OAAO,EACL,kDAAkD,EAClD,gDAAgD,GACjD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA0D7D;IAAkD,gDAIjD;IAIC,sCAAqB,KAAwC;QAA7D,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAmC;;IAI7D,CAAC;IAKD,wDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,8BAA8B,CAAC;QACnD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,4BAA4B,CAAC,kBAAkB;YACxE,wBAAwB,EAAE,6BAA6B,CAAC,kBAAkB;SAC3E,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,gDAAS,GAAjB,UAAkB,KAAwC,EAAE,OAAuB;QACjF,OAAO,gDAAgD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAEO,kDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,kDAAkD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAIH,mCAAC;AAAD,CAAC,AAtDD,CAAkD,QAAQ,GAsDzD"}
|
|
@@ -3,89 +3,13 @@ import { CreateRuleRequest, CreateRuleResponse } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_1CreateRuleCommand, serializeAws_json1_1CreateRuleCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <note>
|
|
8
|
-
* <p>This is <b>AWS WAF Classic</b> documentation. For
|
|
9
|
-
* more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
|
|
10
|
-
* WAF Classic</a> in the developer guide.</p>
|
|
11
|
-
* <p>
|
|
12
|
-
* <b>For the latest version of AWS
|
|
13
|
-
* WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p>
|
|
14
|
-
* </note>
|
|
15
|
-
* <p>Creates a <code>Rule</code>, which contains the <code>IPSet</code> objects,
|
|
16
|
-
* <code>ByteMatchSet</code> objects, and other predicates that identify the requests that
|
|
17
|
-
* you want to block. If you add more than one predicate to a <code>Rule</code>, a request
|
|
18
|
-
* must match all of the specifications to be allowed or blocked. For example, suppose
|
|
19
|
-
* that
|
|
20
|
-
* you add the following to a <code>Rule</code>:</p>
|
|
21
|
-
* <ul>
|
|
22
|
-
* <li>
|
|
23
|
-
* <p>An <code>IPSet</code> that matches the IP address <code>192.0.2.44/32</code>
|
|
24
|
-
* </p>
|
|
25
|
-
* </li>
|
|
26
|
-
* <li>
|
|
27
|
-
* <p>A <code>ByteMatchSet</code> that matches <code>BadBot</code> in the <code>User-Agent</code> header</p>
|
|
28
|
-
* </li>
|
|
29
|
-
* </ul>
|
|
30
|
-
* <p>You then add the <code>Rule</code> to a <code>WebACL</code> and specify that you want to blocks requests that satisfy the <code>Rule</code>.
|
|
31
|
-
* For a request to be blocked, it must come from the IP address 192.0.2.44 <i>and</i> the <code>User-Agent</code> header in the request
|
|
32
|
-
* must contain the value <code>BadBot</code>.</p>
|
|
33
|
-
* <p>To create and configure a <code>Rule</code>, perform the following steps:</p>
|
|
34
|
-
* <ol>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>Create and update the predicates that you want to include in the <code>Rule</code>. For more information, see
|
|
37
|
-
* <a>CreateByteMatchSet</a>, <a>CreateIPSet</a>, and <a>CreateSqlInjectionMatchSet</a>.</p>
|
|
38
|
-
* </li>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of a
|
|
41
|
-
* <code>CreateRule</code> request.</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>Submit a <code>CreateRule</code> request.</p>
|
|
45
|
-
* </li>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
|
|
48
|
-
* <a>UpdateRule</a> request.</p>
|
|
49
|
-
* </li>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>Submit an <code>UpdateRule</code> request to specify the predicates that you want to include in the <code>Rule</code>.</p>
|
|
52
|
-
* </li>
|
|
53
|
-
* <li>
|
|
54
|
-
* <p>Create and update a <code>WebACL</code> that contains the <code>Rule</code>. For more information, see <a>CreateWebACL</a>.</p>
|
|
55
|
-
* </li>
|
|
56
|
-
* </ol>
|
|
57
|
-
* <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
|
|
58
|
-
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
|
|
59
|
-
* @example
|
|
60
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
61
|
-
* ```javascript
|
|
62
|
-
* import { WAFClient, CreateRuleCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
63
|
-
* // const { WAFClient, CreateRuleCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
64
|
-
* const client = new WAFClient(config);
|
|
65
|
-
* const command = new CreateRuleCommand(input);
|
|
66
|
-
* const response = await client.send(command);
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* @see {@link CreateRuleCommandInput} for command's `input` shape.
|
|
70
|
-
* @see {@link CreateRuleCommandOutput} for command's `response` shape.
|
|
71
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
var CreateRuleCommand = /** @class */ (function (_super) {
|
|
6
|
+
var CreateRuleCommand = (function (_super) {
|
|
75
7
|
__extends(CreateRuleCommand, _super);
|
|
76
|
-
// Start section: command_properties
|
|
77
|
-
// End section: command_properties
|
|
78
8
|
function CreateRuleCommand(input) {
|
|
79
|
-
var _this =
|
|
80
|
-
// Start section: command_constructor
|
|
81
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
82
10
|
_this.input = input;
|
|
83
11
|
return _this;
|
|
84
|
-
// End section: command_constructor
|
|
85
12
|
}
|
|
86
|
-
/**
|
|
87
|
-
* @internal
|
|
88
|
-
*/
|
|
89
13
|
CreateRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
90
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
91
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateRuleCommand.js","sourceRoot":"","sources":["../../../commands/CreateRuleCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACL,uCAAuC,EACvC,qCAAqC,GACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateRuleCommand.js","sourceRoot":"","sources":["../../../commands/CreateRuleCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACL,uCAAuC,EACvC,qCAAqC,GACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAkF7D;IAAuC,qCAItC;IAIC,2BAAqB,KAA6B;QAAlD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAwB;;IAIlD,CAAC;IAKD,6CAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,mBAAmB,CAAC;QACxC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,iBAAiB,CAAC,kBAAkB;YAC7D,wBAAwB,EAAE,kBAAkB,CAAC,kBAAkB;SAChE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,qCAAS,GAAjB,UAAkB,KAA6B,EAAE,OAAuB;QACtE,OAAO,qCAAqC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAEO,uCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,uCAAuC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAIH,wBAAC;AAAD,CAAC,AAtDD,CAAuC,QAAQ,GAsD9C"}
|
|
@@ -3,60 +3,13 @@ import { CreateRuleGroupRequest, CreateRuleGroupResponse } from "../models/model
|
|
|
3
3
|
import { deserializeAws_json1_1CreateRuleGroupCommand, serializeAws_json1_1CreateRuleGroupCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <note>
|
|
8
|
-
* <p>This is <b>AWS WAF Classic</b> documentation. For
|
|
9
|
-
* more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
|
|
10
|
-
* WAF Classic</a> in the developer guide.</p>
|
|
11
|
-
* <p>
|
|
12
|
-
* <b>For the latest version of AWS
|
|
13
|
-
* WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p>
|
|
14
|
-
* </note>
|
|
15
|
-
* <p>Creates a <code>RuleGroup</code>. A rule group is a collection of predefined rules that you add to a web ACL. You use <a>UpdateRuleGroup</a> to add rules to the rule group.</p>
|
|
16
|
-
* <p>Rule groups are subject to the following limits:</p>
|
|
17
|
-
* <ul>
|
|
18
|
-
* <li>
|
|
19
|
-
* <p>Three rule groups per account. You can request an increase to this limit by contacting customer support.</p>
|
|
20
|
-
* </li>
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>One rule group per web ACL.</p>
|
|
23
|
-
* </li>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>Ten rules per rule group.</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* </ul>
|
|
28
|
-
* <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
|
|
29
|
-
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { WAFClient, CreateRuleGroupCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
34
|
-
* // const { WAFClient, CreateRuleGroupCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
35
|
-
* const client = new WAFClient(config);
|
|
36
|
-
* const command = new CreateRuleGroupCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link CreateRuleGroupCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link CreateRuleGroupCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
var CreateRuleGroupCommand = /** @class */ (function (_super) {
|
|
6
|
+
var CreateRuleGroupCommand = (function (_super) {
|
|
46
7
|
__extends(CreateRuleGroupCommand, _super);
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
8
|
function CreateRuleGroupCommand(input) {
|
|
50
|
-
var _this =
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
53
10
|
_this.input = input;
|
|
54
11
|
return _this;
|
|
55
|
-
// End section: command_constructor
|
|
56
12
|
}
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
13
|
CreateRuleGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
61
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
62
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateRuleGroupCommand.js","sourceRoot":"","sources":["../../../commands/CreateRuleGroupCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EACL,4CAA4C,EAC5C,0CAA0C,GAC3C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateRuleGroupCommand.js","sourceRoot":"","sources":["../../../commands/CreateRuleGroupCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EACL,4CAA4C,EAC5C,0CAA0C,GAC3C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAqD7D;IAA4C,0CAI3C;IAIC,gCAAqB,KAAkC;QAAvD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA6B;;IAIvD,CAAC;IAKD,kDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,wBAAwB,CAAC;QAC7C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,sBAAsB,CAAC,kBAAkB;YAClE,wBAAwB,EAAE,uBAAuB,CAAC,kBAAkB;SACrE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,0CAAS,GAAjB,UAAkB,KAAkC,EAAE,OAAuB;QAC3E,OAAO,0CAA0C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAEO,4CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,4CAA4C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAIH,6BAAC;AAAD,CAAC,AAtDD,CAA4C,QAAQ,GAsDnD"}
|