@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,174 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetDeploymentInput, GetDeploymentOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetDeploymentCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetDeploymentCommandInput extends GetDeploymentInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetDeploymentCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetDeploymentCommandOutput extends GetDeploymentOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetDeploymentCommand_base: {
|
|
22
|
+
new (input: GetDeploymentCommandInput): import("@smithy/core/client").CommandImpl<GetDeploymentCommandInput, GetDeploymentCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetDeploymentCommandInput): import("@smithy/core/client").CommandImpl<GetDeploymentCommandInput, GetDeploymentCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves the details of the specified deployment, including coverage information and any warnings.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { NetworkSecurityManagerClient, GetDeploymentCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, GetDeploymentCommand } = 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 = { // GetDeploymentInput
|
|
37
|
+
* deploymentIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetDeploymentCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // GetDeploymentOutput
|
|
42
|
+
* // deploymentId: "STRING_VALUE", // required
|
|
43
|
+
* // deploymentArn: "STRING_VALUE", // required
|
|
44
|
+
* // deploymentName: "STRING_VALUE", // required
|
|
45
|
+
* // deploymentDescription: "STRING_VALUE",
|
|
46
|
+
* // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
|
|
47
|
+
* // deploymentConfiguration: { // DeploymentConfiguration
|
|
48
|
+
* // enableCrossAccountVisibility: true || false, // required
|
|
49
|
+
* // },
|
|
50
|
+
* // associatedPolicyList: [ // AssociatedPolicyList // required
|
|
51
|
+
* // { // AssociatedPolicy
|
|
52
|
+
* // policyArn: "STRING_VALUE", // required
|
|
53
|
+
* // },
|
|
54
|
+
* // ],
|
|
55
|
+
* // associatedScopeList: [ // AssociatedScopeList // required
|
|
56
|
+
* // { // AssociatedScope
|
|
57
|
+
* // scopeArn: "STRING_VALUE", // required
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // version: "STRING_VALUE", // required
|
|
61
|
+
* // updateToken: "STRING_VALUE",
|
|
62
|
+
* // isSnapshot: true || false,
|
|
63
|
+
* // hasPublishedVersion: true || false,
|
|
64
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
65
|
+
* // deploymentCoverage: [ // DeploymentCoverageList
|
|
66
|
+
* // { // DeploymentCoverageEntry
|
|
67
|
+
* // firewallType: "WAF" || "SHIELD_ADVANCED", // required
|
|
68
|
+
* // policyArns: [ // DeploymentPolicyArnList // required
|
|
69
|
+
* // "STRING_VALUE",
|
|
70
|
+
* // ],
|
|
71
|
+
* // inScopeResourceTypes: [ // DeploymentResourceTypeList // required
|
|
72
|
+
* // "AWS::ApiGateway::Stage" || "AWS::CloudFront::Distribution" || "AWS::EC2::EIP" || "AWS::ElasticLoadBalancingV2::LoadBalancer::application" || "AWS::ElasticLoadBalancing::LoadBalancer",
|
|
73
|
+
* // ],
|
|
74
|
+
* // },
|
|
75
|
+
* // ],
|
|
76
|
+
* // warnings: [ // DeploymentWarningList
|
|
77
|
+
* // { // DeploymentWarningEntry
|
|
78
|
+
* // code: "STRING_VALUE", // required
|
|
79
|
+
* // policyArn: "STRING_VALUE", // required
|
|
80
|
+
* // message: "STRING_VALUE", // required
|
|
81
|
+
* // },
|
|
82
|
+
* // ],
|
|
83
|
+
* // };
|
|
84
|
+
*
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* @param GetDeploymentCommandInput - {@link GetDeploymentCommandInput}
|
|
88
|
+
* @returns {@link GetDeploymentCommandOutput}
|
|
89
|
+
* @see {@link GetDeploymentCommandInput} for command's `input` shape.
|
|
90
|
+
* @see {@link GetDeploymentCommandOutput} for command's `response` shape.
|
|
91
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
94
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link InternalServerException} (server fault)
|
|
97
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
100
|
+
* <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>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
103
|
+
* <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link ValidationException} (client fault)
|
|
106
|
+
* <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link NetworkSecurityManagerServiceException}
|
|
109
|
+
* <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
|
|
110
|
+
*
|
|
111
|
+
*
|
|
112
|
+
* @example Get a deployment
|
|
113
|
+
* ```javascript
|
|
114
|
+
* // Retrieves the current published version of a deployment by its base ARN, including per-firewall-type coverage showing which in-scope resource types each policy protects.
|
|
115
|
+
* const input = {
|
|
116
|
+
* deploymentIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:deployment:def456"
|
|
117
|
+
* };
|
|
118
|
+
* const command = new GetDeploymentCommand(input);
|
|
119
|
+
* const response = await client.send(command);
|
|
120
|
+
* /* response is
|
|
121
|
+
* {
|
|
122
|
+
* associatedPolicyList: [
|
|
123
|
+
* {
|
|
124
|
+
* policyArn: "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789"
|
|
125
|
+
* }
|
|
126
|
+
* ],
|
|
127
|
+
* associatedScopeList: [
|
|
128
|
+
* {
|
|
129
|
+
* scopeArn: "arn:aws:network-security-manager:us-east-1:123456789012:scope:abc123"
|
|
130
|
+
* }
|
|
131
|
+
* ],
|
|
132
|
+
* deploymentArn: "arn:aws:network-security-manager:us-east-1:123456789012:deployment:def456",
|
|
133
|
+
* deploymentConfiguration: {
|
|
134
|
+
* enableCrossAccountVisibility: false
|
|
135
|
+
* },
|
|
136
|
+
* deploymentCoverage: [
|
|
137
|
+
* {
|
|
138
|
+
* firewallType: "WAF",
|
|
139
|
+
* inScopeResourceTypes: [
|
|
140
|
+
* "AWS::ElasticLoadBalancingV2::LoadBalancer::application",
|
|
141
|
+
* "AWS::CloudFront::Distribution"
|
|
142
|
+
* ],
|
|
143
|
+
* policyArns: [
|
|
144
|
+
* "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789"
|
|
145
|
+
* ]
|
|
146
|
+
* }
|
|
147
|
+
* ],
|
|
148
|
+
* deploymentDescription: "Production deployment for US East 1 region",
|
|
149
|
+
* deploymentId: "def456",
|
|
150
|
+
* deploymentName: "prod-us-east-1-deployment",
|
|
151
|
+
* hasPublishedVersion: true,
|
|
152
|
+
* isSnapshot: false,
|
|
153
|
+
* status: "ACTIVE",
|
|
154
|
+
* updateToken: "f4a5b6c7-7d8e-4f9a-8b1c-1d2e3f4a5b6c",
|
|
155
|
+
* version: "1"
|
|
156
|
+
* }
|
|
157
|
+
* *\/
|
|
158
|
+
* ```
|
|
159
|
+
*
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
export declare class GetDeploymentCommand extends GetDeploymentCommand_base {
|
|
163
|
+
/** @internal type navigation helper, not in runtime. */
|
|
164
|
+
protected static __types: {
|
|
165
|
+
api: {
|
|
166
|
+
input: GetDeploymentInput;
|
|
167
|
+
output: GetDeploymentOutput;
|
|
168
|
+
};
|
|
169
|
+
sdk: {
|
|
170
|
+
input: GetDeploymentCommandInput;
|
|
171
|
+
output: GetDeploymentCommandOutput;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetPolicyInput, GetPolicyOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetPolicyCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetPolicyCommandInput extends GetPolicyInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetPolicyCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetPolicyCommandOutput extends GetPolicyOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetPolicyCommand_base: {
|
|
22
|
+
new (input: GetPolicyCommandInput): import("@smithy/core/client").CommandImpl<GetPolicyCommandInput, GetPolicyCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetPolicyCommandInput): import("@smithy/core/client").CommandImpl<GetPolicyCommandInput, GetPolicyCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves the details of 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, GetPolicyCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, GetPolicyCommand } = 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 = { // GetPolicyInput
|
|
37
|
+
* policyIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetPolicyCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // GetPolicyOutput
|
|
42
|
+
* // policyId: "STRING_VALUE", // required
|
|
43
|
+
* // policyArn: "STRING_VALUE", // required
|
|
44
|
+
* // policyName: "STRING_VALUE", // required
|
|
45
|
+
* // policyDescription: "STRING_VALUE",
|
|
46
|
+
* // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
|
|
47
|
+
* // priority: Number("int"), // required
|
|
48
|
+
* // associatedTemplateAndRuleList: [ // AssociatedTemplateAndRuleList // required
|
|
49
|
+
* // { // AssociatedTemplateOrRule Union: only one key present
|
|
50
|
+
* // templateArn: "STRING_VALUE",
|
|
51
|
+
* // ruleArn: "STRING_VALUE",
|
|
52
|
+
* // },
|
|
53
|
+
* // ],
|
|
54
|
+
* // version: "STRING_VALUE", // required
|
|
55
|
+
* // updateToken: "STRING_VALUE",
|
|
56
|
+
* // isSnapshot: true || false,
|
|
57
|
+
* // hasPublishedVersion: true || false,
|
|
58
|
+
* // firewallType: "WAF" || "SHIELD_ADVANCED", // required
|
|
59
|
+
* // policyConfiguration: { // PolicyConfiguration
|
|
60
|
+
* // remediationEnabled: true || false, // required
|
|
61
|
+
* // resourcesCleanUp: true || false, // required
|
|
62
|
+
* // wafConfig: { // WafConfig
|
|
63
|
+
* // existingCustomerWebACLResolution: "RETROFIT" || "OVERRIDE_ASSOCIATION" || "NO_REMEDIATION", // required
|
|
64
|
+
* // conflictResolution: "MERGE_WHERE_APPLICABLE", // required
|
|
65
|
+
* // },
|
|
66
|
+
* // },
|
|
67
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
68
|
+
* // };
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @param GetPolicyCommandInput - {@link GetPolicyCommandInput}
|
|
73
|
+
* @returns {@link GetPolicyCommandOutput}
|
|
74
|
+
* @see {@link GetPolicyCommandInput} for command's `input` shape.
|
|
75
|
+
* @see {@link GetPolicyCommandOutput} for command's `response` shape.
|
|
76
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
79
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link InternalServerException} (server fault)
|
|
82
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
85
|
+
* <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>
|
|
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 Get a policy
|
|
98
|
+
* ```javascript
|
|
99
|
+
* // Retrieves the current published version of a policy by its base ARN, including its associated templates and rules and its enforcement configuration.
|
|
100
|
+
* const input = {
|
|
101
|
+
* policyIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789"
|
|
102
|
+
* };
|
|
103
|
+
* const command = new GetPolicyCommand(input);
|
|
104
|
+
* const response = await client.send(command);
|
|
105
|
+
* /* response is
|
|
106
|
+
* {
|
|
107
|
+
* associatedTemplateAndRuleList: [
|
|
108
|
+
* {
|
|
109
|
+
* templateArn: "arn:aws:network-security-manager:us-east-1:123456789012:template:xyz789"
|
|
110
|
+
* }
|
|
111
|
+
* ],
|
|
112
|
+
* firewallType: "WAF",
|
|
113
|
+
* hasPublishedVersion: true,
|
|
114
|
+
* isSnapshot: false,
|
|
115
|
+
* policyArn: "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789",
|
|
116
|
+
* policyConfiguration: {
|
|
117
|
+
* remediationEnabled: true,
|
|
118
|
+
* resourcesCleanUp: false,
|
|
119
|
+
* wafConfig: {
|
|
120
|
+
* conflictResolution: "MERGE_WHERE_APPLICABLE",
|
|
121
|
+
* existingCustomerWebACLResolution: "NO_REMEDIATION"
|
|
122
|
+
* }
|
|
123
|
+
* },
|
|
124
|
+
* policyDescription: "WAF policy for web application protection",
|
|
125
|
+
* policyId: "xyz789",
|
|
126
|
+
* policyName: "web-app-waf-policy",
|
|
127
|
+
* priority: 1,
|
|
128
|
+
* status: "ACTIVE",
|
|
129
|
+
* updateToken: "e3f4a5b6-6c7d-4e8f-9a0b-0c1d2e3f4a5b",
|
|
130
|
+
* version: "1"
|
|
131
|
+
* }
|
|
132
|
+
* *\/
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
137
|
+
export declare class GetPolicyCommand extends GetPolicyCommand_base {
|
|
138
|
+
/** @internal type navigation helper, not in runtime. */
|
|
139
|
+
protected static __types: {
|
|
140
|
+
api: {
|
|
141
|
+
input: GetPolicyInput;
|
|
142
|
+
output: GetPolicyOutput;
|
|
143
|
+
};
|
|
144
|
+
sdk: {
|
|
145
|
+
input: GetPolicyCommandInput;
|
|
146
|
+
output: GetPolicyCommandOutput;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetRuleInput, GetRuleOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetRuleCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetRuleCommandInput extends GetRuleInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetRuleCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetRuleCommandOutput extends GetRuleOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetRuleCommand_base: {
|
|
22
|
+
new (input: GetRuleCommandInput): import("@smithy/core/client").CommandImpl<GetRuleCommandInput, GetRuleCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetRuleCommandInput): import("@smithy/core/client").CommandImpl<GetRuleCommandInput, GetRuleCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves the details of the specified rule.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { NetworkSecurityManagerClient, GetRuleCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, GetRuleCommand } = 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 = { // GetRuleInput
|
|
37
|
+
* ruleIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetRuleCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // GetRuleOutput
|
|
42
|
+
* // ruleId: "STRING_VALUE", // required
|
|
43
|
+
* // ruleArn: "STRING_VALUE", // required
|
|
44
|
+
* // ruleName: "STRING_VALUE", // required
|
|
45
|
+
* // firewallType: "WAF", // required
|
|
46
|
+
* // ruleType: "CONFIGURATION" || "INSPECTION",
|
|
47
|
+
* // ruleDescription: "STRING_VALUE",
|
|
48
|
+
* // configuration: "DOCUMENT_VALUE", // required
|
|
49
|
+
* // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
|
|
50
|
+
* // version: "STRING_VALUE", // required
|
|
51
|
+
* // updateToken: "STRING_VALUE",
|
|
52
|
+
* // isSnapshot: true || false,
|
|
53
|
+
* // hasPublishedVersion: true || false,
|
|
54
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param GetRuleCommandInput - {@link GetRuleCommandInput}
|
|
60
|
+
* @returns {@link GetRuleCommandOutput}
|
|
61
|
+
* @see {@link GetRuleCommandInput} for command's `input` shape.
|
|
62
|
+
* @see {@link GetRuleCommandOutput} for command's `response` shape.
|
|
63
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
66
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link InternalServerException} (server fault)
|
|
69
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
72
|
+
* <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>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
75
|
+
* <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ValidationException} (client fault)
|
|
78
|
+
* <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link NetworkSecurityManagerServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* @example Get a rule
|
|
85
|
+
* ```javascript
|
|
86
|
+
* // Retrieves the current published version of a rule by its base ARN.
|
|
87
|
+
* const input = {
|
|
88
|
+
* ruleIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123"
|
|
89
|
+
* };
|
|
90
|
+
* const command = new GetRuleCommand(input);
|
|
91
|
+
* const response = await client.send(command);
|
|
92
|
+
* /* response is
|
|
93
|
+
* {
|
|
94
|
+
* configuration: { /* empty *\/ },
|
|
95
|
+
* firewallType: "WAF",
|
|
96
|
+
* hasPublishedVersion: true,
|
|
97
|
+
* isSnapshot: false,
|
|
98
|
+
* ruleArn: "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123",
|
|
99
|
+
* ruleDescription: "Blocks requests from known malicious IP addresses",
|
|
100
|
+
* ruleId: "abc123",
|
|
101
|
+
* ruleName: "block-known-bad-ips",
|
|
102
|
+
* ruleType: "INSPECTION",
|
|
103
|
+
* status: "ACTIVE",
|
|
104
|
+
* updateToken: "c1d2e3f4-4a5b-4c6d-9e7f-8a9b0c1d2e3f",
|
|
105
|
+
* version: "1"
|
|
106
|
+
* }
|
|
107
|
+
* *\/
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @example Get a specific version of a rule
|
|
111
|
+
* ```javascript
|
|
112
|
+
* // Retrieves a specific immutable version (snapshot) of a rule using a version-qualified ARN. The response has isSnapshot set to true. Omitting the version qualifier returns the current published rule instead.
|
|
113
|
+
* const input = {
|
|
114
|
+
* ruleIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123:3"
|
|
115
|
+
* };
|
|
116
|
+
* const command = new GetRuleCommand(input);
|
|
117
|
+
* const response = await client.send(command);
|
|
118
|
+
* /* response is
|
|
119
|
+
* {
|
|
120
|
+
* configuration: { /* empty *\/ },
|
|
121
|
+
* firewallType: "WAF",
|
|
122
|
+
* isSnapshot: true,
|
|
123
|
+
* ruleArn: "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123:3",
|
|
124
|
+
* ruleDescription: "Blocks requests from known malicious IP addresses",
|
|
125
|
+
* ruleId: "abc123",
|
|
126
|
+
* ruleName: "block-known-bad-ips",
|
|
127
|
+
* ruleType: "INSPECTION",
|
|
128
|
+
* status: "ACTIVE",
|
|
129
|
+
* version: "3"
|
|
130
|
+
* }
|
|
131
|
+
* *\/
|
|
132
|
+
* ```
|
|
133
|
+
*
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
export declare class GetRuleCommand extends GetRuleCommand_base {
|
|
137
|
+
/** @internal type navigation helper, not in runtime. */
|
|
138
|
+
protected static __types: {
|
|
139
|
+
api: {
|
|
140
|
+
input: GetRuleInput;
|
|
141
|
+
output: GetRuleOutput;
|
|
142
|
+
};
|
|
143
|
+
sdk: {
|
|
144
|
+
input: GetRuleCommandInput;
|
|
145
|
+
output: GetRuleCommandOutput;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetScopeInput, GetScopeOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetScopeCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetScopeCommandInput extends GetScopeInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetScopeCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetScopeCommandOutput extends GetScopeOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetScopeCommand_base: {
|
|
22
|
+
new (input: GetScopeCommandInput): import("@smithy/core/client").CommandImpl<GetScopeCommandInput, GetScopeCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetScopeCommandInput): import("@smithy/core/client").CommandImpl<GetScopeCommandInput, GetScopeCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves the details 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, GetScopeCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, GetScopeCommand } = 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 = { // GetScopeInput
|
|
37
|
+
* scopeIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetScopeCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // GetScopeOutput
|
|
42
|
+
* // scopeId: "STRING_VALUE", // required
|
|
43
|
+
* // scopeArn: "STRING_VALUE", // required
|
|
44
|
+
* // scopeName: "STRING_VALUE", // required
|
|
45
|
+
* // scopeDescription: "STRING_VALUE",
|
|
46
|
+
* // scopeConfiguration: { // ScopeConfiguration
|
|
47
|
+
* // accountFilter: { // AccountFilter Union: only one key present
|
|
48
|
+
* // includeAll: {},
|
|
49
|
+
* // include: { // AccountSet
|
|
50
|
+
* // accountIds: [ // AccountList
|
|
51
|
+
* // "STRING_VALUE",
|
|
52
|
+
* // ],
|
|
53
|
+
* // organizationalUnits: [ // OrganizationalUnitList
|
|
54
|
+
* // "STRING_VALUE",
|
|
55
|
+
* // ],
|
|
56
|
+
* // },
|
|
57
|
+
* // exclude: {
|
|
58
|
+
* // accountIds: [
|
|
59
|
+
* // "STRING_VALUE",
|
|
60
|
+
* // ],
|
|
61
|
+
* // organizationalUnits: [
|
|
62
|
+
* // "STRING_VALUE",
|
|
63
|
+
* // ],
|
|
64
|
+
* // },
|
|
65
|
+
* // },
|
|
66
|
+
* // resourceScopes: { // ResourceScopeMap // required
|
|
67
|
+
* // "<keys>": { // ResourceScope
|
|
68
|
+
* // includeAll: true || false,
|
|
69
|
+
* // include: { // ResourceSet
|
|
70
|
+
* // explicitArns: [ // ResourceArnList
|
|
71
|
+
* // "STRING_VALUE",
|
|
72
|
+
* // ],
|
|
73
|
+
* // expression: { // ResourceLogicalExpression Union: only one key present
|
|
74
|
+
* // criteria: { // ResourceCriteria Union: only one key present
|
|
75
|
+
* // tags: { // StringMap
|
|
76
|
+
* // "<keys>": "STRING_VALUE",
|
|
77
|
+
* // },
|
|
78
|
+
* // albConfig: { // AlbConfiguration
|
|
79
|
+
* // scheme: "internet-facing" || "internal",
|
|
80
|
+
* // ipAddressType: "ipv4" || "dualstack" || "dualstack-without-public-ipv4",
|
|
81
|
+
* // },
|
|
82
|
+
* // },
|
|
83
|
+
* // and: [ // ResourceLogicalExpressionList
|
|
84
|
+
* // {// Union: only one key present
|
|
85
|
+
* // criteria: {// Union: only one key present
|
|
86
|
+
* // tags: {
|
|
87
|
+
* // "<keys>": "STRING_VALUE",
|
|
88
|
+
* // },
|
|
89
|
+
* // albConfig: {
|
|
90
|
+
* // scheme: "internet-facing" || "internal",
|
|
91
|
+
* // ipAddressType: "ipv4" || "dualstack" || "dualstack-without-public-ipv4",
|
|
92
|
+
* // },
|
|
93
|
+
* // },
|
|
94
|
+
* // and: [
|
|
95
|
+
* // "<ResourceLogicalExpression>",
|
|
96
|
+
* // ],
|
|
97
|
+
* // or: [
|
|
98
|
+
* // "<ResourceLogicalExpression>",
|
|
99
|
+
* // ],
|
|
100
|
+
* // not: "<ResourceLogicalExpression>",
|
|
101
|
+
* // },
|
|
102
|
+
* // ],
|
|
103
|
+
* // or: [
|
|
104
|
+
* // "<ResourceLogicalExpression>",
|
|
105
|
+
* // ],
|
|
106
|
+
* // not: "<ResourceLogicalExpression>",
|
|
107
|
+
* // },
|
|
108
|
+
* // },
|
|
109
|
+
* // exclude: {
|
|
110
|
+
* // explicitArns: [
|
|
111
|
+
* // "STRING_VALUE",
|
|
112
|
+
* // ],
|
|
113
|
+
* // expression: "<ResourceLogicalExpression>",
|
|
114
|
+
* // },
|
|
115
|
+
* // },
|
|
116
|
+
* // },
|
|
117
|
+
* // },
|
|
118
|
+
* // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
|
|
119
|
+
* // version: "STRING_VALUE", // required
|
|
120
|
+
* // updateToken: "STRING_VALUE",
|
|
121
|
+
* // isSnapshot: true || false,
|
|
122
|
+
* // hasPublishedVersion: true || false,
|
|
123
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
124
|
+
* // };
|
|
125
|
+
*
|
|
126
|
+
* ```
|
|
127
|
+
*
|
|
128
|
+
* @param GetScopeCommandInput - {@link GetScopeCommandInput}
|
|
129
|
+
* @returns {@link GetScopeCommandOutput}
|
|
130
|
+
* @see {@link GetScopeCommandInput} for command's `input` shape.
|
|
131
|
+
* @see {@link GetScopeCommandOutput} for command's `response` shape.
|
|
132
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
135
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
136
|
+
*
|
|
137
|
+
* @throws {@link InternalServerException} (server fault)
|
|
138
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
139
|
+
*
|
|
140
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
141
|
+
* <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>
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
144
|
+
* <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
|
|
145
|
+
*
|
|
146
|
+
* @throws {@link ValidationException} (client fault)
|
|
147
|
+
* <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
|
|
148
|
+
*
|
|
149
|
+
* @throws {@link NetworkSecurityManagerServiceException}
|
|
150
|
+
* <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
|
|
151
|
+
*
|
|
152
|
+
*
|
|
153
|
+
* @example Get a scope
|
|
154
|
+
* ```javascript
|
|
155
|
+
* // Retrieves the current published version of a scope by its base ARN.
|
|
156
|
+
* const input = {
|
|
157
|
+
* scopeIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:scope:abc123"
|
|
158
|
+
* };
|
|
159
|
+
* const command = new GetScopeCommand(input);
|
|
160
|
+
* const response = await client.send(command);
|
|
161
|
+
* /* response is
|
|
162
|
+
* {
|
|
163
|
+
* hasPublishedVersion: true,
|
|
164
|
+
* isSnapshot: false,
|
|
165
|
+
* scopeArn: "arn:aws:network-security-manager:us-east-1:123456789012:scope:abc123",
|
|
166
|
+
* scopeConfiguration: {
|
|
167
|
+
* accountFilter: {
|
|
168
|
+
* includeAll: { /* empty *\/ }
|
|
169
|
+
* },
|
|
170
|
+
* resourceScopes: { /* empty *\/ }
|
|
171
|
+
* },
|
|
172
|
+
* scopeDescription: "Scope covering all production web application resources",
|
|
173
|
+
* scopeId: "abc123",
|
|
174
|
+
* scopeName: "production-web-apps",
|
|
175
|
+
* status: "ACTIVE",
|
|
176
|
+
* updateToken: "b0c4d1e2-3f4a-4b5c-8d6e-7f8a9b0c1d2e",
|
|
177
|
+
* version: "1"
|
|
178
|
+
* }
|
|
179
|
+
* *\/
|
|
180
|
+
* ```
|
|
181
|
+
*
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
export declare class GetScopeCommand extends GetScopeCommand_base {
|
|
185
|
+
/** @internal type navigation helper, not in runtime. */
|
|
186
|
+
protected static __types: {
|
|
187
|
+
api: {
|
|
188
|
+
input: GetScopeInput;
|
|
189
|
+
output: GetScopeOutput;
|
|
190
|
+
};
|
|
191
|
+
sdk: {
|
|
192
|
+
input: GetScopeCommandInput;
|
|
193
|
+
output: GetScopeCommandOutput;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
}
|