@aws-sdk/client-ec2 3.627.0 → 3.631.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 (59) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +238 -69
  3. package/dist-es/EC2.js +4 -0
  4. package/dist-es/commands/CreateCapacityReservationBySplittingCommand.js +24 -0
  5. package/dist-es/commands/ModifyVpnTunnelCertificateCommand.js +1 -1
  6. package/dist-es/commands/MoveCapacityReservationInstancesCommand.js +24 -0
  7. package/dist-es/commands/index.js +2 -0
  8. package/dist-es/models/models_0.js +0 -3
  9. package/dist-es/models/models_1.js +3 -5
  10. package/dist-es/models/models_2.js +5 -0
  11. package/dist-es/models/models_3.js +0 -13
  12. package/dist-es/models/models_4.js +13 -4
  13. package/dist-es/models/models_5.js +4 -4
  14. package/dist-es/models/models_6.js +4 -8
  15. package/dist-es/models/models_7.js +8 -0
  16. package/dist-es/protocols/Aws_ec2.js +139 -8
  17. package/dist-types/EC2.d.ts +14 -0
  18. package/dist-types/EC2Client.d.ts +4 -2
  19. package/dist-types/commands/CreateCapacityReservationBySplittingCommand.d.ts +148 -0
  20. package/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +1 -2
  21. package/dist-types/commands/CreateNetworkInterfaceCommand.d.ts +1 -2
  22. package/dist-types/commands/DeleteLaunchTemplateVersionsCommand.d.ts +2 -1
  23. package/dist-types/commands/DeleteLocalGatewayRouteCommand.d.ts +1 -2
  24. package/dist-types/commands/DescribeAddressTransfersCommand.d.ts +1 -1
  25. package/dist-types/commands/GetInstanceMetadataDefaultsCommand.d.ts +2 -1
  26. package/dist-types/commands/ModifyCapacityReservationCommand.d.ts +5 -5
  27. package/dist-types/commands/ModifyVpnTunnelCertificateCommand.d.ts +2 -1
  28. package/dist-types/commands/MoveCapacityReservationInstancesCommand.d.ts +157 -0
  29. package/dist-types/commands/index.d.ts +2 -0
  30. package/dist-types/models/models_0.d.ts +63 -99
  31. package/dist-types/models/models_1.d.ts +99 -150
  32. package/dist-types/models/models_2.d.ts +153 -49
  33. package/dist-types/models/models_3.d.ts +48 -32
  34. package/dist-types/models/models_4.d.ts +34 -52
  35. package/dist-types/models/models_5.d.ts +48 -23
  36. package/dist-types/models/models_6.d.ts +35 -237
  37. package/dist-types/models/models_7.d.ts +299 -4
  38. package/dist-types/protocols/Aws_ec2.d.ts +18 -0
  39. package/dist-types/ts3.4/EC2.d.ts +40 -0
  40. package/dist-types/ts3.4/EC2Client.d.ts +12 -0
  41. package/dist-types/ts3.4/commands/CreateCapacityReservationBySplittingCommand.d.ts +40 -0
  42. package/dist-types/ts3.4/commands/CreateCapacityReservationFleetCommand.d.ts +4 -2
  43. package/dist-types/ts3.4/commands/CreateNetworkInterfaceCommand.d.ts +4 -2
  44. package/dist-types/ts3.4/commands/DeleteLaunchTemplateVersionsCommand.d.ts +2 -4
  45. package/dist-types/ts3.4/commands/DeleteLocalGatewayRouteCommand.d.ts +4 -2
  46. package/dist-types/ts3.4/commands/GetInstanceMetadataDefaultsCommand.d.ts +2 -4
  47. package/dist-types/ts3.4/commands/ModifyVpnTunnelCertificateCommand.d.ts +2 -4
  48. package/dist-types/ts3.4/commands/MoveCapacityReservationInstancesCommand.d.ts +40 -0
  49. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  50. package/dist-types/ts3.4/models/models_0.d.ts +12 -18
  51. package/dist-types/ts3.4/models/models_1.d.ts +19 -28
  52. package/dist-types/ts3.4/models/models_2.d.ts +32 -10
  53. package/dist-types/ts3.4/models/models_3.d.ts +13 -17
  54. package/dist-types/ts3.4/models/models_4.d.ts +16 -12
  55. package/dist-types/ts3.4/models/models_5.d.ts +10 -10
  56. package/dist-types/ts3.4/models/models_6.d.ts +12 -40
  57. package/dist-types/ts3.4/models/models_7.d.ts +53 -5
  58. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +24 -0
  59. package/package.json +7 -7
