@aws-sdk/client-ec2 3.450.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.
Files changed (87) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/EC2.js +6 -0
  3. package/dist-cjs/commands/DescribeLockedSnapshotsCommand.js +51 -0
  4. package/dist-cjs/commands/LockSnapshotCommand.js +51 -0
  5. package/dist-cjs/commands/RequestSpotInstancesCommand.js +3 -3
  6. package/dist-cjs/commands/UnlockSnapshotCommand.js +51 -0
  7. package/dist-cjs/commands/index.js +3 -0
  8. package/dist-cjs/models/models_0.js +1 -0
  9. package/dist-cjs/models/models_4.js +8 -2
  10. package/dist-cjs/models/models_6.js +5 -18
  11. package/dist-cjs/models/models_7.js +20 -1
  12. package/dist-cjs/protocols/Aws_ec2.js +285 -20
  13. package/dist-es/EC2.js +6 -0
  14. package/dist-es/commands/DescribeLockedSnapshotsCommand.js +47 -0
  15. package/dist-es/commands/LockSnapshotCommand.js +47 -0
  16. package/dist-es/commands/RequestSpotInstancesCommand.js +1 -1
  17. package/dist-es/commands/UnlockSnapshotCommand.js +47 -0
  18. package/dist-es/commands/index.js +3 -0
  19. package/dist-es/models/models_0.js +1 -0
  20. package/dist-es/models/models_4.js +6 -0
  21. package/dist-es/models/models_6.js +5 -16
  22. package/dist-es/models/models_7.js +17 -0
  23. package/dist-es/protocols/Aws_ec2.js +259 -0
  24. package/dist-types/EC2.d.ts +21 -0
  25. package/dist-types/EC2Client.d.ts +5 -2
  26. package/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +2 -2
  27. package/dist-types/commands/CreateFleetCommand.d.ts +4 -4
  28. package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +1 -1
  29. package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +2 -2
  30. package/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +1 -1
  31. package/dist-types/commands/DescribeFleetsCommand.d.ts +4 -4
  32. package/dist-types/commands/DescribeInstanceTypeOfferingsCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeInstanceTypesCommand.d.ts +2 -2
  34. package/dist-types/commands/DescribeInstancesCommand.d.ts +1 -1
  35. package/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeLockedSnapshotsCommand.d.ts +99 -0
  37. package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +1 -1
  39. package/dist-types/commands/DescribeReservedInstancesOfferingsCommand.d.ts +2 -2
  40. package/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +2 -2
  41. package/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +1 -1
  42. package/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +2 -2
  43. package/dist-types/commands/DescribeTransitGatewayMulticastDomainsCommand.d.ts +2 -1
  44. package/dist-types/commands/DescribeTransitGatewayPeeringAttachmentsCommand.d.ts +1 -1
  45. package/dist-types/commands/DescribeTransitGatewayPolicyTablesCommand.d.ts +1 -2
  46. package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
  47. package/dist-types/commands/GetSnapshotBlockPublicAccessStateCommand.d.ts +1 -1
  48. package/dist-types/commands/GetSpotPlacementScoresCommand.d.ts +1 -2
  49. package/dist-types/commands/ImportInstanceCommand.d.ts +1 -1
  50. package/dist-types/commands/LockSnapshotCommand.d.ts +103 -0
  51. package/dist-types/commands/ModifyFleetCommand.d.ts +1 -1
  52. package/dist-types/commands/ModifyReservedInstancesCommand.d.ts +1 -1
  53. package/dist-types/commands/ModifySpotFleetRequestCommand.d.ts +1 -1
  54. package/dist-types/commands/RequestSpotFleetCommand.d.ts +2 -2
  55. package/dist-types/commands/RequestSpotInstancesCommand.d.ts +3 -3
  56. package/dist-types/commands/ResetAddressAttributeCommand.d.ts +1 -1
  57. package/dist-types/commands/ResetEbsDefaultKmsKeyIdCommand.d.ts +1 -1
  58. package/dist-types/commands/RunInstancesCommand.d.ts +2 -2
  59. package/dist-types/commands/UnlockSnapshotCommand.d.ts +76 -0
  60. package/dist-types/commands/index.d.ts +3 -0
  61. package/dist-types/models/models_0.d.ts +1 -0
  62. package/dist-types/models/models_4.d.ts +154 -129
  63. package/dist-types/models/models_5.d.ts +130 -137
  64. package/dist-types/models/models_6.d.ts +309 -210
  65. package/dist-types/models/models_7.d.ts +235 -3
  66. package/dist-types/protocols/Aws_ec2.d.ts +27 -0
  67. package/dist-types/ts3.4/EC2.d.ts +51 -0
  68. package/dist-types/ts3.4/EC2Client.d.ts +18 -0
  69. package/dist-types/ts3.4/commands/DescribeLockedSnapshotsCommand.d.ts +42 -0
  70. package/dist-types/ts3.4/commands/DescribeTransitGatewayMulticastDomainsCommand.d.ts +2 -4
  71. package/dist-types/ts3.4/commands/DescribeTransitGatewayPeeringAttachmentsCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/DescribeTransitGatewayPolicyTablesCommand.d.ts +4 -2
  73. package/dist-types/ts3.4/commands/GetSnapshotBlockPublicAccessStateCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/GetSpotPlacementScoresCommand.d.ts +4 -2
  75. package/dist-types/ts3.4/commands/LockSnapshotCommand.d.ts +35 -0
  76. package/dist-types/ts3.4/commands/RequestSpotInstancesCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/ResetAddressAttributeCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/ResetEbsDefaultKmsKeyIdCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/UnlockSnapshotCommand.d.ts +38 -0
  80. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  81. package/dist-types/ts3.4/models/models_0.d.ts +1 -0
  82. package/dist-types/ts3.4/models/models_4.d.ts +29 -24
  83. package/dist-types/ts3.4/models/models_5.d.ts +24 -23
  84. package/dist-types/ts3.4/models/models_6.d.ts +51 -47
  85. package/dist-types/ts3.4/models/models_7.d.ts +54 -1
  86. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +36 -0
  87. package/package.json +37 -37
