@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,214 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { UpdateDeploymentInput, UpdateDeploymentOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link UpdateDeploymentCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface UpdateDeploymentCommandInput extends UpdateDeploymentInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link UpdateDeploymentCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateDeploymentCommandOutput extends UpdateDeploymentOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const UpdateDeploymentCommand_base: {
|
|
22
|
+
new (input: UpdateDeploymentCommandInput): import("@smithy/core/client").CommandImpl<UpdateDeploymentCommandInput, UpdateDeploymentCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: UpdateDeploymentCommandInput): import("@smithy/core/client").CommandImpl<UpdateDeploymentCommandInput, UpdateDeploymentCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Updates the specified deployment. To prevent conflicting concurrent updates, provide the current <code>updateToken</code>. Use <code>isPublished</code> to publish the update or keep the deployment as a draft.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { NetworkSecurityManagerClient, UpdateDeploymentCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, UpdateDeploymentCommand } = 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 = { // UpdateDeploymentInput
|
|
37
|
+
* deploymentIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* updateToken: "STRING_VALUE", // required
|
|
39
|
+
* deploymentDescription: "STRING_VALUE",
|
|
40
|
+
* deploymentConfiguration: { // DeploymentConfiguration
|
|
41
|
+
* enableCrossAccountVisibility: true || false, // required
|
|
42
|
+
* },
|
|
43
|
+
* associatedPolicyList: [ // PolicyReferenceList
|
|
44
|
+
* { // PolicyReference
|
|
45
|
+
* policyIdentifier: "STRING_VALUE", // required
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
48
|
+
* associatedScopeList: [ // ScopeReferenceList
|
|
49
|
+
* { // ScopeReference
|
|
50
|
+
* scopeIdentifier: "STRING_VALUE", // required
|
|
51
|
+
* },
|
|
52
|
+
* ],
|
|
53
|
+
* isPublished: true || false, // required
|
|
54
|
+
* clientToken: "STRING_VALUE",
|
|
55
|
+
* };
|
|
56
|
+
* const command = new UpdateDeploymentCommand(input);
|
|
57
|
+
* const response = await client.send(command);
|
|
58
|
+
* // { // UpdateDeploymentOutput
|
|
59
|
+
* // deploymentId: "STRING_VALUE", // required
|
|
60
|
+
* // deploymentArn: "STRING_VALUE", // required
|
|
61
|
+
* // deploymentName: "STRING_VALUE", // required
|
|
62
|
+
* // deploymentDescription: "STRING_VALUE",
|
|
63
|
+
* // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
|
|
64
|
+
* // deploymentConfiguration: { // DeploymentConfiguration
|
|
65
|
+
* // enableCrossAccountVisibility: true || false, // required
|
|
66
|
+
* // },
|
|
67
|
+
* // associatedPolicyList: [ // AssociatedPolicyList // required
|
|
68
|
+
* // { // AssociatedPolicy
|
|
69
|
+
* // policyArn: "STRING_VALUE", // required
|
|
70
|
+
* // },
|
|
71
|
+
* // ],
|
|
72
|
+
* // associatedScopeList: [ // AssociatedScopeList // required
|
|
73
|
+
* // { // AssociatedScope
|
|
74
|
+
* // scopeArn: "STRING_VALUE", // required
|
|
75
|
+
* // },
|
|
76
|
+
* // ],
|
|
77
|
+
* // version: "STRING_VALUE", // required
|
|
78
|
+
* // updateToken: "STRING_VALUE",
|
|
79
|
+
* // isSnapshot: true || false,
|
|
80
|
+
* // hasPublishedVersion: true || false,
|
|
81
|
+
* // deploymentCoverage: [ // DeploymentCoverageList
|
|
82
|
+
* // { // DeploymentCoverageEntry
|
|
83
|
+
* // firewallType: "WAF" || "SHIELD_ADVANCED", // required
|
|
84
|
+
* // policyArns: [ // DeploymentPolicyArnList // required
|
|
85
|
+
* // "STRING_VALUE",
|
|
86
|
+
* // ],
|
|
87
|
+
* // inScopeResourceTypes: [ // DeploymentResourceTypeList // required
|
|
88
|
+
* // "AWS::ApiGateway::Stage" || "AWS::CloudFront::Distribution" || "AWS::EC2::EIP" || "AWS::ElasticLoadBalancingV2::LoadBalancer::application" || "AWS::ElasticLoadBalancing::LoadBalancer",
|
|
89
|
+
* // ],
|
|
90
|
+
* // },
|
|
91
|
+
* // ],
|
|
92
|
+
* // warnings: [ // DeploymentWarningList
|
|
93
|
+
* // { // DeploymentWarningEntry
|
|
94
|
+
* // code: "STRING_VALUE", // required
|
|
95
|
+
* // policyArn: "STRING_VALUE", // required
|
|
96
|
+
* // message: "STRING_VALUE", // required
|
|
97
|
+
* // },
|
|
98
|
+
* // ],
|
|
99
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
100
|
+
* // };
|
|
101
|
+
*
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* @param UpdateDeploymentCommandInput - {@link UpdateDeploymentCommandInput}
|
|
105
|
+
* @returns {@link UpdateDeploymentCommandOutput}
|
|
106
|
+
* @see {@link UpdateDeploymentCommandInput} for command's `input` shape.
|
|
107
|
+
* @see {@link UpdateDeploymentCommandOutput} for command's `response` shape.
|
|
108
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
111
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
112
|
+
*
|
|
113
|
+
* @throws {@link ConflictException} (client fault)
|
|
114
|
+
* <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>
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link InternalServerException} (server fault)
|
|
117
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
120
|
+
* <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>
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
123
|
+
* <p>The request would exceed a service quota.</p>
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
126
|
+
* <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link ValidationException} (client fault)
|
|
129
|
+
* <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
|
|
130
|
+
*
|
|
131
|
+
* @throws {@link NetworkSecurityManagerServiceException}
|
|
132
|
+
* <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
|
|
133
|
+
*
|
|
134
|
+
*
|
|
135
|
+
* @example Update a deployment and publish it
|
|
136
|
+
* ```javascript
|
|
137
|
+
* // Updates the deployment's associations and publishes the change. The response includes deploymentCoverage showing which resource types the associated policies can protect. The updateToken from the most recent read is required for optimistic locking.
|
|
138
|
+
* const input = {
|
|
139
|
+
* associatedPolicyList: [
|
|
140
|
+
* {
|
|
141
|
+
* policyIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789"
|
|
142
|
+
* }
|
|
143
|
+
* ],
|
|
144
|
+
* associatedScopeList: [
|
|
145
|
+
* {
|
|
146
|
+
* scopeIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:scope:abc123"
|
|
147
|
+
* }
|
|
148
|
+
* ],
|
|
149
|
+
* deploymentConfiguration: {
|
|
150
|
+
* enableCrossAccountVisibility: true
|
|
151
|
+
* },
|
|
152
|
+
* deploymentDescription: "Production deployment for US East 1 region - updated",
|
|
153
|
+
* deploymentIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:deployment:def456",
|
|
154
|
+
* isPublished: true,
|
|
155
|
+
* updateToken: "f4a5b6c7-7d8e-4f9a-8b1c-1d2e3f4a5b6c"
|
|
156
|
+
* };
|
|
157
|
+
* const command = new UpdateDeploymentCommand(input);
|
|
158
|
+
* const response = await client.send(command);
|
|
159
|
+
* /* response is
|
|
160
|
+
* {
|
|
161
|
+
* associatedPolicyList: [
|
|
162
|
+
* {
|
|
163
|
+
* policyArn: "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789"
|
|
164
|
+
* }
|
|
165
|
+
* ],
|
|
166
|
+
* associatedScopeList: [
|
|
167
|
+
* {
|
|
168
|
+
* scopeArn: "arn:aws:network-security-manager:us-east-1:123456789012:scope:abc123"
|
|
169
|
+
* }
|
|
170
|
+
* ],
|
|
171
|
+
* deploymentArn: "arn:aws:network-security-manager:us-east-1:123456789012:deployment:def456",
|
|
172
|
+
* deploymentConfiguration: {
|
|
173
|
+
* enableCrossAccountVisibility: true
|
|
174
|
+
* },
|
|
175
|
+
* deploymentCoverage: [
|
|
176
|
+
* {
|
|
177
|
+
* firewallType: "WAF",
|
|
178
|
+
* inScopeResourceTypes: [
|
|
179
|
+
* "AWS::ElasticLoadBalancingV2::LoadBalancer::application",
|
|
180
|
+
* "AWS::CloudFront::Distribution"
|
|
181
|
+
* ],
|
|
182
|
+
* policyArns: [
|
|
183
|
+
* "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789"
|
|
184
|
+
* ]
|
|
185
|
+
* }
|
|
186
|
+
* ],
|
|
187
|
+
* deploymentDescription: "Production deployment for US East 1 region - updated",
|
|
188
|
+
* deploymentId: "def456",
|
|
189
|
+
* deploymentName: "prod-us-east-1-deployment",
|
|
190
|
+
* hasPublishedVersion: true,
|
|
191
|
+
* isSnapshot: false,
|
|
192
|
+
* status: "ACTIVE",
|
|
193
|
+
* updateToken: "a5b6c7d8-8e9f-4a0b-9c1d-2e3f4a5b6c7d",
|
|
194
|
+
* updatedAt: "2026-08-20T12:00:00Z",
|
|
195
|
+
* version: "2"
|
|
196
|
+
* }
|
|
197
|
+
* *\/
|
|
198
|
+
* ```
|
|
199
|
+
*
|
|
200
|
+
* @public
|
|
201
|
+
*/
|
|
202
|
+
export declare class UpdateDeploymentCommand extends UpdateDeploymentCommand_base {
|
|
203
|
+
/** @internal type navigation helper, not in runtime. */
|
|
204
|
+
protected static __types: {
|
|
205
|
+
api: {
|
|
206
|
+
input: UpdateDeploymentInput;
|
|
207
|
+
output: UpdateDeploymentOutput;
|
|
208
|
+
};
|
|
209
|
+
sdk: {
|
|
210
|
+
input: UpdateDeploymentCommandInput;
|
|
211
|
+
output: UpdateDeploymentCommandOutput;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { UpdatePolicyInput, UpdatePolicyOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link UpdatePolicyCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface UpdatePolicyCommandInput extends UpdatePolicyInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link UpdatePolicyCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdatePolicyCommandOutput extends UpdatePolicyOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const UpdatePolicyCommand_base: {
|
|
22
|
+
new (input: UpdatePolicyCommandInput): import("@smithy/core/client").CommandImpl<UpdatePolicyCommandInput, UpdatePolicyCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: UpdatePolicyCommandInput): import("@smithy/core/client").CommandImpl<UpdatePolicyCommandInput, UpdatePolicyCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Updates the specified policy. To prevent conflicting concurrent updates, provide the current <code>updateToken</code>. Use <code>isPublished</code> to publish the update or keep the policy as a draft.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { NetworkSecurityManagerClient, UpdatePolicyCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, UpdatePolicyCommand } = 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 = { // UpdatePolicyInput
|
|
37
|
+
* policyIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* updateToken: "STRING_VALUE", // required
|
|
39
|
+
* policyDescription: "STRING_VALUE",
|
|
40
|
+
* priority: Number("int"),
|
|
41
|
+
* associatedTemplateAndRuleList: [ // TemplateAndRuleReferenceList
|
|
42
|
+
* { // TemplateOrRuleReference Union: only one key present
|
|
43
|
+
* templateIdentifier: "STRING_VALUE",
|
|
44
|
+
* ruleIdentifier: "STRING_VALUE",
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* policyConfiguration: { // PolicyConfiguration
|
|
48
|
+
* remediationEnabled: true || false, // required
|
|
49
|
+
* resourcesCleanUp: true || false, // required
|
|
50
|
+
* wafConfig: { // WafConfig
|
|
51
|
+
* existingCustomerWebACLResolution: "RETROFIT" || "OVERRIDE_ASSOCIATION" || "NO_REMEDIATION", // required
|
|
52
|
+
* conflictResolution: "MERGE_WHERE_APPLICABLE", // required
|
|
53
|
+
* },
|
|
54
|
+
* },
|
|
55
|
+
* isPublished: true || false, // required
|
|
56
|
+
* clientToken: "STRING_VALUE",
|
|
57
|
+
* };
|
|
58
|
+
* const command = new UpdatePolicyCommand(input);
|
|
59
|
+
* const response = await client.send(command);
|
|
60
|
+
* // { // UpdatePolicyOutput
|
|
61
|
+
* // policyId: "STRING_VALUE", // required
|
|
62
|
+
* // policyArn: "STRING_VALUE", // required
|
|
63
|
+
* // policyName: "STRING_VALUE", // required
|
|
64
|
+
* // policyDescription: "STRING_VALUE",
|
|
65
|
+
* // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
|
|
66
|
+
* // priority: Number("int"), // required
|
|
67
|
+
* // associatedTemplateAndRuleList: [ // AssociatedTemplateAndRuleList // required
|
|
68
|
+
* // { // AssociatedTemplateOrRule Union: only one key present
|
|
69
|
+
* // templateArn: "STRING_VALUE",
|
|
70
|
+
* // ruleArn: "STRING_VALUE",
|
|
71
|
+
* // },
|
|
72
|
+
* // ],
|
|
73
|
+
* // version: "STRING_VALUE", // required
|
|
74
|
+
* // updateToken: "STRING_VALUE",
|
|
75
|
+
* // isSnapshot: true || false,
|
|
76
|
+
* // hasPublishedVersion: true || false,
|
|
77
|
+
* // firewallType: "WAF" || "SHIELD_ADVANCED", // required
|
|
78
|
+
* // policyConfiguration: { // PolicyConfiguration
|
|
79
|
+
* // remediationEnabled: true || false, // required
|
|
80
|
+
* // resourcesCleanUp: true || false, // required
|
|
81
|
+
* // wafConfig: { // WafConfig
|
|
82
|
+
* // existingCustomerWebACLResolution: "RETROFIT" || "OVERRIDE_ASSOCIATION" || "NO_REMEDIATION", // required
|
|
83
|
+
* // conflictResolution: "MERGE_WHERE_APPLICABLE", // required
|
|
84
|
+
* // },
|
|
85
|
+
* // },
|
|
86
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
87
|
+
* // };
|
|
88
|
+
*
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* @param UpdatePolicyCommandInput - {@link UpdatePolicyCommandInput}
|
|
92
|
+
* @returns {@link UpdatePolicyCommandOutput}
|
|
93
|
+
* @see {@link UpdatePolicyCommandInput} for command's `input` shape.
|
|
94
|
+
* @see {@link UpdatePolicyCommandOutput} for command's `response` shape.
|
|
95
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
98
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ConflictException} (client fault)
|
|
101
|
+
* <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>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link InternalServerException} (server fault)
|
|
104
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
107
|
+
* <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>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
110
|
+
* <p>The request would exceed a service quota.</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
113
|
+
* <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link ValidationException} (client fault)
|
|
116
|
+
* <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link NetworkSecurityManagerServiceException}
|
|
119
|
+
* <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
|
|
120
|
+
*
|
|
121
|
+
*
|
|
122
|
+
* @example Update a policy and publish it
|
|
123
|
+
* ```javascript
|
|
124
|
+
* // Updates the policy's description, priority, and configuration and publishes the change. The updateToken from the most recent read is required for optimistic locking.
|
|
125
|
+
* const input = {
|
|
126
|
+
* associatedTemplateAndRuleList: [
|
|
127
|
+
* {
|
|
128
|
+
* templateIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:template:xyz789"
|
|
129
|
+
* }
|
|
130
|
+
* ],
|
|
131
|
+
* isPublished: true,
|
|
132
|
+
* policyConfiguration: {
|
|
133
|
+
* remediationEnabled: true,
|
|
134
|
+
* resourcesCleanUp: false,
|
|
135
|
+
* wafConfig: {
|
|
136
|
+
* conflictResolution: "MERGE_WHERE_APPLICABLE",
|
|
137
|
+
* existingCustomerWebACLResolution: "NO_REMEDIATION"
|
|
138
|
+
* }
|
|
139
|
+
* },
|
|
140
|
+
* policyDescription: "WAF policy for web application protection - updated",
|
|
141
|
+
* policyIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789",
|
|
142
|
+
* priority: 2,
|
|
143
|
+
* updateToken: "e3f4a5b6-6c7d-4e8f-9a0b-0c1d2e3f4a5b"
|
|
144
|
+
* };
|
|
145
|
+
* const command = new UpdatePolicyCommand(input);
|
|
146
|
+
* const response = await client.send(command);
|
|
147
|
+
* /* response is
|
|
148
|
+
* {
|
|
149
|
+
* associatedTemplateAndRuleList: [
|
|
150
|
+
* {
|
|
151
|
+
* templateArn: "arn:aws:network-security-manager:us-east-1:123456789012:template:xyz789"
|
|
152
|
+
* }
|
|
153
|
+
* ],
|
|
154
|
+
* firewallType: "WAF",
|
|
155
|
+
* hasPublishedVersion: true,
|
|
156
|
+
* isSnapshot: false,
|
|
157
|
+
* policyArn: "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789",
|
|
158
|
+
* policyConfiguration: {
|
|
159
|
+
* remediationEnabled: true,
|
|
160
|
+
* resourcesCleanUp: false,
|
|
161
|
+
* wafConfig: {
|
|
162
|
+
* conflictResolution: "MERGE_WHERE_APPLICABLE",
|
|
163
|
+
* existingCustomerWebACLResolution: "NO_REMEDIATION"
|
|
164
|
+
* }
|
|
165
|
+
* },
|
|
166
|
+
* policyDescription: "WAF policy for web application protection - updated",
|
|
167
|
+
* policyId: "xyz789",
|
|
168
|
+
* policyName: "web-app-waf-policy",
|
|
169
|
+
* priority: 2,
|
|
170
|
+
* status: "ACTIVE",
|
|
171
|
+
* updateToken: "f4a5b6c7-7d8e-4f9a-8b1c-1d2e3f4a5b6c",
|
|
172
|
+
* updatedAt: "2026-08-20T12:00:00Z",
|
|
173
|
+
* version: "2"
|
|
174
|
+
* }
|
|
175
|
+
* *\/
|
|
176
|
+
* ```
|
|
177
|
+
*
|
|
178
|
+
* @public
|
|
179
|
+
*/
|
|
180
|
+
export declare class UpdatePolicyCommand extends UpdatePolicyCommand_base {
|
|
181
|
+
/** @internal type navigation helper, not in runtime. */
|
|
182
|
+
protected static __types: {
|
|
183
|
+
api: {
|
|
184
|
+
input: UpdatePolicyInput;
|
|
185
|
+
output: UpdatePolicyOutput;
|
|
186
|
+
};
|
|
187
|
+
sdk: {
|
|
188
|
+
input: UpdatePolicyCommandInput;
|
|
189
|
+
output: UpdatePolicyCommandOutput;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { UpdateRuleInput, UpdateRuleOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link UpdateRuleCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface UpdateRuleCommandInput extends UpdateRuleInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link UpdateRuleCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateRuleCommandOutput extends UpdateRuleOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const UpdateRuleCommand_base: {
|
|
22
|
+
new (input: UpdateRuleCommandInput): import("@smithy/core/client").CommandImpl<UpdateRuleCommandInput, UpdateRuleCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: UpdateRuleCommandInput): import("@smithy/core/client").CommandImpl<UpdateRuleCommandInput, UpdateRuleCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Updates the specified rule. To prevent conflicting concurrent updates, provide the current <code>updateToken</code>. Use <code>isPublished</code> to publish the update or keep the rule as a draft.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { NetworkSecurityManagerClient, UpdateRuleCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
|
|
32
|
+
* // const { NetworkSecurityManagerClient, UpdateRuleCommand } = 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 = { // UpdateRuleInput
|
|
37
|
+
* ruleIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* updateToken: "STRING_VALUE", // required
|
|
39
|
+
* ruleType: "CONFIGURATION" || "INSPECTION",
|
|
40
|
+
* ruleDescription: "STRING_VALUE",
|
|
41
|
+
* configuration: "DOCUMENT_VALUE",
|
|
42
|
+
* isPublished: true || false, // required
|
|
43
|
+
* clientToken: "STRING_VALUE",
|
|
44
|
+
* };
|
|
45
|
+
* const command = new UpdateRuleCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // UpdateRuleOutput
|
|
48
|
+
* // ruleId: "STRING_VALUE", // required
|
|
49
|
+
* // ruleArn: "STRING_VALUE", // required
|
|
50
|
+
* // ruleName: "STRING_VALUE", // required
|
|
51
|
+
* // firewallType: "WAF", // required
|
|
52
|
+
* // ruleType: "CONFIGURATION" || "INSPECTION",
|
|
53
|
+
* // ruleDescription: "STRING_VALUE",
|
|
54
|
+
* // configuration: "DOCUMENT_VALUE", // required
|
|
55
|
+
* // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
|
|
56
|
+
* // version: "STRING_VALUE", // required
|
|
57
|
+
* // updateToken: "STRING_VALUE",
|
|
58
|
+
* // isSnapshot: true || false,
|
|
59
|
+
* // hasPublishedVersion: true || false,
|
|
60
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param UpdateRuleCommandInput - {@link UpdateRuleCommandInput}
|
|
66
|
+
* @returns {@link UpdateRuleCommandOutput}
|
|
67
|
+
* @see {@link UpdateRuleCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link UpdateRuleCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
72
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ConflictException} (client fault)
|
|
75
|
+
* <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>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link InternalServerException} (server fault)
|
|
78
|
+
* <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
81
|
+
* <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>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
84
|
+
* <p>The request would exceed a service quota.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
87
|
+
* <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ValidationException} (client fault)
|
|
90
|
+
* <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link NetworkSecurityManagerServiceException}
|
|
93
|
+
* <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
|
|
94
|
+
*
|
|
95
|
+
*
|
|
96
|
+
* @example Update a rule and publish it
|
|
97
|
+
* ```javascript
|
|
98
|
+
* // Updates the rule's description and configuration and publishes the change. The updateToken from the most recent read is required for optimistic locking.
|
|
99
|
+
* const input = {
|
|
100
|
+
* configuration: { /* empty *\/ },
|
|
101
|
+
* isPublished: true,
|
|
102
|
+
* ruleDescription: "Blocks requests from known malicious IP addresses - updated list",
|
|
103
|
+
* ruleIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123",
|
|
104
|
+
* ruleType: "INSPECTION",
|
|
105
|
+
* updateToken: "c1d2e3f4-4a5b-4c6d-9e7f-8a9b0c1d2e3f"
|
|
106
|
+
* };
|
|
107
|
+
* const command = new UpdateRuleCommand(input);
|
|
108
|
+
* const response = await client.send(command);
|
|
109
|
+
* /* response is
|
|
110
|
+
* {
|
|
111
|
+
* configuration: { /* empty *\/ },
|
|
112
|
+
* firewallType: "WAF",
|
|
113
|
+
* hasPublishedVersion: true,
|
|
114
|
+
* isSnapshot: false,
|
|
115
|
+
* ruleArn: "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123",
|
|
116
|
+
* ruleDescription: "Blocks requests from known malicious IP addresses - updated list",
|
|
117
|
+
* ruleId: "abc123",
|
|
118
|
+
* ruleName: "block-known-bad-ips",
|
|
119
|
+
* ruleType: "INSPECTION",
|
|
120
|
+
* status: "ACTIVE",
|
|
121
|
+
* updateToken: "d2e3f4a5-5b6c-4d7e-8f9a-9b0c1d2e3f4a",
|
|
122
|
+
* updatedAt: "2026-08-20T12:00:00Z",
|
|
123
|
+
* version: "2"
|
|
124
|
+
* }
|
|
125
|
+
* *\/
|
|
126
|
+
* ```
|
|
127
|
+
*
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
export declare class UpdateRuleCommand extends UpdateRuleCommand_base {
|
|
131
|
+
/** @internal type navigation helper, not in runtime. */
|
|
132
|
+
protected static __types: {
|
|
133
|
+
api: {
|
|
134
|
+
input: UpdateRuleInput;
|
|
135
|
+
output: UpdateRuleOutput;
|
|
136
|
+
};
|
|
137
|
+
sdk: {
|
|
138
|
+
input: UpdateRuleCommandInput;
|
|
139
|
+
output: UpdateRuleCommandOutput;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
}
|