@aws-sdk/client-ec2 3.835.0 → 3.838.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 (37) hide show
  1. package/dist-cjs/index.js +36 -9
  2. package/dist-es/models/models_1.js +4 -0
  3. package/dist-es/models/models_2.js +0 -4
  4. package/dist-es/protocols/Aws_ec2.js +31 -4
  5. package/dist-types/commands/CancelCapacityReservationCommand.d.ts +12 -9
  6. package/dist-types/commands/CreateCapacityReservationCommand.d.ts +18 -15
  7. package/dist-types/commands/CreateImageCommand.d.ts +15 -0
  8. package/dist-types/commands/CreateInstanceConnectEndpointCommand.d.ts +2 -2
  9. package/dist-types/commands/CreateRouteCommand.d.ts +1 -0
  10. package/dist-types/commands/CreateRouteTableCommand.d.ts +1 -0
  11. package/dist-types/commands/DescribeCapacityBlockExtensionOfferingsCommand.d.ts +2 -2
  12. package/dist-types/commands/DescribeCapacityBlockOfferingsCommand.d.ts +1 -1
  13. package/dist-types/commands/DescribeImageAttributeCommand.d.ts +2 -0
  14. package/dist-types/commands/DescribeImagesCommand.d.ts +2 -0
  15. package/dist-types/commands/DescribeRouteTablesCommand.d.ts +1 -0
  16. package/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +2 -0
  17. package/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +2 -0
  18. package/dist-types/commands/ModifyCapacityReservationCommand.d.ts +19 -15
  19. package/dist-types/commands/ModifyInstanceCapacityReservationAttributesCommand.d.ts +1 -1
  20. package/dist-types/commands/ModifyInstanceNetworkPerformanceOptionsCommand.d.ts +1 -1
  21. package/dist-types/commands/RegisterImageCommand.d.ts +2 -0
  22. package/dist-types/commands/ReplaceRouteCommand.d.ts +1 -0
  23. package/dist-types/commands/RequestSpotFleetCommand.d.ts +2 -0
  24. package/dist-types/commands/RequestSpotInstancesCommand.d.ts +4 -0
  25. package/dist-types/commands/RunInstancesCommand.d.ts +2 -0
  26. package/dist-types/commands/StartDeclarativePoliciesReportCommand.d.ts +1 -1
  27. package/dist-types/commands/StopInstancesCommand.d.ts +4 -5
  28. package/dist-types/models/models_1.d.ts +91 -59
  29. package/dist-types/models/models_2.d.ts +35 -14
  30. package/dist-types/models/models_3.d.ts +18 -24
  31. package/dist-types/models/models_4.d.ts +7 -6
  32. package/dist-types/models/models_7.d.ts +21 -17
  33. package/dist-types/models/models_8.d.ts +5 -0
  34. package/dist-types/ts3.4/models/models_1.d.ts +9 -4
  35. package/dist-types/ts3.4/models/models_2.d.ts +8 -7
  36. package/dist-types/ts3.4/models/models_8.d.ts +1 -0
  37. package/package.json +1 -1
@@ -2896,13 +2896,16 @@ export interface ModifyInstanceAttributeRequest {
2896
2896
  }
