@aws-sdk/client-network-security-manager 3.1139.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/LICENSE +201 -0
- package/README.md +503 -0
- package/dist-cjs/index.js +2327 -0
- package/dist-es/NetworkSecurityManager.js +129 -0
- package/dist-es/NetworkSecurityManagerClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/CreateDeploymentCommand.js +4 -0
- package/dist-es/commands/CreateDeploymentSnapshotCommand.js +4 -0
- package/dist-es/commands/CreatePolicyCommand.js +4 -0
- package/dist-es/commands/CreatePolicySnapshotCommand.js +4 -0
- package/dist-es/commands/CreateRuleCommand.js +4 -0
- package/dist-es/commands/CreateRuleSnapshotCommand.js +4 -0
- package/dist-es/commands/CreateScopeCommand.js +4 -0
- package/dist-es/commands/CreateScopeSnapshotCommand.js +4 -0
- package/dist-es/commands/CreateTemplateCommand.js +4 -0
- package/dist-es/commands/CreateTemplateSnapshotCommand.js +4 -0
- package/dist-es/commands/DeleteAdminAccountCommand.js +4 -0
- package/dist-es/commands/DeleteDeploymentCommand.js +4 -0
- package/dist-es/commands/DeletePolicyCommand.js +4 -0
- package/dist-es/commands/DeleteRuleCommand.js +4 -0
- package/dist-es/commands/DeleteScopeCommand.js +4 -0
- package/dist-es/commands/DeleteTemplateCommand.js +4 -0
- package/dist-es/commands/GenerateRuleConfigurationCommand.js +4 -0
- package/dist-es/commands/GetAdminAccountCommand.js +4 -0
- package/dist-es/commands/GetDeploymentCommand.js +4 -0
- package/dist-es/commands/GetPolicyCommand.js +4 -0
- package/dist-es/commands/GetRuleCommand.js +4 -0
- package/dist-es/commands/GetScopeCommand.js +4 -0
- package/dist-es/commands/GetTemplateCommand.js +4 -0
- package/dist-es/commands/ListAdminAccountsCommand.js +4 -0
- package/dist-es/commands/ListAggregateResourceSynchronizationStatusesCommand.js +4 -0
- package/dist-es/commands/ListDeploymentSnapshotsCommand.js +4 -0
- package/dist-es/commands/ListDeploymentsCommand.js +4 -0
- package/dist-es/commands/ListPoliciesCommand.js +4 -0
- package/dist-es/commands/ListPolicySnapshotsCommand.js +4 -0
- package/dist-es/commands/ListResourceAssociationsCommand.js +4 -0
- package/dist-es/commands/ListResourceSynchronizationStatusesCommand.js +4 -0
- package/dist-es/commands/ListRuleSnapshotsCommand.js +4 -0
- package/dist-es/commands/ListRulesCommand.js +4 -0
- package/dist-es/commands/ListScopeSnapshotsCommand.js +4 -0
- package/dist-es/commands/ListScopesCommand.js +4 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
- package/dist-es/commands/ListTemplateSnapshotsCommand.js +4 -0
- package/dist-es/commands/ListTemplatesCommand.js +4 -0
- package/dist-es/commands/PutAdminAccountCommand.js +4 -0
- package/dist-es/commands/TagResourceCommand.js +4 -0
- package/dist-es/commands/UntagResourceCommand.js +4 -0
- package/dist-es/commands/UpdateDeploymentCommand.js +4 -0
- package/dist-es/commands/UpdatePolicyCommand.js +4 -0
- package/dist-es/commands/UpdateRuleCommand.js +4 -0
- package/dist-es/commands/UpdateScopeCommand.js +4 -0
- package/dist-es/commands/UpdateTemplateCommand.js +4 -0
- package/dist-es/commands/index.js +46 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/bdd.js +29 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +10 -0
- package/dist-es/models/NetworkSecurityManagerServiceException.js +8 -0
- package/dist-es/models/enums.js +91 -0
- package/dist-es/models/errors.js +138 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAdminAccountsPaginator.js +4 -0
- package/dist-es/pagination/ListAggregateResourceSynchronizationStatusesPaginator.js +4 -0
- package/dist-es/pagination/ListDeploymentSnapshotsPaginator.js +4 -0
- package/dist-es/pagination/ListDeploymentsPaginator.js +4 -0
- package/dist-es/pagination/ListPoliciesPaginator.js +4 -0
- package/dist-es/pagination/ListPolicySnapshotsPaginator.js +4 -0
- package/dist-es/pagination/ListResourceAssociationsPaginator.js +4 -0
- package/dist-es/pagination/ListResourceSynchronizationStatusesPaginator.js +4 -0
- package/dist-es/pagination/ListRuleSnapshotsPaginator.js +4 -0
- package/dist-es/pagination/ListRulesPaginator.js +4 -0
- package/dist-es/pagination/ListScopeSnapshotsPaginator.js +4 -0
- package/dist-es/pagination/ListScopesPaginator.js +4 -0
- package/dist-es/pagination/ListTemplateSnapshotsPaginator.js +4 -0
- package/dist-es/pagination/ListTemplatesPaginator.js +4 -0
- package/dist-es/pagination/index.js +15 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +1326 -0
- package/dist-types/NetworkSecurityManager.d.ts +443 -0
- package/dist-types/NetworkSecurityManagerClient.d.ts +232 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/CreateDeploymentCommand.d.ts +206 -0
- package/dist-types/commands/CreateDeploymentSnapshotCommand.d.ts +153 -0
- package/dist-types/commands/CreatePolicyCommand.d.ts +198 -0
- package/dist-types/commands/CreatePolicySnapshotCommand.d.ts +158 -0
- package/dist-types/commands/CreateRuleCommand.d.ts +148 -0
- package/dist-types/commands/CreateRuleSnapshotCommand.d.ts +133 -0
- package/dist-types/commands/CreateScopeCommand.d.ts +292 -0
- package/dist-types/commands/CreateScopeSnapshotCommand.d.ts +205 -0
- package/dist-types/commands/CreateTemplateCommand.d.ts +160 -0
- package/dist-types/commands/CreateTemplateSnapshotCommand.d.ts +139 -0
- package/dist-types/commands/DeleteAdminAccountCommand.d.ts +94 -0
- package/dist-types/commands/DeleteDeploymentCommand.d.ts +97 -0
- package/dist-types/commands/DeletePolicyCommand.d.ts +97 -0
- package/dist-types/commands/DeleteRuleCommand.d.ts +97 -0
- package/dist-types/commands/DeleteScopeCommand.d.ts +97 -0
- package/dist-types/commands/DeleteTemplateCommand.d.ts +97 -0
- package/dist-types/commands/GenerateRuleConfigurationCommand.d.ts +107 -0
- package/dist-types/commands/GetAdminAccountCommand.d.ts +168 -0
- package/dist-types/commands/GetDeploymentCommand.d.ts +174 -0
- package/dist-types/commands/GetPolicyCommand.d.ts +149 -0
- package/dist-types/commands/GetRuleCommand.d.ts +148 -0
- package/dist-types/commands/GetScopeCommand.d.ts +196 -0
- package/dist-types/commands/GetTemplateCommand.d.ts +130 -0
- package/dist-types/commands/ListAdminAccountsCommand.d.ts +112 -0
- package/dist-types/commands/ListAggregateResourceSynchronizationStatusesCommand.d.ts +181 -0
- package/dist-types/commands/ListDeploymentSnapshotsCommand.d.ts +124 -0
- package/dist-types/commands/ListDeploymentsCommand.d.ts +122 -0
- package/dist-types/commands/ListPoliciesCommand.d.ts +126 -0
- package/dist-types/commands/ListPolicySnapshotsCommand.d.ts +128 -0
- package/dist-types/commands/ListResourceAssociationsCommand.d.ts +116 -0
- package/dist-types/commands/ListResourceSynchronizationStatusesCommand.d.ts +194 -0
- package/dist-types/commands/ListRuleSnapshotsCommand.d.ts +138 -0
- package/dist-types/commands/ListRulesCommand.d.ts +126 -0
- package/dist-types/commands/ListScopeSnapshotsCommand.d.ts +124 -0
- package/dist-types/commands/ListScopesCommand.d.ts +123 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +106 -0
- package/dist-types/commands/ListTemplateSnapshotsCommand.d.ts +126 -0
- package/dist-types/commands/ListTemplatesCommand.d.ts +124 -0
- package/dist-types/commands/PutAdminAccountCommand.d.ts +218 -0
- package/dist-types/commands/TagResourceCommand.d.ts +107 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +106 -0
- package/dist-types/commands/UpdateDeploymentCommand.d.ts +214 -0
- package/dist-types/commands/UpdatePolicyCommand.d.ts +192 -0
- package/dist-types/commands/UpdateRuleCommand.d.ts +142 -0
- package/dist-types/commands/UpdateScopeCommand.d.ts +288 -0
- package/dist-types/commands/UpdateTemplateCommand.d.ts +154 -0
- package/dist-types/commands/index.d.ts +46 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +18 -0
- package/dist-types/models/NetworkSecurityManagerServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +227 -0
- package/dist-types/models/errors.d.ts +177 -0
- package/dist-types/models/models_0.d.ts +4006 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAdminAccountsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAggregateResourceSynchronizationStatusesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDeploymentSnapshotsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDeploymentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPolicySnapshotsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListResourceAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListResourceSynchronizationStatusesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRuleSnapshotsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRulesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListScopeSnapshotsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListScopesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTemplateSnapshotsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +15 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +57 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +197 -0
- package/dist-types/ts3.4/NetworkSecurityManager.d.ts +857 -0
- package/dist-types/ts3.4/NetworkSecurityManagerClient.d.ts +340 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +27 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreateDeploymentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateDeploymentSnapshotCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreatePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreatePolicySnapshotCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateRuleCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateRuleSnapshotCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateScopeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateScopeSnapshotCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateTemplateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateTemplateSnapshotCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteAdminAccountCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteDeploymentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteRuleCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteScopeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteTemplateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GenerateRuleConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAdminAccountCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetRuleCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetScopeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetTemplateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListAdminAccountsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListAggregateResourceSynchronizationStatusesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListDeploymentSnapshotsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListPolicySnapshotsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListResourceAssociationsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListResourceSynchronizationStatusesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListRuleSnapshotsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListRulesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListScopeSnapshotsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListScopesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTemplateSnapshotsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTemplatesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutAdminAccountCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateDeploymentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdatePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateRuleCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateScopeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateTemplateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +46 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +13 -0
- package/dist-types/ts3.4/models/NetworkSecurityManagerServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +112 -0
- package/dist-types/ts3.4/models/errors.d.ts +66 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1146 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListAdminAccountsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAggregateResourceSynchronizationStatusesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDeploymentSnapshotsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPolicySnapshotsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListResourceAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListResourceSynchronizationStatusesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRuleSnapshotsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRulesPaginator.d.ts +8 -0
- package/dist-types/ts3.4/pagination/ListScopeSnapshotsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListScopesPaginator.d.ts +8 -0
- package/dist-types/ts3.4/pagination/ListTemplateSnapshotsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +15 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +197 -0
- package/package.json +69 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CreateTemplateInput, CreateTemplateOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CreateTemplateCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateTemplateCommandInput extends CreateTemplateInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CreateTemplateCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateTemplateCommandOutput extends CreateTemplateOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CreateTemplateCommand_base: {
|
|
22
|
+
new (input: CreateTemplateCommandInput): import("@smithy/core/client").CommandImpl<CreateTemplateCommandInput, CreateTemplateCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateTemplateCommandInput): import("@smithy/core/client").CommandImpl<CreateTemplateCommandInput, CreateTemplateCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates a template. A template groups one or more rules to simplify reuse across policies. You can also associate rules with a policy directly, without a template. Use <code>isPublished</code> to create the template in published (<code>ACTIVE</code>) or draft (<code>DRAFT</code>) state.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { NetworkSecurityManagerClient, CreateTemplateCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, CreateTemplateCommand } = require("@aws-sdk/client-network-security-manager"); // CommonJS import
|
|
33
|
+
* // import type { NetworkSecurityManagerClientConfig } from "@aws-sdk/client-network-security-manager";
|
|
34
|
+
* const config = {}; // type is NetworkSecurityManagerClientConfig
|
|
35
|
+
* const client = new NetworkSecurityManagerClient(config);
|
|
36
|
+
* const input = { // CreateTemplateInput
|
|
37
|
+
* clientToken: "STRING_VALUE",
|
|
38
|
+
* templateName: "STRING_VALUE", // required
|
|
39
|
+
* templateDescription: "STRING_VALUE",
|
|
40
|
+
* associatedRuleList: [ // RuleReferenceList // required
|
|
41
|
+
* { // RuleReference
|
|
42
|
+
* ruleIdentifier: "STRING_VALUE", // required
|
|
43
|
+
* },
|
|
44
|
+
* ],
|
|
45
|
+
* firewallType: "WAF", // required
|
|
46
|
+
* isPublished: true || false,
|
|
47
|
+
* tags: { // TagMap
|
|
48
|
+
* "<keys>": "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* };
|
|
51
|
+
* const command = new CreateTemplateCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // CreateTemplateOutput
|
|
54
|
+
* // templateId: "STRING_VALUE", // required
|
|
55
|
+
* // templateArn: "STRING_VALUE", // required
|
|
56
|
+
* // templateName: "STRING_VALUE", // required
|
|
57
|
+
* // templateDescription: "STRING_VALUE",
|
|
58
|
+
* // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
|
|
59
|
+
* // version: "STRING_VALUE", // required
|
|
60
|
+
* // associatedRuleList: [ // AssociatedRuleList // required
|
|
61
|
+
* // { // AssociatedRule
|
|
62
|
+
* // ruleArn: "STRING_VALUE", // required
|
|
63
|
+
* // },
|
|
64
|
+
* // ],
|
|
65
|
+
* // updateToken: "STRING_VALUE",
|
|
66
|
+
* // isSnapshot: true || false,
|
|
67
|
+
* // hasPublishedVersion: true || false,
|
|
68
|
+
* // firewallType: "WAF", // required
|
|
69
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
70
|
+
* // };
|
|
71
|
+
*
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* @param CreateTemplateCommandInput - {@link CreateTemplateCommandInput}
|
|
75
|
+
* @returns {@link CreateTemplateCommandOutput}
|
|
76
|
+
* @see {@link CreateTemplateCommandInput} for command's `input` shape.
|
|
77
|
+
* @see {@link CreateTemplateCommandOutput} for command's `response` shape.
|
|
78
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
81
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ConflictException} (client fault)
|
|
84
|
+
* <p>The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link InternalServerException} (server fault)
|
|
87
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
90
|
+
* <p>The request would exceed a service quota.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
93
|
+
* <p>The service is temporarily unavailable. This is a retryable error.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link TagPolicyViolationException} (client fault)
|
|
96
|
+
* <p>The request violates a tag policy that is in effect for the account or organization.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
99
|
+
* <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link ValidationException} (client fault)
|
|
102
|
+
* <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link NetworkSecurityManagerServiceException}
|
|
105
|
+
* <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
|
|
106
|
+
*
|
|
107
|
+
*
|
|
108
|
+
* @example Create a WAF template
|
|
109
|
+
* ```javascript
|
|
110
|
+
* // Creates a new WAF template in published (ACTIVE) state with an associated rule.
|
|
111
|
+
* const input = {
|
|
112
|
+
* associatedRuleList: [
|
|
113
|
+
* {
|
|
114
|
+
* ruleIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123"
|
|
115
|
+
* }
|
|
116
|
+
* ],
|
|
117
|
+
* clientToken: "550e8400-e29b-41d4-a716-446655440004",
|
|
118
|
+
* firewallType: "WAF",
|
|
119
|
+
* isPublished: true,
|
|
120
|
+
* templateDescription: "Standard WAF template with baseline rule groups",
|
|
121
|
+
* templateName: "standard-waf-template"
|
|
122
|
+
* };
|
|
123
|
+
* const command = new CreateTemplateCommand(input);
|
|
124
|
+
* const response = await client.send(command);
|
|
125
|
+
* /* response is
|
|
126
|
+
* {
|
|
127
|
+
* associatedRuleList: [
|
|
128
|
+
* {
|
|
129
|
+
* ruleArn: "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123"
|
|
130
|
+
* }
|
|
131
|
+
* ],
|
|
132
|
+
* firewallType: "WAF",
|
|
133
|
+
* hasPublishedVersion: true,
|
|
134
|
+
* isSnapshot: false,
|
|
135
|
+
* status: "ACTIVE",
|
|
136
|
+
* templateArn: "arn:aws:network-security-manager:us-east-1:123456789012:template:xyz789",
|
|
137
|
+
* templateDescription: "Standard WAF template with baseline rule groups",
|
|
138
|
+
* templateId: "xyz789",
|
|
139
|
+
* templateName: "standard-waf-template",
|
|
140
|
+
* updateToken: "d2e3f4a5-5b6c-4d7e-8f9a-9b0c1d2e3f4a",
|
|
141
|
+
* version: "1"
|
|
142
|
+
* }
|
|
143
|
+
* *\/
|
|
144
|
+
* ```
|
|
145
|
+
*
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
export declare class CreateTemplateCommand extends CreateTemplateCommand_base {
|
|
149
|
+
/** @internal type navigation helper, not in runtime. */
|
|
150
|
+
protected static __types: {
|
|
151
|
+
api: {
|
|
152
|
+
input: CreateTemplateInput;
|
|
153
|
+
output: CreateTemplateOutput;
|
|
154
|
+
};
|
|
155
|
+
sdk: {
|
|
156
|
+
input: CreateTemplateCommandInput;
|
|
157
|
+
output: CreateTemplateCommandOutput;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CreateTemplateSnapshotInput, CreateTemplateSnapshotOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CreateTemplateSnapshotCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateTemplateSnapshotCommandInput extends CreateTemplateSnapshotInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CreateTemplateSnapshotCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateTemplateSnapshotCommandOutput extends CreateTemplateSnapshotOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CreateTemplateSnapshotCommand_base: {
|
|
22
|
+
new (input: CreateTemplateSnapshotCommandInput): import("@smithy/core/client").CommandImpl<CreateTemplateSnapshotCommandInput, CreateTemplateSnapshotCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateTemplateSnapshotCommandInput): import("@smithy/core/client").CommandImpl<CreateTemplateSnapshotCommandInput, CreateTemplateSnapshotCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates a snapshot of the current published version of the specified template.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { NetworkSecurityManagerClient, CreateTemplateSnapshotCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, CreateTemplateSnapshotCommand } = require("@aws-sdk/client-network-security-manager"); // CommonJS import
|
|
33
|
+
* // import type { NetworkSecurityManagerClientConfig } from "@aws-sdk/client-network-security-manager";
|
|
34
|
+
* const config = {}; // type is NetworkSecurityManagerClientConfig
|
|
35
|
+
* const client = new NetworkSecurityManagerClient(config);
|
|
36
|
+
* const input = { // CreateTemplateSnapshotInput
|
|
37
|
+
* templateIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* clientToken: "STRING_VALUE",
|
|
39
|
+
* tags: { // TagMap
|
|
40
|
+
* "<keys>": "STRING_VALUE",
|
|
41
|
+
* },
|
|
42
|
+
* };
|
|
43
|
+
* const command = new CreateTemplateSnapshotCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // CreateTemplateSnapshotOutput
|
|
46
|
+
* // templateId: "STRING_VALUE", // required
|
|
47
|
+
* // templateArn: "STRING_VALUE", // required
|
|
48
|
+
* // templateName: "STRING_VALUE", // required
|
|
49
|
+
* // templateDescription: "STRING_VALUE",
|
|
50
|
+
* // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
|
|
51
|
+
* // version: "STRING_VALUE", // required
|
|
52
|
+
* // associatedRuleList: [ // AssociatedRuleList // required
|
|
53
|
+
* // { // AssociatedRule
|
|
54
|
+
* // ruleArn: "STRING_VALUE", // required
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // updateToken: "STRING_VALUE",
|
|
58
|
+
* // isSnapshot: true || false,
|
|
59
|
+
* // hasPublishedVersion: true || false,
|
|
60
|
+
* // firewallType: "WAF", // required
|
|
61
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param CreateTemplateSnapshotCommandInput - {@link CreateTemplateSnapshotCommandInput}
|
|
67
|
+
* @returns {@link CreateTemplateSnapshotCommandOutput}
|
|
68
|
+
* @see {@link CreateTemplateSnapshotCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link CreateTemplateSnapshotCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ConflictException} (client fault)
|
|
76
|
+
* <p>The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InternalServerException} (server fault)
|
|
79
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
82
|
+
* <p>The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
85
|
+
* <p>The request would exceed a service quota.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
88
|
+
* <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ValidationException} (client fault)
|
|
91
|
+
* <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link NetworkSecurityManagerServiceException}
|
|
94
|
+
* <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
|
|
95
|
+
*
|
|
96
|
+
*
|
|
97
|
+
* @example Create a template snapshot
|
|
98
|
+
* ```javascript
|
|
99
|
+
* // Creates an immutable snapshot of the current published version of a template. The snapshot is addressable by a version-qualified ARN.
|
|
100
|
+
* const input = {
|
|
101
|
+
* clientToken: "550e8400-e29b-41d4-a716-446655440012",
|
|
102
|
+
* templateIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:template:xyz789"
|
|
103
|
+
* };
|
|
104
|
+
* const command = new CreateTemplateSnapshotCommand(input);
|
|
105
|
+
* const response = await client.send(command);
|
|
106
|
+
* /* response is
|
|
107
|
+
* {
|
|
108
|
+
* associatedRuleList: [
|
|
109
|
+
* {
|
|
110
|
+
* ruleArn: "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123"
|
|
111
|
+
* }
|
|
112
|
+
* ],
|
|
113
|
+
* firewallType: "WAF",
|
|
114
|
+
* isSnapshot: true,
|
|
115
|
+
* status: "ACTIVE",
|
|
116
|
+
* templateArn: "arn:aws:network-security-manager:us-east-1:123456789012:template:xyz789:2",
|
|
117
|
+
* templateId: "xyz789",
|
|
118
|
+
* templateName: "standard-waf-template",
|
|
119
|
+
* updatedAt: "2026-08-20T12:00:00Z",
|
|
120
|
+
* version: "2"
|
|
121
|
+
* }
|
|
122
|
+
* *\/
|
|
123
|
+
* ```
|
|
124
|
+
*
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
export declare class CreateTemplateSnapshotCommand extends CreateTemplateSnapshotCommand_base {
|
|
128
|
+
/** @internal type navigation helper, not in runtime. */
|
|
129
|
+
protected static __types: {
|
|
130
|
+
api: {
|
|
131
|
+
input: CreateTemplateSnapshotInput;
|
|
132
|
+
output: CreateTemplateSnapshotOutput;
|
|
133
|
+
};
|
|
134
|
+
sdk: {
|
|
135
|
+
input: CreateTemplateSnapshotCommandInput;
|
|
136
|
+
output: CreateTemplateSnapshotCommandOutput;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { DeleteAdminAccountRequest } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link DeleteAdminAccountCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface DeleteAdminAccountCommandInput extends DeleteAdminAccountRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link DeleteAdminAccountCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface DeleteAdminAccountCommandOutput extends __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const DeleteAdminAccountCommand_base: {
|
|
22
|
+
new (input: DeleteAdminAccountCommandInput): import("@smithy/core/client").CommandImpl<DeleteAdminAccountCommandInput, DeleteAdminAccountCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: DeleteAdminAccountCommandInput): import("@smithy/core/client").CommandImpl<DeleteAdminAccountCommandInput, DeleteAdminAccountCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Removes the specified AWS Network Security Manager administrator account.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { NetworkSecurityManagerClient, DeleteAdminAccountCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, DeleteAdminAccountCommand } = require("@aws-sdk/client-network-security-manager"); // CommonJS import
|
|
33
|
+
* // import type { NetworkSecurityManagerClientConfig } from "@aws-sdk/client-network-security-manager";
|
|
34
|
+
* const config = {}; // type is NetworkSecurityManagerClientConfig
|
|
35
|
+
* const client = new NetworkSecurityManagerClient(config);
|
|
36
|
+
* const input = { // DeleteAdminAccountRequest
|
|
37
|
+
* accountId: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new DeleteAdminAccountCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param DeleteAdminAccountCommandInput - {@link DeleteAdminAccountCommandInput}
|
|
46
|
+
* @returns {@link DeleteAdminAccountCommandOutput}
|
|
47
|
+
* @see {@link DeleteAdminAccountCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link DeleteAdminAccountCommandOutput} for command's `response` shape.
|
|
49
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
52
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link InternalServerException} (server fault)
|
|
55
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
58
|
+
* <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ValidationException} (client fault)
|
|
61
|
+
* <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link NetworkSecurityManagerServiceException}
|
|
64
|
+
* <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
|
|
65
|
+
*
|
|
66
|
+
*
|
|
67
|
+
* @example Remove an administrator account
|
|
68
|
+
* ```javascript
|
|
69
|
+
* // Removes an account's Network Security Manager administrator designation.
|
|
70
|
+
* const input = {
|
|
71
|
+
* accountId: "234567890123"
|
|
72
|
+
* };
|
|
73
|
+
* const command = new DeleteAdminAccountCommand(input);
|
|
74
|
+
* const response = await client.send(command);
|
|
75
|
+
* /* response is
|
|
76
|
+
* { /* metadata only *\/ }
|
|
77
|
+
* *\/
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export declare class DeleteAdminAccountCommand extends DeleteAdminAccountCommand_base {
|
|
83
|
+
/** @internal type navigation helper, not in runtime. */
|
|
84
|
+
protected static __types: {
|
|
85
|
+
api: {
|
|
86
|
+
input: DeleteAdminAccountRequest;
|
|
87
|
+
output: {};
|
|
88
|
+
};
|
|
89
|
+
sdk: {
|
|
90
|
+
input: DeleteAdminAccountCommandInput;
|
|
91
|
+
output: DeleteAdminAccountCommandOutput;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { DeleteDeploymentInput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link DeleteDeploymentCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface DeleteDeploymentCommandInput extends DeleteDeploymentInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link DeleteDeploymentCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface DeleteDeploymentCommandOutput extends __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const DeleteDeploymentCommand_base: {
|
|
22
|
+
new (input: DeleteDeploymentCommandInput): import("@smithy/core/client").CommandImpl<DeleteDeploymentCommandInput, DeleteDeploymentCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: DeleteDeploymentCommandInput): import("@smithy/core/client").CommandImpl<DeleteDeploymentCommandInput, DeleteDeploymentCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Deletes the specified deployment.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { NetworkSecurityManagerClient, DeleteDeploymentCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, DeleteDeploymentCommand } = require("@aws-sdk/client-network-security-manager"); // CommonJS import
|
|
33
|
+
* // import type { NetworkSecurityManagerClientConfig } from "@aws-sdk/client-network-security-manager";
|
|
34
|
+
* const config = {}; // type is NetworkSecurityManagerClientConfig
|
|
35
|
+
* const client = new NetworkSecurityManagerClient(config);
|
|
36
|
+
* const input = { // DeleteDeploymentInput
|
|
37
|
+
* deploymentIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new DeleteDeploymentCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param DeleteDeploymentCommandInput - {@link DeleteDeploymentCommandInput}
|
|
46
|
+
* @returns {@link DeleteDeploymentCommandOutput}
|
|
47
|
+
* @see {@link DeleteDeploymentCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link DeleteDeploymentCommandOutput} for command's `response` shape.
|
|
49
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
52
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link ConflictException} (client fault)
|
|
55
|
+
* <p>The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link InternalServerException} (server fault)
|
|
58
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
61
|
+
* <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ValidationException} (client fault)
|
|
64
|
+
* <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link NetworkSecurityManagerServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* @example Delete a deployment
|
|
71
|
+
* ```javascript
|
|
72
|
+
* // Deletes a deployment by its ARN. Deleting an active deployment stops enforcement and triggers cleanup of managed firewall resources.
|
|
73
|
+
* const input = {
|
|
74
|
+
* deploymentIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:deployment:def456"
|
|
75
|
+
* };
|
|
76
|
+
* const command = new DeleteDeploymentCommand(input);
|
|
77
|
+
* const response = await client.send(command);
|
|
78
|
+
* /* response is
|
|
79
|
+
* { /* metadata only *\/ }
|
|
80
|
+
* *\/
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class DeleteDeploymentCommand extends DeleteDeploymentCommand_base {
|
|
86
|
+
/** @internal type navigation helper, not in runtime. */
|
|
87
|
+
protected static __types: {
|
|
88
|
+
api: {
|
|
89
|
+
input: DeleteDeploymentInput;
|
|
90
|
+
output: {};
|
|
91
|
+
};
|
|
92
|
+
sdk: {
|
|
93
|
+
input: DeleteDeploymentCommandInput;
|
|
94
|
+
output: DeleteDeploymentCommandOutput;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { DeletePolicyInput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link DeletePolicyCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface DeletePolicyCommandInput extends DeletePolicyInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link DeletePolicyCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface DeletePolicyCommandOutput extends __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const DeletePolicyCommand_base: {
|
|
22
|
+
new (input: DeletePolicyCommandInput): import("@smithy/core/client").CommandImpl<DeletePolicyCommandInput, DeletePolicyCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: DeletePolicyCommandInput): import("@smithy/core/client").CommandImpl<DeletePolicyCommandInput, DeletePolicyCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Deletes the specified policy.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { NetworkSecurityManagerClient, DeletePolicyCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, DeletePolicyCommand } = require("@aws-sdk/client-network-security-manager"); // CommonJS import
|
|
33
|
+
* // import type { NetworkSecurityManagerClientConfig } from "@aws-sdk/client-network-security-manager";
|
|
34
|
+
* const config = {}; // type is NetworkSecurityManagerClientConfig
|
|
35
|
+
* const client = new NetworkSecurityManagerClient(config);
|
|
36
|
+
* const input = { // DeletePolicyInput
|
|
37
|
+
* policyIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new DeletePolicyCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param DeletePolicyCommandInput - {@link DeletePolicyCommandInput}
|
|
46
|
+
* @returns {@link DeletePolicyCommandOutput}
|
|
47
|
+
* @see {@link DeletePolicyCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link DeletePolicyCommandOutput} for command's `response` shape.
|
|
49
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
52
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link ConflictException} (client fault)
|
|
55
|
+
* <p>The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link InternalServerException} (server fault)
|
|
58
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
61
|
+
* <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ValidationException} (client fault)
|
|
64
|
+
* <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link NetworkSecurityManagerServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* @example Delete a policy
|
|
71
|
+
* ```javascript
|
|
72
|
+
* // Deletes a policy by its ARN. The policy must not be associated with any deployment.
|
|
73
|
+
* const input = {
|
|
74
|
+
* policyIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789"
|
|
75
|
+
* };
|
|
76
|
+
* const command = new DeletePolicyCommand(input);
|
|
77
|
+
* const response = await client.send(command);
|
|
78
|
+
* /* response is
|
|
79
|
+
* { /* metadata only *\/ }
|
|
80
|
+
* *\/
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class DeletePolicyCommand extends DeletePolicyCommand_base {
|
|
86
|
+
/** @internal type navigation helper, not in runtime. */
|
|
87
|
+
protected static __types: {
|
|
88
|
+
api: {
|
|
89
|
+
input: DeletePolicyInput;
|
|
90
|
+
output: {};
|
|
91
|
+
};
|
|
92
|
+
sdk: {
|
|
93
|
+
input: DeletePolicyCommandInput;
|
|
94
|
+
output: DeletePolicyCommandOutput;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}
|