@aws-sdk/client-waf 3.35.0 → 3.38.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 +47 -0
- package/dist-cjs/WAF.js +0 -14
- package/dist-cjs/WAFClient.js +0 -19
- package/dist-cjs/commands/CreateByteMatchSetCommand.js +0 -56
- package/dist-cjs/commands/CreateGeoMatchSetCommand.js +0 -53
- package/dist-cjs/commands/CreateIPSetCommand.js +0 -58
- package/dist-cjs/commands/CreateRateBasedRuleCommand.js +0 -118
- package/dist-cjs/commands/CreateRegexMatchSetCommand.js +0 -56
- package/dist-cjs/commands/CreateRegexPatternSetCommand.js +0 -52
- package/dist-cjs/commands/CreateRuleCommand.js +0 -76
- package/dist-cjs/commands/CreateRuleGroupCommand.js +0 -47
- package/dist-cjs/commands/CreateSizeConstraintSetCommand.js +0 -56
- package/dist-cjs/commands/CreateSqlInjectionMatchSetCommand.js +0 -54
- package/dist-cjs/commands/CreateWebACLCommand.js +0 -64
- package/dist-cjs/commands/CreateWebACLMigrationStackCommand.js +0 -32
- package/dist-cjs/commands/CreateXssMatchSetCommand.js +0 -54
- package/dist-cjs/commands/DeleteByteMatchSetCommand.js +0 -48
- package/dist-cjs/commands/DeleteGeoMatchSetCommand.js +0 -48
- package/dist-cjs/commands/DeleteIPSetCommand.js +0 -48
- package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +0 -34
- package/dist-cjs/commands/DeletePermissionPolicyCommand.js +0 -34
- package/dist-cjs/commands/DeleteRateBasedRuleCommand.js +0 -52
- package/dist-cjs/commands/DeleteRegexMatchSetCommand.js +0 -48
- package/dist-cjs/commands/DeleteRegexPatternSetCommand.js +0 -34
- package/dist-cjs/commands/DeleteRuleCommand.js +0 -48
- package/dist-cjs/commands/DeleteRuleGroupCommand.js +0 -48
- package/dist-cjs/commands/DeleteSizeConstraintSetCommand.js +0 -48
- package/dist-cjs/commands/DeleteSqlInjectionMatchSetCommand.js +0 -49
- package/dist-cjs/commands/DeleteWebACLCommand.js +0 -46
- package/dist-cjs/commands/DeleteXssMatchSetCommand.js +0 -49
- package/dist-cjs/commands/GetByteMatchSetCommand.js +0 -33
- package/dist-cjs/commands/GetChangeTokenCommand.js +0 -39
- package/dist-cjs/commands/GetChangeTokenStatusCommand.js +0 -49
- package/dist-cjs/commands/GetGeoMatchSetCommand.js +0 -33
- package/dist-cjs/commands/GetIPSetCommand.js +0 -33
- package/dist-cjs/commands/GetLoggingConfigurationCommand.js +0 -33
- package/dist-cjs/commands/GetPermissionPolicyCommand.js +0 -33
- package/dist-cjs/commands/GetRateBasedRuleCommand.js +0 -35
- package/dist-cjs/commands/GetRateBasedRuleManagedKeysCommand.js +0 -35
- package/dist-cjs/commands/GetRegexMatchSetCommand.js +0 -33
- package/dist-cjs/commands/GetRegexPatternSetCommand.js +0 -33
- package/dist-cjs/commands/GetRuleCommand.js +0 -33
- package/dist-cjs/commands/GetRuleGroupCommand.js +0 -34
- package/dist-cjs/commands/GetSampledRequestsCommand.js +0 -37
- package/dist-cjs/commands/GetSizeConstraintSetCommand.js +0 -33
- package/dist-cjs/commands/GetSqlInjectionMatchSetCommand.js +0 -33
- package/dist-cjs/commands/GetWebACLCommand.js +0 -33
- package/dist-cjs/commands/GetXssMatchSetCommand.js +0 -33
- package/dist-cjs/commands/ListActivatedRulesInRuleGroupCommand.js +0 -33
- package/dist-cjs/commands/ListByteMatchSetsCommand.js +0 -33
- package/dist-cjs/commands/ListGeoMatchSetsCommand.js +0 -33
- package/dist-cjs/commands/ListIPSetsCommand.js +0 -33
- package/dist-cjs/commands/ListLoggingConfigurationsCommand.js +0 -33
- package/dist-cjs/commands/ListRateBasedRulesCommand.js +0 -33
- package/dist-cjs/commands/ListRegexMatchSetsCommand.js +0 -33
- package/dist-cjs/commands/ListRegexPatternSetsCommand.js +0 -33
- package/dist-cjs/commands/ListRuleGroupsCommand.js +0 -33
- package/dist-cjs/commands/ListRulesCommand.js +0 -33
- package/dist-cjs/commands/ListSizeConstraintSetsCommand.js +0 -33
- package/dist-cjs/commands/ListSqlInjectionMatchSetsCommand.js +0 -33
- package/dist-cjs/commands/ListSubscribedRuleGroupsCommand.js +0 -33
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -34
- package/dist-cjs/commands/ListWebACLsCommand.js +0 -33
- package/dist-cjs/commands/ListXssMatchSetsCommand.js +0 -33
- package/dist-cjs/commands/PutLoggingConfigurationCommand.js +0 -50
- package/dist-cjs/commands/PutPermissionPolicyCommand.js +0 -65
- package/dist-cjs/commands/TagResourceCommand.js +0 -34
- package/dist-cjs/commands/UntagResourceCommand.js +0 -33
- package/dist-cjs/commands/UpdateByteMatchSetCommand.js +0 -71
- package/dist-cjs/commands/UpdateGeoMatchSetCommand.js +0 -63
- package/dist-cjs/commands/UpdateIPSetCommand.js +0 -98
- package/dist-cjs/commands/UpdateRateBasedRuleCommand.js +0 -79
- package/dist-cjs/commands/UpdateRegexMatchSetCommand.js +0 -67
- package/dist-cjs/commands/UpdateRegexPatternSetCommand.js +0 -72
- package/dist-cjs/commands/UpdateRuleCommand.js +0 -74
- package/dist-cjs/commands/UpdateRuleGroupCommand.js +0 -57
- package/dist-cjs/commands/UpdateSizeConstraintSetCommand.js +0 -75
- package/dist-cjs/commands/UpdateSqlInjectionMatchSetCommand.js +0 -74
- package/dist-cjs/commands/UpdateWebACLCommand.js +0 -104
- package/dist-cjs/commands/UpdateXssMatchSetCommand.js +0 -76
- package/dist-cjs/commands/index.js +80 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +3 -80
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -685
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/WAF.js +0 -1
- package/dist-es/WAFClient.js +0 -1
- package/dist-es/commands/CreateByteMatchSetCommand.js +0 -1
- package/dist-es/commands/CreateGeoMatchSetCommand.js +0 -1
- package/dist-es/commands/CreateIPSetCommand.js +0 -1
- package/dist-es/commands/CreateRateBasedRuleCommand.js +0 -1
- package/dist-es/commands/CreateRegexMatchSetCommand.js +0 -1
- package/dist-es/commands/CreateRegexPatternSetCommand.js +0 -1
- package/dist-es/commands/CreateRuleCommand.js +0 -1
- package/dist-es/commands/CreateRuleGroupCommand.js +0 -1
- package/dist-es/commands/CreateSizeConstraintSetCommand.js +0 -1
- package/dist-es/commands/CreateSqlInjectionMatchSetCommand.js +0 -1
- package/dist-es/commands/CreateWebACLCommand.js +0 -1
- package/dist-es/commands/CreateWebACLMigrationStackCommand.js +0 -1
- package/dist-es/commands/CreateXssMatchSetCommand.js +0 -1
- package/dist-es/commands/DeleteByteMatchSetCommand.js +0 -1
- package/dist-es/commands/DeleteGeoMatchSetCommand.js +0 -1
- package/dist-es/commands/DeleteIPSetCommand.js +0 -1
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +0 -1
- package/dist-es/commands/DeletePermissionPolicyCommand.js +0 -1
- package/dist-es/commands/DeleteRateBasedRuleCommand.js +0 -1
- package/dist-es/commands/DeleteRegexMatchSetCommand.js +0 -1
- package/dist-es/commands/DeleteRegexPatternSetCommand.js +0 -1
- package/dist-es/commands/DeleteRuleCommand.js +0 -1
- package/dist-es/commands/DeleteRuleGroupCommand.js +0 -1
- package/dist-es/commands/DeleteSizeConstraintSetCommand.js +0 -1
- package/dist-es/commands/DeleteSqlInjectionMatchSetCommand.js +0 -1
- package/dist-es/commands/DeleteWebACLCommand.js +0 -1
- package/dist-es/commands/DeleteXssMatchSetCommand.js +0 -1
- package/dist-es/commands/GetByteMatchSetCommand.js +0 -1
- package/dist-es/commands/GetChangeTokenCommand.js +0 -1
- package/dist-es/commands/GetChangeTokenStatusCommand.js +0 -1
- package/dist-es/commands/GetGeoMatchSetCommand.js +0 -1
- package/dist-es/commands/GetIPSetCommand.js +0 -1
- package/dist-es/commands/GetLoggingConfigurationCommand.js +0 -1
- package/dist-es/commands/GetPermissionPolicyCommand.js +0 -1
- package/dist-es/commands/GetRateBasedRuleCommand.js +0 -1
- package/dist-es/commands/GetRateBasedRuleManagedKeysCommand.js +0 -1
- package/dist-es/commands/GetRegexMatchSetCommand.js +0 -1
- package/dist-es/commands/GetRegexPatternSetCommand.js +0 -1
- package/dist-es/commands/GetRuleCommand.js +0 -1
- package/dist-es/commands/GetRuleGroupCommand.js +0 -1
- package/dist-es/commands/GetSampledRequestsCommand.js +0 -1
- package/dist-es/commands/GetSizeConstraintSetCommand.js +0 -1
- package/dist-es/commands/GetSqlInjectionMatchSetCommand.js +0 -1
- package/dist-es/commands/GetWebACLCommand.js +0 -1
- package/dist-es/commands/GetXssMatchSetCommand.js +0 -1
- package/dist-es/commands/ListActivatedRulesInRuleGroupCommand.js +0 -1
- package/dist-es/commands/ListByteMatchSetsCommand.js +0 -1
- package/dist-es/commands/ListGeoMatchSetsCommand.js +0 -1
- package/dist-es/commands/ListIPSetsCommand.js +0 -1
- package/dist-es/commands/ListLoggingConfigurationsCommand.js +0 -1
- package/dist-es/commands/ListRateBasedRulesCommand.js +0 -1
- package/dist-es/commands/ListRegexMatchSetsCommand.js +0 -1
- package/dist-es/commands/ListRegexPatternSetsCommand.js +0 -1
- package/dist-es/commands/ListRuleGroupsCommand.js +0 -1
- package/dist-es/commands/ListRulesCommand.js +0 -1
- package/dist-es/commands/ListSizeConstraintSetsCommand.js +0 -1
- package/dist-es/commands/ListSqlInjectionMatchSetsCommand.js +0 -1
- package/dist-es/commands/ListSubscribedRuleGroupsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ListWebACLsCommand.js +0 -1
- package/dist-es/commands/ListXssMatchSetsCommand.js +0 -1
- package/dist-es/commands/PutLoggingConfigurationCommand.js +0 -1
- package/dist-es/commands/PutPermissionPolicyCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateByteMatchSetCommand.js +0 -1
- package/dist-es/commands/UpdateGeoMatchSetCommand.js +0 -1
- package/dist-es/commands/UpdateIPSetCommand.js +0 -1
- package/dist-es/commands/UpdateRateBasedRuleCommand.js +0 -1
- package/dist-es/commands/UpdateRegexMatchSetCommand.js +0 -1
- package/dist-es/commands/UpdateRegexPatternSetCommand.js +0 -1
- package/dist-es/commands/UpdateRuleCommand.js +0 -1
- package/dist-es/commands/UpdateRuleGroupCommand.js +0 -1
- package/dist-es/commands/UpdateSizeConstraintSetCommand.js +0 -1
- package/dist-es/commands/UpdateSqlInjectionMatchSetCommand.js +0 -1
- package/dist-es/commands/UpdateWebACLCommand.js +0 -1
- package/dist-es/commands/UpdateXssMatchSetCommand.js +0 -1
- package/dist-es/commands/index.js +77 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +3 -80
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +77 -0
- package/dist-types/index.d.ts +3 -79
- package/dist-types/ts3.4/WAF.d.ts +78 -1975
- package/dist-types/ts3.4/WAFClient.d.ts +24 -99
- package/dist-types/ts3.4/commands/CreateByteMatchSetCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/CreateGeoMatchSetCommand.d.ts +2 -48
- package/dist-types/ts3.4/commands/CreateIPSetCommand.d.ts +2 -53
- package/dist-types/ts3.4/commands/CreateRateBasedRuleCommand.d.ts +2 -113
- package/dist-types/ts3.4/commands/CreateRegexMatchSetCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/CreateRegexPatternSetCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/CreateRuleCommand.d.ts +2 -71
- package/dist-types/ts3.4/commands/CreateRuleGroupCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/CreateSizeConstraintSetCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/CreateSqlInjectionMatchSetCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/CreateWebACLCommand.d.ts +2 -59
- package/dist-types/ts3.4/commands/CreateWebACLMigrationStackCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/CreateXssMatchSetCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/DeleteByteMatchSetCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/DeleteGeoMatchSetCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/DeleteIPSetCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/DeletePermissionPolicyCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/DeleteRateBasedRuleCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/DeleteRegexMatchSetCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/DeleteRegexPatternSetCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/DeleteRuleCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/DeleteRuleGroupCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/DeleteSizeConstraintSetCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/DeleteSqlInjectionMatchSetCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/DeleteWebACLCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/DeleteXssMatchSetCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/GetByteMatchSetCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/GetChangeTokenCommand.d.ts +2 -34
- package/dist-types/ts3.4/commands/GetChangeTokenStatusCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/GetGeoMatchSetCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/GetIPSetCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/GetLoggingConfigurationCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/GetPermissionPolicyCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/GetRateBasedRuleCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/GetRateBasedRuleManagedKeysCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/GetRegexMatchSetCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/GetRegexPatternSetCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/GetRuleCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/GetRuleGroupCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/GetSampledRequestsCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/GetSizeConstraintSetCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/GetSqlInjectionMatchSetCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/GetWebACLCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/GetXssMatchSetCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListActivatedRulesInRuleGroupCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListByteMatchSetsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListGeoMatchSetsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListIPSetsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListLoggingConfigurationsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListRateBasedRulesCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListRegexMatchSetsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListRegexPatternSetsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListRuleGroupsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListRulesCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListSizeConstraintSetsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListSqlInjectionMatchSetsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListSubscribedRuleGroupsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/ListWebACLsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListXssMatchSetsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/PutLoggingConfigurationCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/PutPermissionPolicyCommand.d.ts +2 -60
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/UpdateByteMatchSetCommand.d.ts +2 -66
- package/dist-types/ts3.4/commands/UpdateGeoMatchSetCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/UpdateIPSetCommand.d.ts +2 -93
- package/dist-types/ts3.4/commands/UpdateRateBasedRuleCommand.d.ts +2 -74
- package/dist-types/ts3.4/commands/UpdateRegexMatchSetCommand.d.ts +2 -62
- package/dist-types/ts3.4/commands/UpdateRegexPatternSetCommand.d.ts +2 -67
- package/dist-types/ts3.4/commands/UpdateRuleCommand.d.ts +2 -69
- package/dist-types/ts3.4/commands/UpdateRuleGroupCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/UpdateSizeConstraintSetCommand.d.ts +2 -70
- package/dist-types/ts3.4/commands/UpdateSqlInjectionMatchSetCommand.d.ts +2 -69
- package/dist-types/ts3.4/commands/UpdateWebACLCommand.d.ts +2 -99
- package/dist-types/ts3.4/commands/UpdateXssMatchSetCommand.d.ts +2 -71
- package/dist-types/ts3.4/commands/index.d.ts +77 -0
- package/dist-types/ts3.4/index.d.ts +3 -79
- package/dist-types/ts3.4/models/models_0.d.ts +734 -4389
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/WAF.js.map +0 -1
- package/dist-cjs/WAFClient.js.map +0 -1
- package/dist-cjs/commands/CreateByteMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateGeoMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateIPSetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRateBasedRuleCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRegexMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRegexPatternSetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRuleCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRuleGroupCommand.js.map +0 -1
- package/dist-cjs/commands/CreateSizeConstraintSetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateSqlInjectionMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateWebACLCommand.js.map +0 -1
- package/dist-cjs/commands/CreateWebACLMigrationStackCommand.js.map +0 -1
- package/dist-cjs/commands/CreateXssMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteByteMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteGeoMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteIPSetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/DeletePermissionPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRateBasedRuleCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRegexMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRegexPatternSetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRuleCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRuleGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteSizeConstraintSetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteSqlInjectionMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteWebACLCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteXssMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/GetByteMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/GetChangeTokenCommand.js.map +0 -1
- package/dist-cjs/commands/GetChangeTokenStatusCommand.js.map +0 -1
- package/dist-cjs/commands/GetGeoMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/GetIPSetCommand.js.map +0 -1
- package/dist-cjs/commands/GetLoggingConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/GetPermissionPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/GetRateBasedRuleCommand.js.map +0 -1
- package/dist-cjs/commands/GetRateBasedRuleManagedKeysCommand.js.map +0 -1
- package/dist-cjs/commands/GetRegexMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/GetRegexPatternSetCommand.js.map +0 -1
- package/dist-cjs/commands/GetRuleCommand.js.map +0 -1
- package/dist-cjs/commands/GetRuleGroupCommand.js.map +0 -1
- package/dist-cjs/commands/GetSampledRequestsCommand.js.map +0 -1
- package/dist-cjs/commands/GetSizeConstraintSetCommand.js.map +0 -1
- package/dist-cjs/commands/GetSqlInjectionMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/GetWebACLCommand.js.map +0 -1
- package/dist-cjs/commands/GetXssMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/ListActivatedRulesInRuleGroupCommand.js.map +0 -1
- package/dist-cjs/commands/ListByteMatchSetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListGeoMatchSetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListIPSetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListLoggingConfigurationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListRateBasedRulesCommand.js.map +0 -1
- package/dist-cjs/commands/ListRegexMatchSetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListRegexPatternSetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListRuleGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/ListRulesCommand.js.map +0 -1
- package/dist-cjs/commands/ListSizeConstraintSetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListSqlInjectionMatchSetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListSubscribedRuleGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ListWebACLsCommand.js.map +0 -1
- package/dist-cjs/commands/ListXssMatchSetsCommand.js.map +0 -1
- package/dist-cjs/commands/PutLoggingConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/PutPermissionPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateByteMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateGeoMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateIPSetCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateRateBasedRuleCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateRegexMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateRegexPatternSetCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateRuleCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateRuleGroupCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateSizeConstraintSetCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateSqlInjectionMatchSetCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateWebACLCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateXssMatchSetCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/WAF.js.map +0 -1
- package/dist-es/WAFClient.js.map +0 -1
- package/dist-es/commands/CreateByteMatchSetCommand.js.map +0 -1
- package/dist-es/commands/CreateGeoMatchSetCommand.js.map +0 -1
- package/dist-es/commands/CreateIPSetCommand.js.map +0 -1
- package/dist-es/commands/CreateRateBasedRuleCommand.js.map +0 -1
- package/dist-es/commands/CreateRegexMatchSetCommand.js.map +0 -1
- package/dist-es/commands/CreateRegexPatternSetCommand.js.map +0 -1
- package/dist-es/commands/CreateRuleCommand.js.map +0 -1
- package/dist-es/commands/CreateRuleGroupCommand.js.map +0 -1
- package/dist-es/commands/CreateSizeConstraintSetCommand.js.map +0 -1
- package/dist-es/commands/CreateSqlInjectionMatchSetCommand.js.map +0 -1
- package/dist-es/commands/CreateWebACLCommand.js.map +0 -1
- package/dist-es/commands/CreateWebACLMigrationStackCommand.js.map +0 -1
- package/dist-es/commands/CreateXssMatchSetCommand.js.map +0 -1
- package/dist-es/commands/DeleteByteMatchSetCommand.js.map +0 -1
- package/dist-es/commands/DeleteGeoMatchSetCommand.js.map +0 -1
- package/dist-es/commands/DeleteIPSetCommand.js.map +0 -1
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js.map +0 -1
- package/dist-es/commands/DeletePermissionPolicyCommand.js.map +0 -1
- package/dist-es/commands/DeleteRateBasedRuleCommand.js.map +0 -1
- package/dist-es/commands/DeleteRegexMatchSetCommand.js.map +0 -1
- package/dist-es/commands/DeleteRegexPatternSetCommand.js.map +0 -1
- package/dist-es/commands/DeleteRuleCommand.js.map +0 -1
- package/dist-es/commands/DeleteRuleGroupCommand.js.map +0 -1
- package/dist-es/commands/DeleteSizeConstraintSetCommand.js.map +0 -1
- package/dist-es/commands/DeleteSqlInjectionMatchSetCommand.js.map +0 -1
- package/dist-es/commands/DeleteWebACLCommand.js.map +0 -1
- package/dist-es/commands/DeleteXssMatchSetCommand.js.map +0 -1
- package/dist-es/commands/GetByteMatchSetCommand.js.map +0 -1
- package/dist-es/commands/GetChangeTokenCommand.js.map +0 -1
- package/dist-es/commands/GetChangeTokenStatusCommand.js.map +0 -1
- package/dist-es/commands/GetGeoMatchSetCommand.js.map +0 -1
- package/dist-es/commands/GetIPSetCommand.js.map +0 -1
- package/dist-es/commands/GetLoggingConfigurationCommand.js.map +0 -1
- package/dist-es/commands/GetPermissionPolicyCommand.js.map +0 -1
- package/dist-es/commands/GetRateBasedRuleCommand.js.map +0 -1
- package/dist-es/commands/GetRateBasedRuleManagedKeysCommand.js.map +0 -1
- package/dist-es/commands/GetRegexMatchSetCommand.js.map +0 -1
- package/dist-es/commands/GetRegexPatternSetCommand.js.map +0 -1
- package/dist-es/commands/GetRuleCommand.js.map +0 -1
- package/dist-es/commands/GetRuleGroupCommand.js.map +0 -1
- package/dist-es/commands/GetSampledRequestsCommand.js.map +0 -1
- package/dist-es/commands/GetSizeConstraintSetCommand.js.map +0 -1
- package/dist-es/commands/GetSqlInjectionMatchSetCommand.js.map +0 -1
- package/dist-es/commands/GetWebACLCommand.js.map +0 -1
- package/dist-es/commands/GetXssMatchSetCommand.js.map +0 -1
- package/dist-es/commands/ListActivatedRulesInRuleGroupCommand.js.map +0 -1
- package/dist-es/commands/ListByteMatchSetsCommand.js.map +0 -1
- package/dist-es/commands/ListGeoMatchSetsCommand.js.map +0 -1
- package/dist-es/commands/ListIPSetsCommand.js.map +0 -1
- package/dist-es/commands/ListLoggingConfigurationsCommand.js.map +0 -1
- package/dist-es/commands/ListRateBasedRulesCommand.js.map +0 -1
- package/dist-es/commands/ListRegexMatchSetsCommand.js.map +0 -1
- package/dist-es/commands/ListRegexPatternSetsCommand.js.map +0 -1
- package/dist-es/commands/ListRuleGroupsCommand.js.map +0 -1
- package/dist-es/commands/ListRulesCommand.js.map +0 -1
- package/dist-es/commands/ListSizeConstraintSetsCommand.js.map +0 -1
- package/dist-es/commands/ListSqlInjectionMatchSetsCommand.js.map +0 -1
- package/dist-es/commands/ListSubscribedRuleGroupsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ListWebACLsCommand.js.map +0 -1
- package/dist-es/commands/ListXssMatchSetsCommand.js.map +0 -1
- package/dist-es/commands/PutLoggingConfigurationCommand.js.map +0 -1
- package/dist-es/commands/PutPermissionPolicyCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateByteMatchSetCommand.js.map +0 -1
- package/dist-es/commands/UpdateGeoMatchSetCommand.js.map +0 -1
- package/dist-es/commands/UpdateIPSetCommand.js.map +0 -1
- package/dist-es/commands/UpdateRateBasedRuleCommand.js.map +0 -1
- package/dist-es/commands/UpdateRegexMatchSetCommand.js.map +0 -1
- package/dist-es/commands/UpdateRegexPatternSetCommand.js.map +0 -1
- package/dist-es/commands/UpdateRuleCommand.js.map +0 -1
- package/dist-es/commands/UpdateRuleGroupCommand.js.map +0 -1
- package/dist-es/commands/UpdateSizeConstraintSetCommand.js.map +0 -1
- package/dist-es/commands/UpdateSqlInjectionMatchSetCommand.js.map +0 -1
- package/dist-es/commands/UpdateWebACLCommand.js.map +0 -1
- package/dist-es/commands/UpdateXssMatchSetCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/WAF.ts +0 -4456
- package/src/WAFClient.ts +0 -576
- package/src/commands/CreateByteMatchSetCommand.ts +0 -126
- package/src/commands/CreateGeoMatchSetCommand.ts +0 -123
- package/src/commands/CreateIPSetCommand.ts +0 -128
- package/src/commands/CreateRateBasedRuleCommand.ts +0 -188
- package/src/commands/CreateRegexMatchSetCommand.ts +0 -126
- package/src/commands/CreateRegexPatternSetCommand.ts +0 -122
- package/src/commands/CreateRuleCommand.ts +0 -146
- package/src/commands/CreateRuleGroupCommand.ts +0 -117
- package/src/commands/CreateSizeConstraintSetCommand.ts +0 -126
- package/src/commands/CreateSqlInjectionMatchSetCommand.ts +0 -127
- package/src/commands/CreateWebACLCommand.ts +0 -134
- package/src/commands/CreateWebACLMigrationStackCommand.ts +0 -105
- package/src/commands/CreateXssMatchSetCommand.ts +0 -124
- package/src/commands/DeleteByteMatchSetCommand.ts +0 -118
- package/src/commands/DeleteGeoMatchSetCommand.ts +0 -118
- package/src/commands/DeleteIPSetCommand.ts +0 -118
- package/src/commands/DeleteLoggingConfigurationCommand.ts +0 -107
- package/src/commands/DeletePermissionPolicyCommand.ts +0 -104
- package/src/commands/DeleteRateBasedRuleCommand.ts +0 -122
- package/src/commands/DeleteRegexMatchSetCommand.ts +0 -118
- package/src/commands/DeleteRegexPatternSetCommand.ts +0 -104
- package/src/commands/DeleteRuleCommand.ts +0 -118
- package/src/commands/DeleteRuleGroupCommand.ts +0 -118
- package/src/commands/DeleteSizeConstraintSetCommand.ts +0 -118
- package/src/commands/DeleteSqlInjectionMatchSetCommand.ts +0 -122
- package/src/commands/DeleteWebACLCommand.ts +0 -116
- package/src/commands/DeleteXssMatchSetCommand.ts +0 -119
- package/src/commands/GetByteMatchSetCommand.ts +0 -103
- package/src/commands/GetChangeTokenCommand.ts +0 -109
- package/src/commands/GetChangeTokenStatusCommand.ts +0 -119
- package/src/commands/GetGeoMatchSetCommand.ts +0 -103
- package/src/commands/GetIPSetCommand.ts +0 -96
- package/src/commands/GetLoggingConfigurationCommand.ts +0 -103
- package/src/commands/GetPermissionPolicyCommand.ts +0 -103
- package/src/commands/GetRateBasedRuleCommand.ts +0 -105
- package/src/commands/GetRateBasedRuleManagedKeysCommand.ts +0 -110
- package/src/commands/GetRegexMatchSetCommand.ts +0 -103
- package/src/commands/GetRegexPatternSetCommand.ts +0 -103
- package/src/commands/GetRuleCommand.ts +0 -96
- package/src/commands/GetRuleGroupCommand.ts +0 -104
- package/src/commands/GetSampledRequestsCommand.ts +0 -107
- package/src/commands/GetSizeConstraintSetCommand.ts +0 -103
- package/src/commands/GetSqlInjectionMatchSetCommand.ts +0 -103
- package/src/commands/GetWebACLCommand.ts +0 -96
- package/src/commands/GetXssMatchSetCommand.ts +0 -103
- package/src/commands/ListActivatedRulesInRuleGroupCommand.ts +0 -108
- package/src/commands/ListByteMatchSetsCommand.ts +0 -103
- package/src/commands/ListGeoMatchSetsCommand.ts +0 -103
- package/src/commands/ListIPSetsCommand.ts +0 -103
- package/src/commands/ListLoggingConfigurationsCommand.ts +0 -106
- package/src/commands/ListRateBasedRulesCommand.ts +0 -103
- package/src/commands/ListRegexMatchSetsCommand.ts +0 -103
- package/src/commands/ListRegexPatternSetsCommand.ts +0 -103
- package/src/commands/ListRuleGroupsCommand.ts +0 -103
- package/src/commands/ListRulesCommand.ts +0 -96
- package/src/commands/ListSizeConstraintSetsCommand.ts +0 -103
- package/src/commands/ListSqlInjectionMatchSetsCommand.ts +0 -106
- package/src/commands/ListSubscribedRuleGroupsCommand.ts +0 -103
- package/src/commands/ListTagsForResourceCommand.ts +0 -104
- package/src/commands/ListWebACLsCommand.ts +0 -103
- package/src/commands/ListXssMatchSetsCommand.ts +0 -103
- package/src/commands/PutLoggingConfigurationCommand.ts +0 -120
- package/src/commands/PutPermissionPolicyCommand.ts +0 -135
- package/src/commands/TagResourceCommand.ts +0 -104
- package/src/commands/UntagResourceCommand.ts +0 -103
- package/src/commands/UpdateByteMatchSetCommand.ts +0 -141
- package/src/commands/UpdateGeoMatchSetCommand.ts +0 -133
- package/src/commands/UpdateIPSetCommand.ts +0 -168
- package/src/commands/UpdateRateBasedRuleCommand.ts +0 -149
- package/src/commands/UpdateRegexMatchSetCommand.ts +0 -137
- package/src/commands/UpdateRegexPatternSetCommand.ts +0 -142
- package/src/commands/UpdateRuleCommand.ts +0 -144
- package/src/commands/UpdateRuleGroupCommand.ts +0 -127
- package/src/commands/UpdateSizeConstraintSetCommand.ts +0 -145
- package/src/commands/UpdateSqlInjectionMatchSetCommand.ts +0 -147
- package/src/commands/UpdateWebACLCommand.ts +0 -174
- package/src/commands/UpdateXssMatchSetCommand.ts +0 -146
- package/src/endpoints.ts +0 -68
- package/src/index.ts +0 -80
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -7494
- package/src/protocols/Aws_json1_1.ts +0 -11232
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -5,82 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <note>
|
|
10
|
-
* <p>This is <b>AWS WAF Classic</b> documentation. For
|
|
11
|
-
* more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
|
|
12
|
-
* WAF Classic</a> in the developer guide.</p>
|
|
13
|
-
* <p>
|
|
14
|
-
* <b>For the latest version of AWS
|
|
15
|
-
* 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>
|
|
16
|
-
* </note>
|
|
17
|
-
* <p>Inserts or deletes <code>RegexPatternString</code> objects in a <a>RegexPatternSet</a>. For each <code>RegexPatternString</code> object,
|
|
18
|
-
* you specify the following values: </p>
|
|
19
|
-
* <ul>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>Whether to insert or delete the <code>RegexPatternString</code>.</p>
|
|
22
|
-
* </li>
|
|
23
|
-
* <li>
|
|
24
|
-
* <p>The regular expression pattern that you want to insert or delete. For more information, see <a>RegexPatternSet</a>. </p>
|
|
25
|
-
* </li>
|
|
26
|
-
* </ul>
|
|
27
|
-
* <p> For example, you can create a <code>RegexPatternString</code> such as <code>B[a@]dB[o0]t</code>. AWS WAF will match this <code>RegexPatternString</code> to:</p>
|
|
28
|
-
* <ul>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>BadBot</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>BadB0t</p>
|
|
34
|
-
* </li>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>B@dBot</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>B@dB0t</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* </ul>
|
|
42
|
-
* <p>To create and configure a <code>RegexPatternSet</code>, perform the following steps:</p>
|
|
43
|
-
* <ol>
|
|
44
|
-
* <li>
|
|
45
|
-
* <p>Create a <code>RegexPatternSet.</code> For more information, see <a>CreateRegexPatternSet</a>.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
|
|
49
|
-
* <code>UpdateRegexPatternSet</code> request.</p>
|
|
50
|
-
* </li>
|
|
51
|
-
* <li>
|
|
52
|
-
* <p>Submit an <code>UpdateRegexPatternSet</code> request to specify the regular expression pattern that you want AWS WAF to watch for.</p>
|
|
53
|
-
* </li>
|
|
54
|
-
* </ol>
|
|
55
|
-
* <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
|
|
56
|
-
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
|
|
57
|
-
* @example
|
|
58
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
59
|
-
* ```javascript
|
|
60
|
-
* import { WAFClient, UpdateRegexPatternSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
61
|
-
* // const { WAFClient, UpdateRegexPatternSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
62
|
-
* const client = new WAFClient(config);
|
|
63
|
-
* const command = new UpdateRegexPatternSetCommand(input);
|
|
64
|
-
* const response = await client.send(command);
|
|
65
|
-
* ```
|
|
66
|
-
*
|
|
67
|
-
* @see {@link UpdateRegexPatternSetCommandInput} for command's `input` shape.
|
|
68
|
-
* @see {@link UpdateRegexPatternSetCommandOutput} for command's `response` shape.
|
|
69
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
70
|
-
*
|
|
71
|
-
*/
|
|
72
8
|
class UpdateRegexPatternSetCommand extends smithy_client_1.Command {
|
|
73
|
-
// Start section: command_properties
|
|
74
|
-
// End section: command_properties
|
|
75
9
|
constructor(input) {
|
|
76
|
-
// Start section: command_constructor
|
|
77
10
|
super();
|
|
78
11
|
this.input = input;
|
|
79
|
-
// End section: command_constructor
|
|
80
12
|
}
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
85
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
86
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -105,4 +34,3 @@ class UpdateRegexPatternSetCommand extends smithy_client_1.Command {
|
|
|
105
34
|
}
|
|
106
35
|
}
|
|
107
36
|
exports.UpdateRegexPatternSetCommand = UpdateRegexPatternSetCommand;
|
|
108
|
-
//# sourceMappingURL=UpdateRegexPatternSetCommand.js.map
|
|
@@ -5,84 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <note>
|
|
10
|
-
* <p>This is <b>AWS WAF Classic</b> documentation. For
|
|
11
|
-
* more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
|
|
12
|
-
* WAF Classic</a> in the developer guide.</p>
|
|
13
|
-
* <p>
|
|
14
|
-
* <b>For the latest version of AWS
|
|
15
|
-
* 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>
|
|
16
|
-
* </note>
|
|
17
|
-
* <p>Inserts or deletes <a>Predicate</a> objects in a <code>Rule</code>. Each
|
|
18
|
-
* <code>Predicate</code> object identifies a predicate, such as a <a>ByteMatchSet</a> or an <a>IPSet</a>, that specifies the web requests
|
|
19
|
-
* that you want to allow, block, or count. If you add more than one predicate to a
|
|
20
|
-
* <code>Rule</code>, a request must match all of the specifications to be allowed,
|
|
21
|
-
* blocked, or counted. For example, suppose
|
|
22
|
-
* that
|
|
23
|
-
* you add the following to a <code>Rule</code>: </p>
|
|
24
|
-
* <ul>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>A <code>ByteMatchSet</code> that matches the value <code>BadBot</code> in the <code>User-Agent</code> header</p>
|
|
27
|
-
* </li>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>An <code>IPSet</code> that matches the IP address <code>192.0.2.44</code>
|
|
30
|
-
* </p>
|
|
31
|
-
* </li>
|
|
32
|
-
* </ul>
|
|
33
|
-
* <p>You then add the <code>Rule</code> to a <code>WebACL</code> and specify that you want to block requests that satisfy the <code>Rule</code>.
|
|
34
|
-
* For a request to be blocked, the <code>User-Agent</code> header in the request must contain the value <code>BadBot</code>
|
|
35
|
-
* <i>and</i> the request must originate from the IP address 192.0.2.44.</p>
|
|
36
|
-
* <p>To create and configure a <code>Rule</code>, perform the following steps:</p>
|
|
37
|
-
* <ol>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>Create and update the predicates that you want to include in the <code>Rule</code>.</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* <li>
|
|
42
|
-
* <p>Create the <code>Rule</code>. See <a>CreateRule</a>.</p>
|
|
43
|
-
* </li>
|
|
44
|
-
* <li>
|
|
45
|
-
* <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
|
|
46
|
-
* <a>UpdateRule</a> request.</p>
|
|
47
|
-
* </li>
|
|
48
|
-
* <li>
|
|
49
|
-
* <p>Submit an <code>UpdateRule</code> request to add predicates to the <code>Rule</code>.</p>
|
|
50
|
-
* </li>
|
|
51
|
-
* <li>
|
|
52
|
-
* <p>Create and update a <code>WebACL</code> that contains the <code>Rule</code>. See <a>CreateWebACL</a>.</p>
|
|
53
|
-
* </li>
|
|
54
|
-
* </ol>
|
|
55
|
-
* <p>If you want to replace one <code>ByteMatchSet</code> or <code>IPSet</code> with another, you delete the existing one and
|
|
56
|
-
* add the new one.</p>
|
|
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, UpdateRuleCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
63
|
-
* // const { WAFClient, UpdateRuleCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
64
|
-
* const client = new WAFClient(config);
|
|
65
|
-
* const command = new UpdateRuleCommand(input);
|
|
66
|
-
* const response = await client.send(command);
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* @see {@link UpdateRuleCommandInput} for command's `input` shape.
|
|
70
|
-
* @see {@link UpdateRuleCommandOutput} for command's `response` shape.
|
|
71
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
8
|
class UpdateRuleCommand extends smithy_client_1.Command {
|
|
75
|
-
// Start section: command_properties
|
|
76
|
-
// End section: command_properties
|
|
77
9
|
constructor(input) {
|
|
78
|
-
// Start section: command_constructor
|
|
79
10
|
super();
|
|
80
11
|
this.input = input;
|
|
81
|
-
// End section: command_constructor
|
|
82
12
|
}
|
|
83
|
-
/**
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
86
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
87
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
88
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -107,4 +34,3 @@ class UpdateRuleCommand extends smithy_client_1.Command {
|
|
|
107
34
|
}
|
|
108
35
|
}
|
|
109
36
|
exports.UpdateRuleCommand = UpdateRuleCommand;
|
|
110
|
-
//# sourceMappingURL=UpdateRuleCommand.js.map
|
|
@@ -5,67 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <note>
|
|
10
|
-
* <p>This is <b>AWS WAF Classic</b> documentation. For
|
|
11
|
-
* more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
|
|
12
|
-
* WAF Classic</a> in the developer guide.</p>
|
|
13
|
-
* <p>
|
|
14
|
-
* <b>For the latest version of AWS
|
|
15
|
-
* 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>
|
|
16
|
-
* </note>
|
|
17
|
-
* <p>Inserts or deletes <a>ActivatedRule</a> objects in a <code>RuleGroup</code>.</p>
|
|
18
|
-
* <p>You can only insert <code>REGULAR</code> rules into a rule group.</p>
|
|
19
|
-
* <p>You can have a maximum of ten rules per rule group.</p>
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* <p>To create and configure a <code>RuleGroup</code>, perform the following steps:</p>
|
|
23
|
-
* <ol>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>Create and update the <code>Rules</code> that you want to include in the <code>RuleGroup</code>. See <a>CreateRule</a>.</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
|
|
29
|
-
* <a>UpdateRuleGroup</a> request.</p>
|
|
30
|
-
* </li>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>Submit an <code>UpdateRuleGroup</code> request to add <code>Rules</code> to the <code>RuleGroup</code>.</p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>Create and update a <code>WebACL</code> that contains the <code>RuleGroup</code>. See <a>CreateWebACL</a>.</p>
|
|
36
|
-
* </li>
|
|
37
|
-
* </ol>
|
|
38
|
-
* <p>If you want to replace one <code>Rule</code> with another, you delete the existing one and
|
|
39
|
-
* add the new one.</p>
|
|
40
|
-
* <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
|
|
41
|
-
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
|
|
42
|
-
* @example
|
|
43
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
44
|
-
* ```javascript
|
|
45
|
-
* import { WAFClient, UpdateRuleGroupCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
46
|
-
* // const { WAFClient, UpdateRuleGroupCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
47
|
-
* const client = new WAFClient(config);
|
|
48
|
-
* const command = new UpdateRuleGroupCommand(input);
|
|
49
|
-
* const response = await client.send(command);
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* @see {@link UpdateRuleGroupCommandInput} for command's `input` shape.
|
|
53
|
-
* @see {@link UpdateRuleGroupCommandOutput} for command's `response` shape.
|
|
54
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
55
|
-
*
|
|
56
|
-
*/
|
|
57
8
|
class UpdateRuleGroupCommand extends smithy_client_1.Command {
|
|
58
|
-
// Start section: command_properties
|
|
59
|
-
// End section: command_properties
|
|
60
9
|
constructor(input) {
|
|
61
|
-
// Start section: command_constructor
|
|
62
10
|
super();
|
|
63
11
|
this.input = input;
|
|
64
|
-
// End section: command_constructor
|
|
65
12
|
}
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
70
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
71
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -90,4 +34,3 @@ class UpdateRuleGroupCommand extends smithy_client_1.Command {
|
|
|
90
34
|
}
|
|
91
35
|
}
|
|
92
36
|
exports.UpdateRuleGroupCommand = UpdateRuleGroupCommand;
|
|
93
|
-
//# sourceMappingURL=UpdateRuleGroupCommand.js.map
|
|
@@ -5,85 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <note>
|
|
10
|
-
* <p>This is <b>AWS WAF Classic</b> documentation. For
|
|
11
|
-
* more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
|
|
12
|
-
* WAF Classic</a> in the developer guide.</p>
|
|
13
|
-
* <p>
|
|
14
|
-
* <b>For the latest version of AWS
|
|
15
|
-
* 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>
|
|
16
|
-
* </note>
|
|
17
|
-
* <p>Inserts or deletes <a>SizeConstraint</a> objects (filters) in a <a>SizeConstraintSet</a>. For each <code>SizeConstraint</code> object,
|
|
18
|
-
* you specify the following values: </p>
|
|
19
|
-
* <ul>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>Whether to insert or delete the object from the array. If you want to change a <code>SizeConstraintSetUpdate</code> object,
|
|
22
|
-
* you delete the existing object and add a new one.</p>
|
|
23
|
-
* </li>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>The part of a web request that you want AWS WAF to evaluate, such as the length of a query string or the length of the
|
|
26
|
-
* <code>User-Agent</code> header.</p>
|
|
27
|
-
* </li>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>Whether to perform any transformations on the request, such as converting it to lowercase, before checking its length.
|
|
30
|
-
* Note that transformations of the request body are not supported because the AWS resource forwards only the first <code>8192</code> bytes
|
|
31
|
-
* of your request to AWS WAF.</p>
|
|
32
|
-
* <p>You can only specify a single type of TextTransformation.</p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>A <code>ComparisonOperator</code> used for evaluating the selected part of the request against the specified <code>Size</code>, such as
|
|
36
|
-
* equals, greater than, less than, and so on.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>The length, in bytes, that you want AWS WAF to watch for in selected part of the request. The length is computed after applying the transformation.</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* </ul>
|
|
42
|
-
* <p>For example, you can add a <code>SizeConstraintSetUpdate</code> object that matches web requests in which the length of the
|
|
43
|
-
* <code>User-Agent</code> header is greater than 100 bytes. You can then configure AWS WAF to block those requests.</p>
|
|
44
|
-
* <p>To create and configure a <code>SizeConstraintSet</code>, perform the following steps:</p>
|
|
45
|
-
* <ol>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>Create a <code>SizeConstraintSet.</code> For more information, see <a>CreateSizeConstraintSet</a>.</p>
|
|
48
|
-
* </li>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
|
|
51
|
-
* <code>UpdateSizeConstraintSet</code> request.</p>
|
|
52
|
-
* </li>
|
|
53
|
-
* <li>
|
|
54
|
-
* <p>Submit an <code>UpdateSizeConstraintSet</code> request to specify the part of the request that you want AWS WAF to inspect
|
|
55
|
-
* (for example, the header or the URI) and the value that you want AWS WAF to watch for.</p>
|
|
56
|
-
* </li>
|
|
57
|
-
* </ol>
|
|
58
|
-
* <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
|
|
59
|
-
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
|
|
60
|
-
* @example
|
|
61
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
62
|
-
* ```javascript
|
|
63
|
-
* import { WAFClient, UpdateSizeConstraintSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
64
|
-
* // const { WAFClient, UpdateSizeConstraintSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
65
|
-
* const client = new WAFClient(config);
|
|
66
|
-
* const command = new UpdateSizeConstraintSetCommand(input);
|
|
67
|
-
* const response = await client.send(command);
|
|
68
|
-
* ```
|
|
69
|
-
*
|
|
70
|
-
* @see {@link UpdateSizeConstraintSetCommandInput} for command's `input` shape.
|
|
71
|
-
* @see {@link UpdateSizeConstraintSetCommandOutput} for command's `response` shape.
|
|
72
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
73
|
-
*
|
|
74
|
-
*/
|
|
75
8
|
class UpdateSizeConstraintSetCommand extends smithy_client_1.Command {
|
|
76
|
-
// Start section: command_properties
|
|
77
|
-
// End section: command_properties
|
|
78
9
|
constructor(input) {
|
|
79
|
-
// Start section: command_constructor
|
|
80
10
|
super();
|
|
81
11
|
this.input = input;
|
|
82
|
-
// End section: command_constructor
|
|
83
12
|
}
|
|
84
|
-
/**
|
|
85
|
-
* @internal
|
|
86
|
-
*/
|
|
87
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
88
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
89
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -108,4 +34,3 @@ class UpdateSizeConstraintSetCommand extends smithy_client_1.Command {
|
|
|
108
34
|
}
|
|
109
35
|
}
|
|
110
36
|
exports.UpdateSizeConstraintSetCommand = UpdateSizeConstraintSetCommand;
|
|
111
|
-
//# sourceMappingURL=UpdateSizeConstraintSetCommand.js.map
|
|
@@ -5,84 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <note>
|
|
10
|
-
* <p>This is <b>AWS WAF Classic</b> documentation. For
|
|
11
|
-
* more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
|
|
12
|
-
* WAF Classic</a> in the developer guide.</p>
|
|
13
|
-
* <p>
|
|
14
|
-
* <b>For the latest version of AWS
|
|
15
|
-
* 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>
|
|
16
|
-
* </note>
|
|
17
|
-
* <p>Inserts or deletes <a>SqlInjectionMatchTuple</a> objects (filters) in a <a>SqlInjectionMatchSet</a>.
|
|
18
|
-
* For each <code>SqlInjectionMatchTuple</code> object, you specify the following values:</p>
|
|
19
|
-
* <ul>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>
|
|
22
|
-
* <code>Action</code>: Whether to insert the object into or delete the object from the array. To change a
|
|
23
|
-
* <code>SqlInjectionMatchTuple</code>, you delete the existing object and add a new one.</p>
|
|
24
|
-
* </li>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>
|
|
27
|
-
* <code>FieldToMatch</code>: The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header or custom query parameter,
|
|
28
|
-
* the name of the header or parameter.</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>
|
|
32
|
-
* <code>TextTransformation</code>: Which text transformation, if any, to perform on the web request before
|
|
33
|
-
* inspecting the request for snippets of malicious SQL code.</p>
|
|
34
|
-
* <p>You can only specify a single type of TextTransformation.</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* </ul>
|
|
37
|
-
* <p>You use <code>SqlInjectionMatchSet</code> objects to specify which CloudFront
|
|
38
|
-
* requests that
|
|
39
|
-
* you want to allow, block, or count. For example, if you're receiving
|
|
40
|
-
* requests that contain snippets of SQL code in the query string and you want to block the
|
|
41
|
-
* requests, you can create a <code>SqlInjectionMatchSet</code> with the applicable settings,
|
|
42
|
-
* and then configure AWS WAF to block the requests. </p>
|
|
43
|
-
* <p>To create and configure a <code>SqlInjectionMatchSet</code>, perform the following steps:</p>
|
|
44
|
-
* <ol>
|
|
45
|
-
* <li>
|
|
46
|
-
* <p>Submit a <a>CreateSqlInjectionMatchSet</a> request.</p>
|
|
47
|
-
* </li>
|
|
48
|
-
* <li>
|
|
49
|
-
* <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
|
|
50
|
-
* <a>UpdateIPSet</a> request.</p>
|
|
51
|
-
* </li>
|
|
52
|
-
* <li>
|
|
53
|
-
* <p>Submit an <code>UpdateSqlInjectionMatchSet</code> request to specify the parts of web requests that you want AWS WAF to
|
|
54
|
-
* inspect for snippets of SQL code.</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, UpdateSqlInjectionMatchSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
63
|
-
* // const { WAFClient, UpdateSqlInjectionMatchSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
64
|
-
* const client = new WAFClient(config);
|
|
65
|
-
* const command = new UpdateSqlInjectionMatchSetCommand(input);
|
|
66
|
-
* const response = await client.send(command);
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* @see {@link UpdateSqlInjectionMatchSetCommandInput} for command's `input` shape.
|
|
70
|
-
* @see {@link UpdateSqlInjectionMatchSetCommandOutput} for command's `response` shape.
|
|
71
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
8
|
class UpdateSqlInjectionMatchSetCommand extends smithy_client_1.Command {
|
|
75
|
-
// Start section: command_properties
|
|
76
|
-
// End section: command_properties
|
|
77
9
|
constructor(input) {
|
|
78
|
-
// Start section: command_constructor
|
|
79
10
|
super();
|
|
80
11
|
this.input = input;
|
|
81
|
-
// End section: command_constructor
|
|
82
12
|
}
|
|
83
|
-
/**
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
86
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
87
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
88
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -107,4 +34,3 @@ class UpdateSqlInjectionMatchSetCommand extends smithy_client_1.Command {
|
|
|
107
34
|
}
|
|
108
35
|
}
|
|
109
36
|
exports.UpdateSqlInjectionMatchSetCommand = UpdateSqlInjectionMatchSetCommand;
|
|
110
|
-
//# sourceMappingURL=UpdateSqlInjectionMatchSetCommand.js.map
|
|
@@ -5,114 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <note>
|
|
10
|
-
* <p>This is <b>AWS WAF Classic</b> documentation. For
|
|
11
|
-
* more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
|
|
12
|
-
* WAF Classic</a> in the developer guide.</p>
|
|
13
|
-
* <p>
|
|
14
|
-
* <b>For the latest version of AWS
|
|
15
|
-
* 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>
|
|
16
|
-
* </note>
|
|
17
|
-
* <p>Inserts or deletes <a>ActivatedRule</a> objects in a <code>WebACL</code>. Each <code>Rule</code> identifies
|
|
18
|
-
* web requests that you want to allow, block, or count. When you update a <code>WebACL</code>, you specify the following values:</p>
|
|
19
|
-
* <ul>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>A default action for the <code>WebACL</code>, either <code>ALLOW</code> or <code>BLOCK</code>.
|
|
22
|
-
* AWS WAF performs the default action if a request doesn't match the criteria in any of the <code>Rules</code> in a <code>WebACL</code>.</p>
|
|
23
|
-
* </li>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>The <code>Rules</code> that you want to add
|
|
26
|
-
* or
|
|
27
|
-
* delete. If you want to replace one <code>Rule</code> with another, you delete the
|
|
28
|
-
* existing <code>Rule</code> and add the new one.</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>For each <code>Rule</code>, whether you want AWS WAF to allow requests, block requests, or count requests that match
|
|
32
|
-
* the conditions in the <code>Rule</code>.</p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>The order in which you want AWS WAF to evaluate the <code>Rules</code> in a
|
|
36
|
-
* <code>WebACL</code>. If you add more than one <code>Rule</code> to a
|
|
37
|
-
* <code>WebACL</code>, AWS WAF evaluates each request against the <code>Rules</code>
|
|
38
|
-
* in order based on the value of <code>Priority</code>. (The <code>Rule</code> that has
|
|
39
|
-
* the lowest value for <code>Priority</code> is evaluated first.) When a web request
|
|
40
|
-
* matches all
|
|
41
|
-
* the
|
|
42
|
-
* predicates (such as <code>ByteMatchSets</code> and <code>IPSets</code>) in a
|
|
43
|
-
* <code>Rule</code>, AWS WAF immediately takes the corresponding action, allow or
|
|
44
|
-
* block, and doesn't evaluate the request against the remaining <code>Rules</code> in
|
|
45
|
-
* the <code>WebACL</code>, if any. </p>
|
|
46
|
-
* </li>
|
|
47
|
-
* </ul>
|
|
48
|
-
*
|
|
49
|
-
* <p>To create and configure a <code>WebACL</code>, perform the following steps:</p>
|
|
50
|
-
* <ol>
|
|
51
|
-
* <li>
|
|
52
|
-
* <p>Create and update the predicates that you want to include in <code>Rules</code>.
|
|
53
|
-
* For more information, see <a>CreateByteMatchSet</a>, <a>UpdateByteMatchSet</a>, <a>CreateIPSet</a>, <a>UpdateIPSet</a>,
|
|
54
|
-
* <a>CreateSqlInjectionMatchSet</a>, and <a>UpdateSqlInjectionMatchSet</a>.</p>
|
|
55
|
-
* </li>
|
|
56
|
-
* <li>
|
|
57
|
-
* <p>Create and update the <code>Rules</code> that you want to include in the <code>WebACL</code>. For more information, see
|
|
58
|
-
* <a>CreateRule</a> and <a>UpdateRule</a>.</p>
|
|
59
|
-
* </li>
|
|
60
|
-
* <li>
|
|
61
|
-
* <p>Create a <code>WebACL</code>. See <a>CreateWebACL</a>.</p>
|
|
62
|
-
* </li>
|
|
63
|
-
* <li>
|
|
64
|
-
* <p>Use <code>GetChangeToken</code> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
|
|
65
|
-
* <a>UpdateWebACL</a> request.</p>
|
|
66
|
-
* </li>
|
|
67
|
-
* <li>
|
|
68
|
-
* <p>Submit an <code>UpdateWebACL</code> request to specify the <code>Rules</code>
|
|
69
|
-
* that you want to include in the <code>WebACL</code>, to specify the default action,
|
|
70
|
-
* and to associate the <code>WebACL</code> with a CloudFront distribution. </p>
|
|
71
|
-
* <p>The <code>ActivatedRule</code> can be a rule group. If you specify a rule group
|
|
72
|
-
* as your
|
|
73
|
-
* <code>ActivatedRule</code>
|
|
74
|
-
* ,
|
|
75
|
-
* you can exclude specific rules from that rule group.</p>
|
|
76
|
-
* <p>If you already have a rule group associated with a web ACL and want to submit
|
|
77
|
-
* an <code>UpdateWebACL</code> request to exclude certain rules from that rule group,
|
|
78
|
-
* you must first remove the rule group from the web ACL, the re-insert it again,
|
|
79
|
-
* specifying the excluded rules.
|
|
80
|
-
* For details,
|
|
81
|
-
* see
|
|
82
|
-
* <a>ActivatedRule$ExcludedRules</a>
|
|
83
|
-
* .
|
|
84
|
-
* </p>
|
|
85
|
-
* </li>
|
|
86
|
-
* </ol>
|
|
87
|
-
* <p>Be aware that if you try to add a RATE_BASED rule to a web ACL without setting the rule type when first creating the rule, the <a>UpdateWebACL</a> request will fail because the request tries to add a REGULAR rule (the default rule type) with the specified ID, which does not exist. </p>
|
|
88
|
-
* <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
|
|
89
|
-
* @example
|
|
90
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
91
|
-
* ```javascript
|
|
92
|
-
* import { WAFClient, UpdateWebACLCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
93
|
-
* // const { WAFClient, UpdateWebACLCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
94
|
-
* const client = new WAFClient(config);
|
|
95
|
-
* const command = new UpdateWebACLCommand(input);
|
|
96
|
-
* const response = await client.send(command);
|
|
97
|
-
* ```
|
|
98
|
-
*
|
|
99
|
-
* @see {@link UpdateWebACLCommandInput} for command's `input` shape.
|
|
100
|
-
* @see {@link UpdateWebACLCommandOutput} for command's `response` shape.
|
|
101
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
102
|
-
*
|
|
103
|
-
*/
|
|
104
8
|
class UpdateWebACLCommand extends smithy_client_1.Command {
|
|
105
|
-
// Start section: command_properties
|
|
106
|
-
// End section: command_properties
|
|
107
9
|
constructor(input) {
|
|
108
|
-
// Start section: command_constructor
|
|
109
10
|
super();
|
|
110
11
|
this.input = input;
|
|
111
|
-
// End section: command_constructor
|
|
112
12
|
}
|
|
113
|
-
/**
|
|
114
|
-
* @internal
|
|
115
|
-
*/
|
|
116
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
117
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
118
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -137,4 +34,3 @@ class UpdateWebACLCommand extends smithy_client_1.Command {
|
|
|
137
34
|
}
|
|
138
35
|
}
|
|
139
36
|
exports.UpdateWebACLCommand = UpdateWebACLCommand;
|
|
140
|
-
//# sourceMappingURL=UpdateWebACLCommand.js.map
|
|
@@ -5,86 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <note>
|
|
10
|
-
* <p>This is <b>AWS WAF Classic</b> documentation. For
|
|
11
|
-
* more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
|
|
12
|
-
* WAF Classic</a> in the developer guide.</p>
|
|
13
|
-
* <p>
|
|
14
|
-
* <b>For the latest version of AWS
|
|
15
|
-
* 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>
|
|
16
|
-
* </note>
|
|
17
|
-
* <p>Inserts or deletes <a>XssMatchTuple</a> objects (filters) in an <a>XssMatchSet</a>.
|
|
18
|
-
* For each <code>XssMatchTuple</code> object, you specify the following values:</p>
|
|
19
|
-
* <ul>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>
|
|
22
|
-
* <code>Action</code>: Whether to insert the object into or delete the object from the
|
|
23
|
-
* array. To change an
|
|
24
|
-
* <code>XssMatchTuple</code>, you delete the existing object and add a new
|
|
25
|
-
* one.</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>
|
|
29
|
-
* <code>FieldToMatch</code>: The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header or custom query parameter,
|
|
30
|
-
* the name of the header or parameter.</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>
|
|
34
|
-
* <code>TextTransformation</code>: Which text transformation, if any, to perform on the web request before
|
|
35
|
-
* inspecting the request for cross-site scripting attacks.</p>
|
|
36
|
-
* <p>You can only specify a single type of TextTransformation.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* </ul>
|
|
39
|
-
* <p>You use <code>XssMatchSet</code> objects to specify which CloudFront requests
|
|
40
|
-
* that
|
|
41
|
-
* you want to allow, block, or count. For example, if you're receiving
|
|
42
|
-
* requests that contain cross-site scripting attacks in the request body and you want to
|
|
43
|
-
* block the requests, you can create an <code>XssMatchSet</code> with the applicable
|
|
44
|
-
* settings, and then configure AWS WAF to block the requests. </p>
|
|
45
|
-
* <p>To create and configure an <code>XssMatchSet</code>, perform the following steps:</p>
|
|
46
|
-
* <ol>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>Submit a <a>CreateXssMatchSet</a> request.</p>
|
|
49
|
-
* </li>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of an
|
|
52
|
-
* <a>UpdateIPSet</a> request.</p>
|
|
53
|
-
* </li>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>Submit an <code>UpdateXssMatchSet</code> request to specify the parts of web requests that you want AWS WAF to
|
|
56
|
-
* inspect for cross-site scripting attacks.</p>
|
|
57
|
-
* </li>
|
|
58
|
-
* </ol>
|
|
59
|
-
* <p>For more information about how to use the AWS WAF API to allow or block HTTP requests, see the
|
|
60
|
-
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">AWS WAF Developer Guide</a>.</p>
|
|
61
|
-
* @example
|
|
62
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
63
|
-
* ```javascript
|
|
64
|
-
* import { WAFClient, UpdateXssMatchSetCommand } from "@aws-sdk/client-waf"; // ES Modules import
|
|
65
|
-
* // const { WAFClient, UpdateXssMatchSetCommand } = require("@aws-sdk/client-waf"); // CommonJS import
|
|
66
|
-
* const client = new WAFClient(config);
|
|
67
|
-
* const command = new UpdateXssMatchSetCommand(input);
|
|
68
|
-
* const response = await client.send(command);
|
|
69
|
-
* ```
|
|
70
|
-
*
|
|
71
|
-
* @see {@link UpdateXssMatchSetCommandInput} for command's `input` shape.
|
|
72
|
-
* @see {@link UpdateXssMatchSetCommandOutput} for command's `response` shape.
|
|
73
|
-
* @see {@link WAFClientResolvedConfig | config} for command's `input` shape.
|
|
74
|
-
*
|
|
75
|
-
*/
|
|
76
8
|
class UpdateXssMatchSetCommand extends smithy_client_1.Command {
|
|
77
|
-
// Start section: command_properties
|
|
78
|
-
// End section: command_properties
|
|
79
9
|
constructor(input) {
|
|
80
|
-
// Start section: command_constructor
|
|
81
10
|
super();
|
|
82
11
|
this.input = input;
|
|
83
|
-
// End section: command_constructor
|
|
84
12
|
}
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
89
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
90
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -109,4 +34,3 @@ class UpdateXssMatchSetCommand extends smithy_client_1.Command {
|
|
|
109
34
|
}
|
|
110
35
|
}
|
|
111
36
|
exports.UpdateXssMatchSetCommand = UpdateXssMatchSetCommand;
|
|
112
|
-
//# sourceMappingURL=UpdateXssMatchSetCommand.js.map
|