2897
2897
  /**
2898
2898
  * <p>Describes an instance's Capacity Reservation targeting option. </p>
2899
- * <p>Use the <code>CapacityReservationPreference</code> parameter to configure the instance to
2900
- * run as an On-Demand Instance, to run in any <code>open</code> Capacity Reservation that
2901
- * has matching attributes, or to run only in a Capacity Reservation or Capacity
2899
+ * <p>Use the <code>CapacityReservationPreference</code> parameter to configure the instance
2900
+ * to run as an On-Demand Instance, to run in any <code>open</code> Capacity Reservation
2901
+ * that has matching attributes, or to run only in a Capacity Reservation or Capacity
2902
2902
  * Reservation group. Use the <code>CapacityReservationTarget</code> parameter to
2903
2903
  * explicitly target a specific Capacity Reservation or a Capacity Reservation
2904
2904
  * group.</p>
2905
- * <p>You can only specify <code>CapacityReservationPreference</code> and <code>CapacityReservationTarget</code> if the <code>CapacityReservationPreference</code> is <code>capacity-reservations-only</code>.</p>
2905
+ * <p>You can only specify <code>CapacityReservationPreference</code> and
2906
+ * <code>CapacityReservationTarget</code> if the
2907
+ * <code>CapacityReservationPreference</code> is
2908
+ * <code>capacity-reservations-only</code>.</p>
2906
2909
  * @public
2907
2910
  */
