Skip to content

Commit 2e086ef

Browse files
author
awstools
committed
docs(client-wafv2): Updates the descriptions for the calls that manage web ACL associations, to provide information for customer-managed IAM policies.
1 parent 731b821 commit 2e086ef

File tree

10 files changed

+155
-23
lines changed

10 files changed

+155
-23
lines changed

clients/client-wafv2/src/commands/AssociateWebACLCommand.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,30 @@ export interface AssociateWebACLCommandOutput extends AssociateWebACLResponse, _
4242
* <p>For Amazon CloudFront, don't use this call. Instead, use your CloudFront distribution configuration. To
4343
* associate a web ACL, in the CloudFront call <code>UpdateDistribution</code>, set the web ACL ID
4444
* to the Amazon Resource Name (ARN) of the web ACL. For information, see <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html">UpdateDistribution</a> in the <i>Amazon CloudFront Developer Guide</i>. </p>
45-
* <p>When you make changes to web ACLs or web ACL components, like rules and rule groups, WAF propagates the changes everywhere that the web ACL and its components are stored and used. Your changes are applied within seconds, but there might be a brief period of inconsistency when the changes have arrived in some places and not in others. So, for example, if you change a rule action setting, the action might be the old action in one area and the new action in another area. Or if you add an IP address to an IP set used in a blocking rule, the new address might briefly be blocked in one area while still allowed in another. This temporary inconsistency can occur when you first associate a web ACL with an Amazon Web Services resource and when you change a web ACL that is already associated with a resource. Generally, any inconsistencies of this type last only a few seconds.</p>
45+
* <p>
46+
* <b>Required permissions for customer-managed IAM policies</b>
47+
* </p>
48+
* <p>This call requires permissions that are specific to the protected resource type.
49+
* For details, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/security_iam_service-with-iam.html#security_iam_action-AssociateWebACL">Permissions for AssociateWebACL</a> in the <i>WAF Developer Guide</i>. </p>
50+
* <p>
51+
* <b>Temporary inconsistencies during updates</b>
52+
* </p>
53+
* <p>When you create or change a web ACL or other WAF resources, the changes take a small amount of time to propagate to all areas where the resources are stored. The propagation time can be from a few seconds to a number of minutes. </p>
54+
* <p>The following are examples of the temporary inconsistencies that you might notice during change propagation: </p>
55+
* <ul>
56+
* <li>
57+
* <p>After you create a web ACL, if you try to associate it with a resource, you might get an exception indicating that the web ACL is unavailable. </p>
58+
* </li>
59+
* <li>
60+
* <p>After you add a rule group to a web ACL, the new rule group rules might be in effect in one area where the web ACL is used and not in another.</p>
61+
* </li>
62+
* <li>
63+
* <p>After you change a rule action setting, you might see the old action in some places and the new action in others. </p>
64+
* </li>
65+
* <li>
66+
* <p>After you add an IP address to an IP set that is in use in a blocking rule, the new address might be blocked in one area while still allowed in another.</p>
67+
* </li>
68+
* </ul>
4669
* @example
4770
* Use a bare-bones client and the command you need to make an API call.
4871
* ```javascript

clients/client-wafv2/src/commands/DisassociateWebACLCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ export interface DisassociateWebACLCommandOutput extends DisassociateWebACLRespo
4242
* <p>For Amazon CloudFront, don't use this call. Instead, use your CloudFront distribution configuration. To
4343
* disassociate a web ACL, provide an empty web ACL ID in the CloudFront call
4444
* <code>UpdateDistribution</code>. For information, see <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html">UpdateDistribution</a> in the <i>Amazon CloudFront API Reference</i>. </p>
45+
* <p>
46+
* <b>Required permissions for customer-managed IAM policies</b>
47+
* </p>
48+
* <p>This call requires permissions that are specific to the protected resource type.
49+
* For details, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/security_iam_service-with-iam.html#security_iam_action-DisassociateWebACL">Permissions for DisassociateWebACL</a> in the <i>WAF Developer Guide</i>.</p>
4550
* @example
4651
* Use a bare-bones client and the command you need to make an API call.
4752
* ```javascript