package/dist-es/EC2.js CHANGED
@@ -287,6 +287,7 @@ import { DescribeLocalGatewayRouteTableVpcAssociationsCommand, } from "./command
287
287
  import { DescribeLocalGatewaysCommand, } from "./commands/DescribeLocalGatewaysCommand";
288
288
  import { DescribeLocalGatewayVirtualInterfaceGroupsCommand, } from "./commands/DescribeLocalGatewayVirtualInterfaceGroupsCommand";
289
289
  import { DescribeLocalGatewayVirtualInterfacesCommand, } from "./commands/DescribeLocalGatewayVirtualInterfacesCommand";
290
+ import { DescribeLockedSnapshotsCommand, } from "./commands/DescribeLockedSnapshotsCommand";
290
291
  import { DescribeManagedPrefixListsCommand, } from "./commands/DescribeManagedPrefixListsCommand";
291
292
  import { DescribeMovingAddressesCommand, } from "./commands/DescribeMovingAddressesCommand";
292
293
  import { DescribeNatGatewaysCommand, } from "./commands/DescribeNatGatewaysCommand";
@@ -473,6 +474,7 @@ import { ImportSnapshotCommand, } from "./commands/ImportSnapshotCommand";
473
474
  import { ImportVolumeCommand, } from "./commands/ImportVolumeCommand";
474
475
  import { ListImagesInRecycleBinCommand, } from "./commands/ListImagesInRecycleBinCommand";
475
476
  import { ListSnapshotsInRecycleBinCommand, } from "./commands/ListSnapshotsInRecycleBinCommand";
477
+ import { LockSnapshotCommand, } from "./commands/LockSnapshotCommand";
476
478
  import { ModifyAddressAttributeCommand, } from "./commands/ModifyAddressAttributeCommand";
477
479
  import { ModifyAvailabilityZoneGroupCommand, } from "./commands/ModifyAvailabilityZoneGroupCommand";
478
480
  import { ModifyCapacityReservationCommand, } from "./commands/ModifyCapacityReservationCommand";
@@ -601,6 +603,7 @@ import { TerminateInstancesCommand, } from "./commands/TerminateInstancesCommand
601
603
  import { UnassignIpv6AddressesCommand, } from "./commands/UnassignIpv6AddressesCommand";
602
604
  import { UnassignPrivateIpAddressesCommand, } from "./commands/UnassignPrivateIpAddressesCommand";
603
605
  import { UnassignPrivateNatGatewayAddressCommand, } from "./commands/UnassignPrivateNatGatewayAddressCommand";
606
+ import { UnlockSnapshotCommand, } from "./commands/UnlockSnapshotCommand";
604
607
  import { UnmonitorInstancesCommand, } from "./commands/UnmonitorInstancesCommand";
