@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,133 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CreateRuleSnapshotInput, CreateRuleSnapshotOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CreateRuleSnapshotCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateRuleSnapshotCommandInput extends CreateRuleSnapshotInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CreateRuleSnapshotCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateRuleSnapshotCommandOutput extends CreateRuleSnapshotOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CreateRuleSnapshotCommand_base: {
|
|
22
|
+
new (input: CreateRuleSnapshotCommandInput): import("@smithy/core/client").CommandImpl<CreateRuleSnapshotCommandInput, CreateRuleSnapshotCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateRuleSnapshotCommandInput): import("@smithy/core/client").CommandImpl<CreateRuleSnapshotCommandInput, CreateRuleSnapshotCommandOutput, 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 rule. A snapshot is an immutable, versioned copy that other resources can reference.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { NetworkSecurityManagerClient, CreateRuleSnapshotCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, CreateRuleSnapshotCommand } = 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 = { // CreateRuleSnapshotInput
|
|
37
|
+
* ruleIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* clientToken: "STRING_VALUE",
|
|
39
|
+
* tags: { // TagMap
|
|
40
|
+
* "<keys>": "STRING_VALUE",
|
|
41
|
+
* },
|
|
42
|
+
* };
|
|
43
|
+
* const command = new CreateRuleSnapshotCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // CreateRuleSnapshotOutput
|
|
46
|
+
* // ruleId: "STRING_VALUE", // required
|
|
47
|
+
* // ruleArn: "STRING_VALUE", // required
|
|
48
|
+
* // ruleName: "STRING_VALUE", // required
|
|
49
|
+
* // firewallType: "WAF", // required
|
|
50
|
+
* // ruleType: "CONFIGURATION" || "INSPECTION",
|
|
51
|
+
* // ruleDescription: "STRING_VALUE",
|
|
52
|
+
* // configuration: "DOCUMENT_VALUE", // required
|
|
53
|
+
* // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
|
|
54
|
+
* // version: "STRING_VALUE", // required
|
|
55
|
+
* // updateToken: "STRING_VALUE",
|
|
56
|
+
* // isSnapshot: true || false,
|
|
57
|
+
* // hasPublishedVersion: true || false,
|
|
58
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param CreateRuleSnapshotCommandInput - {@link CreateRuleSnapshotCommandInput}
|
|
64
|
+
* @returns {@link CreateRuleSnapshotCommandOutput}
|
|
65
|
+
* @see {@link CreateRuleSnapshotCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link CreateRuleSnapshotCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
70
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ConflictException} (client fault)
|
|
73
|
+
* <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>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
79
|
+
* <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>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
82
|
+
* <p>The request would exceed a service quota.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
85
|
+
* <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ValidationException} (client fault)
|
|
88
|
+
* <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link NetworkSecurityManagerServiceException}
|
|
91
|
+
* <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
|
|
92
|
+
*
|
|
93
|
+
*
|
|
94
|
+
* @example Create a rule snapshot
|
|
95
|
+
* ```javascript
|
|
96
|
+
* // Creates an immutable snapshot of the current published version of a rule. The snapshot is addressable by a version-qualified ARN.
|
|
97
|
+
* const input = {
|
|
98
|
+
* clientToken: "550e8400-e29b-41d4-a716-446655440011",
|
|
99
|
+
* ruleIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123"
|
|
100
|
+
* };
|
|
101
|
+
* const command = new CreateRuleSnapshotCommand(input);
|
|
102
|
+
* const response = await client.send(command);
|
|
103
|
+
* /* response is
|
|
104
|
+
* {
|
|
105
|
+
* configuration: { /* empty *\/ },
|
|
106
|
+
* firewallType: "WAF",
|
|
107
|
+
* isSnapshot: true,
|
|
108
|
+
* ruleArn: "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123:2",
|
|
109
|
+
* ruleId: "abc123",
|
|
110
|
+
* ruleName: "block-known-bad-ips",
|
|
111
|
+
* ruleType: "INSPECTION",
|
|
112
|
+
* status: "ACTIVE",
|
|
113
|
+
* updatedAt: "2026-08-20T12:00:00Z",
|
|
114
|
+
* version: "2"
|
|
115
|
+
* }
|
|
116
|
+
* *\/
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
export declare class CreateRuleSnapshotCommand extends CreateRuleSnapshotCommand_base {
|
|
122
|
+
/** @internal type navigation helper, not in runtime. */
|
|
123
|
+
protected static __types: {
|
|
124
|
+
api: {
|
|
125
|
+
input: CreateRuleSnapshotInput;
|
|
126
|
+
output: CreateRuleSnapshotOutput;
|
|
127
|
+
};
|
|
128
|
+
sdk: {
|
|
129
|
+
input: CreateRuleSnapshotCommandInput;
|
|
130
|
+
output: CreateRuleSnapshotCommandOutput;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CreateScopeInput, CreateScopeOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CreateScopeCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateScopeCommandInput extends CreateScopeInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CreateScopeCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateScopeCommandOutput extends CreateScopeOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CreateScopeCommand_base: {
|
|
22
|
+
new (input: CreateScopeCommandInput): import("@smithy/core/client").CommandImpl<CreateScopeCommandInput, CreateScopeCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateScopeCommandInput): import("@smithy/core/client").CommandImpl<CreateScopeCommandInput, CreateScopeCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates a scope. A scope selects the accounts and resources that a deployment applies to. Use <code>isPublished</code> to create the scope 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, CreateScopeCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, CreateScopeCommand } = 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 = { // CreateScopeInput
|
|
37
|
+
* clientToken: "STRING_VALUE",
|
|
38
|
+
* scopeName: "STRING_VALUE", // required
|
|
39
|
+
* scopeDescription: "STRING_VALUE",
|
|
40
|
+
* scopeConfiguration: { // ScopeConfiguration
|
|
41
|
+
* accountFilter: { // AccountFilter Union: only one key present
|
|
42
|
+
* includeAll: {},
|
|
43
|
+
* include: { // AccountSet
|
|
44
|
+
* accountIds: [ // AccountList
|
|
45
|
+
* "STRING_VALUE",
|
|
46
|
+
* ],
|
|
47
|
+
* organizationalUnits: [ // OrganizationalUnitList
|
|
48
|
+
* "STRING_VALUE",
|
|
49
|
+
* ],
|
|
50
|
+
* },
|
|
51
|
+
* exclude: {
|
|
52
|
+
* accountIds: [
|
|
53
|
+
* "STRING_VALUE",
|
|
54
|
+
* ],
|
|
55
|
+
* organizationalUnits: [
|
|
56
|
+
* "STRING_VALUE",
|
|
57
|
+
* ],
|
|
58
|
+
* },
|
|
59
|
+
* },
|
|
60
|
+
* resourceScopes: { // ResourceScopeMap // required
|
|
61
|
+
* "<keys>": { // ResourceScope
|
|
62
|
+
* includeAll: true || false,
|
|
63
|
+
* include: { // ResourceSet
|
|
64
|
+
* explicitArns: [ // ResourceArnList
|
|
65
|
+
* "STRING_VALUE",
|
|
66
|
+
* ],
|
|
67
|
+
* expression: { // ResourceLogicalExpression Union: only one key present
|
|
68
|
+
* criteria: { // ResourceCriteria Union: only one key present
|
|
69
|
+
* tags: { // StringMap
|
|
70
|
+
* "<keys>": "STRING_VALUE",
|
|
71
|
+
* },
|
|
72
|
+
* albConfig: { // AlbConfiguration
|
|
73
|
+
* scheme: "internet-facing" || "internal",
|
|
74
|
+
* ipAddressType: "ipv4" || "dualstack" || "dualstack-without-public-ipv4",
|
|
75
|
+
* },
|
|
76
|
+
* },
|
|
77
|
+
* and: [ // ResourceLogicalExpressionList
|
|
78
|
+
* {// Union: only one key present
|
|
79
|
+
* criteria: {// Union: only one key present
|
|
80
|
+
* tags: {
|
|
81
|
+
* "<keys>": "STRING_VALUE",
|
|
82
|
+
* },
|
|
83
|
+
* albConfig: {
|
|
84
|
+
* scheme: "internet-facing" || "internal",
|
|
85
|
+
* ipAddressType: "ipv4" || "dualstack" || "dualstack-without-public-ipv4",
|
|
86
|
+
* },
|
|
87
|
+
* },
|
|
88
|
+
* and: [
|
|
89
|
+
* "<ResourceLogicalExpression>",
|
|
90
|
+
* ],
|
|
91
|
+
* or: [
|
|
92
|
+
* "<ResourceLogicalExpression>",
|
|
93
|
+
* ],
|
|
94
|
+
* not: "<ResourceLogicalExpression>",
|
|
95
|
+
* },
|
|
96
|
+
* ],
|
|
97
|
+
* or: [
|
|
98
|
+
* "<ResourceLogicalExpression>",
|
|
99
|
+
* ],
|
|
100
|
+
* not: "<ResourceLogicalExpression>",
|
|
101
|
+
* },
|
|
102
|
+
* },
|
|
103
|
+
* exclude: {
|
|
104
|
+
* explicitArns: [
|
|
105
|
+
* "STRING_VALUE",
|
|
106
|
+
* ],
|
|
107
|
+
* expression: "<ResourceLogicalExpression>",
|
|
108
|
+
* },
|
|
109
|
+
* },
|
|
110
|
+
* },
|
|
111
|
+
* },
|
|
112
|
+
* isPublished: true || false,
|
|
113
|
+
* tags: { // TagMap
|
|
114
|
+
* "<keys>": "STRING_VALUE",
|
|
115
|
+
* },
|
|
116
|
+
* };
|
|
117
|
+
* const command = new CreateScopeCommand(input);
|
|
118
|
+
* const response = await client.send(command);
|
|
119
|
+
* // { // CreateScopeOutput
|
|
120
|
+
* // scopeId: "STRING_VALUE", // required
|
|
121
|
+
* // scopeArn: "STRING_VALUE", // required
|
|
122
|
+
* // scopeName: "STRING_VALUE", // required
|
|
123
|
+
* // scopeDescription: "STRING_VALUE",
|
|
124
|
+
* // scopeConfiguration: { // ScopeConfiguration
|
|
125
|
+
* // accountFilter: { // AccountFilter Union: only one key present
|
|
126
|
+
* // includeAll: {},
|
|
127
|
+
* // include: { // AccountSet
|
|
128
|
+
* // accountIds: [ // AccountList
|
|
129
|
+
* // "STRING_VALUE",
|
|
130
|
+
* // ],
|
|
131
|
+
* // organizationalUnits: [ // OrganizationalUnitList
|
|
132
|
+
* // "STRING_VALUE",
|
|
133
|
+
* // ],
|
|
134
|
+
* // },
|
|
135
|
+
* // exclude: {
|
|
136
|
+
* // accountIds: [
|
|
137
|
+
* // "STRING_VALUE",
|
|
138
|
+
* // ],
|
|
139
|
+
* // organizationalUnits: [
|
|
140
|
+
* // "STRING_VALUE",
|
|
141
|
+
* // ],
|
|
142
|
+
* // },
|
|
143
|
+
* // },
|
|
144
|
+
* // resourceScopes: { // ResourceScopeMap // required
|
|
145
|
+
* // "<keys>": { // ResourceScope
|
|
146
|
+
* // includeAll: true || false,
|
|
147
|
+
* // include: { // ResourceSet
|
|
148
|
+
* // explicitArns: [ // ResourceArnList
|
|
149
|
+
* // "STRING_VALUE",
|
|
150
|
+
* // ],
|
|
151
|
+
* // expression: { // ResourceLogicalExpression Union: only one key present
|
|
152
|
+
* // criteria: { // ResourceCriteria Union: only one key present
|
|
153
|
+
* // tags: { // StringMap
|
|
154
|
+
* // "<keys>": "STRING_VALUE",
|
|
155
|
+
* // },
|
|
156
|
+
* // albConfig: { // AlbConfiguration
|
|
157
|
+
* // scheme: "internet-facing" || "internal",
|
|
158
|
+
* // ipAddressType: "ipv4" || "dualstack" || "dualstack-without-public-ipv4",
|
|
159
|
+
* // },
|
|
160
|
+
* // },
|
|
161
|
+
* // and: [ // ResourceLogicalExpressionList
|
|
162
|
+
* // {// Union: only one key present
|
|
163
|
+
* // criteria: {// Union: only one key present
|
|
164
|
+
* // tags: {
|
|
165
|
+
* // "<keys>": "STRING_VALUE",
|
|
166
|
+
* // },
|
|
167
|
+
* // albConfig: {
|
|
168
|
+
* // scheme: "internet-facing" || "internal",
|
|
169
|
+
* // ipAddressType: "ipv4" || "dualstack" || "dualstack-without-public-ipv4",
|
|
170
|
+
* // },
|
|
171
|
+
* // },
|
|
172
|
+
* // and: [
|
|
173
|
+
* // "<ResourceLogicalExpression>",
|
|
174
|
+
* // ],
|
|
175
|
+
* // or: [
|
|
176
|
+
* // "<ResourceLogicalExpression>",
|
|
177
|
+
* // ],
|
|
178
|
+
* // not: "<ResourceLogicalExpression>",
|
|
179
|
+
* // },
|
|
180
|
+
* // ],
|
|
181
|
+
* // or: [
|
|
182
|
+
* // "<ResourceLogicalExpression>",
|
|
183
|
+
* // ],
|
|
184
|
+
* // not: "<ResourceLogicalExpression>",
|
|
185
|
+
* // },
|
|
186
|
+
* // },
|
|
187
|
+
* // exclude: {
|
|
188
|
+
* // explicitArns: [
|
|
189
|
+
* // "STRING_VALUE",
|
|
190
|
+
* // ],
|
|
191
|
+
* // expression: "<ResourceLogicalExpression>",
|
|
192
|
+
* // },
|
|
193
|
+
* // },
|
|
194
|
+
* // },
|
|
195
|
+
* // },
|
|
196
|
+
* // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
|
|
197
|
+
* // version: "STRING_VALUE", // required
|
|
198
|
+
* // updateToken: "STRING_VALUE",
|
|
199
|
+
* // isSnapshot: true || false,
|
|
200
|
+
* // hasPublishedVersion: true || false,
|
|
201
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
202
|
+
* // };
|
|
203
|
+
*
|
|
204
|
+
* ```
|
|
205
|
+
*
|
|
206
|
+
* @param CreateScopeCommandInput - {@link CreateScopeCommandInput}
|
|
207
|
+
* @returns {@link CreateScopeCommandOutput}
|
|
208
|
+
* @see {@link CreateScopeCommandInput} for command's `input` shape.
|
|
209
|
+
* @see {@link CreateScopeCommandOutput} for command's `response` shape.
|
|
210
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
211
|
+
*
|
|
212
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
213
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
214
|
+
*
|
|
215
|
+
* @throws {@link ConflictException} (client fault)
|
|
216
|
+
* <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>
|
|
217
|
+
*
|
|
218
|
+
* @throws {@link InternalServerException} (server fault)
|
|
219
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
220
|
+
*
|
|
221
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
222
|
+
* <p>The request would exceed a service quota.</p>
|
|
223
|
+
*
|
|
224
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
225
|
+
* <p>The service is temporarily unavailable. This is a retryable error.</p>
|
|
226
|
+
*
|
|
227
|
+
* @throws {@link TagPolicyViolationException} (client fault)
|
|
228
|
+
* <p>The request violates a tag policy that is in effect for the account or organization.</p>
|
|
229
|
+
*
|
|
230
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
231
|
+
* <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
|
|
232
|
+
*
|
|
233
|
+
* @throws {@link ValidationException} (client fault)
|
|
234
|
+
* <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
|
|
235
|
+
*
|
|
236
|
+
* @throws {@link NetworkSecurityManagerServiceException}
|
|
237
|
+
* <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
|
|
238
|
+
*
|
|
239
|
+
*
|
|
240
|
+
* @example Create a scope
|
|
241
|
+
* ```javascript
|
|
242
|
+
* // Creates a new scope in published (ACTIVE) state.
|
|
243
|
+
* const input = {
|
|
244
|
+
* clientToken: "550e8400-e29b-41d4-a716-446655440001",
|
|
245
|
+
* isPublished: true,
|
|
246
|
+
* scopeConfiguration: {
|
|
247
|
+
* accountFilter: {
|
|
248
|
+
* includeAll: { /* empty *\/ }
|
|
249
|
+
* },
|
|
250
|
+
* resourceScopes: { /* empty *\/ }
|
|
251
|
+
* },
|
|
252
|
+
* scopeDescription: "Scope covering all production web application resources",
|
|
253
|
+
* scopeName: "production-web-apps"
|
|
254
|
+
* };
|
|
255
|
+
* const command = new CreateScopeCommand(input);
|
|
256
|
+
* const response = await client.send(command);
|
|
257
|
+
* /* response is
|
|
258
|
+
* {
|
|
259
|
+
* hasPublishedVersion: true,
|
|
260
|
+
* isSnapshot: false,
|
|
261
|
+
* scopeArn: "arn:aws:network-security-manager:us-east-1:123456789012:scope:abc123",
|
|
262
|
+
* scopeConfiguration: {
|
|
263
|
+
* accountFilter: {
|
|
264
|
+
* includeAll: { /* empty *\/ }
|
|
265
|
+
* },
|
|
266
|
+
* resourceScopes: { /* empty *\/ }
|
|
267
|
+
* },
|
|
268
|
+
* scopeDescription: "Scope covering all production web application resources",
|
|
269
|
+
* scopeId: "abc123",
|
|
270
|
+
* scopeName: "production-web-apps",
|
|
271
|
+
* status: "ACTIVE",
|
|
272
|
+
* updateToken: "b0c4d1e2-3f4a-4b5c-8d6e-7f8a9b0c1d2e",
|
|
273
|
+
* version: "1"
|
|
274
|
+
* }
|
|
275
|
+
* *\/
|
|
276
|
+
* ```
|
|
277
|
+
*
|
|
278
|
+
* @public
|
|
279
|
+
*/
|
|
280
|
+
export declare class CreateScopeCommand extends CreateScopeCommand_base {
|
|
281
|
+
/** @internal type navigation helper, not in runtime. */
|
|
282
|
+
protected static __types: {
|
|
283
|
+
api: {
|
|
284
|
+
input: CreateScopeInput;
|
|
285
|
+
output: CreateScopeOutput;
|
|
286
|
+
};
|
|
287
|
+
sdk: {
|
|
288
|
+
input: CreateScopeCommandInput;
|
|
289
|
+
output: CreateScopeCommandOutput;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CreateScopeSnapshotInput, CreateScopeSnapshotOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CreateScopeSnapshotCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateScopeSnapshotCommandInput extends CreateScopeSnapshotInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CreateScopeSnapshotCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateScopeSnapshotCommandOutput extends CreateScopeSnapshotOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CreateScopeSnapshotCommand_base: {
|
|
22
|
+
new (input: CreateScopeSnapshotCommandInput): import("@smithy/core/client").CommandImpl<CreateScopeSnapshotCommandInput, CreateScopeSnapshotCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateScopeSnapshotCommandInput): import("@smithy/core/client").CommandImpl<CreateScopeSnapshotCommandInput, CreateScopeSnapshotCommandOutput, 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 scope.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { NetworkSecurityManagerClient, CreateScopeSnapshotCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, CreateScopeSnapshotCommand } = 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 = { // CreateScopeSnapshotInput
|
|
37
|
+
* scopeIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* clientToken: "STRING_VALUE",
|
|
39
|
+
* tags: { // TagMap
|
|
40
|
+
* "<keys>": "STRING_VALUE",
|
|
41
|
+
* },
|
|
42
|
+
* };
|
|
43
|
+
* const command = new CreateScopeSnapshotCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // CreateScopeSnapshotOutput
|
|
46
|
+
* // scopeId: "STRING_VALUE", // required
|
|
47
|
+
* // scopeArn: "STRING_VALUE", // required
|
|
48
|
+
* // scopeName: "STRING_VALUE", // required
|
|
49
|
+
* // scopeDescription: "STRING_VALUE",
|
|
50
|
+
* // scopeConfiguration: { // ScopeConfiguration
|
|
51
|
+
* // accountFilter: { // AccountFilter Union: only one key present
|
|
52
|
+
* // includeAll: {},
|
|
53
|
+
* // include: { // AccountSet
|
|
54
|
+
* // accountIds: [ // AccountList
|
|
55
|
+
* // "STRING_VALUE",
|
|
56
|
+
* // ],
|
|
57
|
+
* // organizationalUnits: [ // OrganizationalUnitList
|
|
58
|
+
* // "STRING_VALUE",
|
|
59
|
+
* // ],
|
|
60
|
+
* // },
|
|
61
|
+
* // exclude: {
|
|
62
|
+
* // accountIds: [
|
|
63
|
+
* // "STRING_VALUE",
|
|
64
|
+
* // ],
|
|
65
|
+
* // organizationalUnits: [
|
|
66
|
+
* // "STRING_VALUE",
|
|
67
|
+
* // ],
|
|
68
|
+
* // },
|
|
69
|
+
* // },
|
|
70
|
+
* // resourceScopes: { // ResourceScopeMap // required
|
|
71
|
+
* // "<keys>": { // ResourceScope
|
|
72
|
+
* // includeAll: true || false,
|
|
73
|
+
* // include: { // ResourceSet
|
|
74
|
+
* // explicitArns: [ // ResourceArnList
|
|
75
|
+
* // "STRING_VALUE",
|
|
76
|
+
* // ],
|
|
77
|
+
* // expression: { // ResourceLogicalExpression Union: only one key present
|
|
78
|
+
* // criteria: { // ResourceCriteria Union: only one key present
|
|
79
|
+
* // tags: { // StringMap
|
|
80
|
+
* // "<keys>": "STRING_VALUE",
|
|
81
|
+
* // },
|
|
82
|
+
* // albConfig: { // AlbConfiguration
|
|
83
|
+
* // scheme: "internet-facing" || "internal",
|
|
84
|
+
* // ipAddressType: "ipv4" || "dualstack" || "dualstack-without-public-ipv4",
|
|
85
|
+
* // },
|
|
86
|
+
* // },
|
|
87
|
+
* // and: [ // ResourceLogicalExpressionList
|
|
88
|
+
* // {// Union: only one key present
|
|
89
|
+
* // criteria: {// Union: only one key present
|
|
90
|
+
* // tags: {
|
|
91
|
+
* // "<keys>": "STRING_VALUE",
|
|
92
|
+
* // },
|
|
93
|
+
* // albConfig: {
|
|
94
|
+
* // scheme: "internet-facing" || "internal",
|
|
95
|
+
* // ipAddressType: "ipv4" || "dualstack" || "dualstack-without-public-ipv4",
|
|
96
|
+
* // },
|
|
97
|
+
* // },
|
|
98
|
+
* // and: [
|
|
99
|
+
* // "<ResourceLogicalExpression>",
|
|
100
|
+
* // ],
|
|
101
|
+
* // or: [
|
|
102
|
+
* // "<ResourceLogicalExpression>",
|
|
103
|
+
* // ],
|
|
104
|
+
* // not: "<ResourceLogicalExpression>",
|
|
105
|
+
* // },
|
|
106
|
+
* // ],
|
|
107
|
+
* // or: [
|
|
108
|
+
* // "<ResourceLogicalExpression>",
|
|
109
|
+
* // ],
|
|
110
|
+
* // not: "<ResourceLogicalExpression>",
|
|
111
|
+
* // },
|
|
112
|
+
* // },
|
|
113
|
+
* // exclude: {
|
|
114
|
+
* // explicitArns: [
|
|
115
|
+
* // "STRING_VALUE",
|
|
116
|
+
* // ],
|
|
117
|
+
* // expression: "<ResourceLogicalExpression>",
|
|
118
|
+
* // },
|
|
119
|
+
* // },
|
|
120
|
+
* // },
|
|
121
|
+
* // },
|
|
122
|
+
* // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
|
|
123
|
+
* // version: "STRING_VALUE", // required
|
|
124
|
+
* // updateToken: "STRING_VALUE",
|
|
125
|
+
* // isSnapshot: true || false,
|
|
126
|
+
* // hasPublishedVersion: true || false,
|
|
127
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
128
|
+
* // };
|
|
129
|
+
*
|
|
130
|
+
* ```
|
|
131
|
+
*
|
|
132
|
+
* @param CreateScopeSnapshotCommandInput - {@link CreateScopeSnapshotCommandInput}
|
|
133
|
+
* @returns {@link CreateScopeSnapshotCommandOutput}
|
|
134
|
+
* @see {@link CreateScopeSnapshotCommandInput} for command's `input` shape.
|
|
135
|
+
* @see {@link CreateScopeSnapshotCommandOutput} for command's `response` shape.
|
|
136
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
139
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
140
|
+
*
|
|
141
|
+
* @throws {@link ConflictException} (client fault)
|
|
142
|
+
* <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>
|
|
143
|
+
*
|
|
144
|
+
* @throws {@link InternalServerException} (server fault)
|
|
145
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
146
|
+
*
|
|
147
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
148
|
+
* <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>
|
|
149
|
+
*
|
|
150
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
151
|
+
* <p>The request would exceed a service quota.</p>
|
|
152
|
+
*
|
|
153
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
154
|
+
* <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
|
|
155
|
+
*
|
|
156
|
+
* @throws {@link ValidationException} (client fault)
|
|
157
|
+
* <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
|
|
158
|
+
*
|
|
159
|
+
* @throws {@link NetworkSecurityManagerServiceException}
|
|
160
|
+
* <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
|
|
161
|
+
*
|
|
162
|
+
*
|
|
163
|
+
* @example Create a scope snapshot
|
|
164
|
+
* ```javascript
|
|
165
|
+
* // Creates an immutable snapshot of the current published version of a scope. The snapshot is addressable by a version-qualified ARN.
|
|
166
|
+
* const input = {
|
|
167
|
+
* clientToken: "550e8400-e29b-41d4-a716-446655440010",
|
|
168
|
+
* scopeIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:scope:abc123"
|
|
169
|
+
* };
|
|
170
|
+
* const command = new CreateScopeSnapshotCommand(input);
|
|
171
|
+
* const response = await client.send(command);
|
|
172
|
+
* /* response is
|
|
173
|
+
* {
|
|
174
|
+
* isSnapshot: true,
|
|
175
|
+
* scopeArn: "arn:aws:network-security-manager:us-east-1:123456789012:scope:abc123:2",
|
|
176
|
+
* scopeConfiguration: {
|
|
177
|
+
* accountFilter: {
|
|
178
|
+
* includeAll: { /* empty *\/ }
|
|
179
|
+
* },
|
|
180
|
+
* resourceScopes: { /* empty *\/ }
|
|
181
|
+
* },
|
|
182
|
+
* scopeId: "abc123",
|
|
183
|
+
* scopeName: "production-web-apps",
|
|
184
|
+
* status: "ACTIVE",
|
|
185
|
+
* updatedAt: "2026-08-20T12:00:00Z",
|
|
186
|
+
* version: "2"
|
|
187
|
+
* }
|
|
188
|
+
* *\/
|
|
189
|
+
* ```
|
|
190
|
+
*
|
|
191
|
+
* @public
|
|
192
|
+
*/
|
|
193
|
+
export declare class CreateScopeSnapshotCommand extends CreateScopeSnapshotCommand_base {
|
|
194
|
+
/** @internal type navigation helper, not in runtime. */
|
|
195
|
+
protected static __types: {
|
|
196
|
+
api: {
|
|
197
|
+
input: CreateScopeSnapshotInput;
|
|
198
|
+
output: CreateScopeSnapshotOutput;
|
|
199
|
+
};
|
|
200
|
+
sdk: {
|
|
201
|
+
input: CreateScopeSnapshotCommandInput;
|
|
202
|
+
output: CreateScopeSnapshotCommandOutput;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
}
|