@@ -101,10 +101,19 @@ import {
101
101
  LoadBalancersConfig,
102
102
  OnDemandAllocationStrategy,
103
103
  RIProductDescription,
104
- SpotCapacityRebalance,
105
104
  SpotFleetLaunchSpecification,
106
105
  SpotPlacement,
107
106
  } from "./models_4";
107
+ export declare const ReplacementStrategy: {
108
+ readonly LAUNCH: "launch";
109
+ readonly LAUNCH_BEFORE_TERMINATE: "launch-before-terminate";
110
+ };
111
+ export type ReplacementStrategy =
112
+ (typeof ReplacementStrategy)[keyof typeof ReplacementStrategy];
113
+ export interface SpotCapacityRebalance {
114
+ ReplacementStrategy?: ReplacementStrategy;
115
+ TerminationDelay?: number;
116
+ }
108
117
  export interface SpotMaintenanceStrategies {
109
118
  CapacityRebalance?: SpotCapacityRebalance;
110
119
  }
@@ -1688,15 +1697,6 @@ export interface InstanceMetadataDefaultsResponse {
1688
1697
  HttpEndpoint?: InstanceMetadataEndpointState;
1689
1698
  InstanceMetadataTags?: InstanceMetadataTagsState;
1690
1699
  }
1691
- export interface GetInstanceMetadataDefaultsResult {
1692
- AccountLevel?: InstanceMetadataDefaultsResponse;
1693
- }
1694
- export declare const EkPubKeyFormat: {
1695
- readonly der: "der";
1696
- readonly tpmt: "tpmt";
1697
- };
1698
- export type EkPubKeyFormat =
1699
- (typeof EkPubKeyFormat)[keyof typeof EkPubKeyFormat];
1700
1700
  export declare const SpotFleetRequestConfigDataFilterSensitiveLog: (
1701
1701
  obj: SpotFleetRequestConfigData
1702
1702
  ) => any;
