@aws-sdk/client-wafv2 3.298.0 → 3.300.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/dist-types/commands/AssociateWebACLCommand.d.ts +4 -0
- package/dist-types/commands/CheckCapacityCommand.d.ts +1175 -0
- package/dist-types/commands/CreateIPSetCommand.d.ts +15 -0
- package/dist-types/commands/CreateRegexPatternSetCommand.d.ts +16 -0
- package/dist-types/commands/CreateRuleGroupCommand.d.ts +1195 -0
- package/dist-types/commands/CreateWebACLCommand.d.ts +1200 -0
- package/dist-types/commands/DeleteFirewallManagerRuleGroupsCommand.d.ts +4 -0
- package/dist-types/commands/DeleteIPSetCommand.d.ts +6 -0
- package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +3 -0
- package/dist-types/commands/DeletePermissionPolicyCommand.d.ts +3 -0
- package/dist-types/commands/DeleteRegexPatternSetCommand.d.ts +6 -0
- package/dist-types/commands/DeleteRuleGroupCommand.d.ts +6 -0
- package/dist-types/commands/DeleteWebACLCommand.d.ts +6 -0
- package/dist-types/commands/DescribeManagedRuleGroupCommand.d.ts +6 -0
- package/dist-types/commands/DisassociateWebACLCommand.d.ts +3 -0
- package/dist-types/commands/GenerateMobileSdkReleaseUrlCommand.d.ts +4 -0
- package/dist-types/commands/GetIPSetCommand.d.ts +5 -0
- package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +3 -0
- package/dist-types/commands/GetManagedRuleSetCommand.d.ts +5 -0
- package/dist-types/commands/GetMobileSdkReleaseCommand.d.ts +4 -0
- package/dist-types/commands/GetPermissionPolicyCommand.d.ts +3 -0
- package/dist-types/commands/GetRateBasedStatementManagedKeysCommand.d.ts +7 -0
- package/dist-types/commands/GetRegexPatternSetCommand.d.ts +5 -0
- package/dist-types/commands/GetRuleGroupCommand.d.ts +6 -0
- package/dist-types/commands/GetSampledRequestsCommand.d.ts +10 -0
- package/dist-types/commands/GetWebACLCommand.d.ts +5 -0
- package/dist-types/commands/GetWebACLForResourceCommand.d.ts +3 -0
- package/dist-types/commands/ListAvailableManagedRuleGroupVersionsCommand.d.ts +7 -0
- package/dist-types/commands/ListAvailableManagedRuleGroupsCommand.d.ts +5 -0
- package/dist-types/commands/ListIPSetsCommand.d.ts +5 -0
- package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +5 -0
- package/dist-types/commands/ListManagedRuleSetsCommand.d.ts +5 -0
- package/dist-types/commands/ListMobileSdkReleasesCommand.d.ts +5 -0
- package/dist-types/commands/ListRegexPatternSetsCommand.d.ts +5 -0
- package/dist-types/commands/ListResourcesForWebACLCommand.d.ts +4 -0
- package/dist-types/commands/ListRuleGroupsCommand.d.ts +5 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +5 -0
- package/dist-types/commands/ListWebACLsCommand.d.ts +5 -0
- package/dist-types/commands/PutLoggingConfigurationCommand.d.ts +82 -0
- package/dist-types/commands/PutManagedRuleSetVersionsCommand.d.ts +13 -0
- package/dist-types/commands/PutPermissionPolicyCommand.d.ts +4 -0
- package/dist-types/commands/TagResourceCommand.d.ts +9 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
- package/dist-types/commands/UpdateIPSetCommand.d.ts +10 -0
- package/dist-types/commands/UpdateManagedRuleSetVersionExpiryDateCommand.d.ts +8 -0
- package/dist-types/commands/UpdateRegexPatternSetCommand.d.ts +12 -0
- package/dist-types/commands/UpdateRuleGroupCommand.d.ts +1190 -0
- package/dist-types/commands/UpdateWebACLCommand.d.ts +1196 -0
- package/package.json +12 -12
|
@@ -28,6 +28,10 @@ export interface DeleteFirewallManagerRuleGroupsCommandOutput extends DeleteFire
|
|
|
28
28
|
* import { WAFV2Client, DeleteFirewallManagerRuleGroupsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
29
29
|
* // const { WAFV2Client, DeleteFirewallManagerRuleGroupsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
30
30
|
* const client = new WAFV2Client(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* WebACLArn: "STRING_VALUE", // required
|
|
33
|
+
* WebACLLockToken: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
31
35
|
* const command = new DeleteFirewallManagerRuleGroupsCommand(input);
|
|
32
36
|
* const response = await client.send(command);
|
|
33
37
|
* ```
|
|
@@ -26,6 +26,12 @@ export interface DeleteIPSetCommandOutput extends DeleteIPSetResponse, __Metadat
|
|
|
26
26
|
* import { WAFV2Client, DeleteIPSetCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
27
27
|
* // const { WAFV2Client, DeleteIPSetCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
28
28
|
* const client = new WAFV2Client(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* Name: "STRING_VALUE", // required
|
|
31
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
32
|
+
* Id: "STRING_VALUE", // required
|
|
33
|
+
* LockToken: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
29
35
|
* const command = new DeleteIPSetCommand(input);
|
|
30
36
|
* const response = await client.send(command);
|
|
31
37
|
* ```
|
|
@@ -26,6 +26,9 @@ export interface DeleteLoggingConfigurationCommandOutput extends DeleteLoggingCo
|
|
|
26
26
|
* import { WAFV2Client, DeleteLoggingConfigurationCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
27
27
|
* // const { WAFV2Client, DeleteLoggingConfigurationCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
28
28
|
* const client = new WAFV2Client(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
31
|
+
* };
|
|
29
32
|
* const command = new DeleteLoggingConfigurationCommand(input);
|
|
30
33
|
* const response = await client.send(command);
|
|
31
34
|
* ```
|
|
@@ -27,6 +27,9 @@ export interface DeletePermissionPolicyCommandOutput extends DeletePermissionPol
|
|
|
27
27
|
* import { WAFV2Client, DeletePermissionPolicyCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
28
28
|
* // const { WAFV2Client, DeletePermissionPolicyCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
29
29
|
* const client = new WAFV2Client(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
32
|
+
* };
|
|
30
33
|
* const command = new DeletePermissionPolicyCommand(input);
|
|
31
34
|
* const response = await client.send(command);
|
|
32
35
|
* ```
|
|
@@ -26,6 +26,12 @@ export interface DeleteRegexPatternSetCommandOutput extends DeleteRegexPatternSe
|
|
|
26
26
|
* import { WAFV2Client, DeleteRegexPatternSetCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
27
27
|
* // const { WAFV2Client, DeleteRegexPatternSetCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
28
28
|
* const client = new WAFV2Client(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* Name: "STRING_VALUE", // required
|
|
31
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
32
|
+
* Id: "STRING_VALUE", // required
|
|
33
|
+
* LockToken: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
29
35
|
* const command = new DeleteRegexPatternSetCommand(input);
|
|
30
36
|
* const response = await client.send(command);
|
|
31
37
|
* ```
|
|
@@ -26,6 +26,12 @@ export interface DeleteRuleGroupCommandOutput extends DeleteRuleGroupResponse, _
|
|
|
26
26
|
* import { WAFV2Client, DeleteRuleGroupCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
27
27
|
* // const { WAFV2Client, DeleteRuleGroupCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
28
28
|
* const client = new WAFV2Client(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* Name: "STRING_VALUE", // required
|
|
31
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
32
|
+
* Id: "STRING_VALUE", // required
|
|
33
|
+
* LockToken: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
29
35
|
* const command = new DeleteRuleGroupCommand(input);
|
|
30
36
|
* const response = await client.send(command);
|
|
31
37
|
* ```
|
|
@@ -58,6 +58,12 @@ export interface DeleteWebACLCommandOutput extends DeleteWebACLResponse, __Metad
|
|
|
58
58
|
* import { WAFV2Client, DeleteWebACLCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
59
59
|
* // const { WAFV2Client, DeleteWebACLCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
60
60
|
* const client = new WAFV2Client(config);
|
|
61
|
+
* const input = {
|
|
62
|
+
* Name: "STRING_VALUE", // required
|
|
63
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
64
|
+
* Id: "STRING_VALUE", // required
|
|
65
|
+
* LockToken: "STRING_VALUE", // required
|
|
66
|
+
* };
|
|
61
67
|
* const command = new DeleteWebACLCommand(input);
|
|
62
68
|
* const response = await client.send(command);
|
|
63
69
|
* ```
|
|
@@ -27,6 +27,12 @@ export interface DescribeManagedRuleGroupCommandOutput extends DescribeManagedRu
|
|
|
27
27
|
* import { WAFV2Client, DescribeManagedRuleGroupCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
28
28
|
* // const { WAFV2Client, DescribeManagedRuleGroupCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
29
29
|
* const client = new WAFV2Client(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* VendorName: "STRING_VALUE", // required
|
|
32
|
+
* Name: "STRING_VALUE", // required
|
|
33
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
34
|
+
* VersionName: "STRING_VALUE",
|
|
35
|
+
* };
|
|
30
36
|
* const command = new DescribeManagedRuleGroupCommand(input);
|
|
31
37
|
* const response = await client.send(command);
|
|
32
38
|
* ```
|
|
@@ -30,6 +30,9 @@ export interface DisassociateWebACLCommandOutput extends DisassociateWebACLRespo
|
|
|
30
30
|
* import { WAFV2Client, DisassociateWebACLCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
31
31
|
* // const { WAFV2Client, DisassociateWebACLCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
32
32
|
* const client = new WAFV2Client(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
33
36
|
* const command = new DisassociateWebACLCommand(input);
|
|
34
37
|
* const response = await client.send(command);
|
|
35
38
|
* ```
|
|
@@ -28,6 +28,10 @@ export interface GenerateMobileSdkReleaseUrlCommandOutput extends GenerateMobile
|
|
|
28
28
|
* import { WAFV2Client, GenerateMobileSdkReleaseUrlCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
29
29
|
* // const { WAFV2Client, GenerateMobileSdkReleaseUrlCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
30
30
|
* const client = new WAFV2Client(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* Platform: "IOS" || "ANDROID", // required
|
|
33
|
+
* ReleaseVersion: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
31
35
|
* const command = new GenerateMobileSdkReleaseUrlCommand(input);
|
|
32
36
|
* const response = await client.send(command);
|
|
33
37
|
* ```
|
|
@@ -26,6 +26,11 @@ export interface GetIPSetCommandOutput extends GetIPSetResponse, __MetadataBeare
|
|
|
26
26
|
* import { WAFV2Client, GetIPSetCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
27
27
|
* // const { WAFV2Client, GetIPSetCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
28
28
|
* const client = new WAFV2Client(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* Name: "STRING_VALUE", // required
|
|
31
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
32
|
+
* Id: "STRING_VALUE", // required
|
|
33
|
+
* };
|
|
29
34
|
* const command = new GetIPSetCommand(input);
|
|
30
35
|
* const response = await client.send(command);
|
|
31
36
|
* ```
|
|
@@ -26,6 +26,9 @@ export interface GetLoggingConfigurationCommandOutput extends GetLoggingConfigur
|
|
|
26
26
|
* import { WAFV2Client, GetLoggingConfigurationCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
27
27
|
* // const { WAFV2Client, GetLoggingConfigurationCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
28
28
|
* const client = new WAFV2Client(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
31
|
+
* };
|
|
29
32
|
* const command = new GetLoggingConfigurationCommand(input);
|
|
30
33
|
* const response = await client.send(command);
|
|
31
34
|
* ```
|
|
@@ -30,6 +30,11 @@ export interface GetManagedRuleSetCommandOutput extends GetManagedRuleSetRespons
|
|
|
30
30
|
* import { WAFV2Client, GetManagedRuleSetCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
31
31
|
* // const { WAFV2Client, GetManagedRuleSetCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
32
32
|
* const client = new WAFV2Client(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* Name: "STRING_VALUE", // required
|
|
35
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
36
|
+
* Id: "STRING_VALUE", // required
|
|
37
|
+
* };
|
|
33
38
|
* const command = new GetManagedRuleSetCommand(input);
|
|
34
39
|
* const response = await client.send(command);
|
|
35
40
|
* ```
|
|
@@ -29,6 +29,10 @@ export interface GetMobileSdkReleaseCommandOutput extends GetMobileSdkReleaseRes
|
|
|
29
29
|
* import { WAFV2Client, GetMobileSdkReleaseCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
30
30
|
* // const { WAFV2Client, GetMobileSdkReleaseCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
31
31
|
* const client = new WAFV2Client(config);
|
|
32
|
+
* const input = {
|
|
33
|
+
* Platform: "IOS" || "ANDROID", // required
|
|
34
|
+
* ReleaseVersion: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
32
36
|
* const command = new GetMobileSdkReleaseCommand(input);
|
|
33
37
|
* const response = await client.send(command);
|
|
34
38
|
* ```
|
|
@@ -27,6 +27,9 @@ export interface GetPermissionPolicyCommandOutput extends GetPermissionPolicyRes
|
|
|
27
27
|
* import { WAFV2Client, GetPermissionPolicyCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
28
28
|
* // const { WAFV2Client, GetPermissionPolicyCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
29
29
|
* const client = new WAFV2Client(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
32
|
+
* };
|
|
30
33
|
* const command = new GetPermissionPolicyCommand(input);
|
|
31
34
|
* const response = await client.send(command);
|
|
32
35
|
* ```
|
|
@@ -39,6 +39,13 @@ export interface GetRateBasedStatementManagedKeysCommandOutput extends GetRateBa
|
|
|
39
39
|
* import { WAFV2Client, GetRateBasedStatementManagedKeysCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
40
40
|
* // const { WAFV2Client, GetRateBasedStatementManagedKeysCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
41
41
|
* const client = new WAFV2Client(config);
|
|
42
|
+
* const input = {
|
|
43
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
44
|
+
* WebACLName: "STRING_VALUE", // required
|
|
45
|
+
* WebACLId: "STRING_VALUE", // required
|
|
46
|
+
* RuleGroupRuleName: "STRING_VALUE",
|
|
47
|
+
* RuleName: "STRING_VALUE", // required
|
|
48
|
+
* };
|
|
42
49
|
* const command = new GetRateBasedStatementManagedKeysCommand(input);
|
|
43
50
|
* const response = await client.send(command);
|
|
44
51
|
* ```
|
|
@@ -26,6 +26,11 @@ export interface GetRegexPatternSetCommandOutput extends GetRegexPatternSetRespo
|
|
|
26
26
|
* import { WAFV2Client, GetRegexPatternSetCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
27
27
|
* // const { WAFV2Client, GetRegexPatternSetCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
28
28
|
* const client = new WAFV2Client(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* Name: "STRING_VALUE", // required
|
|
31
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
32
|
+
* Id: "STRING_VALUE", // required
|
|
33
|
+
* };
|
|
29
34
|
* const command = new GetRegexPatternSetCommand(input);
|
|
30
35
|
* const response = await client.send(command);
|
|
31
36
|
* ```
|
|
@@ -26,6 +26,12 @@ export interface GetRuleGroupCommandOutput extends GetRuleGroupResponse, __Metad
|
|
|
26
26
|
* import { WAFV2Client, GetRuleGroupCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
27
27
|
* // const { WAFV2Client, GetRuleGroupCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
28
28
|
* const client = new WAFV2Client(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* Name: "STRING_VALUE",
|
|
31
|
+
* Scope: "CLOUDFRONT" || "REGIONAL",
|
|
32
|
+
* Id: "STRING_VALUE",
|
|
33
|
+
* ARN: "STRING_VALUE",
|
|
34
|
+
* };
|
|
29
35
|
* const command = new GetRuleGroupCommand(input);
|
|
30
36
|
* const response = await client.send(command);
|
|
31
37
|
* ```
|
|
@@ -35,6 +35,16 @@ export interface GetSampledRequestsCommandOutput extends GetSampledRequestsRespo
|
|
|
35
35
|
* import { WAFV2Client, GetSampledRequestsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
36
36
|
* // const { WAFV2Client, GetSampledRequestsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
37
37
|
* const client = new WAFV2Client(config);
|
|
38
|
+
* const input = {
|
|
39
|
+
* WebAclArn: "STRING_VALUE", // required
|
|
40
|
+
* RuleMetricName: "STRING_VALUE", // required
|
|
41
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
42
|
+
* TimeWindow: {
|
|
43
|
+
* StartTime: new Date("TIMESTAMP"), // required
|
|
44
|
+
* EndTime: new Date("TIMESTAMP"), // required
|
|
45
|
+
* },
|
|
46
|
+
* MaxItems: Number("long"), // required
|
|
47
|
+
* };
|
|
38
48
|
* const command = new GetSampledRequestsCommand(input);
|
|
39
49
|
* const response = await client.send(command);
|
|
40
50
|
* ```
|
|
@@ -26,6 +26,11 @@ export interface GetWebACLCommandOutput extends GetWebACLResponse, __MetadataBea
|
|
|
26
26
|
* import { WAFV2Client, GetWebACLCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
27
27
|
* // const { WAFV2Client, GetWebACLCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
28
28
|
* const client = new WAFV2Client(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* Name: "STRING_VALUE", // required
|
|
31
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
32
|
+
* Id: "STRING_VALUE", // required
|
|
33
|
+
* };
|
|
29
34
|
* const command = new GetWebACLCommand(input);
|
|
30
35
|
* const response = await client.send(command);
|
|
31
36
|
* ```
|
|
@@ -26,6 +26,9 @@ export interface GetWebACLForResourceCommandOutput extends GetWebACLForResourceR
|
|
|
26
26
|
* import { WAFV2Client, GetWebACLForResourceCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
27
27
|
* // const { WAFV2Client, GetWebACLForResourceCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
28
28
|
* const client = new WAFV2Client(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
31
|
+
* };
|
|
29
32
|
* const command = new GetWebACLForResourceCommand(input);
|
|
30
33
|
* const response = await client.send(command);
|
|
31
34
|
* ```
|
|
@@ -26,6 +26,13 @@ export interface ListAvailableManagedRuleGroupVersionsCommandOutput extends List
|
|
|
26
26
|
* import { WAFV2Client, ListAvailableManagedRuleGroupVersionsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
27
27
|
* // const { WAFV2Client, ListAvailableManagedRuleGroupVersionsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
28
28
|
* const client = new WAFV2Client(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* VendorName: "STRING_VALUE", // required
|
|
31
|
+
* Name: "STRING_VALUE", // required
|
|
32
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
33
|
+
* NextMarker: "STRING_VALUE",
|
|
34
|
+
* Limit: Number("int"),
|
|
35
|
+
* };
|
|
29
36
|
* const command = new ListAvailableManagedRuleGroupVersionsCommand(input);
|
|
30
37
|
* const response = await client.send(command);
|
|
31
38
|
* ```
|
|
@@ -28,6 +28,11 @@ export interface ListAvailableManagedRuleGroupsCommandOutput extends ListAvailab
|
|
|
28
28
|
* import { WAFV2Client, ListAvailableManagedRuleGroupsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
29
29
|
* // const { WAFV2Client, ListAvailableManagedRuleGroupsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
30
30
|
* const client = new WAFV2Client(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
33
|
+
* NextMarker: "STRING_VALUE",
|
|
34
|
+
* Limit: Number("int"),
|
|
35
|
+
* };
|
|
31
36
|
* const command = new ListAvailableManagedRuleGroupsCommand(input);
|
|
32
37
|
* const response = await client.send(command);
|
|
33
38
|
* ```
|
|
@@ -27,6 +27,11 @@ export interface ListIPSetsCommandOutput extends ListIPSetsResponse, __MetadataB
|
|
|
27
27
|
* import { WAFV2Client, ListIPSetsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
28
28
|
* // const { WAFV2Client, ListIPSetsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
29
29
|
* const client = new WAFV2Client(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
32
|
+
* NextMarker: "STRING_VALUE",
|
|
33
|
+
* Limit: Number("int"),
|
|
34
|
+
* };
|
|
30
35
|
* const command = new ListIPSetsCommand(input);
|
|
31
36
|
* const response = await client.send(command);
|
|
32
37
|
* ```
|
|
@@ -26,6 +26,11 @@ export interface ListLoggingConfigurationsCommandOutput extends ListLoggingConfi
|
|
|
26
26
|
* import { WAFV2Client, ListLoggingConfigurationsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
27
27
|
* // const { WAFV2Client, ListLoggingConfigurationsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
28
28
|
* const client = new WAFV2Client(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
31
|
+
* NextMarker: "STRING_VALUE",
|
|
32
|
+
* Limit: Number("int"),
|
|
33
|
+
* };
|
|
29
34
|
* const command = new ListLoggingConfigurationsCommand(input);
|
|
30
35
|
* const response = await client.send(command);
|
|
31
36
|
* ```
|
|
@@ -30,6 +30,11 @@ export interface ListManagedRuleSetsCommandOutput extends ListManagedRuleSetsRes
|
|
|
30
30
|
* import { WAFV2Client, ListManagedRuleSetsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
31
31
|
* // const { WAFV2Client, ListManagedRuleSetsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
32
32
|
* const client = new WAFV2Client(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
35
|
+
* NextMarker: "STRING_VALUE",
|
|
36
|
+
* Limit: Number("int"),
|
|
37
|
+
* };
|
|
33
38
|
* const command = new ListManagedRuleSetsCommand(input);
|
|
34
39
|
* const response = await client.send(command);
|
|
35
40
|
* ```
|
|
@@ -29,6 +29,11 @@ export interface ListMobileSdkReleasesCommandOutput extends ListMobileSdkRelease
|
|
|
29
29
|
* import { WAFV2Client, ListMobileSdkReleasesCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
30
30
|
* // const { WAFV2Client, ListMobileSdkReleasesCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
31
31
|
* const client = new WAFV2Client(config);
|
|
32
|
+
* const input = {
|
|
33
|
+
* Platform: "IOS" || "ANDROID", // required
|
|
34
|
+
* NextMarker: "STRING_VALUE",
|
|
35
|
+
* Limit: Number("int"),
|
|
36
|
+
* };
|
|
32
37
|
* const command = new ListMobileSdkReleasesCommand(input);
|
|
33
38
|
* const response = await client.send(command);
|
|
34
39
|
* ```
|
|
@@ -27,6 +27,11 @@ export interface ListRegexPatternSetsCommandOutput extends ListRegexPatternSetsR
|
|
|
27
27
|
* import { WAFV2Client, ListRegexPatternSetsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
28
28
|
* // const { WAFV2Client, ListRegexPatternSetsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
29
29
|
* const client = new WAFV2Client(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
32
|
+
* NextMarker: "STRING_VALUE",
|
|
33
|
+
* Limit: Number("int"),
|
|
34
|
+
* };
|
|
30
35
|
* const command = new ListRegexPatternSetsCommand(input);
|
|
31
36
|
* const response = await client.send(command);
|
|
32
37
|
* ```
|
|
@@ -28,6 +28,10 @@ export interface ListResourcesForWebACLCommandOutput extends ListResourcesForWeb
|
|
|
28
28
|
* import { WAFV2Client, ListResourcesForWebACLCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
29
29
|
* // const { WAFV2Client, ListResourcesForWebACLCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
30
30
|
* const client = new WAFV2Client(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* WebACLArn: "STRING_VALUE", // required
|
|
33
|
+
* ResourceType: "APPLICATION_LOAD_BALANCER" || "API_GATEWAY" || "APPSYNC" || "COGNITO_USER_POOL" || "APP_RUNNER_SERVICE",
|
|
34
|
+
* };
|
|
31
35
|
* const command = new ListResourcesForWebACLCommand(input);
|
|
32
36
|
* const response = await client.send(command);
|
|
33
37
|
* ```
|
|
@@ -27,6 +27,11 @@ export interface ListRuleGroupsCommandOutput extends ListRuleGroupsResponse, __M
|
|
|
27
27
|
* import { WAFV2Client, ListRuleGroupsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
28
28
|
* // const { WAFV2Client, ListRuleGroupsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
29
29
|
* const client = new WAFV2Client(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
32
|
+
* NextMarker: "STRING_VALUE",
|
|
33
|
+
* Limit: Number("int"),
|
|
34
|
+
* };
|
|
30
35
|
* const command = new ListRuleGroupsCommand(input);
|
|
31
36
|
* const response = await client.send(command);
|
|
32
37
|
* ```
|
|
@@ -33,6 +33,11 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
33
33
|
* import { WAFV2Client, ListTagsForResourceCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
34
34
|
* // const { WAFV2Client, ListTagsForResourceCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
35
35
|
* const client = new WAFV2Client(config);
|
|
36
|
+
* const input = {
|
|
37
|
+
* NextMarker: "STRING_VALUE",
|
|
38
|
+
* Limit: Number("int"),
|
|
39
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
36
41
|
* const command = new ListTagsForResourceCommand(input);
|
|
37
42
|
* const response = await client.send(command);
|
|
38
43
|
* ```
|
|
@@ -27,6 +27,11 @@ export interface ListWebACLsCommandOutput extends ListWebACLsResponse, __Metadat
|
|
|
27
27
|
* import { WAFV2Client, ListWebACLsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
28
28
|
* // const { WAFV2Client, ListWebACLsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
29
29
|
* const client = new WAFV2Client(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
32
|
+
* NextMarker: "STRING_VALUE",
|
|
33
|
+
* Limit: Number("int"),
|
|
34
|
+
* };
|
|
30
35
|
* const command = new ListWebACLsCommand(input);
|
|
31
36
|
* const response = await client.send(command);
|
|
32
37
|
* ```
|
|
@@ -68,6 +68,88 @@ export interface PutLoggingConfigurationCommandOutput extends PutLoggingConfigur
|
|
|
68
68
|
* import { WAFV2Client, PutLoggingConfigurationCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
69
69
|
* // const { WAFV2Client, PutLoggingConfigurationCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
70
70
|
* const client = new WAFV2Client(config);
|
|
71
|
+
* const input = {
|
|
72
|
+
* LoggingConfiguration: {
|
|
73
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
74
|
+
* LogDestinationConfigs: [ // required
|
|
75
|
+
* "STRING_VALUE",
|
|
76
|
+
* ],
|
|
77
|
+
* RedactedFields: [
|
|
78
|
+
* {
|
|
79
|
+
* SingleHeader: {
|
|
80
|
+
* Name: "STRING_VALUE", // required
|
|
81
|
+
* },
|
|
82
|
+
* SingleQueryArgument: {
|
|
83
|
+
* Name: "STRING_VALUE", // required
|
|
84
|
+
* },
|
|
85
|
+
* AllQueryArguments: {},
|
|
86
|
+
* UriPath: {},
|
|
87
|
+
* QueryString: {},
|
|
88
|
+
* Body: {
|
|
89
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
90
|
+
* },
|
|
91
|
+
* Method: {},
|
|
92
|
+
* JsonBody: {
|
|
93
|
+
* MatchPattern: {
|
|
94
|
+
* All: {},
|
|
95
|
+
* IncludedPaths: [
|
|
96
|
+
* "STRING_VALUE",
|
|
97
|
+
* ],
|
|
98
|
+
* },
|
|
99
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
100
|
+
* InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
|
|
101
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
102
|
+
* },
|
|
103
|
+
* Headers: {
|
|
104
|
+
* MatchPattern: {
|
|
105
|
+
* All: {},
|
|
106
|
+
* IncludedHeaders: [
|
|
107
|
+
* "STRING_VALUE",
|
|
108
|
+
* ],
|
|
109
|
+
* ExcludedHeaders: [
|
|
110
|
+
* "STRING_VALUE",
|
|
111
|
+
* ],
|
|
112
|
+
* },
|
|
113
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
114
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
115
|
+
* },
|
|
116
|
+
* Cookies: {
|
|
117
|
+
* MatchPattern: {
|
|
118
|
+
* All: {},
|
|
119
|
+
* IncludedCookies: [
|
|
120
|
+
* "STRING_VALUE",
|
|
121
|
+
* ],
|
|
122
|
+
* ExcludedCookies: [
|
|
123
|
+
* "STRING_VALUE",
|
|
124
|
+
* ],
|
|
125
|
+
* },
|
|
126
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
127
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
128
|
+
* },
|
|
129
|
+
* },
|
|
130
|
+
* ],
|
|
131
|
+
* ManagedByFirewallManager: true || false,
|
|
132
|
+
* LoggingFilter: {
|
|
133
|
+
* Filters: [ // required
|
|
134
|
+
* {
|
|
135
|
+
* Behavior: "KEEP" || "DROP", // required
|
|
136
|
+
* Requirement: "MEETS_ALL" || "MEETS_ANY", // required
|
|
137
|
+
* Conditions: [ // required
|
|
138
|
+
* {
|
|
139
|
+
* ActionCondition: {
|
|
140
|
+
* Action: "ALLOW" || "BLOCK" || "COUNT" || "CAPTCHA" || "CHALLENGE" || "EXCLUDED_AS_COUNT", // required
|
|
141
|
+
* },
|
|
142
|
+
* LabelNameCondition: {
|
|
143
|
+
* LabelName: "STRING_VALUE", // required
|
|
144
|
+
* },
|
|
145
|
+
* },
|
|
146
|
+
* ],
|
|
147
|
+
* },
|
|
148
|
+
* ],
|
|
149
|
+
* DefaultBehavior: "KEEP" || "DROP", // required
|
|
150
|
+
* },
|
|
151
|
+
* },
|
|
152
|
+
* };
|
|
71
153
|
* const command = new PutLoggingConfigurationCommand(input);
|
|
72
154
|
* const response = await client.send(command);
|
|
73
155
|
* ```
|
|
@@ -37,6 +37,19 @@ export interface PutManagedRuleSetVersionsCommandOutput extends PutManagedRuleSe
|
|
|
37
37
|
* import { WAFV2Client, PutManagedRuleSetVersionsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
38
38
|
* // const { WAFV2Client, PutManagedRuleSetVersionsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
39
39
|
* const client = new WAFV2Client(config);
|
|
40
|
+
* const input = {
|
|
41
|
+
* Name: "STRING_VALUE", // required
|
|
42
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
43
|
+
* Id: "STRING_VALUE", // required
|
|
44
|
+
* LockToken: "STRING_VALUE", // required
|
|
45
|
+
* RecommendedVersion: "STRING_VALUE",
|
|
46
|
+
* VersionsToPublish: {
|
|
47
|
+
* "<keys>": {
|
|
48
|
+
* AssociatedRuleGroupArn: "STRING_VALUE",
|
|
49
|
+
* ForecastedLifetime: Number("int"),
|
|
50
|
+
* },
|
|
51
|
+
* },
|
|
52
|
+
* };
|
|
40
53
|
* const command = new PutManagedRuleSetVersionsCommand(input);
|
|
41
54
|
* const response = await client.send(command);
|
|
42
55
|
* ```
|
|
@@ -42,6 +42,10 @@ export interface PutPermissionPolicyCommandOutput extends PutPermissionPolicyRes
|
|
|
42
42
|
* import { WAFV2Client, PutPermissionPolicyCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
43
43
|
* // const { WAFV2Client, PutPermissionPolicyCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
44
44
|
* const client = new WAFV2Client(config);
|
|
45
|
+
* const input = {
|
|
46
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
47
|
+
* Policy: "STRING_VALUE", // required
|
|
48
|
+
* };
|
|
45
49
|
* const command = new PutPermissionPolicyCommand(input);
|
|
46
50
|
* const response = await client.send(command);
|
|
47
51
|
* ```
|
|
@@ -33,6 +33,15 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
33
33
|
* import { WAFV2Client, TagResourceCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
34
34
|
* // const { WAFV2Client, TagResourceCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
35
35
|
* const client = new WAFV2Client(config);
|
|
36
|
+
* const input = {
|
|
37
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
38
|
+
* Tags: [ // required
|
|
39
|
+
* {
|
|
40
|
+
* Key: "STRING_VALUE", // required
|
|
41
|
+
* Value: "STRING_VALUE", // required
|
|
42
|
+
* },
|
|
43
|
+
* ],
|
|
44
|
+
* };
|
|
36
45
|
* const command = new TagResourceCommand(input);
|
|
37
46
|
* const response = await client.send(command);
|
|
38
47
|
* ```
|
|
@@ -29,6 +29,12 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
29
29
|
* import { WAFV2Client, UntagResourceCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
30
30
|
* // const { WAFV2Client, UntagResourceCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
31
31
|
* const client = new WAFV2Client(config);
|
|
32
|
+
* const input = {
|
|
33
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
34
|
+
* TagKeys: [ // required
|
|
35
|
+
* "STRING_VALUE",
|
|
36
|
+
* ],
|
|
37
|
+
* };
|
|
32
38
|
* const command = new UntagResourceCommand(input);
|
|
33
39
|
* const response = await client.send(command);
|
|
34
40
|
* ```
|
|
@@ -43,6 +43,16 @@ export interface UpdateIPSetCommandOutput extends UpdateIPSetResponse, __Metadat
|
|
|
43
43
|
* import { WAFV2Client, UpdateIPSetCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
44
44
|
* // const { WAFV2Client, UpdateIPSetCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
45
45
|
* const client = new WAFV2Client(config);
|
|
46
|
+
* const input = {
|
|
47
|
+
* Name: "STRING_VALUE", // required
|
|
48
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
49
|
+
* Id: "STRING_VALUE", // required
|
|
50
|
+
* Description: "STRING_VALUE",
|
|
51
|
+
* Addresses: [ // required
|
|
52
|
+
* "STRING_VALUE",
|
|
53
|
+
* ],
|
|
54
|
+
* LockToken: "STRING_VALUE", // required
|
|
55
|
+
* };
|
|
46
56
|
* const command = new UpdateIPSetCommand(input);
|
|
47
57
|
* const response = await client.send(command);
|
|
48
58
|
* ```
|
|
@@ -32,6 +32,14 @@ export interface UpdateManagedRuleSetVersionExpiryDateCommandOutput extends Upda
|
|
|
32
32
|
* import { WAFV2Client, UpdateManagedRuleSetVersionExpiryDateCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
33
33
|
* // const { WAFV2Client, UpdateManagedRuleSetVersionExpiryDateCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
34
34
|
* const client = new WAFV2Client(config);
|
|
35
|
+
* const input = {
|
|
36
|
+
* Name: "STRING_VALUE", // required
|
|
37
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
38
|
+
* Id: "STRING_VALUE", // required
|
|
39
|
+
* LockToken: "STRING_VALUE", // required
|
|
40
|
+
* VersionToExpire: "STRING_VALUE", // required
|
|
41
|
+
* ExpiryTimestamp: new Date("TIMESTAMP"), // required
|
|
42
|
+
* };
|
|
35
43
|
* const command = new UpdateManagedRuleSetVersionExpiryDateCommand(input);
|
|
36
44
|
* const response = await client.send(command);
|
|
37
45
|
* ```
|
|
@@ -43,6 +43,18 @@ export interface UpdateRegexPatternSetCommandOutput extends UpdateRegexPatternSe
|
|
|
43
43
|
* import { WAFV2Client, UpdateRegexPatternSetCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
44
44
|
* // const { WAFV2Client, UpdateRegexPatternSetCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
45
45
|
* const client = new WAFV2Client(config);
|
|
46
|
+
* const input = {
|
|
47
|
+
* Name: "STRING_VALUE", // required
|
|
48
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
49
|
+
* Id: "STRING_VALUE", // required
|
|
50
|
+
* Description: "STRING_VALUE",
|
|
51
|
+
* RegularExpressionList: [ // required
|
|
52
|
+
* {
|
|
53
|
+
* RegexString: "STRING_VALUE",
|
|
54
|
+
* },
|
|
55
|
+
* ],
|
|
56
|
+
* LockToken: "STRING_VALUE", // required
|
|
57
|
+
* };
|
|
46
58
|
* const command = new UpdateRegexPatternSetCommand(input);
|
|
47
59
|
* const response = await client.send(command);
|
|
48
60
|
* ```
|