605
608
  import { UpdateSecurityGroupRuleDescriptionsEgressCommand, } from "./commands/UpdateSecurityGroupRuleDescriptionsEgressCommand";
606
609
  import { UpdateSecurityGroupRuleDescriptionsIngressCommand, } from "./commands/UpdateSecurityGroupRuleDescriptionsIngressCommand";
@@ -895,6 +898,7 @@ const commands = {
895
898
  DescribeLocalGatewaysCommand,
896
899
  DescribeLocalGatewayVirtualInterfaceGroupsCommand,
897
900
  DescribeLocalGatewayVirtualInterfacesCommand,
901
+ DescribeLockedSnapshotsCommand,
898
902
  DescribeManagedPrefixListsCommand,
899
903
  DescribeMovingAddressesCommand,
900
904
  DescribeNatGatewaysCommand,
@@ -1081,6 +1085,7 @@ const commands = {
1081
1085
  ImportVolumeCommand,
1082
1086
  ListImagesInRecycleBinCommand,
1083
1087
  ListSnapshotsInRecycleBinCommand,
1088
+ LockSnapshotCommand,
1084
1089
  ModifyAddressAttributeCommand,
1085
1090
  ModifyAvailabilityZoneGroupCommand,
1086
1091
  ModifyCapacityReservationCommand,
@@ -1209,6 +1214,7 @@ const commands = {
1209
1214
  UnassignIpv6AddressesCommand,
1210
1215
  UnassignPrivateIpAddressesCommand,
1211
1216
  UnassignPrivateNatGatewayAddressCommand,
1217
+ UnlockSnapshotCommand,
1212
1218
  UnmonitorInstancesCommand,
1213
1219
  UpdateSecurityGroupRuleDescriptionsEgressCommand,
1214
1220
  UpdateSecurityGroupRuleDescriptionsIngressCommand,
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DescribeLockedSnapshotsCommand, se_DescribeLockedSnapshotsCommand } from "../protocols/Aws_ec2";
6
+ export { $Command };
7
+ export class DescribeLockedSnapshotsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeLockedSnapshotsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "EC2Client";
26
+ const commandName = "DescribeLockedSnapshotsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AmazonEC2",
35
+ operation: "DescribeLockedSnapshots",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_DescribeLockedSnapshotsCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DescribeLockedSnapshotsCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_LockSnapshotCommand, se_LockSnapshotCommand } from "../protocols/Aws_ec2";
6
+ export { $Command };
7
+ export class LockSnapshotCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, LockSnapshotCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "EC2Client";
26
+ const commandName = "LockSnapshotCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AmazonEC2",
35
+ operation: "LockSnapshot",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_LockSnapshotCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_LockSnapshotCommand(output, context);
46
+ }
47
+ }
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
- import { RequestSpotInstancesRequestFilterSensitiveLog, RequestSpotInstancesResultFilterSensitiveLog, } from "../models/models_6";
5
+ import { RequestSpotInstancesRequestFilterSensitiveLog, RequestSpotInstancesResultFilterSensitiveLog, } from "../models/models_7";
6
6
  import { de_RequestSpotInstancesCommand, se_RequestSpotInstancesCommand } from "../protocols/Aws_ec2";
7
7
  export { $Command };
8
8
  export class RequestSpotInstancesCommand extends $Command {
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_UnlockSnapshotCommand, se_UnlockSnapshotCommand } from "../protocols/Aws_ec2";
6
+ export { $Command };
7
+ export class UnlockSnapshotCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, UnlockSnapshotCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "EC2Client";
26
+ const commandName = "UnlockSnapshotCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AmazonEC2",
35
+ operation: "UnlockSnapshot",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_UnlockSnapshotCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_UnlockSnapshotCommand(output, context);
46
+ }
47
+ }
@@ -286,6 +286,7 @@ export * from "./DescribeLocalGatewayRouteTablesCommand";
286
286
  export * from "./DescribeLocalGatewayVirtualInterfaceGroupsCommand";
287
287
  export * from "./DescribeLocalGatewayVirtualInterfacesCommand";
288
288
  export * from "./DescribeLocalGatewaysCommand";
289
+ export * from "./DescribeLockedSnapshotsCommand";
289
290
  export * from "./DescribeManagedPrefixListsCommand";
290
291
  export * from "./DescribeMovingAddressesCommand";
291
292
  export * from "./DescribeNatGatewaysCommand";
