@aws-sdk/client-wafv2 3.775.0 → 3.776.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/README.md CHANGED
@@ -21,7 +21,7 @@ see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapt
21
21
  </note>
22
22
  <p>WAF is a web application firewall that lets you monitor the HTTP and HTTPS
23
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,
24
+ GraphQL API, Amazon Cognito user pool, App Runner service, Amplify application, 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
@@ -37,7 +37,7 @@ Guide</a>.</p>
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, you must use the API endpoint listed for
40
+ <p>For Amazon CloudFront and Amplify, you must use the API endpoint listed for
41
41
  US East (N. Virginia): us-east-1.</p>
42
42
  </li>
43
43
  </ul>
package/dist-cjs/index.js CHANGED
@@ -1129,6 +1129,7 @@ var FailureReason = {
1129
1129
  TOKEN_MISSING: "TOKEN_MISSING"
1130
1130
  };
1131
1131
  var ResourceType = {
1132
+ AMPLIFY: "AMPLIFY",
1132
1133
  API_GATEWAY: "API_GATEWAY",
1133
1134
  APPLICATION_LOAD_BALANCER: "APPLICATION_LOAD_BALANCER",
1134
1135
  APPSYNC: "APPSYNC",
@@ -714,6 +714,7 @@ export const FailureReason = {
714
714
  TOKEN_MISSING: "TOKEN_MISSING",
715
715
  };
716
716
  export const ResourceType = {
717
+ AMPLIFY: "AMPLIFY",
717
718
  API_GATEWAY: "API_GATEWAY",
718
719
  APPLICATION_LOAD_BALANCER: "APPLICATION_LOAD_BALANCER",
719
720
  APPSYNC: "APPSYNC",
@@ -239,6 +239,7 @@ export interface WAFV2 {
239
239
  /**
240
240
  * @see {@link GetWebACLCommand}
241
241
  */
242
+ getWebACL(): Promise<GetWebACLCommandOutput>;
242
243
  getWebACL(args: GetWebACLCommandInput, options?: __HttpHandlerOptions): Promise<GetWebACLCommandOutput>;
243
244
  getWebACL(args: GetWebACLCommandInput, cb: (err: any, data?: GetWebACLCommandOutput) => void): void;
244
245
  getWebACL(args: GetWebACLCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWebACLCommandOutput) => void): void;
@@ -396,7 +397,7 @@ export interface WAFV2 {
396
397
  * </note>
397
398
  * <p>WAF is a web application firewall that lets you monitor the HTTP and HTTPS
398
399
  * requests that are forwarded to a protected resource. Protected resource types include Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync
399
- * 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,
400
+ * GraphQL API, Amazon Cognito user pool, App Runner service, Amplify application, and Amazon Web Services Verified Access instance. WAF also lets you control access to your content,
400
401
  * to protect the Amazon Web Services resource that WAF is monitoring. Based on conditions that
401
402
  * you specify, such as the IP addresses that requests originate from or the values of query
402
403
  * strings, the protected resource responds to requests with either the requested content, an HTTP 403 status code
@@ -412,7 +413,7 @@ export interface WAFV2 {
412
413
  * 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>
413
414
  * </li>
414
415
  * <li>
415
- * <p>For Amazon CloudFront, you must use the API endpoint listed for
416
+ * <p>For Amazon CloudFront and Amplify, you must use the API endpoint listed for
416
417
  * US East (N. Virginia): us-east-1.</p>
417
418
  * </li>
418
419
  * </ul>
@@ -237,7 +237,7 @@ export interface WAFV2ClientResolvedConfig extends WAFV2ClientResolvedConfigType
237
237
  * </note>
238
238
  * <p>WAF is a web application firewall that lets you monitor the HTTP and HTTPS
239
239
  * requests that are forwarded to a protected resource. Protected resource types include Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync
240
- * 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,
240
+ * GraphQL API, Amazon Cognito user pool, App Runner service, Amplify application, and Amazon Web Services Verified Access instance. WAF also lets you control access to your content,
241
241
  * to protect the Amazon Web Services resource that WAF is monitoring. Based on conditions that
242
242
  * you specify, such as the IP addresses that requests originate from or the values of query
243
243
  * strings, the protected resource responds to requests with either the requested content, an HTTP 403 status code
@@ -253,7 +253,7 @@ export interface WAFV2ClientResolvedConfig extends WAFV2ClientResolvedConfigType
253
253
  * 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>
254
254
  * </li>
255
255
  * <li>
256
- * <p>For Amazon CloudFront, you must use the API endpoint listed for
256
+ * <p>For Amazon CloudFront and Amplify, you must use the API endpoint listed for
257
257
  * US East (N. Virginia): us-east-1.</p>
258
258
  * </li>
259
259
  * </ul>
@@ -28,7 +28,7 @@ declare const CreateWebACLCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Creates a <a>WebACL</a> per the specifications provided.</p>
31
- * <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>
31
+ * <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, Amplify application, and Amazon Web Services Verified Access instance. </p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -23,7 +23,7 @@ export interface GetWebACLCommandOutput extends GetWebACLResponse, __MetadataBea
23
23
  }
24
24
  declare const GetWebACLCommand_base: {
25
25
  new (input: GetWebACLCommandInput): import("@smithy/smithy-client").CommandImpl<GetWebACLCommandInput, GetWebACLCommandOutput, WAFV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: GetWebACLCommandInput): import("@smithy/smithy-client").CommandImpl<GetWebACLCommandInput, GetWebACLCommandOutput, WAFV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetWebACLCommandInput]): import("@smithy/smithy-client").CommandImpl<GetWebACLCommandInput, GetWebACLCommandOutput, WAFV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
@@ -35,9 +35,10 @@ declare const GetWebACLCommand_base: {
35
35
  * // const { WAFV2Client, GetWebACLCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
36
36
  * const client = new WAFV2Client(config);
37
37
  * const input = { // GetWebACLRequest
38
- * Name: "STRING_VALUE", // required
39
- * Scope: "CLOUDFRONT" || "REGIONAL", // required
40
- * Id: "STRING_VALUE", // required
38
+ * Name: "STRING_VALUE",
39
+ * Scope: "CLOUDFRONT" || "REGIONAL",
40
+ * Id: "STRING_VALUE",
41
+ * ARN: "STRING_VALUE",
41
42
  * };
42
43
  * const command = new GetWebACLCommand(input);
43
44
  * const response = await client.send(command);
@@ -45,7 +45,7 @@ declare const ListResourcesForWebACLCommand_base: {
45
45
  * const client = new WAFV2Client(config);
46
46
  * const input = { // ListResourcesForWebACLRequest
47
47
  * WebACLArn: "STRING_VALUE", // required
48
- * ResourceType: "APPLICATION_LOAD_BALANCER" || "API_GATEWAY" || "APPSYNC" || "COGNITO_USER_POOL" || "APP_RUNNER_SERVICE" || "VERIFIED_ACCESS_INSTANCE",
48
+ * ResourceType: "APPLICATION_LOAD_BALANCER" || "API_GATEWAY" || "APPSYNC" || "COGNITO_USER_POOL" || "APP_RUNNER_SERVICE" || "VERIFIED_ACCESS_INSTANCE" || "AMPLIFY",
49
49
  * };
50
50
  * const command = new ListResourcesForWebACLCommand(input);
51
51
  * const response = await client.send(command);
@@ -45,7 +45,7 @@ declare const UpdateWebACLCommand_base: {
45
45
  * </li>
46
46
  * </ol>
47
47
  * </note>
48
- * <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>
48
+ * <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, Amplify application, and Amazon Web Services Verified Access instance. </p>
49
49
  * <p>
50
50
  * <b>Temporary inconsistencies during updates</b>
51
51
  * </p>
@@ -13,7 +13,7 @@
13
13
  * </note>
14
14
  * <p>WAF is a web application firewall that lets you monitor the HTTP and HTTPS
15
15
  * requests that are forwarded to a protected resource. Protected resource types include Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync
16
- * 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,
16
+ * GraphQL API, Amazon Cognito user pool, App Runner service, Amplify application, and Amazon Web Services Verified Access instance. WAF also lets you control access to your content,
17
17
  * to protect the Amazon Web Services resource that WAF is monitoring. Based on conditions that
18
18
  * you specify, such as the IP addresses that requests originate from or the values of query
19
19
  * strings, the protected resource responds to requests with either the requested content, an HTTP 403 status code
@@ -29,7 +29,7 @@
29
29
  * 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>
30
30
  * </li>
31
31
  * <li>
32
- * <p>For Amazon CloudFront, you must use the API endpoint listed for
32
+ * <p>For Amazon CloudFront and Amplify, you must use the API endpoint listed for
33
33
  * US East (N. Virginia): us-east-1.</p>
34
34
  * </li>
35
35
  * </ul>
@@ -165,6 +165,9 @@ export interface Body {
165
165
  * <p>For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and
166
166
  * you can increase the limit for each resource type in the web ACL <code>AssociationConfig</code>, for additional processing fees. </p>
167
167
  * </li>
168
+ * <li>
169
+ * <p>For Amplify, use the CloudFront limit.</p>
170
+ * </li>
168
171
  * </ul>
169
172
  * <p>The options for oversize handling are the following:</p>
170
173
  * <ul>
@@ -621,6 +624,9 @@ export interface JsonBody {
621
624
  * <p>For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and
622
625
  * you can increase the limit for each resource type in the web ACL <code>AssociationConfig</code>, for additional processing fees. </p>
623
626
  * </li>
627
+ * <li>
628
+ * <p>For Amplify, use the CloudFront limit.</p>
629
+ * </li>
624
630
  * </ul>
625
631
  * <p>The options for oversize handling are the following:</p>
626
632
  * <ul>
@@ -851,6 +857,9 @@ export interface FieldToMatch {
851
857
  * <p>For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and
852
858
  * you can increase the limit for each resource type in the web ACL <code>AssociationConfig</code>, for additional processing fees. </p>
853
859
  * </li>
860
+ * <li>
861
+ * <p>For Amplify, use the CloudFront limit.</p>
862
+ * </li>
854
863
  * </ul>
855
864
  * <p>For information about how to handle oversized
856
865
  * request bodies, see the <code>Body</code> object configuration. </p>
@@ -878,6 +887,9 @@ export interface FieldToMatch {
878
887
  * <p>For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and
879
888
  * you can increase the limit for each resource type in the web ACL <code>AssociationConfig</code>, for additional processing fees. </p>
880
889
  * </li>
890
+ * <li>
891
+ * <p>For Amplify, use the CloudFront limit.</p>
892
+ * </li>
881
893
  * </ul>
882
894
  * <p>For information about how to handle oversized
883
895
  * request bodies, see the <code>JsonBody</code> object configuration. </p>
@@ -3051,6 +3063,11 @@ export interface AssociateWebACLRequest {
3051
3063
  * </code>
3052
3064
  * </p>
3053
3065
  * </li>
3066
+ * <li>
3067
+ * <p>For an Amplify application: <code>arn:<i>partition</i>:amplify:<i>region</i>:<i>account-id</i>:apps/<i>app-id</i>
3068
+ * </code>
3069
+ * </p>
3070
+ * </li>
3054
3071
  * </ul>
3055
3072
  * @public
3056
3073
  */
@@ -3527,7 +3544,7 @@ export declare class WAFSubscriptionNotFoundException extends __BaseException {
3527
3544
  */
3528
3545
  export interface CreateAPIKeyRequest {
3529
3546
  /**
3530
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
3547
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
3531
3548
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
3532
3549
  * <ul>
3533
3550
  * <li>
@@ -3609,7 +3626,7 @@ export interface CreateIPSetRequest {
3609
3626
  */
3610
3627
  Name: string | undefined;
3611
3628
  /**
3612
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
3629
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
3613
3630
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
3614
3631
  * <ul>
3615
3632
  * <li>
@@ -3796,7 +3813,7 @@ export interface CreateRegexPatternSetRequest {
3796
3813
  */
3797
3814
  Name: string | undefined;
3798
3815
  /**
3799
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
3816
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
3800
3817
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
3801
3818
  * <ul>
3802
3819
  * <li>
@@ -4134,7 +4151,7 @@ export declare class WAFConfigurationWarningException extends __BaseException {
4134
4151
  */
4135
4152
  export interface DeleteAPIKeyRequest {
4136
4153
  /**
4137
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
4154
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
4138
4155
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
4139
4156
  * <ul>
4140
4157
  * <li>
@@ -4193,7 +4210,7 @@ export interface DeleteIPSetRequest {
4193
4210
  */
4194
4211
  Name: string | undefined;
4195
4212
  /**
4196
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
4213
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
4197
4214
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
4198
4215
  * <ul>
4199
4216
  * <li>
@@ -4318,7 +4335,7 @@ export interface DeleteRegexPatternSetRequest {
4318
4335
  */
4319
4336
  Name: string | undefined;
4320
4337
  /**
4321
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
4338
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
4322
4339
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
4323
4340
  * <ul>
4324
4341
  * <li>
@@ -4357,7 +4374,7 @@ export interface DeleteRuleGroupRequest {
4357
4374
  */
4358
4375
  Name: string | undefined;
4359
4376
  /**
4360
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
4377
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
4361
4378
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
4362
4379
  * <ul>
4363
4380
  * <li>
@@ -4396,7 +4413,7 @@ export interface DeleteWebACLRequest {
4396
4413
  */
4397
4414
  Name: string | undefined;
4398
4415
  /**
4399
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
4416
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
4400
4417
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
4401
4418
  * <ul>
4402
4419
  * <li>
@@ -4430,7 +4447,7 @@ export interface DeleteWebACLResponse {
4430
4447
  */
4431
4448
  export interface DescribeAllManagedProductsRequest {
4432
4449
  /**
4433
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
4450
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
4434
4451
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
4435
4452
  * <ul>
4436
4453
  * <li>
@@ -4519,7 +4536,7 @@ export interface DescribeManagedProductsByVendorRequest {
4519
4536
  */
4520
4537
  VendorName: string | undefined;
4521
4538
  /**
4522
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
4539
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
4523
4540
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
4524
4541
  * <ul>
4525
4542
  * <li>
@@ -4558,7 +4575,7 @@ export interface DescribeManagedRuleGroupRequest {
4558
4575
  */
4559
4576
  Name: string | undefined;
4560
4577
  /**
4561
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
4578
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
4562
4579
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
4563
4580
  * <ul>
4564
4581
  * <li>
@@ -4721,6 +4738,11 @@ export interface DisassociateWebACLRequest {
4721
4738
  * </code>
4722
4739
  * </p>
4723
4740
  * </li>
4741
+ * <li>
4742
+ * <p>For an Amplify application: <code>arn:<i>partition</i>:amplify:<i>region</i>:<i>account-id</i>:apps/<i>app-id</i>
4743
+ * </code>
4744
+ * </p>
4745
+ * </li>
4724
4746
  * </ul>
4725
4747
  * @public
4726
4748
  */
@@ -4774,7 +4796,7 @@ export interface GenerateMobileSdkReleaseUrlResponse {
4774
4796
  */
4775
4797
  export interface GetDecryptedAPIKeyRequest {
4776
4798
  /**
4777
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
4799
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
4778
4800
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
4779
4801
  * <ul>
4780
4802
  * <li>
@@ -4818,7 +4840,7 @@ export interface GetIPSetRequest {
4818
4840
  */
4819
4841
  Name: string | undefined;
4820
4842
  /**
4821
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
4843
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
4822
4844
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
4823
4845
  * <ul>
4824
4846
  * <li>
@@ -5178,7 +5200,7 @@ export interface GetManagedRuleSetRequest {
5178
5200
  */
5179
5201
  Name: string | undefined;
5180
5202
  /**
5181
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
5203
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
5182
5204
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
5183
5205
  * <ul>
5184
5206
  * <li>
@@ -5405,7 +5427,7 @@ export interface GetPermissionPolicyResponse {
5405
5427
  */
5406
5428
  export interface GetRateBasedStatementManagedKeysRequest {
5407
5429
  /**
5408
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
5430
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
5409
5431
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
5410
5432
  * <ul>
5411
5433
  * <li>
@@ -5500,7 +5522,7 @@ export interface GetRegexPatternSetRequest {
5500
5522
  */
5501
5523
  Name: string | undefined;
5502
5524
  /**
5503
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
5525
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
5504
5526
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
5505
5527
  * <ul>
5506
5528
  * <li>
@@ -5577,7 +5599,7 @@ export interface GetRuleGroupRequest {
5577
5599
  */
5578
5600
  Name?: string | undefined;
5579
5601
  /**
5580
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
5602
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
5581
5603
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
5582
5604
  * <ul>
5583
5605
  * <li>
@@ -5655,7 +5677,7 @@ export interface GetSampledRequestsRequest {
5655
5677
  */
5656
5678
  RuleMetricName: string | undefined;
5657
5679
  /**
5658
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
5680
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
5659
5681
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
5660
5682
  * <ul>
5661
5683
  * <li>
@@ -5936,9 +5958,9 @@ export interface GetWebACLRequest {
5936
5958
  * <p>The name of the web ACL. You cannot change the name of a web ACL after you create it.</p>
5937
5959
  * @public
5938
5960
  */
5939
- Name: string | undefined;
5961
+ Name?: string | undefined;
5940
5962
  /**
5941
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
5963
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
5942
5964
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
5943
5965
  * <ul>
5944
5966
  * <li>
@@ -5950,12 +5972,17 @@ export interface GetWebACLRequest {
5950
5972
  * </ul>
5951
5973
  * @public
5952
5974
  */
5953
- Scope: Scope | undefined;
5975
+ Scope?: Scope | undefined;
5954
5976
  /**
5955
5977
  * <p>The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.</p>
5956
5978
  * @public
5957
5979
  */
5958
- Id: string | undefined;
5980
+ Id?: string | undefined;
5981
+ /**
5982
+ * <p>The Amazon Resource Name (ARN) of the web ACL that you want to retrieve. </p>
5983
+ * @public
5984
+ */
5985
+ ARN?: string | undefined;
5959
5986
  }
5960
5987
  /**
5961
5988
  * @public
@@ -5995,6 +6022,11 @@ export interface GetWebACLForResourceRequest {
5995
6022
  * </code>
5996
6023
  * </p>
5997
6024
  * </li>
6025
+ * <li>
6026
+ * <p>For an Amplify application: <code>arn:<i>partition</i>:amplify:<i>region</i>:<i>account-id</i>:apps/<i>app-id</i>
6027
+ * </code>
6028
+ * </p>
6029
+ * </li>
5998
6030
  * </ul>
5999
6031
  * @public
6000
6032
  */
@@ -6005,7 +6037,7 @@ export interface GetWebACLForResourceRequest {
6005
6037
  */
6006
6038
  export interface ListAPIKeysRequest {
6007
6039
  /**
6008
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
6040
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
6009
6041
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
6010
6042
  * <ul>
6011
6043
  * <li>
@@ -6060,7 +6092,7 @@ export interface ListAPIKeysResponse {
6060
6092
  */
6061
6093
  export interface ListAvailableManagedRuleGroupsRequest {
6062
6094
  /**
6063
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
6095
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
6064
6096
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
6065
6097
  * <ul>
6066
6098
  * <li>
@@ -6147,7 +6179,7 @@ export interface ListAvailableManagedRuleGroupVersionsRequest {
6147
6179
  */
6148
6180
  Name: string | undefined;
6149
6181
  /**
6150
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
6182
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
6151
6183
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
6152
6184
  * <ul>
6153
6185
  * <li>
@@ -6219,7 +6251,7 @@ export interface ListAvailableManagedRuleGroupVersionsResponse {
6219
6251
  */
6220
6252
  export interface ListIPSetsRequest {
6221
6253
  /**
6222
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
6254
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
6223
6255
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
6224
6256
  * <ul>
6225
6257
  * <li>
@@ -6269,7 +6301,7 @@ export interface ListIPSetsResponse {
6269
6301
  */
6270
6302
  export interface ListLoggingConfigurationsRequest {
6271
6303
  /**
6272
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
6304
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
6273
6305
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
6274
6306
  * <ul>
6275
6307
  * <li>
@@ -6329,7 +6361,7 @@ export interface ListLoggingConfigurationsResponse {
6329
6361
  */
6330
6362
  export interface ListManagedRuleSetsRequest {
6331
6363
  /**
6332
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
6364
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
6333
6365
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
6334
6366
  * <ul>
6335
6367
  * <li>
@@ -6490,7 +6522,7 @@ export interface ListMobileSdkReleasesResponse {
6490
6522
  */
6491
6523
  export interface ListRegexPatternSetsRequest {
6492
6524
  /**
6493
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
6525
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
6494
6526
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
6495
6527
  * <ul>
6496
6528
  * <li>
@@ -6540,6 +6572,7 @@ export interface ListRegexPatternSetsResponse {
6540
6572
  * @enum
6541
6573
  */
6542
6574
  export declare const ResourceType: {
6575
+ readonly AMPLIFY: "AMPLIFY";
6543
6576
  readonly API_GATEWAY: "API_GATEWAY";
6544
6577
  readonly APPLICATION_LOAD_BALANCER: "APPLICATION_LOAD_BALANCER";
6545
6578
  readonly APPSYNC: "APPSYNC";
@@ -6589,7 +6622,7 @@ export interface ListResourcesForWebACLResponse {
6589
6622
  */
6590
6623
  export interface ListRuleGroupsRequest {
6591
6624
  /**
6592
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
6625
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
6593
6626
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
6594
6627
  * <ul>
6595
6628
  * <li>
@@ -6705,7 +6738,7 @@ export interface ListTagsForResourceResponse {
6705
6738
  */
6706
6739
  export interface ListWebACLsRequest {
6707
6740
  /**
6708
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
6741
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
6709
6742
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
6710
6743
  * <ul>
6711
6744
  * <li>
@@ -6838,7 +6871,7 @@ export interface PutManagedRuleSetVersionsRequest {
6838
6871
  */
6839
6872
  Name: string | undefined;
6840
6873
  /**
6841
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
6874
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
6842
6875
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
6843
6876
  * <ul>
6844
6877
  * <li>
@@ -7014,7 +7047,7 @@ export interface UpdateIPSetRequest {
7014
7047
  */
7015
7048
  Name: string | undefined;
7016
7049
  /**
7017
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
7050
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
7018
7051
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
7019
7052
  * <ul>
7020
7053
  * <li>
@@ -7104,7 +7137,7 @@ export interface UpdateManagedRuleSetVersionExpiryDateRequest {
7104
7137
  */
7105
7138
  Name: string | undefined;
7106
7139
  /**
7107
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
7140
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
7108
7141
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
7109
7142
  * <ul>
7110
7143
  * <li>
@@ -7171,7 +7204,7 @@ export interface UpdateRegexPatternSetRequest {
7171
7204
  */
7172
7205
  Name: string | undefined;
7173
7206
  /**
7174
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
7207
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
7175
7208
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
7176
7209
  * <ul>
7177
7210
  * <li>
@@ -7847,7 +7880,7 @@ export interface FirewallManagerRuleGroup {
7847
7880
  */
7848
7881
  export interface CheckCapacityRequest {
7849
7882
  /**
7850
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
7883
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
7851
7884
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
7852
7885
  * <ul>
7853
7886
  * <li>
@@ -7877,7 +7910,7 @@ export interface CreateRuleGroupRequest {
7877
7910
  */
7878
7911
  Name: string | undefined;
7879
7912
  /**
7880
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
7913
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
7881
7914
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
7882
7915
  * <ul>
7883
7916
  * <li>
@@ -7950,7 +7983,7 @@ export interface CreateWebACLRequest {
7950
7983
  */
7951
7984
  Name: string | undefined;
7952
7985
  /**
7953
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
7986
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
7954
7987
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
7955
7988
  * <ul>
7956
7989
  * <li>
@@ -8143,7 +8176,7 @@ export interface UpdateRuleGroupRequest {
8143
8176
  */
8144
8177
  Name: string | undefined;
8145
8178
  /**
8146
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
8179
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
8147
8180
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
8148
8181
  * <ul>
8149
8182
  * <li>
@@ -8205,7 +8238,7 @@ export interface UpdateWebACLRequest {
8205
8238
  */
8206
8239
  Name: string | undefined;
8207
8240
  /**
8208
- * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. </p>
8241
+ * <p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p>
8209
8242
  * <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p>
8210
8243
  * <ul>
8211
8244
  * <li>
@@ -8315,7 +8348,7 @@ export interface GetRuleGroupResponse {
8315
8348
  LockToken?: string | undefined;
8316
8349
  }
8317
8350
  /**
8318
- * <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>
8351
+ * <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, Amplify application, and Amazon Web Services Verified Access instance. </p>
8319
8352
  * @public
8320
8353
  */
8321
8354
  export interface WebACL {
@@ -608,6 +608,7 @@ export interface WAFV2 {
608
608
  options: __HttpHandlerOptions,
609
609
  cb: (err: any, data?: GetSampledRequestsCommandOutput) => void
610
610
  ): void;
611
+ getWebACL(): Promise<GetWebACLCommandOutput>;
611
612
  getWebACL(
612
613
  args: GetWebACLCommandInput,
613
614
  options?: __HttpHandlerOptions
@@ -23,7 +23,7 @@ declare const GetWebACLCommand_base: {
23
23
  ServiceOutputTypes
24
24
  >;
25
25
  new (
26
- __0_0: GetWebACLCommandInput
26
+ ...[input]: [] | [GetWebACLCommandInput]
27
27
  ): import("@smithy/smithy-client").CommandImpl<
28
28
  GetWebACLCommandInput,
29
29
  GetWebACLCommandOutput,
@@ -1416,9 +1416,10 @@ export interface GetSampledRequestsResponse {
1416
1416
  TimeWindow?: TimeWindow | undefined;
1417
1417
  }
1418
1418
  export interface GetWebACLRequest {
1419
- Name: string | undefined;
1420
- Scope: Scope | undefined;
1421
- Id: string | undefined;
1419
+ Name?: string | undefined;
1420
+ Scope?: Scope | undefined;
1421
+ Id?: string | undefined;
1422
+ ARN?: string | undefined;
1422
1423
  }
1423
1424
  export interface GetWebACLForResourceRequest {
1424
1425
  ResourceArn: string | undefined;
@@ -1523,6 +1524,7 @@ export interface ListRegexPatternSetsResponse {
1523
1524
  RegexPatternSets?: RegexPatternSetSummary[] | undefined;
1524
1525
  }
1525
1526
  export declare const ResourceType: {
1527
+ readonly AMPLIFY: "AMPLIFY";
1526
1528
  readonly API_GATEWAY: "API_GATEWAY";
1527
1529
  readonly APPLICATION_LOAD_BALANCER: "APPLICATION_LOAD_BALANCER";
1528
1530
  readonly APPSYNC: "APPSYNC";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-wafv2",
3
3
  "description": "AWS SDK for JavaScript Wafv2 Client for Node.js, Browser and React Native",
4
- "version": "3.775.0",
4
+ "version": "3.776.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-wafv2",