You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/client-wafv2/README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
AWS SDK for JavaScript WAFV2 Client for Node.js, Browser and React Native.
8
8
9
-
<fullname>WAF</fullname>
9
+
<fullname>WAF</fullname>
10
10
<note>
11
11
12
12
<p>This is the latest version of the <b>WAF</b> API,
@@ -20,8 +20,8 @@ WAF resources that you created before. WAF Classic support will end on September
20
20
see the <ahref="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">WAF Developer Guide</a>. </p>
21
21
</note>
22
22
<p>WAF is a web application firewall that lets you monitor the HTTP and HTTPS
23
-
requests that are forwarded to an Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync
24
-
GraphQL API, Amazon Cognito user pool, App Runner service, or Amazon Web Services Verified Access instance. WAF also lets you control access to your content,
23
+
requests that are forwarded to a protected resource. Protected resource types include Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync
24
+
GraphQL API, Amazon Cognito user pool, App Runner service, and Amazon Web Services Verified Access instance. WAF also lets you control access to your content,
25
25
to protect the Amazon Web Services resource that WAF is monitoring. Based on conditions that
26
26
you specify, such as the IP addresses that requests originate from or the values of query
27
27
strings, the protected resource responds to requests with either the requested content, an HTTP 403 status code
@@ -33,11 +33,11 @@ Guide</a>.</p>
33
33
<p>You can make calls using the endpoints listed in <ahref="https://docs.aws.amazon.com/general/latest/gr/waf.html">WAF endpoints and quotas</a>. </p>
34
34
<ul>
35
35
<li>
36
-
<p>For regional applications, you can use any of the endpoints in the list.
36
+
<p>For regional resources, you can use any of the endpoints in the list.
37
37
A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance. </p>
38
38
</li>
39
39
<li>
40
-
<p>For Amazon CloudFront applications, you must use the API endpoint listed for
40
+
<p>For Amazon CloudFront, you must use the API endpoint listed for
Copy file name to clipboardExpand all lines: clients/client-wafv2/src/WAFV2.ts
+5-5
Original file line number
Diff line number
Diff line change
@@ -1100,7 +1100,7 @@ export interface WAFV2 {
1100
1100
}
1101
1101
1102
1102
/**
1103
-
* <fullname>WAF</fullname>
1103
+
* <fullname>WAF</fullname>
1104
1104
* <note>
1105
1105
* <p>This is the latest version of the <b>WAF</b> API,
1106
1106
* released in November, 2019. The names of the entities that you use to access this API,
@@ -1113,8 +1113,8 @@ export interface WAFV2 {
1113
1113
* see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">WAF Developer Guide</a>. </p>
1114
1114
* </note>
1115
1115
* <p>WAF is a web application firewall that lets you monitor the HTTP and HTTPS
1116
-
* requests that are forwarded to an Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync
1117
-
* GraphQL API, Amazon Cognito user pool, App Runner service, or Amazon Web Services Verified Access instance. WAF also lets you control access to your content,
1116
+
* requests that are forwarded to a protected resource. Protected resource types include Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync
1117
+
* GraphQL API, Amazon Cognito user pool, App Runner service, and Amazon Web Services Verified Access instance. WAF also lets you control access to your content,
1118
1118
* to protect the Amazon Web Services resource that WAF is monitoring. Based on conditions that
1119
1119
* you specify, such as the IP addresses that requests originate from or the values of query
1120
1120
* strings, the protected resource responds to requests with either the requested content, an HTTP 403 status code
@@ -1126,11 +1126,11 @@ export interface WAFV2 {
1126
1126
* <p>You can make calls using the endpoints listed in <a href="https://docs.aws.amazon.com/general/latest/gr/waf.html">WAF endpoints and quotas</a>. </p>
1127
1127
* <ul>
1128
1128
* <li>
1129
-
* <p>For regional applications, you can use any of the endpoints in the list.
1129
+
* <p>For regional resources, you can use any of the endpoints in the list.
1130
1130
* A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance. </p>
1131
1131
* </li>
1132
1132
* <li>
1133
-
* <p>For Amazon CloudFront applications, you must use the API endpoint listed for
1133
+
* <p>For Amazon CloudFront, you must use the API endpoint listed for
* see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">WAF Developer Guide</a>. </p>
522
522
* </note>
523
523
* <p>WAF is a web application firewall that lets you monitor the HTTP and HTTPS
524
-
* requests that are forwarded to an Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync
525
-
* GraphQL API, Amazon Cognito user pool, App Runner service, or Amazon Web Services Verified Access instance. WAF also lets you control access to your content,
524
+
* requests that are forwarded to a protected resource. Protected resource types include Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync
525
+
* GraphQL API, Amazon Cognito user pool, App Runner service, and Amazon Web Services Verified Access instance. WAF also lets you control access to your content,
526
526
* to protect the Amazon Web Services resource that WAF is monitoring. Based on conditions that
527
527
* you specify, such as the IP addresses that requests originate from or the values of query
528
528
* strings, the protected resource responds to requests with either the requested content, an HTTP 403 status code
* <p>You can make calls using the endpoints listed in <a href="https://docs.aws.amazon.com/general/latest/gr/waf.html">WAF endpoints and quotas</a>. </p>
535
535
* <ul>
536
536
* <li>
537
-
* <p>For regional applications, you can use any of the endpoints in the list.
537
+
* <p>For regional resources, you can use any of the endpoints in the list.
538
538
* A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance. </p>
539
539
* </li>
540
540
* <li>
541
-
* <p>For Amazon CloudFront applications, you must use the API endpoint listed for
541
+
* <p>For Amazon CloudFront, you must use the API endpoint listed for
* <p>Associates a web ACL with a regional application resource, to protect the resource.
32
-
* A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance. </p>
33
-
* <p>For Amazon CloudFront, don't use this call. Instead, use your CloudFront distribution configuration. To
34
-
* associate a web ACL, in the CloudFront call <code>UpdateDistribution</code>, set the web ACL ID
35
-
* 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>
31
+
* <p>Associates a web ACL with a resource, to protect the resource. </p>
32
+
* <p>Use this for all resource types except for Amazon CloudFront distributions. For Amazon CloudFront, call <code>UpdateDistribution</code> for the distribution and provide the Amazon Resource Name (ARN) of the web ACL in the web ACL ID. 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>
36
33
* <p>
37
34
* <b>Required permissions for customer-managed IAM policies</b>
* <p>Creates a <a>WebACL</a> per the specifications provided.</p>
32
-
* <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>
32
+
* <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 resource types include Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync GraphQL API, Amazon Cognito user pool, App Runner service, and Amazon Web Services Verified Access instance. </p>
33
33
* @example
34
34
* Use a bare-bones client and the command you need to make an API call.
* <p>For Amazon CloudFront distributions, use the CloudFront call
45
42
* <code>ListDistributionsByWebACLId</code>. For information, see <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ListDistributionsByWebACLId.html">ListDistributionsByWebACLId</a>
46
43
* in the <i>Amazon CloudFront API Reference</i>. </p>
47
44
* </li>
45
+
* <li>
46
+
* <p>For all other resources, call <a>ListResourcesForWebACL</a>.</p>
47
+
* </li>
48
48
* </ul>
49
49
* </li>
50
50
* <li>
51
51
* <p>To disassociate a resource from a web ACL, use the following calls:</p>
* <p>For Amazon CloudFront distributions, provide an empty web ACL ID in the CloudFront call
58
55
* <code>UpdateDistribution</code>. For information, see <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html">UpdateDistribution</a>
59
56
* in the <i>Amazon CloudFront API Reference</i>. </p>
60
57
* </li>
58
+
* <li>
59
+
* <p>For all other resources, call <a>DisassociateWebACL</a>.</p>
* <p>Disassociates the specified regional application resource from any existing web ACL
32
-
* association. A resource can have at most one web ACL association. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance. </p>
33
-
* <p>For Amazon CloudFront, don't use this call. Instead, use your CloudFront distribution configuration. To
34
-
* disassociate a web ACL, provide an empty web ACL ID in the CloudFront call
35
-
* <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>
31
+
* <p>Disassociates the specified resource from its web ACL
32
+
* association, if it has one. </p>
33
+
* <p>Use this for all resource types except for Amazon CloudFront distributions. For Amazon CloudFront, call <code>UpdateDistribution</code> for the distribution and provide an empty web ACL ID. 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>
36
34
* <p>
37
35
* <b>Required permissions for customer-managed IAM policies</b>
0 commit comments