@@ -472,6 +473,7 @@ export * from "./ImportSnapshotCommand";
472
473
  export * from "./ImportVolumeCommand";
473
474
  export * from "./ListImagesInRecycleBinCommand";
474
475
  export * from "./ListSnapshotsInRecycleBinCommand";
476
+ export * from "./LockSnapshotCommand";
475
477
  export * from "./ModifyAddressAttributeCommand";
476
478
  export * from "./ModifyAvailabilityZoneGroupCommand";
477
479
  export * from "./ModifyCapacityReservationCommand";
@@ -600,6 +602,7 @@ export * from "./TerminateInstancesCommand";
600
602
  export * from "./UnassignIpv6AddressesCommand";
601
603
  export * from "./UnassignPrivateIpAddressesCommand";
602
604
  export * from "./UnassignPrivateNatGatewayAddressCommand";
605
+ export * from "./UnlockSnapshotCommand";
603
606
  export * from "./UnmonitorInstancesCommand";
604
607
  export * from "./UpdateSecurityGroupRuleDescriptionsEgressCommand";
605
608
  export * from "./UpdateSecurityGroupRuleDescriptionsIngressCommand";
@@ -677,6 +677,7 @@ export const _InstanceType = {
677
677
  d3en_8xlarge: "d3en.8xlarge",
678
678
  d3en_xlarge: "d3en.xlarge",
679
679
  dl1_24xlarge: "dl1.24xlarge",
680
+ dl2q_24xlarge: "dl2q.24xlarge",
680
681
  f1_16xlarge: "f1.16xlarge",
681
682
  f1_2xlarge: "f1.2xlarge",
682
683
  f1_4xlarge: "f1.4xlarge",
@@ -148,6 +148,12 @@ export const UsageClassType = {
148
148
  on_demand: "on-demand",
149
149
  spot: "spot",
150
150
  };
151
+ export const LockState = {
152
+ compliance: "compliance",
153
+ compliance_cooloff: "compliance-cooloff",
154
+ expired: "expired",
155
+ governance: "governance",
156
+ };
151
157
  export const MoveStatus = {
152
158
  movingToVpc: "movingToVpc",
153
159
  restoringToClassic: "restoringToClassic",
@@ -2,7 +2,11 @@ import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { VerifiedAccessTrustProviderFilterSensitiveLog, } from "./models_0";
3
3
  import { VpnConnectionFilterSensitiveLog, } from "./models_2";
4
4
  import { ConversionTaskFilterSensitiveLog, SnapshotDetailFilterSensitiveLog, SnapshotTaskDetailFilterSensitiveLog, } from "./models_3";
5
- import { SpotFleetRequestConfigDataFilterSensitiveLog, SpotInstanceRequestFilterSensitiveLog, } from "./models_4";
5
+ import { SpotFleetRequestConfigDataFilterSensitiveLog, } from "./models_4";
6
+ export const LockMode = {
7
+ compliance: "compliance",
8
+ governance: "governance",
9
+ };
6
10
  export const ModifyAvailabilityZoneOptInStatus = {
7
11
  not_opted_in: "not-opted-in",
8
12
  opted_in: "opted-in",
@@ -58,9 +62,6 @@ export const ReportStatusType = {
58
62
  impaired: "impaired",
59
63
  ok: "ok",
60
64
  };
61
- export const ResetFpgaImageAttributeName = {
62
- loadPermission: "loadPermission",
63
- };
64
65
  export const GetVpnConnectionDeviceSampleConfigurationResultFilterSensitiveLog = (obj) => ({
65
66
  ...obj,
66
67
  ...(obj.VpnConnectionDeviceSampleConfiguration && { VpnConnectionDeviceSampleConfiguration: SENSITIVE_STRING }),
@@ -177,15 +178,3 @@ export const RequestSpotLaunchSpecificationFilterSensitiveLog = (obj) => ({
177
178
  ...obj,
178
179
  ...(obj.UserData && { UserData: SENSITIVE_STRING }),
179
180
  });
180
- export const RequestSpotInstancesRequestFilterSensitiveLog = (obj) => ({
181
- ...obj,
182
- ...(obj.LaunchSpecification && {
183
- LaunchSpecification: RequestSpotLaunchSpecificationFilterSensitiveLog(obj.LaunchSpecification),
184
- }),
185
- });
186
- export const RequestSpotInstancesResultFilterSensitiveLog = (obj) => ({
187
- ...obj,
188
- ...(obj.SpotInstanceRequests && {
189
- SpotInstanceRequests: obj.SpotInstanceRequests.map((item) => SpotInstanceRequestFilterSensitiveLog(item)),
190
- }),
191
- });
@@ -1,4 +1,9 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ import { SpotInstanceRequestFilterSensitiveLog, } from "./models_4";
3
+ import { RequestSpotLaunchSpecificationFilterSensitiveLog, } from "./models_6";
4
+ export const ResetFpgaImageAttributeName = {
5
+ loadPermission: "loadPermission",
6
+ };
2
7
  export const ResetImageAttributeName = {
3
8
  launchPermission: "launchPermission",
4
9
  };
@@ -6,6 +11,18 @@ export const MembershipType = {
6
11
  igmp: "igmp",
7
12
  static: "static",
8
13
  };
14
+ export const RequestSpotInstancesRequestFilterSensitiveLog = (obj) => ({
15
+ ...obj,
16
+ ...(obj.LaunchSpecification && {
17
+ LaunchSpecification: RequestSpotLaunchSpecificationFilterSensitiveLog(obj.LaunchSpecification),
18
+ }),
19
+ });
20
+ export const RequestSpotInstancesResultFilterSensitiveLog = (obj) => ({
21
+ ...obj,
22
+ ...(obj.SpotInstanceRequests && {
23
+ SpotInstanceRequests: obj.SpotInstanceRequests.map((item) => SpotInstanceRequestFilterSensitiveLog(item)),
24
+ }),
25
+ });
9
26
  export const RunInstancesRequestFilterSensitiveLog = (obj) => ({
10
27
  ...obj,
11
28
  ...(obj.UserData && { UserData: SENSITIVE_STRING }),
@@ -2883,6 +2883,16 @@ export const se_DescribeLocalGatewayVirtualInterfacesCommand = async (input, con
2883
2883
  });
2884
2884
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
2885
2885
  };
2886
+ export const se_DescribeLockedSnapshotsCommand = async (input, context) => {
2887
+ const headers = SHARED_HEADERS;
2888
+ let body;
2889
+ body = buildFormUrlencodedString({
2890
+ ...se_DescribeLockedSnapshotsRequest(input, context),
2891
+ Action: "DescribeLockedSnapshots",
2892
+ Version: "2016-11-15",
2893
+ });
2894
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
2895
+ };
2886
2896
  export const se_DescribeManagedPrefixListsCommand = async (input, context) => {
2887
2897
  const headers = SHARED_HEADERS;
2888
2898
  let body;
@@ -4743,6 +4753,16 @@ export const se_ListSnapshotsInRecycleBinCommand = async (input, context) => {
4743
4753
  });
4744
4754
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
4745
4755
  };
4756
+ export const se_LockSnapshotCommand = async (input, context) => {
4757
+ const headers = SHARED_HEADERS;
4758
+ let body;
4759
+ body = buildFormUrlencodedString({
4760
+ ...se_LockSnapshotRequest(input, context),
4761
+ Action: "LockSnapshot",
4762
+ Version: "2016-11-15",
4763
+ });
4764
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
4765
+ };
4746
4766
  export const se_ModifyAddressAttributeCommand = async (input, context) => {
4747
4767
  const headers = SHARED_HEADERS;
4748
4768
  let body;
@@ -6023,6 +6043,16 @@ export const se_UnassignPrivateNatGatewayAddressCommand = async (input, context)
6023
6043
  });
6024
6044
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
6025
6045
  };
6046
+ export const se_UnlockSnapshotCommand = async (input, context) => {
6047
+ const headers = SHARED_HEADERS;
6048
+ let body;
6049
+ body = buildFormUrlencodedString({
6050
+ ...se_UnlockSnapshotRequest(input, context),
6051
+ Action: "UnlockSnapshot",
6052
+ Version: "2016-11-15",
6053
+ });
6054
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
6055
+ };
6026
6056
  export const se_UnmonitorInstancesCommand = async (input, context) => {
6027
6057
  const headers = SHARED_HEADERS;
6028
6058
  let body;
@@ -13470,6 +13500,32 @@ const de_DescribeLocalGatewayVirtualInterfacesCommandError = async (output, cont
13470
13500
  errorCode,
13471
13501
  });
13472
13502
  };
13503
+ export const de_DescribeLockedSnapshotsCommand = async (output, context) => {
13504
+ if (output.statusCode >= 300) {
13505
+ return de_DescribeLockedSnapshotsCommandError(output, context);
13506
+ }
13507
+ const data = await parseBody(output.body, context);
13508
+ let contents = {};
13509
+ contents = de_DescribeLockedSnapshotsResult(data, context);
13510
+ const response = {
13511
+ $metadata: deserializeMetadata(output),
13512
+ ...contents,
13513
+ };
13514
+ return response;
13515
+ };
13516
+ const de_DescribeLockedSnapshotsCommandError = async (output, context) => {
13517
+ const parsedOutput = {
13518
+ ...output,
13519
+ body: await parseErrorBody(output.body, context),
13520
+ };
13521
+ const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
13522
+ const parsedBody = parsedOutput.body;
13523
+ return throwDefaultError({
13524
+ output,
13525
+ parsedBody: parsedBody.Errors.Error,
13526
+ errorCode,
13527
+ });
13528
+ };
13473
13529
  export const de_DescribeManagedPrefixListsCommand = async (output, context) => {
13474
13530
  if (output.statusCode >= 300) {
13475
13531
  return de_DescribeManagedPrefixListsCommandError(output, context);
@@ -18282,6 +18338,32 @@ const de_ListSnapshotsInRecycleBinCommandError = async (output, context) => {
18282
18338
  errorCode,
18283
18339
  });
18284
18340
  };
18341
+ export const de_LockSnapshotCommand = async (output, context) => {
18342
+ if (output.statusCode >= 300) {
18343
+ return de_LockSnapshotCommandError(output, context);
18344
+ }
18345
+ const data = await parseBody(output.body, context);
18346
+ let contents = {};
18347
+ contents = de_LockSnapshotResult(data, context);
18348
+ const response = {
18349
+ $metadata: deserializeMetadata(output),
18350
+ ...contents,
18351
+ };
18352
+ return response;
18353
+ };
18354
+ const de_LockSnapshotCommandError = async (output, context) => {
18355
+ const parsedOutput = {
18356
+ ...output,
18357
+ body: await parseErrorBody(output.body, context),
18358
+ };
18359
+ const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
18360
+ const parsedBody = parsedOutput.body;
18361
+ return throwDefaultError({
18362
+ output,
18363
+ parsedBody: parsedBody.Errors.Error,
18364
+ errorCode,
18365
+ });
18366
+ };
18285
18367
  export const de_ModifyAddressAttributeCommand = async (output, context) => {
18286
18368
  if (output.statusCode >= 300) {
18287
18369
  return de_ModifyAddressAttributeCommandError(output, context);
@@ -21550,6 +21632,32 @@ const de_UnassignPrivateNatGatewayAddressCommandError = async (output, context)
21550
21632
  errorCode,
21551
21633
  });
21552
21634
  };
