@aws-sdk/client-wafv2 3.35.0 → 3.36.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/CHANGELOG.md +13 -0
- package/dist-cjs/WAFV2.js +0 -1
- package/dist-cjs/WAFV2Client.js +0 -1
- package/dist-cjs/commands/AssociateWebACLCommand.js +0 -1
- package/dist-cjs/commands/CheckCapacityCommand.js +0 -1
- package/dist-cjs/commands/CreateIPSetCommand.js +0 -1
- package/dist-cjs/commands/CreateRegexPatternSetCommand.js +0 -1
- package/dist-cjs/commands/CreateRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/CreateWebACLCommand.js +0 -1
- package/dist-cjs/commands/DeleteFirewallManagerRuleGroupsCommand.js +0 -1
- package/dist-cjs/commands/DeleteIPSetCommand.js +0 -1
- package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DeletePermissionPolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteRegexPatternSetCommand.js +0 -1
- package/dist-cjs/commands/DeleteRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/DeleteWebACLCommand.js +0 -1
- package/dist-cjs/commands/DescribeManagedRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/DisassociateWebACLCommand.js +0 -1
- package/dist-cjs/commands/GetIPSetCommand.js +0 -1
- package/dist-cjs/commands/GetLoggingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/GetManagedRuleSetCommand.js +0 -1
- package/dist-cjs/commands/GetPermissionPolicyCommand.js +0 -1
- package/dist-cjs/commands/GetRateBasedStatementManagedKeysCommand.js +0 -1
- package/dist-cjs/commands/GetRegexPatternSetCommand.js +0 -1
- package/dist-cjs/commands/GetRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/GetSampledRequestsCommand.js +0 -1
- package/dist-cjs/commands/GetWebACLCommand.js +0 -1
- package/dist-cjs/commands/GetWebACLForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListAvailableManagedRuleGroupVersionsCommand.js +0 -1
- package/dist-cjs/commands/ListAvailableManagedRuleGroupsCommand.js +0 -1
- package/dist-cjs/commands/ListIPSetsCommand.js +0 -1
- package/dist-cjs/commands/ListLoggingConfigurationsCommand.js +0 -1
- package/dist-cjs/commands/ListManagedRuleSetsCommand.js +0 -1
- package/dist-cjs/commands/ListRegexPatternSetsCommand.js +0 -1
- package/dist-cjs/commands/ListResourcesForWebACLCommand.js +0 -1
- package/dist-cjs/commands/ListRuleGroupsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListWebACLsCommand.js +0 -1
- package/dist-cjs/commands/PutLoggingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/PutManagedRuleSetVersionsCommand.js +0 -1
- package/dist-cjs/commands/PutPermissionPolicyCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateIPSetCommand.js +0 -1
- package/dist-cjs/commands/UpdateManagedRuleSetVersionExpiryDateCommand.js +0 -1
- package/dist-cjs/commands/UpdateRegexPatternSetCommand.js +0 -1
- package/dist-cjs/commands/UpdateRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/UpdateWebACLCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-es/WAFV2.js +0 -1
- package/dist-es/WAFV2Client.js +0 -1
- package/dist-es/commands/AssociateWebACLCommand.js +0 -1
- package/dist-es/commands/CheckCapacityCommand.js +0 -1
- package/dist-es/commands/CreateIPSetCommand.js +0 -1
- package/dist-es/commands/CreateRegexPatternSetCommand.js +0 -1
- package/dist-es/commands/CreateRuleGroupCommand.js +0 -1
- package/dist-es/commands/CreateWebACLCommand.js +0 -1
- package/dist-es/commands/DeleteFirewallManagerRuleGroupsCommand.js +0 -1
- package/dist-es/commands/DeleteIPSetCommand.js +0 -1
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +0 -1
- package/dist-es/commands/DeletePermissionPolicyCommand.js +0 -1
- package/dist-es/commands/DeleteRegexPatternSetCommand.js +0 -1
- package/dist-es/commands/DeleteRuleGroupCommand.js +0 -1
- package/dist-es/commands/DeleteWebACLCommand.js +0 -1
- package/dist-es/commands/DescribeManagedRuleGroupCommand.js +0 -1
- package/dist-es/commands/DisassociateWebACLCommand.js +0 -1
- package/dist-es/commands/GetIPSetCommand.js +0 -1
- package/dist-es/commands/GetLoggingConfigurationCommand.js +0 -1
- package/dist-es/commands/GetManagedRuleSetCommand.js +0 -1
- package/dist-es/commands/GetPermissionPolicyCommand.js +0 -1
- package/dist-es/commands/GetRateBasedStatementManagedKeysCommand.js +0 -1
- package/dist-es/commands/GetRegexPatternSetCommand.js +0 -1
- package/dist-es/commands/GetRuleGroupCommand.js +0 -1
- package/dist-es/commands/GetSampledRequestsCommand.js +0 -1
- package/dist-es/commands/GetWebACLCommand.js +0 -1
- package/dist-es/commands/GetWebACLForResourceCommand.js +0 -1
- package/dist-es/commands/ListAvailableManagedRuleGroupVersionsCommand.js +0 -1
- package/dist-es/commands/ListAvailableManagedRuleGroupsCommand.js +0 -1
- package/dist-es/commands/ListIPSetsCommand.js +0 -1
- package/dist-es/commands/ListLoggingConfigurationsCommand.js +0 -1
- package/dist-es/commands/ListManagedRuleSetsCommand.js +0 -1
- package/dist-es/commands/ListRegexPatternSetsCommand.js +0 -1
- package/dist-es/commands/ListResourcesForWebACLCommand.js +0 -1
- package/dist-es/commands/ListRuleGroupsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ListWebACLsCommand.js +0 -1
- package/dist-es/commands/PutLoggingConfigurationCommand.js +0 -1
- package/dist-es/commands/PutManagedRuleSetVersionsCommand.js +0 -1
- package/dist-es/commands/PutPermissionPolicyCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateIPSetCommand.js +0 -1
- package/dist-es/commands/UpdateManagedRuleSetVersionExpiryDateCommand.js +0 -1
- package/dist-es/commands/UpdateRegexPatternSetCommand.js +0 -1
- package/dist-es/commands/UpdateRuleGroupCommand.js +0 -1
- package/dist-es/commands/UpdateWebACLCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/package.json +33 -30
- package/dist-cjs/WAFV2.js.map +0 -1
- package/dist-cjs/WAFV2Client.js.map +0 -1
- package/dist-cjs/commands/AssociateWebACLCommand.js.map +0 -1
- package/dist-cjs/commands/CheckCapacityCommand.js.map +0 -1
- package/dist-cjs/commands/CreateIPSetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRegexPatternSetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRuleGroupCommand.js.map +0 -1
- package/dist-cjs/commands/CreateWebACLCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFirewallManagerRuleGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteIPSetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/DeletePermissionPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRegexPatternSetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRuleGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteWebACLCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeManagedRuleGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DisassociateWebACLCommand.js.map +0 -1
- package/dist-cjs/commands/GetIPSetCommand.js.map +0 -1
- package/dist-cjs/commands/GetLoggingConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/GetManagedRuleSetCommand.js.map +0 -1
- package/dist-cjs/commands/GetPermissionPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/GetRateBasedStatementManagedKeysCommand.js.map +0 -1
- package/dist-cjs/commands/GetRegexPatternSetCommand.js.map +0 -1
- package/dist-cjs/commands/GetRuleGroupCommand.js.map +0 -1
- package/dist-cjs/commands/GetSampledRequestsCommand.js.map +0 -1
- package/dist-cjs/commands/GetWebACLCommand.js.map +0 -1
- package/dist-cjs/commands/GetWebACLForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ListAvailableManagedRuleGroupVersionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListAvailableManagedRuleGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/ListIPSetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListLoggingConfigurationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListManagedRuleSetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListRegexPatternSetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListResourcesForWebACLCommand.js.map +0 -1
- package/dist-cjs/commands/ListRuleGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ListWebACLsCommand.js.map +0 -1
- package/dist-cjs/commands/PutLoggingConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/PutManagedRuleSetVersionsCommand.js.map +0 -1
- package/dist-cjs/commands/PutPermissionPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateIPSetCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateManagedRuleSetVersionExpiryDateCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateRegexPatternSetCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateRuleGroupCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateWebACLCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/WAFV2.js.map +0 -1
- package/dist-es/WAFV2Client.js.map +0 -1
- package/dist-es/commands/AssociateWebACLCommand.js.map +0 -1
- package/dist-es/commands/CheckCapacityCommand.js.map +0 -1
- package/dist-es/commands/CreateIPSetCommand.js.map +0 -1
- package/dist-es/commands/CreateRegexPatternSetCommand.js.map +0 -1
- package/dist-es/commands/CreateRuleGroupCommand.js.map +0 -1
- package/dist-es/commands/CreateWebACLCommand.js.map +0 -1
- package/dist-es/commands/DeleteFirewallManagerRuleGroupsCommand.js.map +0 -1
- package/dist-es/commands/DeleteIPSetCommand.js.map +0 -1
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js.map +0 -1
- package/dist-es/commands/DeletePermissionPolicyCommand.js.map +0 -1
- package/dist-es/commands/DeleteRegexPatternSetCommand.js.map +0 -1
- package/dist-es/commands/DeleteRuleGroupCommand.js.map +0 -1
- package/dist-es/commands/DeleteWebACLCommand.js.map +0 -1
- package/dist-es/commands/DescribeManagedRuleGroupCommand.js.map +0 -1
- package/dist-es/commands/DisassociateWebACLCommand.js.map +0 -1
- package/dist-es/commands/GetIPSetCommand.js.map +0 -1
- package/dist-es/commands/GetLoggingConfigurationCommand.js.map +0 -1
- package/dist-es/commands/GetManagedRuleSetCommand.js.map +0 -1
- package/dist-es/commands/GetPermissionPolicyCommand.js.map +0 -1
- package/dist-es/commands/GetRateBasedStatementManagedKeysCommand.js.map +0 -1
- package/dist-es/commands/GetRegexPatternSetCommand.js.map +0 -1
- package/dist-es/commands/GetRuleGroupCommand.js.map +0 -1
- package/dist-es/commands/GetSampledRequestsCommand.js.map +0 -1
- package/dist-es/commands/GetWebACLCommand.js.map +0 -1
- package/dist-es/commands/GetWebACLForResourceCommand.js.map +0 -1
- package/dist-es/commands/ListAvailableManagedRuleGroupVersionsCommand.js.map +0 -1
- package/dist-es/commands/ListAvailableManagedRuleGroupsCommand.js.map +0 -1
- package/dist-es/commands/ListIPSetsCommand.js.map +0 -1
- package/dist-es/commands/ListLoggingConfigurationsCommand.js.map +0 -1
- package/dist-es/commands/ListManagedRuleSetsCommand.js.map +0 -1
- package/dist-es/commands/ListRegexPatternSetsCommand.js.map +0 -1
- package/dist-es/commands/ListResourcesForWebACLCommand.js.map +0 -1
- package/dist-es/commands/ListRuleGroupsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ListWebACLsCommand.js.map +0 -1
- package/dist-es/commands/PutLoggingConfigurationCommand.js.map +0 -1
- package/dist-es/commands/PutManagedRuleSetVersionsCommand.js.map +0 -1
- package/dist-es/commands/PutPermissionPolicyCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateIPSetCommand.js.map +0 -1
- package/dist-es/commands/UpdateManagedRuleSetVersionExpiryDateCommand.js.map +0 -1
- package/dist-es/commands/UpdateRegexPatternSetCommand.js.map +0 -1
- package/dist-es/commands/UpdateRuleGroupCommand.js.map +0 -1
- package/dist-es/commands/UpdateWebACLCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/WAFV2.ts +0 -1795
- package/src/WAFV2Client.ts +0 -495
- package/src/commands/AssociateWebACLCommand.ts +0 -99
- package/src/commands/CheckCapacityCommand.ts +0 -106
- package/src/commands/CreateIPSetCommand.ts +0 -98
- package/src/commands/CreateRegexPatternSetCommand.ts +0 -96
- package/src/commands/CreateRuleGroupCommand.ts +0 -96
- package/src/commands/CreateWebACLCommand.ts +0 -96
- package/src/commands/DeleteFirewallManagerRuleGroupsCommand.ts +0 -105
- package/src/commands/DeleteIPSetCommand.ts +0 -95
- package/src/commands/DeleteLoggingConfigurationCommand.ts +0 -98
- package/src/commands/DeletePermissionPolicyCommand.ts +0 -96
- package/src/commands/DeleteRegexPatternSetCommand.ts +0 -95
- package/src/commands/DeleteRuleGroupCommand.ts +0 -95
- package/src/commands/DeleteWebACLCommand.ts +0 -97
- package/src/commands/DescribeManagedRuleGroupCommand.ts +0 -96
- package/src/commands/DisassociateWebACLCommand.ts +0 -98
- package/src/commands/GetIPSetCommand.ts +0 -88
- package/src/commands/GetLoggingConfigurationCommand.ts +0 -95
- package/src/commands/GetManagedRuleSetCommand.ts +0 -99
- package/src/commands/GetPermissionPolicyCommand.ts +0 -96
- package/src/commands/GetRateBasedStatementManagedKeysCommand.ts +0 -105
- package/src/commands/GetRegexPatternSetCommand.ts +0 -95
- package/src/commands/GetRuleGroupCommand.ts +0 -95
- package/src/commands/GetSampledRequestsCommand.ts +0 -104
- package/src/commands/GetWebACLCommand.ts +0 -92
- package/src/commands/GetWebACLForResourceCommand.ts +0 -95
- package/src/commands/ListAvailableManagedRuleGroupVersionsCommand.ts +0 -107
- package/src/commands/ListAvailableManagedRuleGroupsCommand.ts +0 -105
- package/src/commands/ListIPSetsCommand.ts +0 -96
- package/src/commands/ListLoggingConfigurationsCommand.ts +0 -98
- package/src/commands/ListManagedRuleSetsCommand.ts +0 -99
- package/src/commands/ListRegexPatternSetsCommand.ts +0 -96
- package/src/commands/ListResourcesForWebACLCommand.ts +0 -97
- package/src/commands/ListRuleGroupsCommand.ts +0 -96
- package/src/commands/ListTagsForResourceCommand.ts +0 -102
- package/src/commands/ListWebACLsCommand.ts +0 -96
- package/src/commands/PutLoggingConfigurationCommand.ts +0 -125
- package/src/commands/PutManagedRuleSetVersionsCommand.ts +0 -109
- package/src/commands/PutPermissionPolicyCommand.ts +0 -111
- package/src/commands/TagResourceCommand.ts +0 -102
- package/src/commands/UntagResourceCommand.ts +0 -98
- package/src/commands/UpdateIPSetCommand.ts +0 -98
- package/src/commands/UpdateManagedRuleSetVersionExpiryDateCommand.ts +0 -113
- package/src/commands/UpdateRegexPatternSetCommand.ts +0 -98
- package/src/commands/UpdateRuleGroupCommand.ts +0 -99
- package/src/commands/UpdateWebACLCommand.ts +0 -99
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -48
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -6660
- package/src/protocols/Aws_json1_1.ts +0 -8508
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ListWebACLsRequest, ListWebACLsResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_1ListWebACLsCommand,
|
|
17
|
-
serializeAws_json1_1ListWebACLsCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
|
|
20
|
-
|
|
21
|
-
export interface ListWebACLsCommandInput extends ListWebACLsRequest {}
|
|
22
|
-
export interface ListWebACLsCommandOutput extends ListWebACLsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves an array of <a>WebACLSummary</a> objects for the web ACLs that you
|
|
26
|
-
* manage.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { WAFV2Client, ListWebACLsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
31
|
-
* // const { WAFV2Client, ListWebACLsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
32
|
-
* const client = new WAFV2Client(config);
|
|
33
|
-
* const command = new ListWebACLsCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link ListWebACLsCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link ListWebACLsCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class ListWebACLsCommand extends $Command<
|
|
43
|
-
ListWebACLsCommandInput,
|
|
44
|
-
ListWebACLsCommandOutput,
|
|
45
|
-
WAFV2ClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: ListWebACLsCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: WAFV2ClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<ListWebACLsCommandInput, ListWebACLsCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "WAFV2Client";
|
|
70
|
-
const commandName = "ListWebACLsCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: ListWebACLsRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: ListWebACLsResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: ListWebACLsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1ListWebACLsCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListWebACLsCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1ListWebACLsCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { PutLoggingConfigurationRequest, PutLoggingConfigurationResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_1PutLoggingConfigurationCommand,
|
|
17
|
-
serializeAws_json1_1PutLoggingConfigurationCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
|
|
20
|
-
|
|
21
|
-
export interface PutLoggingConfigurationCommandInput extends PutLoggingConfigurationRequest {}
|
|
22
|
-
export interface PutLoggingConfigurationCommandOutput extends PutLoggingConfigurationResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Enables the specified <a>LoggingConfiguration</a>, to start logging from a
|
|
26
|
-
* web ACL, according to the configuration provided.</p>
|
|
27
|
-
* <p>You can access information about all traffic that WAF inspects using the following
|
|
28
|
-
* steps:</p>
|
|
29
|
-
* <ol>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>Create an Amazon Kinesis Data Firehose. </p>
|
|
32
|
-
* <p>Create the data firehose with a PUT source and in the Region that you are
|
|
33
|
-
* operating. If you are capturing logs for Amazon CloudFront, always create the firehose in US
|
|
34
|
-
* East (N. Virginia). </p>
|
|
35
|
-
* <p>Give the data firehose a name that starts with the prefix
|
|
36
|
-
* <code>aws-waf-logs-</code>. For example,
|
|
37
|
-
* <code>aws-waf-logs-us-east-2-analytics</code>.</p>
|
|
38
|
-
* <note>
|
|
39
|
-
* <p>Do not create the data firehose using a <code>Kinesis stream</code> as your
|
|
40
|
-
* source.</p>
|
|
41
|
-
* </note>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>Associate that firehose to your web ACL using a
|
|
45
|
-
* <code>PutLoggingConfiguration</code> request.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* </ol>
|
|
48
|
-
* <p>When you successfully enable logging using a <code>PutLoggingConfiguration</code>
|
|
49
|
-
* request, WAF will create a service linked role with the necessary permissions to write
|
|
50
|
-
* logs to the Amazon Kinesis Data Firehose. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging Web ACL
|
|
51
|
-
* Traffic Information</a> in the <i>WAF Developer
|
|
52
|
-
* Guide</i>.</p>
|
|
53
|
-
* <note>
|
|
54
|
-
* <p>This operation completely replaces the mutable specifications that you already have for the logging configuration with the ones that you provide to this call. To modify the logging configuration, retrieve it by calling <a>GetLoggingConfiguration</a>, update the settings as needed, and then provide the complete logging configuration specification to this call.</p>
|
|
55
|
-
* </note>
|
|
56
|
-
* @example
|
|
57
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
58
|
-
* ```javascript
|
|
59
|
-
* import { WAFV2Client, PutLoggingConfigurationCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
60
|
-
* // const { WAFV2Client, PutLoggingConfigurationCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
61
|
-
* const client = new WAFV2Client(config);
|
|
62
|
-
* const command = new PutLoggingConfigurationCommand(input);
|
|
63
|
-
* const response = await client.send(command);
|
|
64
|
-
* ```
|
|
65
|
-
*
|
|
66
|
-
* @see {@link PutLoggingConfigurationCommandInput} for command's `input` shape.
|
|
67
|
-
* @see {@link PutLoggingConfigurationCommandOutput} for command's `response` shape.
|
|
68
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for command's `input` shape.
|
|
69
|
-
*
|
|
70
|
-
*/
|
|
71
|
-
export class PutLoggingConfigurationCommand extends $Command<
|
|
72
|
-
PutLoggingConfigurationCommandInput,
|
|
73
|
-
PutLoggingConfigurationCommandOutput,
|
|
74
|
-
WAFV2ClientResolvedConfig
|
|
75
|
-
> {
|
|
76
|
-
// Start section: command_properties
|
|
77
|
-
// End section: command_properties
|
|
78
|
-
|
|
79
|
-
constructor(readonly input: PutLoggingConfigurationCommandInput) {
|
|
80
|
-
// Start section: command_constructor
|
|
81
|
-
super();
|
|
82
|
-
// End section: command_constructor
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
resolveMiddleware(
|
|
89
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
90
|
-
configuration: WAFV2ClientResolvedConfig,
|
|
91
|
-
options?: __HttpHandlerOptions
|
|
92
|
-
): Handler<PutLoggingConfigurationCommandInput, PutLoggingConfigurationCommandOutput> {
|
|
93
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
94
|
-
|
|
95
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
96
|
-
|
|
97
|
-
const { logger } = configuration;
|
|
98
|
-
const clientName = "WAFV2Client";
|
|
99
|
-
const commandName = "PutLoggingConfigurationCommand";
|
|
100
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
101
|
-
logger,
|
|
102
|
-
clientName,
|
|
103
|
-
commandName,
|
|
104
|
-
inputFilterSensitiveLog: PutLoggingConfigurationRequest.filterSensitiveLog,
|
|
105
|
-
outputFilterSensitiveLog: PutLoggingConfigurationResponse.filterSensitiveLog,
|
|
106
|
-
};
|
|
107
|
-
const { requestHandler } = configuration;
|
|
108
|
-
return stack.resolve(
|
|
109
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
110
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
111
|
-
handlerExecutionContext
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
private serialize(input: PutLoggingConfigurationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
116
|
-
return serializeAws_json1_1PutLoggingConfigurationCommand(input, context);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutLoggingConfigurationCommandOutput> {
|
|
120
|
-
return deserializeAws_json1_1PutLoggingConfigurationCommand(output, context);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Start section: command_body_extra
|
|
124
|
-
// End section: command_body_extra
|
|
125
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { PutManagedRuleSetVersionsRequest, PutManagedRuleSetVersionsResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_1PutManagedRuleSetVersionsCommand,
|
|
17
|
-
serializeAws_json1_1PutManagedRuleSetVersionsCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
|
|
20
|
-
|
|
21
|
-
export interface PutManagedRuleSetVersionsCommandInput extends PutManagedRuleSetVersionsRequest {}
|
|
22
|
-
export interface PutManagedRuleSetVersionsCommandOutput extends PutManagedRuleSetVersionsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Defines the versions of your managed rule set that you are offering to the customers.
|
|
26
|
-
* Customers see your offerings as managed rule groups with versioning.</p>
|
|
27
|
-
* <note>
|
|
28
|
-
* <p>This is intended for use only by vendors of managed rule sets. Vendors are Amazon Web Services and Amazon Web Services Marketplace sellers. </p>
|
|
29
|
-
* <p>Vendors, you can use the managed rule set APIs to provide controlled rollout of your versioned managed rule group offerings for your customers. The APIs are <code>ListManagedRuleSets</code>, <code>GetManagedRuleSet</code>, <code>PutManagedRuleSetVersions</code>, and <code>UpdateManagedRuleSetVersionExpiryDate</code>.</p>
|
|
30
|
-
* </note>
|
|
31
|
-
* <p>Customers retrieve their managed rule group list by calling <a>ListAvailableManagedRuleGroups</a>. The name that you provide here for your
|
|
32
|
-
* managed rule set is the name the customer sees for the corresponding managed rule group.
|
|
33
|
-
* Customers can retrieve the available versions for a managed rule group by calling <a>ListAvailableManagedRuleGroupVersions</a>. You provide a rule group
|
|
34
|
-
* specification for each version. For each managed rule set, you must specify a version that
|
|
35
|
-
* you recommend using. </p>
|
|
36
|
-
* <p>To initiate the expiration of a managed rule group version, use <a>UpdateManagedRuleSetVersionExpiryDate</a>.</p>
|
|
37
|
-
* @example
|
|
38
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
-
* ```javascript
|
|
40
|
-
* import { WAFV2Client, PutManagedRuleSetVersionsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
41
|
-
* // const { WAFV2Client, PutManagedRuleSetVersionsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
42
|
-
* const client = new WAFV2Client(config);
|
|
43
|
-
* const command = new PutManagedRuleSetVersionsCommand(input);
|
|
44
|
-
* const response = await client.send(command);
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @see {@link PutManagedRuleSetVersionsCommandInput} for command's `input` shape.
|
|
48
|
-
* @see {@link PutManagedRuleSetVersionsCommandOutput} for command's `response` shape.
|
|
49
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for command's `input` shape.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
export class PutManagedRuleSetVersionsCommand extends $Command<
|
|
53
|
-
PutManagedRuleSetVersionsCommandInput,
|
|
54
|
-
PutManagedRuleSetVersionsCommandOutput,
|
|
55
|
-
WAFV2ClientResolvedConfig
|
|
56
|
-
> {
|
|
57
|
-
// Start section: command_properties
|
|
58
|
-
// End section: command_properties
|
|
59
|
-
|
|
60
|
-
constructor(readonly input: PutManagedRuleSetVersionsCommandInput) {
|
|
61
|
-
// Start section: command_constructor
|
|
62
|
-
super();
|
|
63
|
-
// End section: command_constructor
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
|
-
resolveMiddleware(
|
|
70
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
71
|
-
configuration: WAFV2ClientResolvedConfig,
|
|
72
|
-
options?: __HttpHandlerOptions
|
|
73
|
-
): Handler<PutManagedRuleSetVersionsCommandInput, PutManagedRuleSetVersionsCommandOutput> {
|
|
74
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
75
|
-
|
|
76
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
77
|
-
|
|
78
|
-
const { logger } = configuration;
|
|
79
|
-
const clientName = "WAFV2Client";
|
|
80
|
-
const commandName = "PutManagedRuleSetVersionsCommand";
|
|
81
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
82
|
-
logger,
|
|
83
|
-
clientName,
|
|
84
|
-
commandName,
|
|
85
|
-
inputFilterSensitiveLog: PutManagedRuleSetVersionsRequest.filterSensitiveLog,
|
|
86
|
-
outputFilterSensitiveLog: PutManagedRuleSetVersionsResponse.filterSensitiveLog,
|
|
87
|
-
};
|
|
88
|
-
const { requestHandler } = configuration;
|
|
89
|
-
return stack.resolve(
|
|
90
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
91
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
92
|
-
handlerExecutionContext
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
private serialize(input: PutManagedRuleSetVersionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
97
|
-
return serializeAws_json1_1PutManagedRuleSetVersionsCommand(input, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
private deserialize(
|
|
101
|
-
output: __HttpResponse,
|
|
102
|
-
context: __SerdeContext
|
|
103
|
-
): Promise<PutManagedRuleSetVersionsCommandOutput> {
|
|
104
|
-
return deserializeAws_json1_1PutManagedRuleSetVersionsCommand(output, context);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Start section: command_body_extra
|
|
108
|
-
// End section: command_body_extra
|
|
109
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { PutPermissionPolicyRequest, PutPermissionPolicyResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_1PutPermissionPolicyCommand,
|
|
17
|
-
serializeAws_json1_1PutPermissionPolicyCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
|
|
20
|
-
|
|
21
|
-
export interface PutPermissionPolicyCommandInput extends PutPermissionPolicyRequest {}
|
|
22
|
-
export interface PutPermissionPolicyCommandOutput extends PutPermissionPolicyResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Attaches an IAM policy to the specified resource. Use this to share a rule group across
|
|
26
|
-
* accounts.</p>
|
|
27
|
-
* <p>You must be the owner of the rule group to perform this operation.</p>
|
|
28
|
-
* <p>This action is subject to the following restrictions:</p>
|
|
29
|
-
* <ul>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>You can attach only one policy with each <code>PutPermissionPolicy</code>
|
|
32
|
-
* request.</p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>The ARN in the request must be a valid WAF <a>RuleGroup</a> ARN and the
|
|
36
|
-
* rule group must exist in the same Region.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>The user making the request must be the owner of the rule group.</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* </ul>
|
|
42
|
-
* @example
|
|
43
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
44
|
-
* ```javascript
|
|
45
|
-
* import { WAFV2Client, PutPermissionPolicyCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
46
|
-
* // const { WAFV2Client, PutPermissionPolicyCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
47
|
-
* const client = new WAFV2Client(config);
|
|
48
|
-
* const command = new PutPermissionPolicyCommand(input);
|
|
49
|
-
* const response = await client.send(command);
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* @see {@link PutPermissionPolicyCommandInput} for command's `input` shape.
|
|
53
|
-
* @see {@link PutPermissionPolicyCommandOutput} for command's `response` shape.
|
|
54
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for command's `input` shape.
|
|
55
|
-
*
|
|
56
|
-
*/
|
|
57
|
-
export class PutPermissionPolicyCommand extends $Command<
|
|
58
|
-
PutPermissionPolicyCommandInput,
|
|
59
|
-
PutPermissionPolicyCommandOutput,
|
|
60
|
-
WAFV2ClientResolvedConfig
|
|
61
|
-
> {
|
|
62
|
-
// Start section: command_properties
|
|
63
|
-
// End section: command_properties
|
|
64
|
-
|
|
65
|
-
constructor(readonly input: PutPermissionPolicyCommandInput) {
|
|
66
|
-
// Start section: command_constructor
|
|
67
|
-
super();
|
|
68
|
-
// End section: command_constructor
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
*/
|
|
74
|
-
resolveMiddleware(
|
|
75
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
76
|
-
configuration: WAFV2ClientResolvedConfig,
|
|
77
|
-
options?: __HttpHandlerOptions
|
|
78
|
-
): Handler<PutPermissionPolicyCommandInput, PutPermissionPolicyCommandOutput> {
|
|
79
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
80
|
-
|
|
81
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
82
|
-
|
|
83
|
-
const { logger } = configuration;
|
|
84
|
-
const clientName = "WAFV2Client";
|
|
85
|
-
const commandName = "PutPermissionPolicyCommand";
|
|
86
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
87
|
-
logger,
|
|
88
|
-
clientName,
|
|
89
|
-
commandName,
|
|
90
|
-
inputFilterSensitiveLog: PutPermissionPolicyRequest.filterSensitiveLog,
|
|
91
|
-
outputFilterSensitiveLog: PutPermissionPolicyResponse.filterSensitiveLog,
|
|
92
|
-
};
|
|
93
|
-
const { requestHandler } = configuration;
|
|
94
|
-
return stack.resolve(
|
|
95
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
96
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
97
|
-
handlerExecutionContext
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
private serialize(input: PutPermissionPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
102
|
-
return serializeAws_json1_1PutPermissionPolicyCommand(input, context);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutPermissionPolicyCommandOutput> {
|
|
106
|
-
return deserializeAws_json1_1PutPermissionPolicyCommand(output, context);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// Start section: command_body_extra
|
|
110
|
-
// End section: command_body_extra
|
|
111
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_1TagResourceCommand,
|
|
17
|
-
serializeAws_json1_1TagResourceCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
|
|
20
|
-
|
|
21
|
-
export interface TagResourceCommandInput extends TagResourceRequest {}
|
|
22
|
-
export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Associates tags with the specified Amazon Web Services resource. Tags are key:value pairs that you can
|
|
26
|
-
* use to categorize and manage your resources, for purposes like billing. For example, you
|
|
27
|
-
* might set the tag key to "customer" and the value to the customer name or ID. You can
|
|
28
|
-
* specify one or more tags to add to each Amazon Web Services resource, up to 50 tags for a
|
|
29
|
-
* resource.</p>
|
|
30
|
-
* <p>You can tag the Amazon Web Services resources that you manage through WAF: web ACLs, rule
|
|
31
|
-
* groups, IP sets, and regex pattern sets. You can't manage or view tags through the WAF
|
|
32
|
-
* console. </p>
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { WAFV2Client, TagResourceCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
37
|
-
* // const { WAFV2Client, TagResourceCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
38
|
-
* const client = new WAFV2Client(config);
|
|
39
|
-
* const command = new TagResourceCommand(input);
|
|
40
|
-
* const response = await client.send(command);
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
44
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
45
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for command's `input` shape.
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
export class TagResourceCommand extends $Command<
|
|
49
|
-
TagResourceCommandInput,
|
|
50
|
-
TagResourceCommandOutput,
|
|
51
|
-
WAFV2ClientResolvedConfig
|
|
52
|
-
> {
|
|
53
|
-
// Start section: command_properties
|
|
54
|
-
// End section: command_properties
|
|
55
|
-
|
|
56
|
-
constructor(readonly input: TagResourceCommandInput) {
|
|
57
|
-
// Start section: command_constructor
|
|
58
|
-
super();
|
|
59
|
-
// End section: command_constructor
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
|
-
resolveMiddleware(
|
|
66
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
67
|
-
configuration: WAFV2ClientResolvedConfig,
|
|
68
|
-
options?: __HttpHandlerOptions
|
|
69
|
-
): Handler<TagResourceCommandInput, TagResourceCommandOutput> {
|
|
70
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
71
|
-
|
|
72
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
73
|
-
|
|
74
|
-
const { logger } = configuration;
|
|
75
|
-
const clientName = "WAFV2Client";
|
|
76
|
-
const commandName = "TagResourceCommand";
|
|
77
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
78
|
-
logger,
|
|
79
|
-
clientName,
|
|
80
|
-
commandName,
|
|
81
|
-
inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
|
|
82
|
-
outputFilterSensitiveLog: TagResourceResponse.filterSensitiveLog,
|
|
83
|
-
};
|
|
84
|
-
const { requestHandler } = configuration;
|
|
85
|
-
return stack.resolve(
|
|
86
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
87
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
88
|
-
handlerExecutionContext
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
93
|
-
return serializeAws_json1_1TagResourceCommand(input, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
|
|
97
|
-
return deserializeAws_json1_1TagResourceCommand(output, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Start section: command_body_extra
|
|
101
|
-
// End section: command_body_extra
|
|
102
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_1UntagResourceCommand,
|
|
17
|
-
serializeAws_json1_1UntagResourceCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
|
|
20
|
-
|
|
21
|
-
export interface UntagResourceCommandInput extends UntagResourceRequest {}
|
|
22
|
-
export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Disassociates tags from an Amazon Web Services resource. Tags are key:value pairs that you can
|
|
26
|
-
* associate with Amazon Web Services resources. For example, the tag key might be "customer" and the tag
|
|
27
|
-
* value might be "companyA." You can specify one or more tags to add to each container. You
|
|
28
|
-
* can add up to 50 tags to each Amazon Web Services resource.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { WAFV2Client, UntagResourceCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
33
|
-
* // const { WAFV2Client, UntagResourceCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
34
|
-
* const client = new WAFV2Client(config);
|
|
35
|
-
* const command = new UntagResourceCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class UntagResourceCommand extends $Command<
|
|
45
|
-
UntagResourceCommandInput,
|
|
46
|
-
UntagResourceCommandOutput,
|
|
47
|
-
WAFV2ClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: UntagResourceCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: WAFV2ClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<UntagResourceCommandInput, UntagResourceCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "WAFV2Client";
|
|
72
|
-
const commandName = "UntagResourceCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: UntagResourceResponse.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: UntagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_1UntagResourceCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UntagResourceCommandOutput> {
|
|
93
|
-
return deserializeAws_json1_1UntagResourceCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|