clients/client-wafv2/src/commands/GetWebACLForResourceCommand.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ export interface GetWebACLForResourceCommandOutput extends GetWebACLForResourceR
3838
/**
3939
* @public
4040
* <p>Retrieves the <a>WebACL</a> for the specified resource. </p>
41+
* <p>This call uses <code>GetWebACL</code>, to verify that your account has permission to access the retrieved web ACL.
42+
* If you get an error that indicates that your account isn't authorized to perform <code>wafv2:GetWebACL</code> on the resource,
43+
* that error won't be included in your CloudTrail event history. </p>
44+
* <p>For Amazon CloudFront, don't use this call. Instead, call the CloudFront action
45+
* <code>GetDistributionConfig</code>. For information, see <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistributionConfig.html">GetDistributionConfig</a> in the <i>Amazon CloudFront API Reference</i>. </p>
46+
* <p>
47+
* <b>Required permissions for customer-managed IAM policies</b>
48+
* </p>
49+
* <p>This call requires permissions that are specific to the protected resource type.
50+
* For details, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/security_iam_service-with-iam.html#security_iam_action-GetWebACLForResource">Permissions for GetWebACLForResource</a> in the <i>WAF Developer Guide</i>.</p>
4151
* @example
4252
* Use a bare-bones client and the command you need to make an API call.
4353
* ```javascript

clients/client-wafv2/src/commands/ListResourcesForWebACLCommand.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,15 @@ export interface ListResourcesForWebACLCommandOutput extends ListResourcesForWeb
3838
/**
3939
* @public
4040
* <p>Retrieves an array of the Amazon Resource Names (ARNs) for the regional resources that
41-
* are associated with the specified web ACL. If you want the list of Amazon CloudFront resources, use
42-
* the CloudFront call <code>ListDistributionsByWebACLId</code>. </p>
41+
* are associated with the specified web ACL. </p>
42+
* <p>For Amazon CloudFront, don't use this call. Instead, use the CloudFront call
43+
* <code>ListDistributionsByWebACLId</code>. For information, see <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ListDistributionsByWebACLId.html">ListDistributionsByWebACLId</a>
44+
* in the <i>Amazon CloudFront API Reference</i>. </p>
45+
* <p>
46+
* <b>Required permissions for customer-managed IAM policies</b>
47+
* </p>
48+
* <p>This call requires permissions that are specific to the protected resource type.
49+
* For details, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/security_iam_service-with-iam.html#security_iam_action-ListResourcesForWebACL">Permissions for ListResourcesForWebACL</a> in the <i>WAF Developer Guide</i>.</p>
4350
* @example
4451
* Use a bare-bones client and the command you need to make an API call.
4552
* ```javascript

clients/client-wafv2/src/commands/UpdateIPSetCommand.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,25 @@ export interface UpdateIPSetCommandOutput extends UpdateIPSetResponse, __Metadat
5454
* </li>
5555
* </ol>
5656
* </note>
57-
* <p>When you make changes to web ACLs or web ACL components, like rules and rule groups, WAF propagates the changes everywhere that the web ACL and its components are stored and used. Your changes are applied within seconds, but there might be a brief period of inconsistency when the changes have arrived in some places and not in others. So, for example, if you change a rule action setting, the action might be the old action in one area and the new action in another area. Or if you add an IP address to an IP set used in a blocking rule, the new address might briefly be blocked in one area while still allowed in another. This temporary inconsistency can occur when you first associate a web ACL with an Amazon Web Services resource and when you change a web ACL that is already associated with a resource. Generally, any inconsistencies of this type last only a few seconds.</p>
57+
* <p>
58+
* <b>Temporary inconsistencies during updates</b>
59+
* </p>
60+
* <p>When you create or change a web ACL or other WAF resources, the changes take a small amount of time to propagate to all areas where the resources are stored. The propagation time can be from a few seconds to a number of minutes. </p>
61+
* <p>The following are examples of the temporary inconsistencies that you might notice during change propagation: </p>
62+
* <ul>
63+
* <li>
64+
* <p>After you create a web ACL, if you try to associate it with a resource, you might get an exception indicating that the web ACL is unavailable. </p>
65+
* </li>
66+
* <li>
67+
* <p>After you add a rule group to a web ACL, the new rule group rules might be in effect in one area where the web ACL is used and not in another.</p>
68+
* </li>
69+
* <li>
70+
* <p>After you change a rule action setting, you might see the old action in some places and the new action in others. </p>
71+
* </li>
72+
* <li>
73+
* <p>After you add an IP address to an IP set that is in use in a blocking rule, the new address might be blocked in one area while still allowed in another.</p>
74+
* </li>
75+
* </ul>
5876
* @example
5977
* Use a bare-bones client and the command you need to make an API call.
6078
* ```javascript

clients/client-wafv2/src/commands/UpdateRegexPatternSetCommand.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,25 @@ export interface UpdateRegexPatternSetCommandOutput extends UpdateRegexPatternSe
5454
* </li>
5555
* </ol>
5656
* </note>
57-
* <p>When you make changes to web ACLs or web ACL components, like rules and rule groups, WAF propagates the changes everywhere that the web ACL and its components are stored and used. Your changes are applied within seconds, but there might be a brief period of inconsistency when the changes have arrived in some places and not in others. So, for example, if you change a rule action setting, the action might be the old action in one area and the new action in another area. Or if you add an IP address to an IP set used in a blocking rule, the new address might briefly be blocked in one area while still allowed in another. This temporary inconsistency can occur when you first associate a web ACL with an Amazon Web Services resource and when you change a web ACL that is already associated with a resource. Generally, any inconsistencies of this type last only a few seconds.</p>
57+
* <p>
58+
* <b>Temporary inconsistencies during updates</b>
59+
* </p>
60+
* <p>When you create or change a web ACL or other WAF resources, the changes take a small amount of time to propagate to all areas where the resources are stored. The propagation time can be from a few seconds to a number of minutes. </p>
61+
* <p>The following are examples of the temporary inconsistencies that you might notice during change propagation: </p>
62+
* <ul>
63+
* <li>
64+
* <p>After you create a web ACL, if you try to associate it with a resource, you might get an exception indicating that the web ACL is unavailable. </p>
65+
* </li>
66+
* <li>
67+
* <p>After you add a rule group to a web ACL, the new rule group rules might be in effect in one area where the web ACL is used and not in another.</p>
68+
* </li>
69+
* <li>
70+
* <p>After you change a rule action setting, you might see the old action in some places and the new action in others. </p>
71+
* </li>
72+
* <li>
73+
* <p>After you add an IP address to an IP set that is in use in a blocking rule, the new address might be blocked in one area while still allowed in another.</p>
74+
* </li>
75+
* </ul>
5876
* @example
5977
* Use a bare-bones client and the command you need to make an API call.
6078
* ```javascript

clients/client-wafv2/src/commands/UpdateRuleGroupCommand.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,26 @@ export interface UpdateRuleGroupCommandOutput extends UpdateRuleGroupResponse, _
5454
* </li>
5555
* </ol>
5656
* </note>
57-
* <p>When you make changes to web ACLs or web ACL components, like rules and rule groups, WAF propagates the changes everywhere that the web ACL and its components are stored and used. Your changes are applied within seconds, but there might be a brief period of inconsistency when the changes have arrived in some places and not in others. So, for example, if you change a rule action setting, the action might be the old action in one area and the new action in another area. Or if you add an IP address to an IP set used in a blocking rule, the new address might briefly be blocked in one area while still allowed in another. This temporary inconsistency can occur when you first associate a web ACL with an Amazon Web Services resource and when you change a web ACL that is already associated with a resource. Generally, any inconsistencies of this type last only a few seconds.</p>
5857
* <p> A rule group defines a collection of rules to inspect and control web requests that you can use in a <a>WebACL</a>. When you create a rule group, you define an immutable capacity limit. If you update a rule group, you must stay within the capacity. This allows others to reuse the rule group with confidence in its capacity requirements. </p>
58+
* <p>
59+
* <b>Temporary inconsistencies during updates</b>
60+
* </p>
61+
* <p>When you create or change a web ACL or other WAF resources, the changes take a small amount of time to propagate to all areas where the resources are stored. The propagation time can be from a few seconds to a number of minutes. </p>
62+
* <p>The following are examples of the temporary inconsistencies that you might notice during change propagation: </p>
63+
* <ul>
64+
* <li>
65+
* <p>After you create a web ACL, if you try to associate it with a resource, you might get an exception indicating that the web ACL is unavailable. </p>
66+
* </li>
67+
* <li>
68+
* <p>After you add a rule group to a web ACL, the new rule group rules might be in effect in one area where the web ACL is used and not in another.</p>
69+
* </li>
70+
* <li>
71+
* <p>After you change a rule action setting, you might see the old action in some places and the new action in others. </p>
72+
* </li>
73+
* <li>
74+
* <p>After you add an IP address to an IP set that is in use in a blocking rule, the new address might be blocked in one area while still allowed in another.</p>
75+
* </li>
76+
* </ul>
5977
* @example
6078
* Use a bare-bones client and the command you need to make an API call.
6179
* ```javascript

clients/client-wafv2/src/commands/UpdateWebACLCommand.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,26 @@ export interface UpdateWebACLCommandOutput extends UpdateWebACLResponse, __Metad
5555
* </li>
5656
* </ol>
5757
* </note>
58-
* <p>When you make changes to web ACLs or web ACL components, like rules and rule groups, WAF propagates the changes everywhere that the web ACL and its components are stored and used. Your changes are applied within seconds, but there might be a brief period of inconsistency when the changes have arrived in some places and not in others. So, for example, if you change a rule action setting, the action might be the old action in one area and the new action in another area. Or if you add an IP address to an IP set used in a blocking rule, the new address might briefly be blocked in one area while still allowed in another. This temporary inconsistency can occur when you first associate a web ACL with an Amazon Web Services resource and when you change a web ACL that is already associated with a resource. Generally, any inconsistencies of this type last only a few seconds.</p>
5958
* <p> A web ACL defines a collection of rules to use to inspect and control web requests. Each rule has a statement that defines what to look for in web requests and an action that WAF applies to requests that match the statement. In the web ACL, you assign a default action to take (allow, block) for any request that does not match any of the rules. The rules in a web ACL can be a combination of the types <a>Rule</a>, <a>RuleGroup</a>, and managed rule group. You can associate a web ACL with one or more Amazon Web Services resources to protect. The resources can be an Amazon CloudFront distribution, an Amazon API Gateway REST API, an Application Load Balancer, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance. </p>
59+
* <p>
60+
* <b>Temporary inconsistencies during updates</b>
61+
* </p>
62+
* <p>When you create or change a web ACL or other WAF resources, the changes take a small amount of time to propagate to all areas where the resources are stored. The propagation time can be from a few seconds to a number of minutes. </p>
63+
* <p>The following are examples of the temporary inconsistencies that you might notice during change propagation: </p>
64+
* <ul>
65+
* <li>
66+
* <p>After you create a web ACL, if you try to associate it with a resource, you might get an exception indicating that the web ACL is unavailable. </p>
67+
* </li>
68+
* <li>
69+
* <p>After you add a rule group to a web ACL, the new rule group rules might be in effect in one area where the web ACL is used and not in another.</p>
70+
* </li>
71+
* <li>
72+
* <p>After you change a rule action setting, you might see the old action in some places and the new action in others. </p>
73+
* </li>
74+
* <li>
75+
* <p>After you add an IP address to an IP set that is in use in a blocking rule, the new address might be blocked in one area while still allowed in another.</p>
76+
* </li>
77+
* </ul>
6078
* @example
6179
* Use a bare-bones client and the command you need to make an API call.
6280
* ```javascript

0 commit comments

Comments
 (0)