@aws-sdk/client-ec2 3.451.0 → 3.452.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/README.md +24 -0
- package/dist-cjs/EC2.js +6 -0
- package/dist-cjs/commands/DescribeLockedSnapshotsCommand.js +51 -0
- package/dist-cjs/commands/LockSnapshotCommand.js +51 -0
- package/dist-cjs/commands/RequestSpotInstancesCommand.js +3 -3
- package/dist-cjs/commands/UnlockSnapshotCommand.js +51 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-cjs/models/models_4.js +8 -2
- package/dist-cjs/models/models_6.js +5 -18
- package/dist-cjs/models/models_7.js +20 -1
- package/dist-cjs/protocols/Aws_ec2.js +285 -20
- package/dist-es/EC2.js +6 -0
- package/dist-es/commands/DescribeLockedSnapshotsCommand.js +47 -0
- package/dist-es/commands/LockSnapshotCommand.js +47 -0
- package/dist-es/commands/RequestSpotInstancesCommand.js +1 -1
- package/dist-es/commands/UnlockSnapshotCommand.js +47 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/models/models_4.js +6 -0
- package/dist-es/models/models_6.js +5 -16
- package/dist-es/models/models_7.js +17 -0
- package/dist-es/protocols/Aws_ec2.js +259 -0
- package/dist-types/EC2.d.ts +21 -0
- package/dist-types/EC2Client.d.ts +5 -2
- package/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +2 -2
- package/dist-types/commands/CreateFleetCommand.d.ts +4 -4
- package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +1 -1
- package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +2 -2
- package/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeFleetsCommand.d.ts +4 -4
- package/dist-types/commands/DescribeInstanceTypeOfferingsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstanceTypesCommand.d.ts +2 -2
- package/dist-types/commands/DescribeInstancesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLockedSnapshotsCommand.d.ts +99 -0
- package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeReservedInstancesOfferingsCommand.d.ts +2 -2
- package/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +2 -2
- package/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +2 -2
- package/dist-types/commands/DescribeTransitGatewayMulticastDomainsCommand.d.ts +2 -1
- package/dist-types/commands/DescribeTransitGatewayPeeringAttachmentsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTransitGatewayPolicyTablesCommand.d.ts +1 -2
- package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
- package/dist-types/commands/GetSnapshotBlockPublicAccessStateCommand.d.ts +1 -1
- package/dist-types/commands/GetSpotPlacementScoresCommand.d.ts +1 -2
- package/dist-types/commands/ImportInstanceCommand.d.ts +1 -1
- package/dist-types/commands/LockSnapshotCommand.d.ts +103 -0
- package/dist-types/commands/ModifyFleetCommand.d.ts +1 -1
- package/dist-types/commands/ModifyReservedInstancesCommand.d.ts +1 -1
- package/dist-types/commands/ModifySpotFleetRequestCommand.d.ts +1 -1
- package/dist-types/commands/RequestSpotFleetCommand.d.ts +2 -2
- package/dist-types/commands/RequestSpotInstancesCommand.d.ts +3 -3
- package/dist-types/commands/ResetAddressAttributeCommand.d.ts +1 -1
- package/dist-types/commands/ResetEbsDefaultKmsKeyIdCommand.d.ts +1 -1
- package/dist-types/commands/RunInstancesCommand.d.ts +2 -2
- package/dist-types/commands/UnlockSnapshotCommand.d.ts +76 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +1 -0
- package/dist-types/models/models_4.d.ts +154 -129
- package/dist-types/models/models_5.d.ts +130 -137
- package/dist-types/models/models_6.d.ts +309 -210
- package/dist-types/models/models_7.d.ts +235 -3
- package/dist-types/protocols/Aws_ec2.d.ts +27 -0
- package/dist-types/ts3.4/EC2.d.ts +51 -0
- package/dist-types/ts3.4/EC2Client.d.ts +18 -0
- package/dist-types/ts3.4/commands/DescribeLockedSnapshotsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeTransitGatewayMulticastDomainsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DescribeTransitGatewayPeeringAttachmentsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeTransitGatewayPolicyTablesCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/GetSnapshotBlockPublicAccessStateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetSpotPlacementScoresCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/LockSnapshotCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/RequestSpotInstancesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ResetAddressAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ResetEbsDefaultKmsKeyIdCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UnlockSnapshotCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/dist-types/ts3.4/models/models_4.d.ts +29 -24
- package/dist-types/ts3.4/models/models_5.d.ts +24 -23
- package/dist-types/ts3.4/models/models_6.d.ts +51 -47
- package/dist-types/ts3.4/models/models_7.d.ts +54 -1
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +36 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2532,6 +2532,14 @@ DescribeLocalGatewayVirtualInterfaces
|
|
|
2532
2532
|
|
|
2533
2533
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/describelocalgatewayvirtualinterfacescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/describelocalgatewayvirtualinterfacescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/describelocalgatewayvirtualinterfacescommandoutput.html)
|
|
2534
2534
|
|
|
2535
|
+
</details>
|
|
2536
|
+
<details>
|
|
2537
|
+
<summary>
|
|
2538
|
+
DescribeLockedSnapshots
|
|
2539
|
+
</summary>
|
|
2540
|
+
|
|
2541
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/describelockedsnapshotscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/describelockedsnapshotscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/describelockedsnapshotscommandoutput.html)
|
|
2542
|
+
|
|
2535
2543
|
</details>
|
|
2536
2544
|
<details>
|
|
2537
2545
|
<summary>
|
|
@@ -4020,6 +4028,14 @@ ListSnapshotsInRecycleBin
|
|
|
4020
4028
|
|
|
4021
4029
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/listsnapshotsinrecyclebincommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/listsnapshotsinrecyclebincommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/listsnapshotsinrecyclebincommandoutput.html)
|
|
4022
4030
|
|
|
4031
|
+
</details>
|
|
4032
|
+
<details>
|
|
4033
|
+
<summary>
|
|
4034
|
+
LockSnapshot
|
|
4035
|
+
</summary>
|
|
4036
|
+
|
|
4037
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/locksnapshotcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/locksnapshotcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/locksnapshotcommandoutput.html)
|
|
4038
|
+
|
|
4023
4039
|
</details>
|
|
4024
4040
|
<details>
|
|
4025
4041
|
<summary>
|
|
@@ -5044,6 +5060,14 @@ UnassignPrivateNatGatewayAddress
|
|
|
5044
5060
|
|
|
5045
5061
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/unassignprivatenatgatewayaddresscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/unassignprivatenatgatewayaddresscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/unassignprivatenatgatewayaddresscommandoutput.html)
|
|
5046
5062
|
|
|
5063
|
+
</details>
|
|
5064
|
+
<details>
|
|
5065
|
+
<summary>
|
|
5066
|
+
UnlockSnapshot
|
|
5067
|
+
</summary>
|
|
5068
|
+
|
|
5069
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/unlocksnapshotcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/unlocksnapshotcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/unlocksnapshotcommandoutput.html)
|
|
5070
|
+
|
|
5047
5071
|
</details>
|
|
5048
5072
|
<details>
|
|
5049
5073
|
<summary>
|
package/dist-cjs/EC2.js
CHANGED
|
@@ -290,6 +290,7 @@ const DescribeLocalGatewayRouteTableVpcAssociationsCommand_1 = require("./comman
|
|
|
290
290
|
const DescribeLocalGatewaysCommand_1 = require("./commands/DescribeLocalGatewaysCommand");
|
|
291
291
|
const DescribeLocalGatewayVirtualInterfaceGroupsCommand_1 = require("./commands/DescribeLocalGatewayVirtualInterfaceGroupsCommand");
|
|
292
292
|
const DescribeLocalGatewayVirtualInterfacesCommand_1 = require("./commands/DescribeLocalGatewayVirtualInterfacesCommand");
|
|
293
|
+
const DescribeLockedSnapshotsCommand_1 = require("./commands/DescribeLockedSnapshotsCommand");
|
|
293
294
|
const DescribeManagedPrefixListsCommand_1 = require("./commands/DescribeManagedPrefixListsCommand");
|
|
294
295
|
const DescribeMovingAddressesCommand_1 = require("./commands/DescribeMovingAddressesCommand");
|
|
295
296
|
const DescribeNatGatewaysCommand_1 = require("./commands/DescribeNatGatewaysCommand");
|
|
@@ -476,6 +477,7 @@ const ImportSnapshotCommand_1 = require("./commands/ImportSnapshotCommand");
|
|
|
476
477
|
const ImportVolumeCommand_1 = require("./commands/ImportVolumeCommand");
|
|
477
478
|
const ListImagesInRecycleBinCommand_1 = require("./commands/ListImagesInRecycleBinCommand");
|
|
478
479
|
const ListSnapshotsInRecycleBinCommand_1 = require("./commands/ListSnapshotsInRecycleBinCommand");
|
|
480
|
+
const LockSnapshotCommand_1 = require("./commands/LockSnapshotCommand");
|
|
479
481
|
const ModifyAddressAttributeCommand_1 = require("./commands/ModifyAddressAttributeCommand");
|
|
480
482
|
const ModifyAvailabilityZoneGroupCommand_1 = require("./commands/ModifyAvailabilityZoneGroupCommand");
|
|
481
483
|
const ModifyCapacityReservationCommand_1 = require("./commands/ModifyCapacityReservationCommand");
|
|
@@ -604,6 +606,7 @@ const TerminateInstancesCommand_1 = require("./commands/TerminateInstancesComman
|
|
|
604
606
|
const UnassignIpv6AddressesCommand_1 = require("./commands/UnassignIpv6AddressesCommand");
|
|
605
607
|
const UnassignPrivateIpAddressesCommand_1 = require("./commands/UnassignPrivateIpAddressesCommand");
|
|
606
608
|
const UnassignPrivateNatGatewayAddressCommand_1 = require("./commands/UnassignPrivateNatGatewayAddressCommand");
|
|
609
|
+
const UnlockSnapshotCommand_1 = require("./commands/UnlockSnapshotCommand");
|
|
607
610
|
const UnmonitorInstancesCommand_1 = require("./commands/UnmonitorInstancesCommand");
|
|
608
611
|
const UpdateSecurityGroupRuleDescriptionsEgressCommand_1 = require("./commands/UpdateSecurityGroupRuleDescriptionsEgressCommand");
|
|
609
612
|
const UpdateSecurityGroupRuleDescriptionsIngressCommand_1 = require("./commands/UpdateSecurityGroupRuleDescriptionsIngressCommand");
|
|
@@ -898,6 +901,7 @@ const commands = {
|
|
|
898
901
|
DescribeLocalGatewaysCommand: DescribeLocalGatewaysCommand_1.DescribeLocalGatewaysCommand,
|
|
899
902
|
DescribeLocalGatewayVirtualInterfaceGroupsCommand: DescribeLocalGatewayVirtualInterfaceGroupsCommand_1.DescribeLocalGatewayVirtualInterfaceGroupsCommand,
|
|
900
903
|
DescribeLocalGatewayVirtualInterfacesCommand: DescribeLocalGatewayVirtualInterfacesCommand_1.DescribeLocalGatewayVirtualInterfacesCommand,
|
|
904
|
+
DescribeLockedSnapshotsCommand: DescribeLockedSnapshotsCommand_1.DescribeLockedSnapshotsCommand,
|
|
901
905
|
DescribeManagedPrefixListsCommand: DescribeManagedPrefixListsCommand_1.DescribeManagedPrefixListsCommand,
|
|
902
906
|
DescribeMovingAddressesCommand: DescribeMovingAddressesCommand_1.DescribeMovingAddressesCommand,
|
|
903
907
|
DescribeNatGatewaysCommand: DescribeNatGatewaysCommand_1.DescribeNatGatewaysCommand,
|
|
@@ -1084,6 +1088,7 @@ const commands = {
|
|
|
1084
1088
|
ImportVolumeCommand: ImportVolumeCommand_1.ImportVolumeCommand,
|
|
1085
1089
|
ListImagesInRecycleBinCommand: ListImagesInRecycleBinCommand_1.ListImagesInRecycleBinCommand,
|
|
1086
1090
|
ListSnapshotsInRecycleBinCommand: ListSnapshotsInRecycleBinCommand_1.ListSnapshotsInRecycleBinCommand,
|
|
1091
|
+
LockSnapshotCommand: LockSnapshotCommand_1.LockSnapshotCommand,
|
|
1087
1092
|
ModifyAddressAttributeCommand: ModifyAddressAttributeCommand_1.ModifyAddressAttributeCommand,
|
|
1088
1093
|
ModifyAvailabilityZoneGroupCommand: ModifyAvailabilityZoneGroupCommand_1.ModifyAvailabilityZoneGroupCommand,
|
|
1089
1094
|
ModifyCapacityReservationCommand: ModifyCapacityReservationCommand_1.ModifyCapacityReservationCommand,
|
|
@@ -1212,6 +1217,7 @@ const commands = {
|
|
|
1212
1217
|
UnassignIpv6AddressesCommand: UnassignIpv6AddressesCommand_1.UnassignIpv6AddressesCommand,
|
|
1213
1218
|
UnassignPrivateIpAddressesCommand: UnassignPrivateIpAddressesCommand_1.UnassignPrivateIpAddressesCommand,
|
|
1214
1219
|
UnassignPrivateNatGatewayAddressCommand: UnassignPrivateNatGatewayAddressCommand_1.UnassignPrivateNatGatewayAddressCommand,
|
|
1220
|
+
UnlockSnapshotCommand: UnlockSnapshotCommand_1.UnlockSnapshotCommand,
|
|
1215
1221
|
UnmonitorInstancesCommand: UnmonitorInstancesCommand_1.UnmonitorInstancesCommand,
|
|
1216
1222
|
UpdateSecurityGroupRuleDescriptionsEgressCommand: UpdateSecurityGroupRuleDescriptionsEgressCommand_1.UpdateSecurityGroupRuleDescriptionsEgressCommand,
|
|
1217
1223
|
UpdateSecurityGroupRuleDescriptionsIngressCommand: UpdateSecurityGroupRuleDescriptionsIngressCommand_1.UpdateSecurityGroupRuleDescriptionsIngressCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeLockedSnapshotsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_ec2_1 = require("../protocols/Aws_ec2");
|
|
10
|
+
class DescribeLockedSnapshotsCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeLockedSnapshotsCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "EC2Client";
|
|
29
|
+
const commandName = "DescribeLockedSnapshotsCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonEC2",
|
|
38
|
+
operation: "DescribeLockedSnapshots",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_ec2_1.se_DescribeLockedSnapshotsCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_ec2_1.de_DescribeLockedSnapshotsCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.DescribeLockedSnapshotsCommand = DescribeLockedSnapshotsCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LockSnapshotCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_ec2_1 = require("../protocols/Aws_ec2");
|
|
10
|
+
class LockSnapshotCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, LockSnapshotCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "EC2Client";
|
|
29
|
+
const commandName = "LockSnapshotCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonEC2",
|
|
38
|
+
operation: "LockSnapshot",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_ec2_1.se_LockSnapshotCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_ec2_1.de_LockSnapshotCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.LockSnapshotCommand = LockSnapshotCommand;
|
|
@@ -6,7 +6,7 @@ const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
8
|
const types_1 = require("@smithy/types");
|
|
9
|
-
const
|
|
9
|
+
const models_7_1 = require("../models/models_7");
|
|
10
10
|
const Aws_ec2_1 = require("../protocols/Aws_ec2");
|
|
11
11
|
class RequestSpotInstancesCommand extends smithy_client_1.Command {
|
|
12
12
|
static getEndpointParameterInstructions() {
|
|
@@ -32,8 +32,8 @@ class RequestSpotInstancesCommand extends smithy_client_1.Command {
|
|
|
32
32
|
logger,
|
|
33
33
|
clientName,
|
|
34
34
|
commandName,
|
|
35
|
-
inputFilterSensitiveLog:
|
|
36
|
-
outputFilterSensitiveLog:
|
|
35
|
+
inputFilterSensitiveLog: models_7_1.RequestSpotInstancesRequestFilterSensitiveLog,
|
|
36
|
+
outputFilterSensitiveLog: models_7_1.RequestSpotInstancesResultFilterSensitiveLog,
|
|
37
37
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
38
|
service: "AmazonEC2",
|
|
39
39
|
operation: "RequestSpotInstances",
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnlockSnapshotCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_ec2_1 = require("../protocols/Aws_ec2");
|
|
10
|
+
class UnlockSnapshotCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UnlockSnapshotCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "EC2Client";
|
|
29
|
+
const commandName = "UnlockSnapshotCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonEC2",
|
|
38
|
+
operation: "UnlockSnapshot",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_ec2_1.se_UnlockSnapshotCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_ec2_1.de_UnlockSnapshotCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.UnlockSnapshotCommand = UnlockSnapshotCommand;
|
|
@@ -289,6 +289,7 @@ tslib_1.__exportStar(require("./DescribeLocalGatewayRouteTablesCommand"), export
|
|
|
289
289
|
tslib_1.__exportStar(require("./DescribeLocalGatewayVirtualInterfaceGroupsCommand"), exports);
|
|
290
290
|
tslib_1.__exportStar(require("./DescribeLocalGatewayVirtualInterfacesCommand"), exports);
|
|
291
291
|
tslib_1.__exportStar(require("./DescribeLocalGatewaysCommand"), exports);
|
|
292
|
+
tslib_1.__exportStar(require("./DescribeLockedSnapshotsCommand"), exports);
|
|
292
293
|
tslib_1.__exportStar(require("./DescribeManagedPrefixListsCommand"), exports);
|
|
293
294
|
tslib_1.__exportStar(require("./DescribeMovingAddressesCommand"), exports);
|
|
294
295
|
tslib_1.__exportStar(require("./DescribeNatGatewaysCommand"), exports);
|
|
@@ -475,6 +476,7 @@ tslib_1.__exportStar(require("./ImportSnapshotCommand"), exports);
|
|
|
475
476
|
tslib_1.__exportStar(require("./ImportVolumeCommand"), exports);
|
|
476
477
|
tslib_1.__exportStar(require("./ListImagesInRecycleBinCommand"), exports);
|
|
477
478
|
tslib_1.__exportStar(require("./ListSnapshotsInRecycleBinCommand"), exports);
|
|
479
|
+
tslib_1.__exportStar(require("./LockSnapshotCommand"), exports);
|
|
478
480
|
tslib_1.__exportStar(require("./ModifyAddressAttributeCommand"), exports);
|
|
479
481
|
tslib_1.__exportStar(require("./ModifyAvailabilityZoneGroupCommand"), exports);
|
|
480
482
|
tslib_1.__exportStar(require("./ModifyCapacityReservationCommand"), exports);
|
|
@@ -603,6 +605,7 @@ tslib_1.__exportStar(require("./TerminateInstancesCommand"), exports);
|
|
|
603
605
|
tslib_1.__exportStar(require("./UnassignIpv6AddressesCommand"), exports);
|
|
604
606
|
tslib_1.__exportStar(require("./UnassignPrivateIpAddressesCommand"), exports);
|
|
605
607
|
tslib_1.__exportStar(require("./UnassignPrivateNatGatewayAddressCommand"), exports);
|
|
608
|
+
tslib_1.__exportStar(require("./UnlockSnapshotCommand"), exports);
|
|
606
609
|
tslib_1.__exportStar(require("./UnmonitorInstancesCommand"), exports);
|
|
607
610
|
tslib_1.__exportStar(require("./UpdateSecurityGroupRuleDescriptionsEgressCommand"), exports);
|
|
608
611
|
tslib_1.__exportStar(require("./UpdateSecurityGroupRuleDescriptionsIngressCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.DescribeSpotInstanceRequestsResultFilterSensitiveLog = exports.SpotInstanceRequestFilterSensitiveLog = exports.LaunchSpecificationFilterSensitiveLog = exports.DescribeSpotFleetRequestsResponseFilterSensitiveLog = exports.SpotFleetRequestConfigFilterSensitiveLog = exports.SpotFleetRequestConfigDataFilterSensitiveLog = void 0;
|
|
3
|
+
exports.DescribeLaunchTemplateVersionsResultFilterSensitiveLog = exports.SpotInstanceState = exports.ReplacementStrategy = exports.OnDemandAllocationStrategy = exports.ExcessCapacityTerminationPolicy = exports.EventType = exports.TieringOperationStatus = exports.SnapshotAttributeName = exports.ReservedInstanceState = exports.Scope = exports.RecurringChargeFrequency = exports.RIProductDescription = exports.OfferingTypeValues = exports.OfferingClassType = exports.NetworkInterfaceAttribute = exports.AnalysisStatus = exports.FindingsFound = exports.MoveStatus = exports.LockState = exports.UsageClassType = exports.RootDeviceType = exports.BootModeType = exports.SupportedAdditionalProcessorFeature = exports.ArchitectureType = exports.PlacementGroupStrategy = exports.NitroTpmSupport = exports.NitroEnclavesSupport = exports.EnaSupport = exports.EphemeralNvmeSupport = exports.InstanceStorageEncryptionSupport = exports.DiskType = exports.InstanceTypeHypervisor = exports.EbsNvmeSupport = exports.EbsEncryptionSupport = exports.EbsOptimizedSupport = exports.LocationType = exports.SummaryStatus = exports.StatusType = exports.StatusName = exports.EventCode = exports.InstanceStateName = exports.MonitoringState = exports.InstanceMetadataOptionsState = exports.InstanceMetadataTagsState = exports.HttpTokensState = exports.InstanceMetadataProtocolState = exports.InstanceMetadataEndpointState = exports.InstanceAutoRecoveryState = exports.InstanceLifecycleType = exports.InstanceBootModeValues = void 0;
|
|
4
|
+
exports.DescribeSpotInstanceRequestsResultFilterSensitiveLog = exports.SpotInstanceRequestFilterSensitiveLog = exports.LaunchSpecificationFilterSensitiveLog = exports.DescribeSpotFleetRequestsResponseFilterSensitiveLog = exports.SpotFleetRequestConfigFilterSensitiveLog = exports.SpotFleetRequestConfigDataFilterSensitiveLog = exports.SpotFleetLaunchSpecificationFilterSensitiveLog = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_1_1 = require("./models_1");
|
|
7
7
|
exports.InstanceBootModeValues = {
|
|
@@ -152,6 +152,12 @@ exports.UsageClassType = {
|
|
|
152
152
|
on_demand: "on-demand",
|
|
153
153
|
spot: "spot",
|
|
154
154
|
};
|
|
155
|
+
exports.LockState = {
|
|
156
|
+
compliance: "compliance",
|
|
157
|
+
compliance_cooloff: "compliance-cooloff",
|
|
158
|
+
expired: "expired",
|
|
159
|
+
governance: "governance",
|
|
160
|
+
};
|
|
155
161
|
exports.MoveStatus = {
|
|
156
162
|
movingToVpc: "movingToVpc",
|
|
157
163
|
restoringToClassic: "restoringToClassic",
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.RequestSpotLaunchSpecificationFilterSensitiveLog = exports.RequestSpotFleetRequestFilterSensitiveLog = exports.ModifyVpnTunnelOptionsResultFilterSensitiveLog = exports.ModifyVpnTunnelOptionsRequestFilterSensitiveLog = exports.ModifyVpnTunnelOptionsSpecificationFilterSensitiveLog = exports.ModifyVpnTunnelCertificateResultFilterSensitiveLog = exports.ModifyVpnConnectionOptionsResultFilterSensitiveLog = exports.ModifyVpnConnectionResultFilterSensitiveLog = exports.ModifyVerifiedAccessTrustProviderResultFilterSensitiveLog = exports.ModifyVerifiedAccessTrustProviderRequestFilterSensitiveLog = exports.ModifyVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog = exports.ImportVolumeResultFilterSensitiveLog = exports.ImportVolumeRequestFilterSensitiveLog = exports.ImportSnapshotResultFilterSensitiveLog = exports.ImportSnapshotRequestFilterSensitiveLog = exports.SnapshotDiskContainerFilterSensitiveLog = exports.ImportInstanceResultFilterSensitiveLog = exports.ImportInstanceRequestFilterSensitiveLog = exports.ImportInstanceLaunchSpecificationFilterSensitiveLog = exports.UserDataFilterSensitiveLog = exports.DiskImageFilterSensitiveLog = exports.DiskImageDetailFilterSensitiveLog = exports.ImportImageResultFilterSensitiveLog = exports.ImportImageRequestFilterSensitiveLog = exports.ImageDiskContainerFilterSensitiveLog = exports.GetVpnConnectionDeviceSampleConfigurationResultFilterSensitiveLog = exports.ReportStatusType = exports.ReportInstanceReasonCodes = exports.Status = exports.VpcTenancy = exports.TrafficMirrorSessionField = exports.TrafficMirrorFilterRuleField = exports.TargetStorageTier = exports.HostTenancy = exports.UnsuccessfulInstanceCreditSpecificationErrorCode = exports.OperationType = exports.ModifyAvailabilityZoneOptInStatus = exports.LockMode = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const models_0_1 = require("./models_0");
|
|
6
6
|
const models_2_1 = require("./models_2");
|
|
7
7
|
const models_3_1 = require("./models_3");
|
|
8
8
|
const models_4_1 = require("./models_4");
|
|
9
|
+
exports.LockMode = {
|
|
10
|
+
compliance: "compliance",
|
|
11
|
+
governance: "governance",
|
|
12
|
+
};
|
|
9
13
|
exports.ModifyAvailabilityZoneOptInStatus = {
|
|
10
14
|
not_opted_in: "not-opted-in",
|
|
11
15
|
opted_in: "opted-in",
|
|
@@ -61,9 +65,6 @@ exports.ReportStatusType = {
|
|
|
61
65
|
impaired: "impaired",
|
|
62
66
|
ok: "ok",
|
|
63
67
|
};
|
|
64
|
-
exports.ResetFpgaImageAttributeName = {
|
|
65
|
-
loadPermission: "loadPermission",
|
|
66
|
-
};
|
|
67
68
|
const GetVpnConnectionDeviceSampleConfigurationResultFilterSensitiveLog = (obj) => ({
|
|
68
69
|
...obj,
|
|
69
70
|
...(obj.VpnConnectionDeviceSampleConfiguration && { VpnConnectionDeviceSampleConfiguration: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -206,17 +207,3 @@ const RequestSpotLaunchSpecificationFilterSensitiveLog = (obj) => ({
|
|
|
206
207
|
...(obj.UserData && { UserData: smithy_client_1.SENSITIVE_STRING }),
|
|
207
208
|
});
|
|
208
209
|
exports.RequestSpotLaunchSpecificationFilterSensitiveLog = RequestSpotLaunchSpecificationFilterSensitiveLog;
|
|
209
|
-
const RequestSpotInstancesRequestFilterSensitiveLog = (obj) => ({
|
|
210
|
-
...obj,
|
|
211
|
-
...(obj.LaunchSpecification && {
|
|
212
|
-
LaunchSpecification: (0, exports.RequestSpotLaunchSpecificationFilterSensitiveLog)(obj.LaunchSpecification),
|
|
213
|
-
}),
|
|
214
|
-
});
|
|
215
|
-
exports.RequestSpotInstancesRequestFilterSensitiveLog = RequestSpotInstancesRequestFilterSensitiveLog;
|
|
216
|
-
const RequestSpotInstancesResultFilterSensitiveLog = (obj) => ({
|
|
217
|
-
...obj,
|
|
218
|
-
...(obj.SpotInstanceRequests && {
|
|
219
|
-
SpotInstanceRequests: obj.SpotInstanceRequests.map((item) => (0, models_4_1.SpotInstanceRequestFilterSensitiveLog)(item)),
|
|
220
|
-
}),
|
|
221
|
-
});
|
|
222
|
-
exports.RequestSpotInstancesResultFilterSensitiveLog = RequestSpotInstancesResultFilterSensitiveLog;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RunScheduledInstancesRequestFilterSensitiveLog = exports.ScheduledInstancesLaunchSpecificationFilterSensitiveLog = exports.RunInstancesRequestFilterSensitiveLog = exports.MembershipType = exports.ResetImageAttributeName = void 0;
|
|
3
|
+
exports.RunScheduledInstancesRequestFilterSensitiveLog = exports.ScheduledInstancesLaunchSpecificationFilterSensitiveLog = exports.RunInstancesRequestFilterSensitiveLog = exports.RequestSpotInstancesResultFilterSensitiveLog = exports.RequestSpotInstancesRequestFilterSensitiveLog = exports.MembershipType = exports.ResetImageAttributeName = exports.ResetFpgaImageAttributeName = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
const models_4_1 = require("./models_4");
|
|
6
|
+
const models_6_1 = require("./models_6");
|
|
7
|
+
exports.ResetFpgaImageAttributeName = {
|
|
8
|
+
loadPermission: "loadPermission",
|
|
9
|
+
};
|
|
5
10
|
exports.ResetImageAttributeName = {
|
|
6
11
|
launchPermission: "launchPermission",
|
|
7
12
|
};
|
|
@@ -9,6 +14,20 @@ exports.MembershipType = {
|
|
|
9
14
|
igmp: "igmp",
|
|
10
15
|
static: "static",
|
|
11
16
|
};
|
|
17
|
+
const RequestSpotInstancesRequestFilterSensitiveLog = (obj) => ({
|
|
18
|
+
...obj,
|
|
19
|
+
...(obj.LaunchSpecification && {
|
|
20
|
+
LaunchSpecification: (0, models_6_1.RequestSpotLaunchSpecificationFilterSensitiveLog)(obj.LaunchSpecification),
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
23
|
+
exports.RequestSpotInstancesRequestFilterSensitiveLog = RequestSpotInstancesRequestFilterSensitiveLog;
|
|
24
|
+
const RequestSpotInstancesResultFilterSensitiveLog = (obj) => ({
|
|
25
|
+
...obj,
|
|
26
|
+
...(obj.SpotInstanceRequests && {
|
|
27
|
+
SpotInstanceRequests: obj.SpotInstanceRequests.map((item) => (0, models_4_1.SpotInstanceRequestFilterSensitiveLog)(item)),
|
|
28
|
+
}),
|
|
29
|
+
});
|
|
30
|
+
exports.RequestSpotInstancesResultFilterSensitiveLog = RequestSpotInstancesResultFilterSensitiveLog;
|
|
12
31
|
const RunInstancesRequestFilterSensitiveLog = (obj) => ({
|
|
13
32
|
...obj,
|
|
14
33
|
...(obj.UserData && { UserData: smithy_client_1.SENSITIVE_STRING }),
|