2908
2911
  export interface CapacityReservationSpecification {
@@ -2913,27 +2916,28 @@ export interface CapacityReservationSpecification {
2913
2916
  * <li>
2914
2917
  * <p>
2915
2918
  * <code>capacity-reservations-only</code> - The instance will only run in a
2916
- * Capacity Reservation or Capacity Reservation group. If capacity isn't
2917
- * available, the instance will fail to launch.</p>
2919
+ * Capacity Reservation or Capacity Reservation group. If capacity isn't available,
2920
+ * the instance will fail to launch.</p>
2918
2921
  * </li>
2919
2922
  * <li>
2920
2923
  * <p>
2921
2924
  * <code>open</code> - The instance can run in any <code>open</code> Capacity
2922
- * Reservation that has matching attributes (instance type, platform,
2923
- * Availability Zone, and tenancy). If capacity isn't available, the instance
2924
- * runs as an On-Demand Instance.</p>
2925
+ * Reservation that has matching attributes (instance type, platform, Availability
2926
+ * Zone, and tenancy). If capacity isn't available, the instance runs as an
2927
+ * On-Demand Instance.</p>
2925
2928
  * </li>
2926
2929
  * <li>
2927
2930
  * <p>
2928
- * <code>none</code> - The instance doesn't run in a Capacity Reservation even if one is available. The
2929
- * instance runs as an On-Demand Instance.</p>
2931
+ * <code>none</code> - The instance doesn't run in a Capacity Reservation even if
2932
+ * one is available. The instance runs as an On-Demand Instance.</p>
2930
2933
  * </li>
2931
2934
  * </ul>
2932
2935
  * @public
2933
2936
  */
2934
2937
  CapacityReservationPreference?: CapacityReservationPreference | undefined;
2935
2938
  /**
2936
- * <p>Information about the target Capacity Reservation or Capacity Reservation group.</p>
2939
+ * <p>Information about the target Capacity Reservation or Capacity Reservation
2940
+ * group.</p>
2937
2941
  * @public
2938
2942
  */
2939
2943
  CapacityReservationTarget?: CapacityReservationTarget | undefined;
@@ -3282,7 +3286,7 @@ export interface ModifyInstanceMaintenanceOptionsRequest {
3282
3286
  * </ul>
3283
3287
  * <p>This setting only applies to supported instances that have a scheduled reboot event.
3284
3288
  * For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/schedevents_actions_reboot.html#reboot-migration">Enable or disable reboot migration</a> in the
3285
- * <i>Amazon EC2 User Guide</i>.</p>
3289
+ * <i>Amazon EC2 User Guide</i>.</p>
3286
3290
  * @public
3287
3291
  */
3288
3292
  RebootMigration?: InstanceRebootMigrationState | undefined;
@@ -3290,7 +3294,7 @@ export interface ModifyInstanceMaintenanceOptionsRequest {
3290
3294
  * <p>Checks whether you have the required permissions for the action, without actually
3291
3295
  * making the request, and provides an error response. If you have the required
3292
3296
  * permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is
3293
- * <code>UnauthorizedOperation</code>.</p>
3297
+ * <code>UnauthorizedOperation</code>.</p>
3294
3298
  * @public
3295
3299
  */
3296
3300
  DryRun?: boolean | undefined;
@@ -3330,7 +3334,7 @@ export interface ModifyInstanceMaintenanceOptionsResult {
3330
3334
  * </ul>
3331
3335
  * <p>This setting only applies to supported instances that have a scheduled reboot event.
3332
3336
  * For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/schedevents_actions_reboot.html#reboot-migration">Enable or disable reboot migration</a> in the
3333
- * <i>Amazon EC2 User Guide</i>.</p>
3337
+ * <i>Amazon EC2 User Guide</i>.</p>
3334
3338
  * @public
3335
3339
  */
3336
3340
  RebootMigration?: InstanceRebootMigrationState | undefined;
@@ -3556,12 +3560,12 @@ export interface ModifyInstanceNetworkPerformanceRequest {
3556
3560
  * <dt>vpc-1</dt>
3557
3561
  * <dd>
3558
3562
  * <p>This option boosts your networking baseline bandwidth and reduces your EBS
3559
- * baseline bandwidth.</p>
3563
+ * baseline bandwidth.</p>
3560
3564
  * </dd>
3561
3565
  * <dt>ebs-1</dt>
3562
3566
  * <dd>
3563
3567
  * <p>This option boosts your EBS baseline bandwidth and reduces your networking
3564
- * baseline bandwidth.</p>
3568
+ * baseline bandwidth.</p>
3565
3569
  * </dd>
3566
3570
  * </dl>
3567
3571
  * @public
@@ -329,6 +329,11 @@ export interface ReplaceRouteRequest {
329
329
  * @public
330
330
  */
331
331
  CoreNetworkArn?: string | undefined;
332
+ /**
333
+ * <p>The Amazon Resource Name (ARN) of the ODB network.</p>
334
+ * @public
335
+ */
336
+ OdbNetworkArn?: string | undefined;
332
337
  /**
333
338
  * <p>Checks whether you have the required permissions for the action, without actually making the request,
334
339
  * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
@@ -2127,8 +2127,10 @@ export interface EbsBlockDevice {
2127
2127
  KmsKeyId?: string | undefined;
2128
2128
  Throughput?: number | undefined;
2129
2129
  OutpostArn?: string | undefined;
2130
+ AvailabilityZone?: string | undefined;
2130
2131
  Encrypted?: boolean | undefined;
2131
2132
  VolumeInitializationRate?: number | undefined;
2133
+ AvailabilityZoneId?: string | undefined;
2132
2134
  }
2133
2135
  export interface BlockDeviceMapping {
2134
2136
  Ebs?: EbsBlockDevice | undefined;
@@ -2136,8 +2138,15 @@ export interface BlockDeviceMapping {
2136
2138
  DeviceName?: string | undefined;
2137
2139
  VirtualName?: string | undefined;
2138
2140
  }
2141
+ export declare const SnapshotLocationEnum: {
2142
+ readonly LOCAL: "local";
2143
+ readonly REGIONAL: "regional";
2144
+ };
2145
+ export type SnapshotLocationEnum =
2146
+ (typeof SnapshotLocationEnum)[keyof typeof SnapshotLocationEnum];
2139
2147
  export interface CreateImageRequest {
2140
2148
  TagSpecifications?: TagSpecification[] | undefined;
2149
+ SnapshotLocation?: SnapshotLocationEnum | undefined;
2141
2150
  DryRun?: boolean | undefined;
2142
2151
  InstanceId: string | undefined;
2143
2152
  Name: string | undefined;
@@ -3005,10 +3014,6 @@ export interface ConnectionTrackingSpecification {
3005
3014
  export interface LaunchTemplateEnaSrdUdpSpecification {
3006
3015
  EnaSrdUdpEnabled?: boolean | undefined;
3007
3016
  }
3008
- export interface LaunchTemplateEnaSrdSpecification {
3009
- EnaSrdEnabled?: boolean | undefined;
3010
- EnaSrdUdpSpecification?: LaunchTemplateEnaSrdUdpSpecification | undefined;
3011
- }
3012
3017
  export declare const CopySnapshotRequestFilterSensitiveLog: (
3013
3018
  obj: CopySnapshotRequest
3014
3019
  ) => any;
@@ -45,7 +45,7 @@ import {
45
45
  LaunchTemplateCapacityReservationSpecificationResponse,
46
46
  LaunchTemplateCpuOptions,
47
47
  LaunchTemplateElasticInferenceAcceleratorResponse,
48
- LaunchTemplateEnaSrdSpecification,
48
+ LaunchTemplateEnaSrdUdpSpecification,
49
49
  LaunchTemplateEnclaveOptions,
50
50
  LaunchTemplateHibernationOptions,
51
51
  LaunchTemplateIamInstanceProfileSpecification,
@@ -60,12 +60,17 @@ import {
60
60
  OperatorResponse,
61
61
  PrivateIpAddressSpecification,
62
62
  ShutdownBehavior,
63
+ SnapshotLocationEnum,
63
64
  Subnet,
64
65
  Tenancy,
65
66
  ValidationWarning,
66
67
  VolumeType,
67
68
  Vpc,
68
69
  } from "./models_1";
70
+ export interface LaunchTemplateEnaSrdSpecification {
71
+ EnaSrdEnabled?: boolean | undefined;
72
+ EnaSrdUdpSpecification?: LaunchTemplateEnaSrdUdpSpecification | undefined;
73
+ }
69
74
  export interface Ipv4PrefixSpecificationResponse {
70
75
  Ipv4Prefix?: string | undefined;
71
76
  }
@@ -924,6 +929,7 @@ export interface CreateRouteRequest {
924
929
  LocalGatewayId?: string | undefined;
925
930
  CarrierGatewayId?: string | undefined;
926
931
  CoreNetworkArn?: string | undefined;
932
+ OdbNetworkArn?: string | undefined;
927
933
  DryRun?: boolean | undefined;
928
934
  RouteTableId: string | undefined;
929
935
  DestinationCidrBlock?: string | undefined;
@@ -1131,6 +1137,7 @@ export interface Route {
1131
1137
  State?: RouteState | undefined;
1132
1138
  VpcPeeringConnectionId?: string | undefined;
1133
1139
  CoreNetworkArn?: string | undefined;
1140
+ OdbNetworkArn?: string | undefined;
1134
1141
  }
1135
1142
  export interface RouteTable {
1136
1143
  Associations?: RouteTableAssociation[] | undefined;
@@ -1157,12 +1164,6 @@ export interface CreateSecurityGroupResult {
1157
1164
  Tags?: Tag[] | undefined;
1158
1165
  SecurityGroupArn?: string | undefined;
1159
1166
  }
1160
- export declare const SnapshotLocationEnum: {
1161
- readonly LOCAL: "local";
1162
- readonly REGIONAL: "regional";
1163
- };
1164
- export type SnapshotLocationEnum =
1165
- (typeof SnapshotLocationEnum)[keyof typeof SnapshotLocationEnum];
1166
1167
  export interface CreateSnapshotRequest {
1167
1168
  Description?: string | undefined;
1168
1169
  OutpostArn?: string | undefined;
@@ -134,6 +134,7 @@ export interface ReplaceRouteRequest {
134
134
  LocalGatewayId?: string | undefined;
135
135
  CarrierGatewayId?: string | undefined;
136
136
  CoreNetworkArn?: string | undefined;
137
+ OdbNetworkArn?: string | undefined;
137
138
  DryRun?: boolean | undefined;
138
139
  RouteTableId: string | undefined;
139
140
  DestinationCidrBlock?: string | undefined;
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.835.0",
4
+ "version": "3.838.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",