21635
+ export const de_UnlockSnapshotCommand = async (output, context) => {
21636
+ if (output.statusCode >= 300) {
21637
+ return de_UnlockSnapshotCommandError(output, context);
21638
+ }
21639
+ const data = await parseBody(output.body, context);
21640
+ let contents = {};
21641
+ contents = de_UnlockSnapshotResult(data, context);
21642
+ const response = {
21643
+ $metadata: deserializeMetadata(output),
21644
+ ...contents,
21645
+ };
21646
+ return response;
21647
+ };
21648
+ const de_UnlockSnapshotCommandError = async (output, context) => {
21649
+ const parsedOutput = {
21650
+ ...output,
21651
+ body: await parseErrorBody(output.body, context),
21652
+ };
21653
+ const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
21654
+ const parsedBody = parsedOutput.body;
21655
+ return throwDefaultError({
21656
+ output,
21657
+ parsedBody: parsedBody.Errors.Error,
21658
+ errorCode,
21659
+ });
21660
+ };
21553
21661
  export const de_UnmonitorInstancesCommand = async (output, context) => {
21554
21662
  if (output.statusCode >= 300) {
21555
21663
  return de_UnmonitorInstancesCommandError(output, context);
@@ -29834,6 +29942,39 @@ const se_DescribeLocalGatewayVirtualInterfacesRequest = (input, context) => {
29834
29942
  }
29835
29943
  return entries;
29836
29944
  };
29945
+ const se_DescribeLockedSnapshotsRequest = (input, context) => {
29946
+ const entries = {};
29947
+ if (input.Filters != null) {
29948
+ const memberEntries = se_FilterList(input.Filters, context);
29949
+ if (input.Filters?.length === 0) {
29950
+ entries.Filter = [];
29951
+ }
29952
+ Object.entries(memberEntries).forEach(([key, value]) => {
29953
+ const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
29954
+ entries[loc] = value;
29955
+ });
29956
+ }
29957
+ if (input.MaxResults != null) {
29958
+ entries["MaxResults"] = input.MaxResults;
29959
+ }
29960
+ if (input.NextToken != null) {
29961
+ entries["NextToken"] = input.NextToken;
29962
+ }
29963
+ if (input.SnapshotIds != null) {
29964
+ const memberEntries = se_SnapshotIdStringList(input.SnapshotIds, context);
29965
+ if (input.SnapshotIds?.length === 0) {
29966
+ entries.SnapshotId = [];
29967
+ }
29968
+ Object.entries(memberEntries).forEach(([key, value]) => {
29969
+ const loc = `SnapshotId.${key.substring(key.indexOf(".") + 1)}`;
29970
+ entries[loc] = value;
29971
+ });
29972
+ }
29973
+ if (input.DryRun != null) {
29974
+ entries["DryRun"] = input.DryRun;
29975
+ }
29976
+ return entries;
29977
+ };
29837
29978
  const se_DescribeManagedPrefixListsRequest = (input, context) => {
29838
29979
  const entries = {};
29839
29980
  if (input.DryRun != null) {
@@ -36934,6 +37075,28 @@ const se_LocalStorageTypeSet = (input, context) => {
36934
37075
  }
36935
37076
  return entries;
36936
37077
  };
37078
+ const se_LockSnapshotRequest = (input, context) => {
37079
+ const entries = {};
37080
+ if (input.SnapshotId != null) {
37081
+ entries["SnapshotId"] = input.SnapshotId;
37082
+ }
37083
+ if (input.DryRun != null) {
37084
+ entries["DryRun"] = input.DryRun;
37085
+ }
37086
+ if (input.LockMode != null) {
37087
+ entries["LockMode"] = input.LockMode;
37088
+ }
37089
+ if (input.CoolOffPeriod != null) {
37090
+ entries["CoolOffPeriod"] = input.CoolOffPeriod;
37091
+ }
37092
+ if (input.LockDuration != null) {
37093
+ entries["LockDuration"] = input.LockDuration;
37094
+ }
37095
+ if (input.ExpirationDate != null) {
37096
+ entries["ExpirationDate"] = input.ExpirationDate.toISOString().split(".")[0] + "Z";
37097
+ }
37098
+ return entries;
37099
+ };
36937
37100
  const se_MemoryGiBPerVCpu = (input, context) => {
36938
37101
  const entries = {};
36939
37102
  if (input.Min != null) {
@@ -43747,6 +43910,16 @@ const se_UnassignPrivateNatGatewayAddressRequest = (input, context) => {
43747
43910
  }
43748
43911
  return entries;
43749
43912
  };
43913
+ const se_UnlockSnapshotRequest = (input, context) => {
43914
+ const entries = {};
43915
+ if (input.SnapshotId != null) {
43916
+ entries["SnapshotId"] = input.SnapshotId;
43917
+ }
43918
+ if (input.DryRun != null) {
43919
+ entries["DryRun"] = input.DryRun;
43920
+ }
43921
+ return entries;
43922
+ };
43750
43923
  const se_UnmonitorInstancesRequest = (input, context) => {
43751
43924
  const entries = {};
43752
43925
  if (input.InstanceIds != null) {
@@ -49186,6 +49359,19 @@ const de_DescribeLocalGatewayVirtualInterfacesResult = (output, context) => {
49186
49359
  }
49187
49360
  return contents;
49188
49361
  };
49362
+ const de_DescribeLockedSnapshotsResult = (output, context) => {
49363
+ const contents = {};
49364
+ if (output.snapshotSet === "") {
49365
+ contents.Snapshots = [];
49366
+ }
49367
+ else if (output["snapshotSet"] !== undefined && output["snapshotSet"]["item"] !== undefined) {
49368
+ contents.Snapshots = de_LockedSnapshotsInfoList(__getArrayIfSingleItem(output["snapshotSet"]["item"]), context);
49369
+ }
49370
+ if (output["nextToken"] !== undefined) {
49371
+ contents.NextToken = __expectString(output["nextToken"]);
49372
+ }
49373
+ return contents;
49374
+ };
49189
49375
  const de_DescribeManagedPrefixListsResult = (output, context) => {
49190
49376
  const contents = {};
49191
49377
  if (output["nextToken"] !== undefined) {
@@ -56932,6 +57118,72 @@ const de_LocalStorageTypeSet = (output, context) => {
56932
57118
  return __expectString(entry);
56933
57119
  });
56934
57120
  };
57121
+ const de_LockedSnapshotsInfo = (output, context) => {
57122
+ const contents = {};
57123
+ if (output["ownerId"] !== undefined) {
57124
+ contents.OwnerId = __expectString(output["ownerId"]);
57125
+ }
57126
+ if (output["snapshotId"] !== undefined) {
57127
+ contents.SnapshotId = __expectString(output["snapshotId"]);
57128
+ }
57129
+ if (output["lockState"] !== undefined) {
57130
+ contents.LockState = __expectString(output["lockState"]);
57131
+ }
57132
+ if (output["lockDuration"] !== undefined) {
57133
+ contents.LockDuration = __strictParseInt32(output["lockDuration"]);
57134
+ }
57135
+ if (output["coolOffPeriod"] !== undefined) {
57136
+ contents.CoolOffPeriod = __strictParseInt32(output["coolOffPeriod"]);
57137
+ }
57138
+ if (output["coolOffPeriodExpiresOn"] !== undefined) {
57139
+ contents.CoolOffPeriodExpiresOn = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["coolOffPeriodExpiresOn"]));
57140
+ }
57141
+ if (output["lockCreatedOn"] !== undefined) {
57142
+ contents.LockCreatedOn = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lockCreatedOn"]));
57143
+ }
57144
+ if (output["lockDurationStartTime"] !== undefined) {
57145
+ contents.LockDurationStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lockDurationStartTime"]));
57146
+ }
57147
+ if (output["lockExpiresOn"] !== undefined) {
57148
+ contents.LockExpiresOn = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lockExpiresOn"]));
57149
+ }
57150
+ return contents;
57151
+ };
57152
+ const de_LockedSnapshotsInfoList = (output, context) => {
57153
+ return (output || [])
57154
+ .filter((e) => e != null)
57155
+ .map((entry) => {
57156
+ return de_LockedSnapshotsInfo(entry, context);
57157
+ });
57158
+ };
57159
+ const de_LockSnapshotResult = (output, context) => {
57160
+ const contents = {};
57161
+ if (output["snapshotId"] !== undefined) {
57162
+ contents.SnapshotId = __expectString(output["snapshotId"]);
57163
+ }
57164
+ if (output["lockState"] !== undefined) {
57165
+ contents.LockState = __expectString(output["lockState"]);
57166
+ }
57167
+ if (output["lockDuration"] !== undefined) {
57168
+ contents.LockDuration = __strictParseInt32(output["lockDuration"]);
57169
+ }
57170
+ if (output["coolOffPeriod"] !== undefined) {
57171
+ contents.CoolOffPeriod = __strictParseInt32(output["coolOffPeriod"]);
57172
+ }
57173
+ if (output["coolOffPeriodExpiresOn"] !== undefined) {
57174
+ contents.CoolOffPeriodExpiresOn = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["coolOffPeriodExpiresOn"]));
57175
+ }
57176
+ if (output["lockCreatedOn"] !== undefined) {
57177
+ contents.LockCreatedOn = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lockCreatedOn"]));
57178
+ }
57179
+ if (output["lockExpiresOn"] !== undefined) {
57180
+ contents.LockExpiresOn = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lockExpiresOn"]));
57181
+ }
57182
+ if (output["lockDurationStartTime"] !== undefined) {
57183
+ contents.LockDurationStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lockDurationStartTime"]));
57184
+ }
57185
+ return contents;
57186
+ };
56935
57187
  const de_MaintenanceDetails = (output, context) => {
56936
57188
  const contents = {};
56937
57189
  if (output["pendingMaintenance"] !== undefined) {
@@ -63589,6 +63841,13 @@ const de_UnassignPrivateNatGatewayAddressResult = (output, context) => {
63589
63841
  }
63590
63842
  return contents;
63591
63843
  };
63844
+ const de_UnlockSnapshotResult = (output, context) => {
63845
+ const contents = {};
63846
+ if (output["snapshotId"] !== undefined) {
63847
+ contents.SnapshotId = __expectString(output["snapshotId"]);
63848
+ }
63849
+ return contents;
63850
+ };
63592
63851
  const de_UnmonitorInstancesResult = (output, context) => {
63593
63852
  const contents = {};
63594
63853
  if (output.instancesSet === "") {