@aws-sdk/client-ec2 3.668.0 → 3.670.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 (106) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/index.js +1375 -975
  3. package/dist-cjs/runtimeConfig.browser.js +1 -1
  4. package/dist-cjs/runtimeConfig.js +1 -1
  5. package/dist-es/EC2.js +10 -0
  6. package/dist-es/commands/AcceptCapacityReservationBillingOwnershipCommand.js +22 -0
  7. package/dist-es/commands/AssociateCapacityReservationBillingOwnerCommand.js +22 -0
  8. package/dist-es/commands/DescribeCapacityReservationBillingRequestsCommand.js +22 -0
  9. package/dist-es/commands/DisassociateCapacityReservationBillingOwnerCommand.js +22 -0
  10. package/dist-es/commands/ModifyVpnConnectionCommand.js +1 -1
  11. package/dist-es/commands/RejectCapacityReservationBillingOwnershipCommand.js +22 -0
  12. package/dist-es/commands/index.js +5 -0
  13. package/dist-es/models/models_0.js +0 -833
  14. package/dist-es/models/models_1.js +833 -0
  15. package/dist-es/models/models_2.js +0 -8
  16. package/dist-es/models/models_3.js +20 -28
  17. package/dist-es/models/models_4.js +28 -4
  18. package/dist-es/models/models_5.js +4 -1
  19. package/dist-es/models/models_6.js +0 -3
  20. package/dist-es/models/models_7.js +3 -0
  21. package/dist-es/pagination/DescribeCapacityReservationBillingRequestsPaginator.js +4 -0
  22. package/dist-es/pagination/index.js +2 -1
  23. package/dist-es/protocols/Aws_ec2.js +324 -28
  24. package/dist-es/runtimeConfig.browser.js +2 -2
  25. package/dist-es/runtimeConfig.js +2 -2
  26. package/dist-types/EC2.d.ts +35 -0
  27. package/dist-types/EC2Client.d.ts +7 -2
  28. package/dist-types/commands/AcceptCapacityReservationBillingOwnershipCommand.d.ts +74 -0
  29. package/dist-types/commands/AssignPrivateNatGatewayAddressCommand.d.ts +1 -1
  30. package/dist-types/commands/AssociateCapacityReservationBillingOwnerCommand.d.ts +76 -0
  31. package/dist-types/commands/AssociateNatGatewayAddressCommand.d.ts +2 -6
  32. package/dist-types/commands/CreateCapacityReservationBySplittingCommand.d.ts +4 -1
  33. package/dist-types/commands/CreateCapacityReservationCommand.d.ts +1 -0
  34. package/dist-types/commands/CreateDefaultSubnetCommand.d.ts +1 -1
  35. package/dist-types/commands/CreateFlowLogsCommand.d.ts +1 -1
  36. package/dist-types/commands/CreateNatGatewayCommand.d.ts +1 -7
  37. package/dist-types/commands/CreateNetworkInsightsPathCommand.d.ts +2 -1
  38. package/dist-types/commands/CreateSubnetCidrReservationCommand.d.ts +2 -2
  39. package/dist-types/commands/CreateVpcCommand.d.ts +1 -1
  40. package/dist-types/commands/DeleteVpcCommand.d.ts +1 -7
  41. package/dist-types/commands/DescribeCapacityReservationBillingRequestsCommand.d.ts +102 -0
  42. package/dist-types/commands/DescribeCapacityReservationsCommand.d.ts +1 -0
  43. package/dist-types/commands/DescribeElasticGpusCommand.d.ts +1 -2
  44. package/dist-types/commands/DescribeImageAttributeCommand.d.ts +1 -1
  45. package/dist-types/commands/DescribeImagesCommand.d.ts +1 -2
  46. package/dist-types/commands/DisassociateCapacityReservationBillingOwnerCommand.d.ts +76 -0
  47. package/dist-types/commands/DisassociateNatGatewayAddressCommand.d.ts +1 -1
  48. package/dist-types/commands/GetFlowLogsIntegrationTemplateCommand.d.ts +1 -1
  49. package/dist-types/commands/GetGroupsForCapacityReservationCommand.d.ts +1 -1
  50. package/dist-types/commands/GetHostReservationPurchasePreviewCommand.d.ts +1 -1
  51. package/dist-types/commands/GetImageBlockPublicAccessStateCommand.d.ts +1 -1
  52. package/dist-types/commands/ModifyInstanceCpuOptionsCommand.d.ts +1 -1
  53. package/dist-types/commands/ModifyVpcEndpointServicePayerResponsibilityCommand.d.ts +1 -1
  54. package/dist-types/commands/ModifyVpcEndpointServicePermissionsCommand.d.ts +1 -1
  55. package/dist-types/commands/ModifyVpcPeeringConnectionOptionsCommand.d.ts +1 -1
  56. package/dist-types/commands/ModifyVpcTenancyCommand.d.ts +1 -1
  57. package/dist-types/commands/ModifyVpnConnectionCommand.d.ts +1 -2
  58. package/dist-types/commands/MoveCapacityReservationInstancesCommand.d.ts +2 -0
  59. package/dist-types/commands/PurchaseCapacityBlockCommand.d.ts +1 -0
  60. package/dist-types/commands/RejectCapacityReservationBillingOwnershipCommand.d.ts +74 -0
  61. package/dist-types/commands/UnassignPrivateNatGatewayAddressCommand.d.ts +1 -3
  62. package/dist-types/commands/index.d.ts +5 -0
  63. package/dist-types/models/models_0.d.ts +61 -930
  64. package/dist-types/models/models_1.d.ts +955 -184
  65. package/dist-types/models/models_2.d.ts +131 -82
  66. package/dist-types/models/models_3.d.ts +259 -468
  67. package/dist-types/models/models_4.d.ts +1303 -1319
  68. package/dist-types/models/models_5.d.ts +516 -262
  69. package/dist-types/models/models_6.d.ts +269 -253
  70. package/dist-types/models/models_7.d.ts +280 -10
  71. package/dist-types/pagination/DescribeCapacityReservationBillingRequestsPaginator.d.ts +7 -0
  72. package/dist-types/pagination/index.d.ts +2 -1
  73. package/dist-types/protocols/Aws_ec2.d.ts +45 -0
  74. package/dist-types/ts3.4/EC2.d.ts +115 -0
  75. package/dist-types/ts3.4/EC2Client.d.ts +30 -0
  76. package/dist-types/ts3.4/commands/AcceptCapacityReservationBillingOwnershipCommand.d.ts +51 -0
  77. package/dist-types/ts3.4/commands/AssociateCapacityReservationBillingOwnerCommand.d.ts +51 -0
  78. package/dist-types/ts3.4/commands/CreateCapacityReservationBySplittingCommand.d.ts +2 -4
  79. package/dist-types/ts3.4/commands/CreateNetworkInsightsPathCommand.d.ts +2 -4
  80. package/dist-types/ts3.4/commands/DescribeCapacityReservationBillingRequestsCommand.d.ts +51 -0
  81. package/dist-types/ts3.4/commands/DescribeImageAttributeCommand.d.ts +1 -1
  82. package/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +4 -2
  83. package/dist-types/ts3.4/commands/DisassociateCapacityReservationBillingOwnerCommand.d.ts +51 -0
  84. package/dist-types/ts3.4/commands/GetFlowLogsIntegrationTemplateCommand.d.ts +1 -1
  85. package/dist-types/ts3.4/commands/GetGroupsForCapacityReservationCommand.d.ts +1 -1
  86. package/dist-types/ts3.4/commands/GetHostReservationPurchasePreviewCommand.d.ts +1 -1
  87. package/dist-types/ts3.4/commands/GetImageBlockPublicAccessStateCommand.d.ts +1 -1
  88. package/dist-types/ts3.4/commands/ModifyVpcEndpointServicePayerResponsibilityCommand.d.ts +1 -1
  89. package/dist-types/ts3.4/commands/ModifyVpcEndpointServicePermissionsCommand.d.ts +1 -1
  90. package/dist-types/ts3.4/commands/ModifyVpcPeeringConnectionOptionsCommand.d.ts +1 -1
  91. package/dist-types/ts3.4/commands/ModifyVpcTenancyCommand.d.ts +1 -1
  92. package/dist-types/ts3.4/commands/ModifyVpnConnectionCommand.d.ts +4 -2
  93. package/dist-types/ts3.4/commands/RejectCapacityReservationBillingOwnershipCommand.d.ts +51 -0
  94. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  95. package/dist-types/ts3.4/models/models_0.d.ts +16 -850
  96. package/dist-types/ts3.4/models/models_1.d.ts +851 -32
  97. package/dist-types/ts3.4/models/models_2.d.ts +30 -25
  98. package/dist-types/ts3.4/models/models_3.d.ts +68 -83
  99. package/dist-types/ts3.4/models/models_4.d.ts +80 -99
  100. package/dist-types/ts3.4/models/models_5.d.ts +101 -67
  101. package/dist-types/ts3.4/models/models_6.d.ts +66 -64
  102. package/dist-types/ts3.4/models/models_7.d.ts +73 -8
  103. package/dist-types/ts3.4/pagination/DescribeCapacityReservationBillingRequestsPaginator.d.ts +11 -0
  104. package/dist-types/ts3.4/pagination/index.d.ts +2 -1
  105. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +60 -0
  106. package/package.json +7 -7