@@ -14,6 +14,7 @@ import {
14
14
  HostMaintenance,
15
15
  HostRecovery,
16
16
  InstanceEventWindow,
17
+ InstanceMatchCriteria,
17
18
  IpamPoolAllocation,
18
19
  Ipv6SupportValue,
19
20
  SecurityGroupReferencingSupportValue,
@@ -69,15 +70,8 @@ import {
69
70
  DefaultRouteTableAssociationValue,
70
71
  DefaultRouteTablePropagationValue,
71
72
  DnsOptionsSpecification,
72
- IKEVersionsRequestListValue,
73
73
  IpAddressType,
74
74
  PayerResponsibility,
75
- Phase1DHGroupNumbersRequestListValue,
76
- Phase1EncryptionAlgorithmsRequestListValue,
77
- Phase1IntegrityAlgorithmsRequestListValue,
78
- Phase2DHGroupNumbersRequestListValue,
79
- Phase2EncryptionAlgorithmsRequestListValue,
80
- Phase2IntegrityAlgorithmsRequestListValue,
81
75
  SubnetCidrReservation,
82
76
  SubnetConfiguration,
83
77
  TrafficDirection,
@@ -95,7 +89,6 @@ import {
95
89
  VerifiedAccessSseSpecificationRequest,
96
90
  VpnConnection,
97
91
  VpnEcmpSupportValue,
98
- VpnTunnelLogOptionsSpecification,
99
92
  } from "./models_2";
100
93
  import {
101
94
  ArchitectureValues,
@@ -132,14 +125,23 @@ import {
132
125
  VirtualizationType,
133
126
  } from "./models_4";
134
127
  import {
135
- EkPubKeyFormat,
136
128
  InstanceFamilyCreditSpecification,
129
+ InstanceMetadataDefaultsResponse,
137
130
  SnapshotBlockPublicAccessState,
138
131
  TransitGatewayPropagationState,
139
132
  UnlimitedSupportedInstanceFamily,
140
133
  VerifiedAccessInstanceLoggingConfiguration,
141
134
  VolumeModification,
142
135
  } from "./models_5";
136
+ export interface GetInstanceMetadataDefaultsResult {
137
+ AccountLevel?: InstanceMetadataDefaultsResponse;
138
+ }
139
+ export declare const EkPubKeyFormat: {
140
+ readonly der: "der";
141
+ readonly tpmt: "tpmt";
142
+ };
143
+ export type EkPubKeyFormat =
144
+ (typeof EkPubKeyFormat)[keyof typeof EkPubKeyFormat];
143
145
  export declare const EkPubKeyType: {
144
146
  readonly ECC_SEC_P384: "ecc-sec-p384";
145
147
  readonly RSA_2048: "rsa-2048";
@@ -1024,6 +1026,7 @@ export interface ModifyCapacityReservationRequest {
1024
1026
  Accept?: boolean;
1025
1027
  DryRun?: boolean;
1026
1028
  AdditionalInfo?: string;
1029
+ InstanceMatchCriteria?: InstanceMatchCriteria;
1027
1030
  }
1028
1031
  export interface ModifyCapacityReservationResult {
1029
1032
  Return?: boolean;
@@ -1895,31 +1898,6 @@ export interface ModifyVpnTunnelCertificateRequest {
1895
1898
  VpnTunnelOutsideIpAddress: string | undefined;
1896
1899
  DryRun?: boolean;
1897
1900
  }
1898
- export interface ModifyVpnTunnelCertificateResult {
1899
- VpnConnection?: VpnConnection;
1900
- }
1901
- export interface ModifyVpnTunnelOptionsSpecification {
1902
- TunnelInsideCidr?: string;
1903
- TunnelInsideIpv6Cidr?: string;
1904
- PreSharedKey?: string;
1905
- Phase1LifetimeSeconds?: number;
1906
- Phase2LifetimeSeconds?: number;
1907
- RekeyMarginTimeSeconds?: number;
1908
- RekeyFuzzPercentage?: number;
1909
- ReplayWindowSize?: number;
1910
- DPDTimeoutSeconds?: number;
1911
- DPDTimeoutAction?: string;
1912
- Phase1EncryptionAlgorithms?: Phase1EncryptionAlgorithmsRequestListValue[];
1913
- Phase2EncryptionAlgorithms?: Phase2EncryptionAlgorithmsRequestListValue[];
1914
- Phase1IntegrityAlgorithms?: Phase1IntegrityAlgorithmsRequestListValue[];
1915
- Phase2IntegrityAlgorithms?: Phase2IntegrityAlgorithmsRequestListValue[];
1916
- Phase1DHGroupNumbers?: Phase1DHGroupNumbersRequestListValue[];
1917
- Phase2DHGroupNumbers?: Phase2DHGroupNumbersRequestListValue[];
1918
- IKEVersions?: IKEVersionsRequestListValue[];
1919
- StartupAction?: string;
1920
- LogOptions?: VpnTunnelLogOptionsSpecification;
1921
- EnableTunnelLifecycleControl?: boolean;
1922
- }
1923
1901
  export declare const GetInstanceTpmEkPubResultFilterSensitiveLog: (
1924
1902
  obj: GetInstanceTpmEkPubResult
1925
1903
  ) => any;
@@ -1985,9 +1963,3 @@ export declare const ModifyVpnConnectionResultFilterSensitiveLog: (
1985
1963
  export declare const ModifyVpnConnectionOptionsResultFilterSensitiveLog: (
1986
1964
  obj: ModifyVpnConnectionOptionsResult
1987
1965
  ) => any;
1988
- export declare const ModifyVpnTunnelCertificateResultFilterSensitiveLog: (
1989
- obj: ModifyVpnTunnelCertificateResult
1990
- ) => any;
1991
- export declare const ModifyVpnTunnelOptionsSpecificationFilterSensitiveLog: (
1992
- obj: ModifyVpnTunnelOptionsSpecification
1993
- ) => any;
@@ -38,10 +38,18 @@ import {
38
38
  SpotInstanceType,
39
39
  } from "./models_1";
40
40
  import {
41
+ IKEVersionsRequestListValue,
42
+ Phase1DHGroupNumbersRequestListValue,
43
+ Phase1EncryptionAlgorithmsRequestListValue,
44
+ Phase1IntegrityAlgorithmsRequestListValue,
45
+ Phase2DHGroupNumbersRequestListValue,
46
+ Phase2EncryptionAlgorithmsRequestListValue,
47
+ Phase2IntegrityAlgorithmsRequestListValue,
41
48
  SnapshotState,
42
49
  SSEType,
43
50
  TransitGatewayRoute,
44
51
  VpnConnection,
52
+ VpnTunnelLogOptionsSpecification,
45
53
  } from "./models_2";
46
54
  import {
47
55
  ArchitectureValues,
@@ -52,7 +60,6 @@ import {
52
60
  ImdsSupportValues,
53
61
  InstanceTagNotificationAttribute,
54
62
  IpamPoolCidr,
55
- TpmSupportValues,
56
63
  } from "./models_3";
57
64
  import {
58
65
  HttpTokensState,
@@ -70,6 +77,7 @@ import {
70
77
  ScheduledInstance,
71
78
  SnapshotAttributeName,
72
79
  SpotPlacement,
80
+ TpmSupportValues,
73
81
  } from "./models_4";
74
82
  import {
75
83
  Purchase,
@@ -77,10 +85,32 @@ import {
77
85
  SpotFleetRequestConfigData,
78
86
  SpotInstanceRequest,
79
87
  } from "./models_5";
80
- import {
81
- CapacityReservationSpecification,
82
- ModifyVpnTunnelOptionsSpecification,
83
- } from "./models_6";
88
+ import { CapacityReservationSpecification } from "./models_6";
89
+ export interface ModifyVpnTunnelCertificateResult {
90
+ VpnConnection?: VpnConnection;
91
+ }
92
+ export interface ModifyVpnTunnelOptionsSpecification {
93
+ TunnelInsideCidr?: string;
94
+ TunnelInsideIpv6Cidr?: string;
95
+ PreSharedKey?: string;
96
+ Phase1LifetimeSeconds?: number;
97
+ Phase2LifetimeSeconds?: number;
98
+ RekeyMarginTimeSeconds?: number;
99
+ RekeyFuzzPercentage?: number;
100
+ ReplayWindowSize?: number;
101
+ DPDTimeoutSeconds?: number;
102
+ DPDTimeoutAction?: string;
103
+ Phase1EncryptionAlgorithms?: Phase1EncryptionAlgorithmsRequestListValue[];
104
+ Phase2EncryptionAlgorithms?: Phase2EncryptionAlgorithmsRequestListValue[];
105
+ Phase1IntegrityAlgorithms?: Phase1IntegrityAlgorithmsRequestListValue[];
106
+ Phase2IntegrityAlgorithms?: Phase2IntegrityAlgorithmsRequestListValue[];
107
+ Phase1DHGroupNumbers?: Phase1DHGroupNumbersRequestListValue[];
108
+ Phase2DHGroupNumbers?: Phase2DHGroupNumbersRequestListValue[];
109
+ IKEVersions?: IKEVersionsRequestListValue[];
110
+ StartupAction?: string;
111
+ LogOptions?: VpnTunnelLogOptionsSpecification;
112
+ EnableTunnelLifecycleControl?: boolean;
113
+ }
84
114
  export interface ModifyVpnTunnelOptionsRequest {
85
115
  VpnConnectionId: string | undefined;
86
116
  VpnTunnelOutsideIpAddress: string | undefined;
@@ -125,6 +155,18 @@ export interface MoveByoipCidrToIpamRequest {
125
155
  export interface MoveByoipCidrToIpamResult {
126
156
  ByoipCidr?: ByoipCidr;
127
157
  }
158
+ export interface MoveCapacityReservationInstancesRequest {
159
+ DryRun?: boolean;
160
+ ClientToken?: string;
161
+ SourceCapacityReservationId: string | undefined;
162
+ DestinationCapacityReservationId: string | undefined;
163
+ InstanceCount: number | undefined;
164
+ }
165
+ export interface MoveCapacityReservationInstancesResult {
166
+ SourceCapacityReservation?: CapacityReservation;
167
+ DestinationCapacityReservation?: CapacityReservation;
168
+ InstanceCount?: number;
169
+ }
128
170
  export interface CidrAuthorizationContext {
129
171
  Message: string | undefined;
130
172
  Signature: string | undefined;
@@ -1019,6 +1061,12 @@ export interface WithdrawByoipCidrRequest {
1019
1061
  export interface WithdrawByoipCidrResult {
1020
1062
  ByoipCidr?: ByoipCidr;
1021
1063
  }
1064
+ export declare const ModifyVpnTunnelCertificateResultFilterSensitiveLog: (
1065
+ obj: ModifyVpnTunnelCertificateResult
1066
+ ) => any;
1067
+ export declare const ModifyVpnTunnelOptionsSpecificationFilterSensitiveLog: (
1068
+ obj: ModifyVpnTunnelOptionsSpecification
1069
+ ) => any;
1022
1070
  export declare const ModifyVpnTunnelOptionsRequestFilterSensitiveLog: (
1023
1071
  obj: ModifyVpnTunnelOptionsRequest
1024
1072
  ) => any;
@@ -223,6 +223,10 @@ import {
223
223
  CopySnapshotCommandInput,
224
224
  CopySnapshotCommandOutput,
225
225
  } from "../commands/CopySnapshotCommand";
226
+ import {
227
+ CreateCapacityReservationBySplittingCommandInput,
228
+ CreateCapacityReservationBySplittingCommandOutput,
229
+ } from "../commands/CreateCapacityReservationBySplittingCommand";
226
230
  import {
227
231
  CreateCapacityReservationCommandInput,
228
232
  CreateCapacityReservationCommandOutput,
@@ -2235,6 +2239,10 @@ import {
2235
2239
  MoveByoipCidrToIpamCommandInput,
2236
2240
  MoveByoipCidrToIpamCommandOutput,
2237
2241
  } from "../commands/MoveByoipCidrToIpamCommand";
2242
+ import {
2243
+ MoveCapacityReservationInstancesCommandInput,
2244
+ MoveCapacityReservationInstancesCommandOutput,
2245
+ } from "../commands/MoveCapacityReservationInstancesCommand";
2238
2246
  import {
2239
2247
  ProvisionByoipCidrCommandInput,
2240
2248
  ProvisionByoipCidrCommandOutput,
@@ -2727,6 +2735,10 @@ export declare const se_CreateCapacityReservationCommand: (
2727
2735
  input: CreateCapacityReservationCommandInput,
2728
2736
  context: __SerdeContext
2729
2737
  ) => Promise<__HttpRequest>;
2738
+ export declare const se_CreateCapacityReservationBySplittingCommand: (
2739
+ input: CreateCapacityReservationBySplittingCommandInput,
2740
+ context: __SerdeContext
2741
+ ) => Promise<__HttpRequest>;
2730
2742
  export declare const se_CreateCapacityReservationFleetCommand: (
2731
2743
  input: CreateCapacityReservationFleetCommandInput,
2732
2744
  context: __SerdeContext
@@ -4735,6 +4747,10 @@ export declare const se_MoveByoipCidrToIpamCommand: (
4735
4747
  input: MoveByoipCidrToIpamCommandInput,
4736
4748
  context: __SerdeContext
4737
4749
  ) => Promise<__HttpRequest>;
4750
+ export declare const se_MoveCapacityReservationInstancesCommand: (
4751
+ input: MoveCapacityReservationInstancesCommandInput,
4752
+ context: __SerdeContext
4753
+ ) => Promise<__HttpRequest>;
4738
4754
  export declare const se_ProvisionByoipCidrCommand: (
4739
4755
  input: ProvisionByoipCidrCommandInput,
4740
4756
  context: __SerdeContext
@@ -5227,6 +5243,10 @@ export declare const de_CreateCapacityReservationCommand: (
5227
5243
  output: __HttpResponse,
5228
5244
  context: __SerdeContext
5229
5245
  ) => Promise<CreateCapacityReservationCommandOutput>;
5246
+ export declare const de_CreateCapacityReservationBySplittingCommand: (
5247
+ output: __HttpResponse,
5248
+ context: __SerdeContext
5249
+ ) => Promise<CreateCapacityReservationBySplittingCommandOutput>;
5230
5250
  export declare const de_CreateCapacityReservationFleetCommand: (
5231
5251
  output: __HttpResponse,
5232
5252
  context: __SerdeContext
@@ -7235,6 +7255,10 @@ export declare const de_MoveByoipCidrToIpamCommand: (
7235
7255
  output: __HttpResponse,
7236
7256
  context: __SerdeContext
7237
7257
  ) => Promise<MoveByoipCidrToIpamCommandOutput>;
7258
+ export declare const de_MoveCapacityReservationInstancesCommand: (
7259
+ output: __HttpResponse,
7260
+ context: __SerdeContext
7261
+ ) => Promise<MoveCapacityReservationInstancesCommandOutput>;
7238
7262
  export declare const de_ProvisionByoipCidrCommand: (
7239
7263
  output: __HttpResponse,
7240
7264
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ec2",
3
3
  "description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
4
- "version": "3.627.0",
4
+ "version": "3.631.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-ec2",
@@ -20,18 +20,18 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.624.0",
24
- "@aws-sdk/client-sts": "3.624.0",
25
- "@aws-sdk/core": "3.624.0",
26
- "@aws-sdk/credential-provider-node": "3.624.0",
23
+ "@aws-sdk/client-sso-oidc": "3.631.0",
24
+ "@aws-sdk/client-sts": "3.631.0",
25
+ "@aws-sdk/core": "3.629.0",
26
+ "@aws-sdk/credential-provider-node": "3.631.0",
27
27
  "@aws-sdk/middleware-host-header": "3.620.0",
28
28
  "@aws-sdk/middleware-logger": "3.609.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.620.0",
30
30
  "@aws-sdk/middleware-sdk-ec2": "3.622.0",
31
- "@aws-sdk/middleware-user-agent": "3.620.0",
31
+ "@aws-sdk/middleware-user-agent": "3.631.0",
32
32
  "@aws-sdk/region-config-resolver": "3.614.0",
33
33
  "@aws-sdk/types": "3.609.0",
34
- "@aws-sdk/util-endpoints": "3.614.0",
34
+ "@aws-sdk/util-endpoints": "3.631.0",
35
35
  "@aws-sdk/util-user-agent-browser": "3.609.0",
36
36
  "@aws-sdk/util-user-agent-node": "3.614.0",
37
37
  "@smithy/config-resolver": "^3.0.5",