@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,78 +3,13 @@ import { PutPermissionPolicyRequest, PutPermissionPolicyResponse } from "../mode
|
|
|
3
3
|
import { deserializeAws_json1_1PutPermissionPolicyCommand, serializeAws_json1_1PutPermissionPolicyCommand, } 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>Attaches an IAM policy to the specified resource. The only supported use for this action is to share a RuleGroup across accounts.</p>
|
|
16
|
-
* <p>The <code>PutPermissionPolicy</code> is subject to the following restrictions:</p>
|
|
17
|
-
* <ul>
|
|
18
|
-
* <li>
|
|
19
|
-
* <p>You can attach only one policy with each <code>PutPermissionPolicy</code> request.</p>
|
|
20
|
-
* </li>
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>The policy must include an <code>Effect</code>, <code>Action</code> and <code>Principal</code>. </p>
|
|
23
|
-
* </li>
|
|
24
|
-
* <li>
|
|
25
|
-
*
|
|
26
|
-
* <p>
|
|
27
|
-
* <code>Effect</code> must specify <code>Allow</code>.</p>
|
|
28
|
-
* </li>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>The <code>Action</code> in the policy must be <code>waf:UpdateWebACL</code>, <code>waf-regional:UpdateWebACL</code>, <code>waf:GetRuleGroup</code> and <code>waf-regional:GetRuleGroup</code> . Any extra or wildcard actions in the policy will be rejected.</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>The policy cannot include a <code>Resource</code> parameter.</p>
|
|
34
|
-
* </li>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>The ARN in the request must be a valid WAF RuleGroup ARN and the RuleGroup must exist in the same region.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>The user making the request must be the owner of the RuleGroup.</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* <li>
|
|
42
|
-
* <p>Your policy must be composed using IAM Policy version 2012-10-17.</p>
|
|
43
|
-
* </li>
|
|
44
|
-
* </ul>
|
|
45
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html">IAM Policies</a>. </p>
|
|
46
|
-
*
|
|
47
|
-
* <p>An example of a valid policy parameter is shown in the Examples section below.</p>
|
|
48
|
-
* @example
|
|
49
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
50
|
-
* ```javascript
|
|
51
|
-
* import { WAFClient, PutPermissionPolicyCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
52
|
-
* // const { WAFClient, PutPermissionPolicyCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
53
|
-
* const client = new WAFClient(config);
|
|
54
|
-
* const command = new PutPermissionPolicyCommand(input);
|
|
55
|
-
* const response = await client.send(command);
|
|
56
|
-
* ```
|
|
57
|
-
*
|
|
58
|
-
* @see {@link PutPermissionPolicyCommandInput} for command's `input` shape.
|
|
59
|
-
* @see {@link PutPermissionPolicyCommandOutput} for command's `response` shape.
|
|
60
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
61
|
-
*
|
|
62
|
-
*/
|
|
63
|
-
var PutPermissionPolicyCommand = /** @class */ (function (_super) {
|
|
6
|
+
var PutPermissionPolicyCommand = (function (_super) {
|
|
64
7
|
__extends(PutPermissionPolicyCommand, _super);
|
|
65
|
-
// Start section: command_properties
|
|
66
|
-
// End section: command_properties
|
|
67
8
|
function PutPermissionPolicyCommand(input) {
|
|
68
|
-
var _this =
|
|
69
|
-
// Start section: command_constructor
|
|
70
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
71
10
|
_this.input = input;
|
|
72
11
|
return _this;
|
|
73
|
-
// End section: command_constructor
|
|
74
12
|
}
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
*/
|
|
78
13
|
PutPermissionPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
79
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
80
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PutPermissionPolicyCommand.js","sourceRoot":"","sources":["../../../commands/PutPermissionPolicyCommand.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":"PutPermissionPolicyCommand.js","sourceRoot":"","sources":["../../../commands/PutPermissionPolicyCommand.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;AAuE7D;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,47 +3,13 @@ import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_1TagResourceCommand, serializeAws_json1_1TagResourceCommand, } 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>Associates tags with the specified AWS resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing. For example, you might set the tag key to "customer" and the value to the customer name or ID. You can specify one or more tags to add to each AWS resource, up to 50 tags for a resource.</p>
|
|
16
|
-
* <p>Tagging is only available through the API, SDKs, and CLI. You can't manage or view tags through the AWS WAF Classic console. You can use this action to tag the AWS resources that you manage through AWS WAF Classic: web ACLs, rule groups, and rules. </p>
|
|
17
|
-
* @example
|
|
18
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
-
* ```javascript
|
|
20
|
-
* import { WAFClient, TagResourceCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
21
|
-
* // const { WAFClient, TagResourceCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
22
|
-
* const client = new WAFClient(config);
|
|
23
|
-
* const command = new TagResourceCommand(input);
|
|
24
|
-
* const response = await client.send(command);
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
28
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
var TagResourceCommand = /** @class */ (function (_super) {
|
|
6
|
+
var TagResourceCommand = (function (_super) {
|
|
33
7
|
__extends(TagResourceCommand, _super);
|
|
34
|
-
// Start section: command_properties
|
|
35
|
-
// End section: command_properties
|
|
36
8
|
function TagResourceCommand(input) {
|
|
37
|
-
var _this =
|
|
38
|
-
// Start section: command_constructor
|
|
39
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
40
10
|
_this.input = input;
|
|
41
11
|
return _this;
|
|
42
|
-
// End section: command_constructor
|
|
43
12
|
}
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
47
13
|
TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
48
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
49
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagResourceCommand.js","sourceRoot":"","sources":["../../../commands/TagResourceCommand.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":"TagResourceCommand.js","sourceRoot":"","sources":["../../../commands/TagResourceCommand.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;AAwC7D;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,46 +3,13 @@ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0"
|
|
|
3
3
|
import { deserializeAws_json1_1UntagResourceCommand, serializeAws_json1_1UntagResourceCommand, } 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></p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { WAFClient, UntagResourceCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
20
|
-
* // const { WAFClient, UntagResourceCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
21
|
-
* const client = new WAFClient(config);
|
|
22
|
-
* const command = new UntagResourceCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
var UntagResourceCommand = /** @class */ (function (_super) {
|
|
6
|
+
var UntagResourceCommand = (function (_super) {
|
|
32
7
|
__extends(UntagResourceCommand, _super);
|
|
33
|
-
// Start section: command_properties
|
|
34
|
-
// End section: command_properties
|
|
35
8
|
function UntagResourceCommand(input) {
|
|
36
|
-
var _this =
|
|
37
|
-
// Start section: command_constructor
|
|
38
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
39
10
|
_this.input = input;
|
|
40
11
|
return _this;
|
|
41
|
-
// End section: command_constructor
|
|
42
12
|
}
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
46
13
|
UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
47
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
48
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UntagResourceCommand.js","sourceRoot":"","sources":["../../../commands/UntagResourceCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACjF,OAAO,EACL,0CAA0C,EAC1C,wCAAwC,GACzC,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":"UntagResourceCommand.js","sourceRoot":"","sources":["../../../commands/UntagResourceCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACjF,OAAO,EACL,0CAA0C,EAC1C,wCAAwC,GACzC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAuC7D;IAA0C,wCAIzC;IAIC,8BAAqB,KAAgC;QAArD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA2B;;IAIrD,CAAC;IAKD,gDAAiB,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,sBAAsB,CAAC;QAC3C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,oBAAoB,CAAC,kBAAkB;YAChE,wBAAwB,EAAE,qBAAqB,CAAC,kBAAkB;SACnE,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,wCAAS,GAAjB,UAAkB,KAAgC,EAAE,OAAuB;QACzE,OAAO,wCAAwC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAEO,0CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,0CAA0C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAIH,2BAAC;AAAD,CAAC,AAtDD,CAA0C,QAAQ,GAsDjD"}
|
|
@@ -3,84 +3,13 @@ import { UpdateByteMatchSetRequest, UpdateByteMatchSetResponse } from "../models
|
|
|
3
3
|
import { deserializeAws_json1_1UpdateByteMatchSetCommand, serializeAws_json1_1UpdateByteMatchSetCommand, } 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>Inserts or deletes <a>ByteMatchTuple</a> objects (filters) in a <a>ByteMatchSet</a>. For each <code>ByteMatchTuple</code> object,
|
|
16
|
-
* you specify the following values: </p>
|
|
17
|
-
* <ul>
|
|
18
|
-
* <li>
|
|
19
|
-
* <p>Whether to insert or delete the object from the array. If you want to change a <code>ByteMatchSetUpdate</code> object,
|
|
20
|
-
* you delete the existing object and add a new one.</p>
|
|
21
|
-
* </li>
|
|
22
|
-
* <li>
|
|
23
|
-
* <p>The part of a web request that you want AWS WAF to inspect, such as a query string or the value of the <code>User-Agent</code> header. </p>
|
|
24
|
-
* </li>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>The bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to look for. For more information, including how you specify
|
|
27
|
-
* the values for the AWS WAF API and the AWS CLI or SDKs, see <code>TargetString</code> in the <a>ByteMatchTuple</a> data type. </p>
|
|
28
|
-
* </li>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>Where to look, such as at the beginning or the end of a query string.</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>Whether to perform any conversions on the request, such as converting it to lowercase, before inspecting it for the specified string.</p>
|
|
34
|
-
* </li>
|
|
35
|
-
* </ul>
|
|
36
|
-
* <p>For example, you can add a <code>ByteMatchSetUpdate</code> object that matches web requests in which <code>User-Agent</code> headers contain
|
|
37
|
-
* the string <code>BadBot</code>. You can then configure AWS WAF to block those requests.</p>
|
|
38
|
-
* <p>To create and configure a <code>ByteMatchSet</code>, perform the following steps:</p>
|
|
39
|
-
* <ol>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>Create a <code>ByteMatchSet.</code> For more information, see <a>CreateByteMatchSet</a>.</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
|
|
45
|
-
* <code>UpdateByteMatchSet</code> request.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>Submit an <code>UpdateByteMatchSet</code> request to specify the part of the request that you want AWS WAF to inspect
|
|
49
|
-
* (for example, the header or the URI) and the value that you want AWS WAF to watch for.</p>
|
|
50
|
-
* </li>
|
|
51
|
-
* </ol>
|
|
52
|
-
* <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
|
|
53
|
-
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
|
|
54
|
-
* @example
|
|
55
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
56
|
-
* ```javascript
|
|
57
|
-
* import { WAFClient, UpdateByteMatchSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
58
|
-
* // const { WAFClient, UpdateByteMatchSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
59
|
-
* const client = new WAFClient(config);
|
|
60
|
-
* const command = new UpdateByteMatchSetCommand(input);
|
|
61
|
-
* const response = await client.send(command);
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* @see {@link UpdateByteMatchSetCommandInput} for command's `input` shape.
|
|
65
|
-
* @see {@link UpdateByteMatchSetCommandOutput} for command's `response` shape.
|
|
66
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
var UpdateByteMatchSetCommand = /** @class */ (function (_super) {
|
|
6
|
+
var UpdateByteMatchSetCommand = (function (_super) {
|
|
70
7
|
__extends(UpdateByteMatchSetCommand, _super);
|
|
71
|
-
// Start section: command_properties
|
|
72
|
-
// End section: command_properties
|
|
73
8
|
function UpdateByteMatchSetCommand(input) {
|
|
74
|
-
var _this =
|
|
75
|
-
// Start section: command_constructor
|
|
76
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
77
10
|
_this.input = input;
|
|
78
11
|
return _this;
|
|
79
|
-
// End section: command_constructor
|
|
80
12
|
}
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
13
|
UpdateByteMatchSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
85
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
86
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateByteMatchSetCommand.js","sourceRoot":"","sources":["../../../commands/UpdateByteMatchSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EACL,+CAA+C,EAC/C,6CAA6C,GAC9C,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":"UpdateByteMatchSetCommand.js","sourceRoot":"","sources":["../../../commands/UpdateByteMatchSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EACL,+CAA+C,EAC/C,6CAA6C,GAC9C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA6E7D;IAA+C,6CAI9C;IAIC,mCAAqB,KAAqC;QAA1D,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAgC;;IAI1D,CAAC;IAKD,qDAAiB,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,2BAA2B,CAAC;QAChD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,yBAAyB,CAAC,kBAAkB;YACrE,wBAAwB,EAAE,0BAA0B,CAAC,kBAAkB;SACxE,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,6CAAS,GAAjB,UAAkB,KAAqC,EAAE,OAAuB;QAC9E,OAAO,6CAA6C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAEO,+CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,+CAA+C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAIH,gCAAC;AAAD,CAAC,AAtDD,CAA+C,QAAQ,GAsDtD"}
|
|
@@ -3,76 +3,13 @@ import { UpdateGeoMatchSetRequest, UpdateGeoMatchSetResponse } from "../models/m
|
|
|
3
3
|
import { deserializeAws_json1_1UpdateGeoMatchSetCommand, serializeAws_json1_1UpdateGeoMatchSetCommand, } 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>Inserts or deletes <a>GeoMatchConstraint</a> objects in an <code>GeoMatchSet</code>. For each <code>GeoMatchConstraint</code> object,
|
|
16
|
-
* you specify the following values: </p>
|
|
17
|
-
* <ul>
|
|
18
|
-
* <li>
|
|
19
|
-
* <p>Whether to insert or delete the object from the array. If you want to change an <code>GeoMatchConstraint</code> object, you delete the existing object and add a new one.</p>
|
|
20
|
-
* </li>
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>The <code>Type</code>. The only valid value for <code>Type</code> is <code>Country</code>.</p>
|
|
23
|
-
* </li>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>The <code>Value</code>, which is a two character code for the country to add to the <code>GeoMatchConstraint</code> object. Valid codes are listed in <a>GeoMatchConstraint$Value</a>.</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* </ul>
|
|
28
|
-
*
|
|
29
|
-
* <p>To create and configure an <code>GeoMatchSet</code>, perform the following steps:</p>
|
|
30
|
-
* <ol>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>Submit a <a>CreateGeoMatchSet</a> request.</p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
|
|
36
|
-
* <a>UpdateGeoMatchSet</a> request.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>Submit an <code>UpdateGeoMatchSet</code> request to specify the country that you want AWS WAF to watch for.</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* </ol>
|
|
42
|
-
* <p>When you update an <code>GeoMatchSet</code>, you specify the country that you want to add and/or the country that you want to delete.
|
|
43
|
-
* If you want to change a country, you delete the existing country and add the new one.</p>
|
|
44
|
-
* <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
|
|
45
|
-
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
|
|
46
|
-
* @example
|
|
47
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
48
|
-
* ```javascript
|
|
49
|
-
* import { WAFClient, UpdateGeoMatchSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
50
|
-
* // const { WAFClient, UpdateGeoMatchSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
51
|
-
* const client = new WAFClient(config);
|
|
52
|
-
* const command = new UpdateGeoMatchSetCommand(input);
|
|
53
|
-
* const response = await client.send(command);
|
|
54
|
-
* ```
|
|
55
|
-
*
|
|
56
|
-
* @see {@link UpdateGeoMatchSetCommandInput} for command's `input` shape.
|
|
57
|
-
* @see {@link UpdateGeoMatchSetCommandOutput} for command's `response` shape.
|
|
58
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
59
|
-
*
|
|
60
|
-
*/
|
|
61
|
-
var UpdateGeoMatchSetCommand = /** @class */ (function (_super) {
|
|
6
|
+
var UpdateGeoMatchSetCommand = (function (_super) {
|
|
62
7
|
__extends(UpdateGeoMatchSetCommand, _super);
|
|
63
|
-
// Start section: command_properties
|
|
64
|
-
// End section: command_properties
|
|
65
8
|
function UpdateGeoMatchSetCommand(input) {
|
|
66
|
-
var _this =
|
|
67
|
-
// Start section: command_constructor
|
|
68
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
69
10
|
_this.input = input;
|
|
70
11
|
return _this;
|
|
71
|
-
// End section: command_constructor
|
|
72
12
|
}
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
13
|
UpdateGeoMatchSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
77
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
78
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateGeoMatchSetCommand.js","sourceRoot":"","sources":["../../../commands/UpdateGeoMatchSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EACL,8CAA8C,EAC9C,4CAA4C,GAC7C,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":"UpdateGeoMatchSetCommand.js","sourceRoot":"","sources":["../../../commands/UpdateGeoMatchSetCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EACL,8CAA8C,EAC9C,4CAA4C,GAC7C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAqE7D;IAA8C,4CAI7C;IAIC,kCAAqB,KAAoC;QAAzD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA+B;;IAIzD,CAAC;IAKD,oDAAiB,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,0BAA0B,CAAC;QAC/C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,wBAAwB,CAAC,kBAAkB;YACpE,wBAAwB,EAAE,yBAAyB,CAAC,kBAAkB;SACvE,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,4CAAS,GAAjB,UAAkB,KAAoC,EAAE,OAAuB;QAC7E,OAAO,4CAA4C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAEO,8CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,8CAA8C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAIH,+BAAC;AAAD,CAAC,AAtDD,CAA8C,QAAQ,GAsDrD"}
|
|
@@ -3,111 +3,13 @@ import { UpdateIPSetRequest, UpdateIPSetResponse } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_1UpdateIPSetCommand, serializeAws_json1_1UpdateIPSetCommand, } 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>Inserts or deletes <a>IPSetDescriptor</a> objects in an
|
|
16
|
-
* <code>IPSet</code>. For each <code>IPSetDescriptor</code> object, you specify the following
|
|
17
|
-
* values: </p>
|
|
18
|
-
* <ul>
|
|
19
|
-
* <li>
|
|
20
|
-
* <p>Whether to insert or delete the object from the array. If you want to change an
|
|
21
|
-
* <code>IPSetDescriptor</code> object, you delete the existing object and add a new
|
|
22
|
-
* one.</p>
|
|
23
|
-
* </li>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>The IP address version, <code>IPv4</code> or <code>IPv6</code>. </p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>The IP address in CIDR notation, for example, <code>192.0.2.0/24</code> (for
|
|
29
|
-
* the range of IP addresses from <code>192.0.2.0</code> to <code>192.0.2.255</code>) or
|
|
30
|
-
* <code>192.0.2.44/32</code> (for the individual IP address
|
|
31
|
-
* <code>192.0.2.44</code>). </p>
|
|
32
|
-
* </li>
|
|
33
|
-
* </ul>
|
|
34
|
-
* <p>AWS WAF supports IPv4 address ranges: /8 and any range between /16 through /32. AWS
|
|
35
|
-
* WAF supports IPv6 address ranges: /24, /32, /48, /56, /64, and /128. For more
|
|
36
|
-
* information about CIDR notation, see the Wikipedia entry <a href="https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing">Classless
|
|
37
|
-
* Inter-Domain Routing</a>.</p>
|
|
38
|
-
* <p>IPv6 addresses can be represented using any of the following formats:</p>
|
|
39
|
-
* <ul>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>1111:0000:0000:0000:0000:0000:0000:0111/128</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>1111:0:0:0:0:0:0:0111/128</p>
|
|
45
|
-
* </li>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>1111::0111/128</p>
|
|
48
|
-
* </li>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>1111::111/128</p>
|
|
51
|
-
* </li>
|
|
52
|
-
* </ul>
|
|
53
|
-
* <p>You use an <code>IPSet</code> to specify which web requests you want to allow or
|
|
54
|
-
* block based on the IP addresses that the requests originated from. For example, if you're
|
|
55
|
-
* receiving a lot of requests from one or a small number of IP addresses and you want to
|
|
56
|
-
* block the requests, you can create an <code>IPSet</code> that specifies those IP addresses,
|
|
57
|
-
* and then configure AWS WAF to block the requests. </p>
|
|
58
|
-
* <p>To create and configure an <code>IPSet</code>, perform the following steps:</p>
|
|
59
|
-
* <ol>
|
|
60
|
-
* <li>
|
|
61
|
-
* <p>Submit a <a>CreateIPSet</a> request.</p>
|
|
62
|
-
* </li>
|
|
63
|
-
* <li>
|
|
64
|
-
* <p>Use <a>GetChangeToken</a> to get the change token that you provide
|
|
65
|
-
* in the <code>ChangeToken</code> parameter of an <a>UpdateIPSet</a>
|
|
66
|
-
* request.</p>
|
|
67
|
-
* </li>
|
|
68
|
-
* <li>
|
|
69
|
-
* <p>Submit an <code>UpdateIPSet</code> request to specify the IP addresses that you
|
|
70
|
-
* want AWS WAF to watch for.</p>
|
|
71
|
-
* </li>
|
|
72
|
-
* </ol>
|
|
73
|
-
* <p>When you update an <code>IPSet</code>, you specify the IP addresses that you want to
|
|
74
|
-
* add and/or the IP addresses that you want to delete. If you want to change an IP address,
|
|
75
|
-
* you delete the existing IP address and add the new one.</p>
|
|
76
|
-
* <p>You can insert a maximum of 1000 addresses in a single
|
|
77
|
-
* request.</p>
|
|
78
|
-
* <p>For more information about how to use the AWS WAF API to allow or block HTTP
|
|
79
|
-
* requests, see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF
|
|
80
|
-
* Developer Guide</a>.</p>
|
|
81
|
-
* @example
|
|
82
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
83
|
-
* ```javascript
|
|
84
|
-
* import { WAFClient, UpdateIPSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
85
|
-
* // const { WAFClient, UpdateIPSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
86
|
-
* const client = new WAFClient(config);
|
|
87
|
-
* const command = new UpdateIPSetCommand(input);
|
|
88
|
-
* const response = await client.send(command);
|
|
89
|
-
* ```
|
|
90
|
-
*
|
|
91
|
-
* @see {@link UpdateIPSetCommandInput} for command's `input` shape.
|
|
92
|
-
* @see {@link UpdateIPSetCommandOutput} for command's `response` shape.
|
|
93
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
94
|
-
*
|
|
95
|
-
*/
|
|
96
|
-
var UpdateIPSetCommand = /** @class */ (function (_super) {
|
|
6
|
+
var UpdateIPSetCommand = (function (_super) {
|
|
97
7
|
__extends(UpdateIPSetCommand, _super);
|
|
98
|
-
// Start section: command_properties
|
|
99
|
-
// End section: command_properties
|
|
100
8
|
function UpdateIPSetCommand(input) {
|
|
101
|
-
var _this =
|
|
102
|
-
// Start section: command_constructor
|
|
103
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
104
10
|
_this.input = input;
|
|
105
11
|
return _this;
|
|
106
|
-
// End section: command_constructor
|
|
107
12
|
}
|
|
108
|
-
/**
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
111
13
|
UpdateIPSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
112
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
113
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateIPSetCommand.js","sourceRoot":"","sources":["../../../commands/UpdateIPSetCommand.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":"UpdateIPSetCommand.js","sourceRoot":"","sources":["../../../commands/UpdateIPSetCommand.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;AAwG7D;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,92 +3,13 @@ import { UpdateRateBasedRuleRequest, UpdateRateBasedRuleResponse } from "../mode
|
|
|
3
3
|
import { deserializeAws_json1_1UpdateRateBasedRuleCommand, serializeAws_json1_1UpdateRateBasedRuleCommand, } 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>Inserts or deletes <a>Predicate</a> objects in a rule and updates the
|
|
16
|
-
* <code>RateLimit</code> in the rule. </p>
|
|
17
|
-
* <p>Each <code>Predicate</code> object identifies a predicate, such as a <a>ByteMatchSet</a> or an <a>IPSet</a>, that specifies the web requests
|
|
18
|
-
* that you want to block or count. The <code>RateLimit</code> specifies the number of
|
|
19
|
-
* requests every five minutes that triggers the rule.</p>
|
|
20
|
-
* <p>If you add more than one predicate to a <code>RateBasedRule</code>, a request must
|
|
21
|
-
* match all the predicates and exceed the <code>RateLimit</code> to be counted or blocked.
|
|
22
|
-
* For example, suppose you add the following to a <code>RateBasedRule</code>:</p>
|
|
23
|
-
* <ul>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>An <code>IPSet</code> that matches the IP address <code>192.0.2.44/32</code>
|
|
26
|
-
* </p>
|
|
27
|
-
* </li>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>A <code>ByteMatchSet</code> that matches <code>BadBot</code> in the
|
|
30
|
-
* <code>User-Agent</code> header</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* </ul>
|
|
33
|
-
* <p>Further, you specify a
|
|
34
|
-
* <code>RateLimit</code> of 1,000.</p>
|
|
35
|
-
* <p>You then add the <code>RateBasedRule</code> to a <code>WebACL</code> and specify that
|
|
36
|
-
* you want to block requests that satisfy the rule. For a request to be blocked, it must come
|
|
37
|
-
* from the IP address 192.0.2.44 <i>and</i> the <code>User-Agent</code> header
|
|
38
|
-
* in the request must contain the value <code>BadBot</code>. Further, requests that match
|
|
39
|
-
* these two conditions much be received at a rate of more than 1,000 every five minutes. If
|
|
40
|
-
* the rate drops below this limit, AWS WAF no longer blocks the requests.</p>
|
|
41
|
-
*
|
|
42
|
-
* <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
|
|
43
|
-
* <code>RateBasedRule</code>:</p>
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* <ul>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>A <code>ByteMatchSet</code> with <code>FieldToMatch</code> of <code>URI</code>
|
|
49
|
-
* </p>
|
|
50
|
-
* </li>
|
|
51
|
-
* <li>
|
|
52
|
-
* <p>A <code>PositionalConstraint</code> of <code>STARTS_WITH</code>
|
|
53
|
-
* </p>
|
|
54
|
-
* </li>
|
|
55
|
-
* <li>
|
|
56
|
-
* <p>A <code>TargetString</code> of <code>login</code>
|
|
57
|
-
* </p>
|
|
58
|
-
* </li>
|
|
59
|
-
* </ul>
|
|
60
|
-
* <p>Further, you specify a <code>RateLimit</code> of 1,000.</p>
|
|
61
|
-
* <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>
|
|
62
|
-
* @example
|
|
63
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
64
|
-
* ```javascript
|
|
65
|
-
* import { WAFClient, UpdateRateBasedRuleCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
66
|
-
* // const { WAFClient, UpdateRateBasedRuleCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
67
|
-
* const client = new WAFClient(config);
|
|
68
|
-
* const command = new UpdateRateBasedRuleCommand(input);
|
|
69
|
-
* const response = await client.send(command);
|
|
70
|
-
* ```
|
|
71
|
-
*
|
|
72
|
-
* @see {@link UpdateRateBasedRuleCommandInput} for command's `input` shape.
|
|
73
|
-
* @see {@link UpdateRateBasedRuleCommandOutput} for command's `response` shape.
|
|
74
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
75
|
-
*
|
|
76
|
-
*/
|
|
77
|
-
var UpdateRateBasedRuleCommand = /** @class */ (function (_super) {
|
|
6
|
+
var UpdateRateBasedRuleCommand = (function (_super) {
|
|
78
7
|
__extends(UpdateRateBasedRuleCommand, _super);
|
|
79
|
-
// Start section: command_properties
|
|
80
|
-
// End section: command_properties
|
|
81
8
|
function UpdateRateBasedRuleCommand(input) {
|
|
82
|
-
var _this =
|
|
83
|
-
// Start section: command_constructor
|
|
84
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
85
10
|
_this.input = input;
|
|
86
11
|
return _this;
|
|
87
|
-
// End section: command_constructor
|
|
88
12
|
}
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
92
13
|
UpdateRateBasedRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
93
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
94
15
|
var stack = clientStack.concat(this.middlewareStack);
|