@@ -336,14 +336,6 @@ export const DeleteFleetErrorCode = {
336
336
  FLEET_NOT_IN_DELETABLE_STATE: "fleetNotInDeletableState",
337
337
  UNEXPECTED_ERROR: "unexpectedError",
338
338
  };
339
- export const LaunchTemplateErrorCode = {
340
- LAUNCH_TEMPLATE_ID_DOES_NOT_EXIST: "launchTemplateIdDoesNotExist",
341
- LAUNCH_TEMPLATE_ID_MALFORMED: "launchTemplateIdMalformed",
342
- LAUNCH_TEMPLATE_NAME_DOES_NOT_EXIST: "launchTemplateNameDoesNotExist",
343
- LAUNCH_TEMPLATE_NAME_MALFORMED: "launchTemplateNameMalformed",
344
- LAUNCH_TEMPLATE_VERSION_DOES_NOT_EXIST: "launchTemplateVersionDoesNotExist",
345
- UNEXPECTED_ERROR: "unexpectedError",
346
- };
347
339
  export const CreateVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog = (obj) => ({
348
340
  ...obj,
349
341
  ...(obj.ClientSecret && { ClientSecret: SENSITIVE_STRING }),
@@ -1,5 +1,13 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { BundleTaskFilterSensitiveLog, VerifiedAccessTrustProviderFilterSensitiveLog, } from "./models_0";
3
+ export const LaunchTemplateErrorCode = {
4
+ LAUNCH_TEMPLATE_ID_DOES_NOT_EXIST: "launchTemplateIdDoesNotExist",
5
+ LAUNCH_TEMPLATE_ID_MALFORMED: "launchTemplateIdMalformed",
6
+ LAUNCH_TEMPLATE_NAME_DOES_NOT_EXIST: "launchTemplateNameDoesNotExist",
7
+ LAUNCH_TEMPLATE_NAME_MALFORMED: "launchTemplateNameMalformed",
8
+ LAUNCH_TEMPLATE_VERSION_DOES_NOT_EXIST: "launchTemplateVersionDoesNotExist",
9
+ UNEXPECTED_ERROR: "unexpectedError",
10
+ };
3
11
  export const DeleteQueuedReservedInstancesErrorCode = {
4
12
  RESERVED_INSTANCES_ID_INVALID: "reserved-instances-id-invalid",
5
13
  RESERVED_INSTANCES_NOT_IN_QUEUED_STATE: "reserved-instances-not-in-queued-state",
@@ -53,6 +61,18 @@ export const PeriodType = {
53
61
  export const StatisticType = {
54
62
  p50: "p50",
55
63
  };
64
+ export const CallerRole = {
65
+ odcr_owner: "odcr-owner",
66
+ unused_reservation_billing_owner: "unused-reservation-billing-owner",
67
+ };
68
+ export const CapacityReservationBillingRequestStatus = {
69
+ accepted: "accepted",
70
+ cancelled: "cancelled",
71
+ expired: "expired",
72
+ pending: "pending",
73
+ rejected: "rejected",
74
+ revoked: "revoked",
75
+ };
56
76
  export const ClientVpnConnectionStatusCode = {
57
77
  active: "active",
58
78
  failed_to_terminate: "failed-to-terminate",
@@ -156,34 +176,6 @@ export const ImageAttributeName = {
156
176
  tpmSupport: "tpmSupport",
157
177
  uefiData: "uefiData",
158
178
  };
159
- export const ArchitectureValues = {
160
- arm64: "arm64",
161
- arm64_mac: "arm64_mac",
162
- i386: "i386",
163
- x86_64: "x86_64",
164
- x86_64_mac: "x86_64_mac",
165
- };
166
- export const BootModeValues = {
167
- legacy_bios: "legacy-bios",
168
- uefi: "uefi",
169
- uefi_preferred: "uefi-preferred",
170
- };
171
- export const HypervisorType = {
172
- ovm: "ovm",
173
- xen: "xen",
174
- };
175
- export const ImageTypeValues = {
176
- kernel: "kernel",
177
- machine: "machine",
178
- ramdisk: "ramdisk",
179
- };
180
- export const ImdsSupportValues = {
181
- v2_0: "v2.0",
182
- };
183
- export const DeviceType = {
184
- ebs: "ebs",
185
- instance_store: "instance-store",
186
- };
187
179
  export const DeleteVerifiedAccessTrustProviderResultFilterSensitiveLog = (obj) => ({
188
180
  ...obj,
189
181
  ...(obj.VerifiedAccessTrustProvider && {
@@ -1,5 +1,33 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { LaunchTemplateVersionFilterSensitiveLog, } from "./models_1";
3
+ export const ArchitectureValues = {
4
+ arm64: "arm64",
5
+ arm64_mac: "arm64_mac",
6
+ i386: "i386",
7
+ x86_64: "x86_64",
8
+ x86_64_mac: "x86_64_mac",
9
+ };
10
+ export const BootModeValues = {
11
+ legacy_bios: "legacy-bios",
12
+ uefi: "uefi",
13
+ uefi_preferred: "uefi-preferred",
14
+ };
15
+ export const HypervisorType = {
16
+ ovm: "ovm",
17
+ xen: "xen",
18
+ };
19
+ export const ImageTypeValues = {
20
+ kernel: "kernel",
21
+ machine: "machine",
22
+ ramdisk: "ramdisk",
23
+ };
24
+ export const ImdsSupportValues = {
25
+ v2_0: "v2.0",
26
+ };
27
+ export const DeviceType = {
28
+ ebs: "ebs",
29
+ instance_store: "instance-store",
30
+ };
3
31
  export const ImageState = {
4
32
  available: "available",
5
33
  deregistered: "deregistered",
@@ -305,7 +333,3 @@ export const DescribeLaunchTemplateVersionsResultFilterSensitiveLog = (obj) => (
305
333
  LaunchTemplateVersions: obj.LaunchTemplateVersions.map((item) => LaunchTemplateVersionFilterSensitiveLog(item)),
306
334
  }),
307
335
  });
308
- export const SpotFleetLaunchSpecificationFilterSensitiveLog = (obj) => ({
309
- ...obj,
310
- ...(obj.UserData && { UserData: SENSITIVE_STRING }),
311
- });
@@ -1,7 +1,6 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { VerifiedAccessTrustProviderFilterSensitiveLog, } from "./models_0";
3
3
  import { VpnConnectionFilterSensitiveLog, } from "./models_2";
4
- import { SpotFleetLaunchSpecificationFilterSensitiveLog, } from "./models_4";
5
4
  export const OnDemandAllocationStrategy = {
6
5
  LOWEST_PRICE: "lowestPrice",
7
6
  PRIORITIZED: "prioritized",
@@ -79,6 +78,10 @@ export const PartitionLoadFrequency = {
79
78
  NONE: "none",
80
79
  WEEKLY: "weekly",
81
80
  };
81
+ export const SpotFleetLaunchSpecificationFilterSensitiveLog = (obj) => ({
82
+ ...obj,
83
+ ...(obj.UserData && { UserData: SENSITIVE_STRING }),
84
+ });
82
85
  export const SpotFleetRequestConfigDataFilterSensitiveLog = (obj) => ({
83
86
  ...obj,
84
87
  ...(obj.LaunchSpecifications && {
@@ -131,9 +131,6 @@ export const TrafficMirrorSessionField = {
131
131
  packet_length: "packet-length",
132
132
  virtual_network_id: "virtual-network-id",
133
133
  };
134
- export const VpcTenancy = {
135
- default: "default",
136
- };
137
134
  export const GetInstanceTpmEkPubResultFilterSensitiveLog = (obj) => ({
138
135
  ...obj,
139
136
  ...(obj.KeyValue && { KeyValue: SENSITIVE_STRING }),
@@ -1,6 +1,9 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { VpnConnectionFilterSensitiveLog, } from "./models_2";
3
3
  import { SpotFleetRequestConfigDataFilterSensitiveLog, SpotInstanceRequestFilterSensitiveLog, } from "./models_5";
4
+ export const VpcTenancy = {
5
+ default: "default",
6
+ };
4
7
  export const Status = {
5
8
  inClassic: "InClassic",
6
9
  inVpc: "InVpc",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { DescribeCapacityReservationBillingRequestsCommand, } from "../commands/DescribeCapacityReservationBillingRequestsCommand";
3
+ import { EC2Client } from "../EC2Client";
4
+ export const paginateDescribeCapacityReservationBillingRequests = createPaginator(EC2Client, DescribeCapacityReservationBillingRequestsCommand, "NextToken", "NextToken", "MaxResults");
@@ -3,12 +3,13 @@ export * from "./DescribeAddressesAttributePaginator";
3
3
  export * from "./DescribeAwsNetworkPerformanceMetricSubscriptionsPaginator";
4
4
  export * from "./DescribeByoipCidrsPaginator";
5
5
  export * from "./DescribeCapacityBlockOfferingsPaginator";
6
+ export * from "./DescribeCapacityReservationBillingRequestsPaginator";
6
7
  export * from "./DescribeCapacityReservationFleetsPaginator";
7
8
  export * from "./DescribeCapacityReservationsPaginator";
8
9
  export * from "./DescribeCarrierGatewaysPaginator";
9
10
  export * from "./DescribeClassicLinkInstancesPaginator";
10
- export * from "./DescribeClientVpnAuthorizationRulesPaginator";
11
11
  export * from "./Interfaces";
12
+ export * from "./DescribeClientVpnAuthorizationRulesPaginator";
12
13
  export * from "./DescribeClientVpnConnectionsPaginator";
13
14
  export * from "./DescribeClientVpnEndpointsPaginator";
14
15
  export * from "./DescribeClientVpnRoutesPaginator";