@aws-sdk/client-wafv2 3.421.0 → 3.422.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/models/models_0.d.ts +26 -6
- package/dist-types/ts3.4/WAFV2.d.ts +438 -918
- package/dist-types/ts3.4/WAFV2Client.d.ts +277 -436
- package/dist-types/ts3.4/commands/AssociateWebACLCommand.d.ts +118 -38
- package/dist-types/ts3.4/commands/CheckCapacityCommand.d.ts +1093 -38
- package/dist-types/ts3.4/commands/CreateAPIKeyCommand.d.ts +115 -35
- package/dist-types/ts3.4/commands/CreateIPSetCommand.d.ts +144 -35
- package/dist-types/ts3.4/commands/CreateRegexPatternSetCommand.d.ts +143 -42
- package/dist-types/ts3.4/commands/CreateRuleGroupCommand.d.ts +1116 -38
- package/dist-types/ts3.4/commands/CreateWebACLCommand.d.ts +1145 -35
- package/dist-types/ts3.4/commands/DeleteFirewallManagerRuleGroupsCommand.d.ts +115 -42
- package/dist-types/ts3.4/commands/DeleteIPSetCommand.d.ts +124 -35
- package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +110 -42
- package/dist-types/ts3.4/commands/DeletePermissionPolicyCommand.d.ts +103 -42
- package/dist-types/ts3.4/commands/DeleteRegexPatternSetCommand.d.ts +124 -42
- package/dist-types/ts3.4/commands/DeleteRuleGroupCommand.d.ts +124 -38
- package/dist-types/ts3.4/commands/DeleteWebACLCommand.d.ts +158 -35
- package/dist-types/ts3.4/commands/DescribeAllManagedProductsCommand.d.ts +92 -42
- package/dist-types/ts3.4/commands/DescribeManagedProductsByVendorCommand.d.ts +114 -42
- package/dist-types/ts3.4/commands/DescribeManagedRuleGroupCommand.d.ts +191 -42
- package/dist-types/ts3.4/commands/DisassociateWebACLCommand.d.ts +109 -39
- package/dist-types/ts3.4/commands/GenerateMobileSdkReleaseUrlCommand.d.ts +110 -42
- package/dist-types/ts3.4/commands/GetDecryptedAPIKeyCommand.d.ts +112 -39
- package/dist-types/ts3.4/commands/GetIPSetCommand.d.ts +119 -35
- package/dist-types/ts3.4/commands/GetLoggingConfigurationCommand.d.ts +192 -42
- package/dist-types/ts3.4/commands/GetManagedRuleSetCommand.d.ts +131 -39
- package/dist-types/ts3.4/commands/GetMobileSdkReleaseCommand.d.ts +121 -39
- package/dist-types/ts3.4/commands/GetPermissionPolicyCommand.d.ts +105 -39
- package/dist-types/ts3.4/commands/GetRateBasedStatementManagedKeysCommand.d.ts +142 -42
- package/dist-types/ts3.4/commands/GetRegexPatternSetCommand.d.ts +120 -39
- package/dist-types/ts3.4/commands/GetRuleGroupCommand.d.ts +1088 -35
- package/dist-types/ts3.4/commands/GetSampledRequestsCommand.d.ts +168 -39
- package/dist-types/ts3.4/commands/GetWebACLCommand.d.ts +1283 -35
- package/dist-types/ts3.4/commands/GetWebACLForResourceCommand.d.ts +1286 -42
- package/dist-types/ts3.4/commands/ListAPIKeysCommand.d.ts +121 -35
- package/dist-types/ts3.4/commands/ListAvailableManagedRuleGroupVersionsCommand.d.ts +118 -42
- package/dist-types/ts3.4/commands/ListAvailableManagedRuleGroupsCommand.d.ts +113 -42
- package/dist-types/ts3.4/commands/ListIPSetsCommand.d.ts +113 -35
- package/dist-types/ts3.4/commands/ListLoggingConfigurationsCommand.d.ts +191 -42
- package/dist-types/ts3.4/commands/ListManagedRuleSetsCommand.d.ts +117 -39
- package/dist-types/ts3.4/commands/ListMobileSdkReleasesCommand.d.ts +112 -42
- package/dist-types/ts3.4/commands/ListRegexPatternSetsCommand.d.ts +113 -42
- package/dist-types/ts3.4/commands/ListResourcesForWebACLCommand.d.ts +112 -42
- package/dist-types/ts3.4/commands/ListRuleGroupsCommand.d.ts +113 -38
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +132 -39
- package/dist-types/ts3.4/commands/ListWebACLsCommand.d.ts +113 -35
- package/dist-types/ts3.4/commands/PutLoggingConfigurationCommand.d.ts +345 -42
- package/dist-types/ts3.4/commands/PutManagedRuleSetVersionsCommand.d.ts +133 -42
- package/dist-types/ts3.4/commands/PutPermissionPolicyCommand.d.ts +145 -39
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +131 -35
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +118 -38
- package/dist-types/ts3.4/commands/UpdateIPSetCommand.d.ts +146 -35
- package/dist-types/ts3.4/commands/UpdateManagedRuleSetVersionExpiryDateCommand.d.ts +125 -42
- package/dist-types/ts3.4/commands/UpdateRegexPatternSetCommand.d.ts +148 -42
- package/dist-types/ts3.4/commands/UpdateRuleGroupCommand.d.ts +1128 -38
- package/dist-types/ts3.4/commands/UpdateWebACLCommand.d.ts +1146 -35
- package/dist-types/ts3.4/commands/index.d.ts +53 -53
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +22 -33
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +5 -8
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
- package/dist-types/ts3.4/extensionConfiguration.d.ts +8 -7
- package/dist-types/ts3.4/index.d.ts +68 -6
- package/dist-types/ts3.4/models/WAFV2ServiceException.d.ts +13 -8
- package/dist-types/ts3.4/models/index.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +7951 -1764
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +479 -641
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +46 -97
- package/dist-types/ts3.4/runtimeConfig.d.ts +46 -97
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +45 -88
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -19
- package/dist-types/ts3.4/runtimeExtensions.d.ts +17 -11
- package/package.json +1 -1
|
@@ -1,35 +1,113 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { ListWebACLsRequest, ListWebACLsResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListWebACLsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListWebACLsCommandInput extends ListWebACLsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListWebACLsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListWebACLsCommandOutput extends ListWebACLsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Retrieves an array of <a>WebACLSummary</a> objects for the web ACLs that you
|
|
27
|
+
* manage.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { WAFV2Client, ListWebACLsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
32
|
+
* // const { WAFV2Client, ListWebACLsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
33
|
+
* const client = new WAFV2Client(config);
|
|
34
|
+
* const input = { // ListWebACLsRequest
|
|
35
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
36
|
+
* NextMarker: "STRING_VALUE",
|
|
37
|
+
* Limit: Number("int"),
|
|
38
|
+
* };
|
|
39
|
+
* const command = new ListWebACLsCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // ListWebACLsResponse
|
|
42
|
+
* // NextMarker: "STRING_VALUE",
|
|
43
|
+
* // WebACLs: [ // WebACLSummaries
|
|
44
|
+
* // { // WebACLSummary
|
|
45
|
+
* // Name: "STRING_VALUE",
|
|
46
|
+
* // Id: "STRING_VALUE",
|
|
47
|
+
* // Description: "STRING_VALUE",
|
|
48
|
+
* // LockToken: "STRING_VALUE",
|
|
49
|
+
* // ARN: "STRING_VALUE",
|
|
50
|
+
* // },
|
|
51
|
+
* // ],
|
|
52
|
+
* // };
|
|
53
|
+
*
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param ListWebACLsCommandInput - {@link ListWebACLsCommandInput}
|
|
57
|
+
* @returns {@link ListWebACLsCommandOutput}
|
|
58
|
+
* @see {@link ListWebACLsCommandInput} for command's `input` shape.
|
|
59
|
+
* @see {@link ListWebACLsCommandOutput} for command's `response` shape.
|
|
60
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link WAFInternalErrorException} (server fault)
|
|
63
|
+
* <p>Your request is valid, but WAF couldn’t perform the operation because of a system
|
|
64
|
+
* problem. Retry your request. </p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link WAFInvalidOperationException} (client fault)
|
|
67
|
+
* <p>The operation isn't valid. </p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link WAFInvalidParameterException} (client fault)
|
|
70
|
+
* <p>The operation failed because WAF didn't recognize a parameter in the request. For
|
|
71
|
+
* example: </p>
|
|
72
|
+
* <ul>
|
|
73
|
+
* <li>
|
|
74
|
+
* <p>You specified a parameter name or value that isn't valid.</p>
|
|
75
|
+
* </li>
|
|
76
|
+
* <li>
|
|
77
|
+
* <p>Your nested statement isn't valid. You might have tried to nest a statement that
|
|
78
|
+
* can’t be nested. </p>
|
|
79
|
+
* </li>
|
|
80
|
+
* <li>
|
|
81
|
+
* <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
|
|
82
|
+
* isn't among the types available at <a>DefaultAction</a>.</p>
|
|
83
|
+
* </li>
|
|
84
|
+
* <li>
|
|
85
|
+
* <p>Your request references an ARN that is malformed, or corresponds to a resource
|
|
86
|
+
* with which a web ACL can't be associated.</p>
|
|
87
|
+
* </li>
|
|
88
|
+
* </ul>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link WAFV2ServiceException}
|
|
91
|
+
* <p>Base exception class for all service exceptions from WAFV2 service.</p>
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
export declare class ListWebACLsCommand extends $Command<ListWebACLsCommandInput, ListWebACLsCommandOutput, WAFV2ClientResolvedConfig> {
|
|
95
|
+
readonly input: ListWebACLsCommandInput;
|
|
96
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
97
|
+
/**
|
|
98
|
+
* @public
|
|
99
|
+
*/
|
|
100
|
+
constructor(input: ListWebACLsCommandInput);
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListWebACLsCommandInput, ListWebACLsCommandOutput>;
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
private serialize;
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
112
|
+
private deserialize;
|
|
113
|
+
}
|
|
@@ -1,42 +1,345 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { PutLoggingConfigurationRequest, PutLoggingConfigurationResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link PutLoggingConfigurationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PutLoggingConfigurationCommandInput extends PutLoggingConfigurationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PutLoggingConfigurationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PutLoggingConfigurationCommandOutput extends PutLoggingConfigurationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Enables the specified <a>LoggingConfiguration</a>, to start logging from a
|
|
27
|
+
* web ACL, according to the configuration provided. </p>
|
|
28
|
+
* <note>
|
|
29
|
+
* <p>This operation completely replaces any mutable specifications that you already have for a logging configuration with the ones that you provide to this call. </p>
|
|
30
|
+
* <p>To modify an existing logging configuration, do the following: </p>
|
|
31
|
+
* <ol>
|
|
32
|
+
* <li>
|
|
33
|
+
* <p>Retrieve it by calling <a>GetLoggingConfiguration</a>
|
|
34
|
+
* </p>
|
|
35
|
+
* </li>
|
|
36
|
+
* <li>
|
|
37
|
+
* <p>Update its settings as needed</p>
|
|
38
|
+
* </li>
|
|
39
|
+
* <li>
|
|
40
|
+
* <p>Provide the complete logging configuration specification to this call</p>
|
|
41
|
+
* </li>
|
|
42
|
+
* </ol>
|
|
43
|
+
* </note>
|
|
44
|
+
* <note>
|
|
45
|
+
* <p>You can define one logging destination per web ACL.</p>
|
|
46
|
+
* </note>
|
|
47
|
+
* <p>You can access information about the traffic that WAF inspects using the following
|
|
48
|
+
* steps:</p>
|
|
49
|
+
* <ol>
|
|
50
|
+
* <li>
|
|
51
|
+
* <p>Create your logging destination. You can use an Amazon CloudWatch Logs log group, an Amazon Simple Storage Service (Amazon S3) bucket, or an Amazon Kinesis Data Firehose. </p>
|
|
52
|
+
* <p>The name that you give the destination must start with <code>aws-waf-logs-</code>. Depending on the type of destination, you might need to configure additional settings or permissions. </p>
|
|
53
|
+
* <p>For configuration requirements and pricing information for each destination type, see
|
|
54
|
+
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging web ACL traffic</a>
|
|
55
|
+
* in the <i>WAF Developer Guide</i>.</p>
|
|
56
|
+
* </li>
|
|
57
|
+
* <li>
|
|
58
|
+
* <p>Associate your logging destination to your web ACL using a
|
|
59
|
+
* <code>PutLoggingConfiguration</code> request.</p>
|
|
60
|
+
* </li>
|
|
61
|
+
* </ol>
|
|
62
|
+
* <p>When you successfully enable logging using a <code>PutLoggingConfiguration</code>
|
|
63
|
+
* request, WAF creates an additional role or policy that is required to write
|
|
64
|
+
* logs to the logging destination. For an Amazon CloudWatch Logs log group, WAF creates a resource policy on the log group.
|
|
65
|
+
* For an Amazon S3 bucket, WAF creates a bucket policy. For an Amazon Kinesis Data Firehose, WAF creates a service-linked role.</p>
|
|
66
|
+
* <p>For additional information about web ACL logging, see
|
|
67
|
+
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging web ACL traffic information</a>
|
|
68
|
+
* in the <i>WAF Developer Guide</i>.</p>
|
|
69
|
+
* @example
|
|
70
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
71
|
+
* ```javascript
|
|
72
|
+
* import { WAFV2Client, PutLoggingConfigurationCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
73
|
+
* // const { WAFV2Client, PutLoggingConfigurationCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
74
|
+
* const client = new WAFV2Client(config);
|
|
75
|
+
* const input = { // PutLoggingConfigurationRequest
|
|
76
|
+
* LoggingConfiguration: { // LoggingConfiguration
|
|
77
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
78
|
+
* LogDestinationConfigs: [ // LogDestinationConfigs // required
|
|
79
|
+
* "STRING_VALUE",
|
|
80
|
+
* ],
|
|
81
|
+
* RedactedFields: [ // RedactedFields
|
|
82
|
+
* { // FieldToMatch
|
|
83
|
+
* SingleHeader: { // SingleHeader
|
|
84
|
+
* Name: "STRING_VALUE", // required
|
|
85
|
+
* },
|
|
86
|
+
* SingleQueryArgument: { // SingleQueryArgument
|
|
87
|
+
* Name: "STRING_VALUE", // required
|
|
88
|
+
* },
|
|
89
|
+
* AllQueryArguments: {},
|
|
90
|
+
* UriPath: {},
|
|
91
|
+
* QueryString: {},
|
|
92
|
+
* Body: { // Body
|
|
93
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
94
|
+
* },
|
|
95
|
+
* Method: {},
|
|
96
|
+
* JsonBody: { // JsonBody
|
|
97
|
+
* MatchPattern: { // JsonMatchPattern
|
|
98
|
+
* All: {},
|
|
99
|
+
* IncludedPaths: [ // JsonPointerPaths
|
|
100
|
+
* "STRING_VALUE",
|
|
101
|
+
* ],
|
|
102
|
+
* },
|
|
103
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
104
|
+
* InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
|
|
105
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
106
|
+
* },
|
|
107
|
+
* Headers: { // Headers
|
|
108
|
+
* MatchPattern: { // HeaderMatchPattern
|
|
109
|
+
* All: {},
|
|
110
|
+
* IncludedHeaders: [ // HeaderNames
|
|
111
|
+
* "STRING_VALUE",
|
|
112
|
+
* ],
|
|
113
|
+
* ExcludedHeaders: [
|
|
114
|
+
* "STRING_VALUE",
|
|
115
|
+
* ],
|
|
116
|
+
* },
|
|
117
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
118
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
119
|
+
* },
|
|
120
|
+
* Cookies: { // Cookies
|
|
121
|
+
* MatchPattern: { // CookieMatchPattern
|
|
122
|
+
* All: {},
|
|
123
|
+
* IncludedCookies: [ // CookieNames
|
|
124
|
+
* "STRING_VALUE",
|
|
125
|
+
* ],
|
|
126
|
+
* ExcludedCookies: [
|
|
127
|
+
* "STRING_VALUE",
|
|
128
|
+
* ],
|
|
129
|
+
* },
|
|
130
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
131
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
132
|
+
* },
|
|
133
|
+
* HeaderOrder: { // HeaderOrder
|
|
134
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
135
|
+
* },
|
|
136
|
+
* JA3Fingerprint: { // JA3Fingerprint
|
|
137
|
+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
|
|
138
|
+
* },
|
|
139
|
+
* },
|
|
140
|
+
* ],
|
|
141
|
+
* ManagedByFirewallManager: true || false,
|
|
142
|
+
* LoggingFilter: { // LoggingFilter
|
|
143
|
+
* Filters: [ // Filters // required
|
|
144
|
+
* { // Filter
|
|
145
|
+
* Behavior: "KEEP" || "DROP", // required
|
|
146
|
+
* Requirement: "MEETS_ALL" || "MEETS_ANY", // required
|
|
147
|
+
* Conditions: [ // Conditions // required
|
|
148
|
+
* { // Condition
|
|
149
|
+
* ActionCondition: { // ActionCondition
|
|
150
|
+
* Action: "ALLOW" || "BLOCK" || "COUNT" || "CAPTCHA" || "CHALLENGE" || "EXCLUDED_AS_COUNT", // required
|
|
151
|
+
* },
|
|
152
|
+
* LabelNameCondition: { // LabelNameCondition
|
|
153
|
+
* LabelName: "STRING_VALUE", // required
|
|
154
|
+
* },
|
|
155
|
+
* },
|
|
156
|
+
* ],
|
|
157
|
+
* },
|
|
158
|
+
* ],
|
|
159
|
+
* DefaultBehavior: "KEEP" || "DROP", // required
|
|
160
|
+
* },
|
|
161
|
+
* },
|
|
162
|
+
* };
|
|
163
|
+
* const command = new PutLoggingConfigurationCommand(input);
|
|
164
|
+
* const response = await client.send(command);
|
|
165
|
+
* // { // PutLoggingConfigurationResponse
|
|
166
|
+
* // LoggingConfiguration: { // LoggingConfiguration
|
|
167
|
+
* // ResourceArn: "STRING_VALUE", // required
|
|
168
|
+
* // LogDestinationConfigs: [ // LogDestinationConfigs // required
|
|
169
|
+
* // "STRING_VALUE",
|
|
170
|
+
* // ],
|
|
171
|
+
* // RedactedFields: [ // RedactedFields
|
|
172
|
+
* // { // FieldToMatch
|
|
173
|
+
* // SingleHeader: { // SingleHeader
|
|
174
|
+
* // Name: "STRING_VALUE", // required
|
|
175
|
+
* // },
|
|
176
|
+
* // SingleQueryArgument: { // SingleQueryArgument
|
|
177
|
+
* // Name: "STRING_VALUE", // required
|
|
178
|
+
* // },
|
|
179
|
+
* // AllQueryArguments: {},
|
|
180
|
+
* // UriPath: {},
|
|
181
|
+
* // QueryString: {},
|
|
182
|
+
* // Body: { // Body
|
|
183
|
+
* // OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
184
|
+
* // },
|
|
185
|
+
* // Method: {},
|
|
186
|
+
* // JsonBody: { // JsonBody
|
|
187
|
+
* // MatchPattern: { // JsonMatchPattern
|
|
188
|
+
* // All: {},
|
|
189
|
+
* // IncludedPaths: [ // JsonPointerPaths
|
|
190
|
+
* // "STRING_VALUE",
|
|
191
|
+
* // ],
|
|
192
|
+
* // },
|
|
193
|
+
* // MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
194
|
+
* // InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
|
|
195
|
+
* // OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
196
|
+
* // },
|
|
197
|
+
* // Headers: { // Headers
|
|
198
|
+
* // MatchPattern: { // HeaderMatchPattern
|
|
199
|
+
* // All: {},
|
|
200
|
+
* // IncludedHeaders: [ // HeaderNames
|
|
201
|
+
* // "STRING_VALUE",
|
|
202
|
+
* // ],
|
|
203
|
+
* // ExcludedHeaders: [
|
|
204
|
+
* // "STRING_VALUE",
|
|
205
|
+
* // ],
|
|
206
|
+
* // },
|
|
207
|
+
* // MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
208
|
+
* // OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
209
|
+
* // },
|
|
210
|
+
* // Cookies: { // Cookies
|
|
211
|
+
* // MatchPattern: { // CookieMatchPattern
|
|
212
|
+
* // All: {},
|
|
213
|
+
* // IncludedCookies: [ // CookieNames
|
|
214
|
+
* // "STRING_VALUE",
|
|
215
|
+
* // ],
|
|
216
|
+
* // ExcludedCookies: [
|
|
217
|
+
* // "STRING_VALUE",
|
|
218
|
+
* // ],
|
|
219
|
+
* // },
|
|
220
|
+
* // MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
221
|
+
* // OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
222
|
+
* // },
|
|
223
|
+
* // HeaderOrder: { // HeaderOrder
|
|
224
|
+
* // OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
225
|
+
* // },
|
|
226
|
+
* // JA3Fingerprint: { // JA3Fingerprint
|
|
227
|
+
* // FallbackBehavior: "MATCH" || "NO_MATCH", // required
|
|
228
|
+
* // },
|
|
229
|
+
* // },
|
|
230
|
+
* // ],
|
|
231
|
+
* // ManagedByFirewallManager: true || false,
|
|
232
|
+
* // LoggingFilter: { // LoggingFilter
|
|
233
|
+
* // Filters: [ // Filters // required
|
|
234
|
+
* // { // Filter
|
|
235
|
+
* // Behavior: "KEEP" || "DROP", // required
|
|
236
|
+
* // Requirement: "MEETS_ALL" || "MEETS_ANY", // required
|
|
237
|
+
* // Conditions: [ // Conditions // required
|
|
238
|
+
* // { // Condition
|
|
239
|
+
* // ActionCondition: { // ActionCondition
|
|
240
|
+
* // Action: "ALLOW" || "BLOCK" || "COUNT" || "CAPTCHA" || "CHALLENGE" || "EXCLUDED_AS_COUNT", // required
|
|
241
|
+
* // },
|
|
242
|
+
* // LabelNameCondition: { // LabelNameCondition
|
|
243
|
+
* // LabelName: "STRING_VALUE", // required
|
|
244
|
+
* // },
|
|
245
|
+
* // },
|
|
246
|
+
* // ],
|
|
247
|
+
* // },
|
|
248
|
+
* // ],
|
|
249
|
+
* // DefaultBehavior: "KEEP" || "DROP", // required
|
|
250
|
+
* // },
|
|
251
|
+
* // },
|
|
252
|
+
* // };
|
|
253
|
+
*
|
|
254
|
+
* ```
|
|
255
|
+
*
|
|
256
|
+
* @param PutLoggingConfigurationCommandInput - {@link PutLoggingConfigurationCommandInput}
|
|
257
|
+
* @returns {@link PutLoggingConfigurationCommandOutput}
|
|
258
|
+
* @see {@link PutLoggingConfigurationCommandInput} for command's `input` shape.
|
|
259
|
+
* @see {@link PutLoggingConfigurationCommandOutput} for command's `response` shape.
|
|
260
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
261
|
+
*
|
|
262
|
+
* @throws {@link WAFInternalErrorException} (server fault)
|
|
263
|
+
* <p>Your request is valid, but WAF couldn’t perform the operation because of a system
|
|
264
|
+
* problem. Retry your request. </p>
|
|
265
|
+
*
|
|
266
|
+
* @throws {@link WAFInvalidOperationException} (client fault)
|
|
267
|
+
* <p>The operation isn't valid. </p>
|
|
268
|
+
*
|
|
269
|
+
* @throws {@link WAFInvalidParameterException} (client fault)
|
|
270
|
+
* <p>The operation failed because WAF didn't recognize a parameter in the request. For
|
|
271
|
+
* example: </p>
|
|
272
|
+
* <ul>
|
|
273
|
+
* <li>
|
|
274
|
+
* <p>You specified a parameter name or value that isn't valid.</p>
|
|
275
|
+
* </li>
|
|
276
|
+
* <li>
|
|
277
|
+
* <p>Your nested statement isn't valid. You might have tried to nest a statement that
|
|
278
|
+
* can’t be nested. </p>
|
|
279
|
+
* </li>
|
|
280
|
+
* <li>
|
|
281
|
+
* <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
|
|
282
|
+
* isn't among the types available at <a>DefaultAction</a>.</p>
|
|
283
|
+
* </li>
|
|
284
|
+
* <li>
|
|
285
|
+
* <p>Your request references an ARN that is malformed, or corresponds to a resource
|
|
286
|
+
* with which a web ACL can't be associated.</p>
|
|
287
|
+
* </li>
|
|
288
|
+
* </ul>
|
|
289
|
+
*
|
|
290
|
+
* @throws {@link WAFLimitsExceededException} (client fault)
|
|
291
|
+
* <p>WAF couldn’t perform the operation because you exceeded your resource limit. For
|
|
292
|
+
* example, the maximum number of <code>WebACL</code> objects that you can create for an Amazon Web Services
|
|
293
|
+
* account. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">WAF quotas</a> in the
|
|
294
|
+
* <i>WAF Developer Guide</i>.</p>
|
|
295
|
+
*
|
|
296
|
+
* @throws {@link WAFLogDestinationPermissionIssueException} (client fault)
|
|
297
|
+
* <p>The operation failed because you don't have the permissions that your logging
|
|
298
|
+
* configuration requires. For information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging web ACL traffic information</a>
|
|
299
|
+
* in the <i>WAF Developer Guide</i>.</p>
|
|
300
|
+
*
|
|
301
|
+
* @throws {@link WAFNonexistentItemException} (client fault)
|
|
302
|
+
* <p>WAF couldn’t perform the operation because your resource doesn't exist.
|
|
303
|
+
* If you've just created a resource that you're using in this operation, you might
|
|
304
|
+
* just need to wait a few minutes. It can take from a few seconds to a number of minutes
|
|
305
|
+
* for changes to propagate. </p>
|
|
306
|
+
*
|
|
307
|
+
* @throws {@link WAFOptimisticLockException} (client fault)
|
|
308
|
+
* <p>WAF couldn’t save your changes because you tried to update or delete a resource
|
|
309
|
+
* that has changed since you last retrieved it. Get the resource again, make any changes you
|
|
310
|
+
* need to make to the new copy, and retry your operation. </p>
|
|
311
|
+
*
|
|
312
|
+
* @throws {@link WAFServiceLinkedRoleErrorException} (client fault)
|
|
313
|
+
* <p>WAF is not able to access the service linked role. This can be caused by a
|
|
314
|
+
* previous <code>PutLoggingConfiguration</code> request, which can lock the service linked
|
|
315
|
+
* role for about 20 seconds. Please try your request again. The service linked role can also
|
|
316
|
+
* be locked by a previous <code>DeleteServiceLinkedRole</code> request, which can lock the
|
|
317
|
+
* role for 15 minutes or more. If you recently made a call to
|
|
318
|
+
* <code>DeleteServiceLinkedRole</code>, wait at least 15 minutes and try the request
|
|
319
|
+
* again. If you receive this same exception again, you will have to wait additional time
|
|
320
|
+
* until the role is unlocked.</p>
|
|
321
|
+
*
|
|
322
|
+
* @throws {@link WAFV2ServiceException}
|
|
323
|
+
* <p>Base exception class for all service exceptions from WAFV2 service.</p>
|
|
324
|
+
*
|
|
325
|
+
*/
|
|
326
|
+
export declare class PutLoggingConfigurationCommand extends $Command<PutLoggingConfigurationCommandInput, PutLoggingConfigurationCommandOutput, WAFV2ClientResolvedConfig> {
|
|
327
|
+
readonly input: PutLoggingConfigurationCommandInput;
|
|
328
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
329
|
+
/**
|
|
330
|
+
* @public
|
|
331
|
+
*/
|
|
332
|
+
constructor(input: PutLoggingConfigurationCommandInput);
|
|
333
|
+
/**
|
|
334
|
+
* @internal
|
|
335
|
+
*/
|
|
336
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutLoggingConfigurationCommandInput, PutLoggingConfigurationCommandOutput>;
|
|
337
|
+
/**
|
|
338
|
+
* @internal
|
|
339
|
+
*/
|
|
340
|
+
private serialize;
|
|
341
|
+
/**
|
|
342
|
+
* @internal
|
|
343
|
+
*/
|
|
344
|
+
private deserialize;
|
|
345
|
+
}
|