@aws-sdk/client-ec2 3.909.0 → 3.910.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 (52) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +175 -78
  3. package/dist-es/EC2.js +2 -0
  4. package/dist-es/commands/CopyVolumesCommand.js +22 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_1.js +22 -9
  7. package/dist-es/models/models_2.js +0 -20
  8. package/dist-es/models/models_3.js +7 -4
  9. package/dist-es/models/models_4.js +4 -4
  10. package/dist-es/models/models_5.js +5 -5
  11. package/dist-es/models/models_6.js +5 -0
  12. package/dist-es/protocols/Aws_ec2.js +113 -36
  13. package/dist-types/EC2.d.ts +7 -0
  14. package/dist-types/EC2Client.d.ts +3 -2
  15. package/dist-types/commands/CopyVolumesCommand.d.ts +137 -0
  16. package/dist-types/commands/CreateVolumeCommand.d.ts +3 -1
  17. package/dist-types/commands/DescribeCapacityReservationBillingRequestsCommand.d.ts +1 -2
  18. package/dist-types/commands/DescribeVolumeStatusCommand.d.ts +3 -2
  19. package/dist-types/commands/DescribeVolumesCommand.d.ts +1 -0
  20. package/dist-types/commands/GetManagedPrefixListEntriesCommand.d.ts +2 -1
  21. package/dist-types/commands/GetNetworkInsightsAccessScopeAnalysisFindingsCommand.d.ts +1 -2
  22. package/dist-types/commands/ProvisionIpamByoasnCommand.d.ts +1 -1
  23. package/dist-types/commands/index.d.ts +1 -0
  24. package/dist-types/models/models_1.d.ts +309 -115
  25. package/dist-types/models/models_2.d.ts +104 -227
  26. package/dist-types/models/models_3.d.ts +45 -83
  27. package/dist-types/models/models_4.d.ts +83 -30
  28. package/dist-types/models/models_5.d.ts +37 -32
  29. package/dist-types/models/models_6.d.ts +32 -46
  30. package/dist-types/models/models_7.d.ts +52 -43
  31. package/dist-types/models/models_8.d.ts +44 -7
  32. package/dist-types/protocols/Aws_ec2.d.ts +9 -0
  33. package/dist-types/ts3.4/EC2.d.ts +17 -0
  34. package/dist-types/ts3.4/EC2Client.d.ts +6 -0
  35. package/dist-types/ts3.4/commands/CopyVolumesCommand.d.ts +47 -0
  36. package/dist-types/ts3.4/commands/CreateVolumeCommand.d.ts +2 -1
  37. package/dist-types/ts3.4/commands/DescribeCapacityReservationBillingRequestsCommand.d.ts +4 -2
  38. package/dist-types/ts3.4/commands/DescribeVolumeStatusCommand.d.ts +2 -4
  39. package/dist-types/ts3.4/commands/GetManagedPrefixListEntriesCommand.d.ts +2 -4
  40. package/dist-types/ts3.4/commands/GetNetworkInsightsAccessScopeAnalysisFindingsCommand.d.ts +4 -2
  41. package/dist-types/ts3.4/commands/ProvisionIpamByoasnCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  43. package/dist-types/ts3.4/models/models_1.d.ts +67 -31
  44. package/dist-types/ts3.4/models/models_2.d.ts +18 -57
  45. package/dist-types/ts3.4/models/models_3.d.ts +14 -15
  46. package/dist-types/ts3.4/models/models_4.d.ts +13 -10
  47. package/dist-types/ts3.4/models/models_5.d.ts +13 -14
  48. package/dist-types/ts3.4/models/models_6.d.ts +13 -12
  49. package/dist-types/ts3.4/models/models_7.d.ts +12 -11
  50. package/dist-types/ts3.4/models/models_8.d.ts +12 -1
  51. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +12 -0
  52. package/package.json +35 -35
@@ -1,4 +1,4 @@
1
- import { AcceleratorCount, AcceleratorCountRequest, AcceleratorManufacturer, AcceleratorName, AcceleratorTotalMemoryMiB, AcceleratorTotalMemoryMiBRequest, AcceleratorType, AddIpamOperatingRegion, AddressFamily, AllocationType, AttachmentStatus, CapacityReservationFleetState, InstanceEventWindow, ResourceType, SubnetIpv6CidrBlockAssociation, Tag, TagSpecification, UnsuccessfulItem, VpcCidrBlockAssociation, VpcIpv6CidrBlockAssociation, WeekDay } from "./models_0";
1
+ import { AcceleratorCount, AcceleratorCountRequest, AcceleratorManufacturer, AcceleratorName, AcceleratorTotalMemoryMiB, AcceleratorTotalMemoryMiBRequest, AcceleratorType, AddIpamOperatingRegion, AddressFamily, AllocationType, AttachmentStatus, CapacityReservationFleetState, InstanceEventWindow, ResourceType, SubnetIpv6CidrBlockAssociation, Tag, TagSpecification, UnsuccessfulItem, VolumeAttachment, VpcCidrBlockAssociation, VpcIpv6CidrBlockAssociation, WeekDay } from "./models_0";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -355,6 +355,312 @@ export interface CopySnapshotResult {
355
355
  */
356
356
  SnapshotId?: string | undefined;
357
357
  }
358
+ /**
359
+ * @public
360
+ * @enum
361
+ */
362
+ export declare const VolumeType: {
363
+ readonly gp2: "gp2";
364
+ readonly gp3: "gp3";
365
+ readonly io1: "io1";
366
+ readonly io2: "io2";
367
+ readonly sc1: "sc1";
368
+ readonly st1: "st1";
369
+ readonly standard: "standard";
370
+ };
371
+ /**
372
+ * @public
373
+ */
374
+ export type VolumeType = (typeof VolumeType)[keyof typeof VolumeType];
375
+ /**
376
+ * @public
377
+ */
378
+ export interface CopyVolumesRequest {
379
+ /**
380
+ * <p>The ID of the source EBS volume to copy.</p>
381
+ * @public
382
+ */
383
+ SourceVolumeId: string | undefined;
384
+ /**
385
+ * <p>The number of I/O operations per second (IOPS) to provision for the volume copy.
386
+ * Required for <code>io1</code> and <code>io2</code> volumes. Optional for <code>gp3</code>
387
+ * volumes. Omit for all other volume types. Full provisioned IOPS performance can be
388
+ * achieved only once the volume copy is fully initialized. </p>
389
+ * <p>Valid ranges:</p>
390
+ * <ul>
391
+ * <li>
392
+ * <p>gp3: <code>3,000 </code>(<i>default</i>)<code> - 80,000</code> IOPS</p>
393
+ * </li>
394
+ * <li>
395
+ * <p>io1: <code>100 - 64,000</code> IOPS</p>
396
+ * </li>
397
+ * <li>
398
+ * <p>io2: <code>100 - 256,000</code> IOPS</p>
399
+ * </li>
400
+ * </ul>
401
+ * <note>
402
+ * <p>
403
+ * <a href="https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html">
404
+ * Instances built on the Nitro System</a> can support up to 256,000 IOPS. Other instances can support up to 32,000
405
+ * IOPS.</p>
406
+ * </note>
407
+ * @public
408
+ */
409
+ Iops?: number | undefined;
410
+ /**
411
+ * <p>The size of the volume copy, in GiBs. The size must be equal to or greater than the
412
+ * size of the source volume. If not specified, the size defaults to the size of the source
413
+ * volume.</p>
414
+ * <p>Maximum supported sizes:</p>
415
+ * <ul>
416
+ * <li>
417
+ * <p>gp2: <code>16,384</code> GiB</p>
418
+ * </li>
419
+ * <li>
420
+ * <p>gp3: <code>65,536</code> GiB</p>
421
+ * </li>
422
+ * <li>
423
+ * <p>io1: <code>16,384</code> GiB</p>
424
+ * </li>
425
+ * <li>
426
+ * <p>io2: <code>65,536</code> GiB</p>
427
+ * </li>
428
+ * <li>
429
+ * <p>st1 and sc1: <code>16,384</code> GiB</p>
430
+ * </li>
431
+ * <li>
432
+ * <p>standard: <code>1024</code> GiB</p>
433
+ * </li>
434
+ * </ul>
435
+ * @public
436
+ */
437
+ Size?: number | undefined;
438
+ /**
439
+ * <p>The volume type for the volume copy. If not specified, the volume type defaults to
440
+ * <code>gp2</code>.</p>
441
+ * @public
442
+ */
443
+ VolumeType?: VolumeType | undefined;
444
+ /**
445
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
446
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
447
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
448
+ * @public
449
+ */
450
+ DryRun?: boolean | undefined;
451
+ /**
452
+ * <p>The tags to apply to the volume copy during creation.</p>
453
+ * @public
454
+ */
455
+ TagSpecifications?: TagSpecification[] | undefined;
456
+ /**
457
+ * <p>Indicates whether to enable Amazon EBS Multi-Attach for the volume copy. If you enable
458
+ * Multi-Attach, you can attach the volume to up to 16 Nitro instances in the same
459
+ * Availability Zone simultaneously. Supported with <code>io1</code> and <code>io2</code> volumes only. For more
460
+ * information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes-multi.html">
461
+ * Amazon EBS Multi-Attach</a>.</p>
462
+ * @public
463
+ */
464
+ MultiAttachEnabled?: boolean | undefined;
465
+ /**
466
+ * <p>The throughput to provision for the volume copy, in MiB/s. Supported for <code>gp3</code>
467
+ * volumes only. Omit for all other volume types. Full provisioned throughput performance can be
468
+ * achieved only once the volume copy is fully initialized.</p>
469
+ * <p>Valid Range: <code>125 - 2000</code> MiB/s</p>
470
+ * <p></p>
471
+ * @public
472
+ */
473
+ Throughput?: number | undefined;
474
+ /**
475
+ * <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the
476
+ * request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">
477
+ * Ensure Idempotency</a>.</p>
478
+ * @public
479
+ */
480
+ ClientToken?: string | undefined;
481
+ }
482
+ /**
483
+ * <p>Describes whether the resource is managed by a service provider and, if so, describes
484
+ * the service provider that manages it.</p>
485
+ * @public
486
+ */
487
+ export interface OperatorResponse {
488
+ /**
489
+ * <p>If <code>true</code>, the resource is managed by a service provider.</p>
490
+ * @public
491
+ */
492
+ Managed?: boolean | undefined;
493
+ /**
494
+ * <p>If <code>managed</code> is <code>true</code>, then the principal is returned. The
495
+ * principal is the service provider that manages the resource.</p>
496
+ * @public
497
+ */
498
+ Principal?: string | undefined;
499
+ }
500
+ /**
501
+ * @public
502
+ * @enum
503
+ */
504
+ export declare const SSEType: {
505
+ readonly none: "none";
506
+ readonly sse_ebs: "sse-ebs";
507
+ readonly sse_kms: "sse-kms";
508
+ };
509
+ /**
510
+ * @public
511
+ */
512
+ export type SSEType = (typeof SSEType)[keyof typeof SSEType];
513
+ /**
514
+ * @public
515
+ * @enum
516
+ */
517
+ export declare const VolumeState: {
518
+ readonly available: "available";
519
+ readonly creating: "creating";
520
+ readonly deleted: "deleted";
521
+ readonly deleting: "deleting";
522
+ readonly error: "error";
523
+ readonly in_use: "in-use";
524
+ };
525
+ /**
526
+ * @public
527
+ */
528
+ export type VolumeState = (typeof VolumeState)[keyof typeof VolumeState];
529
+ /**
530
+ * <p>Describes a volume.</p>
531
+ * @public
532
+ */
533
+ export interface Volume {
534
+ /**
535
+ * <p>The ID of the Availability Zone for the volume.</p>
536
+ * @public
537
+ */
538
+ AvailabilityZoneId?: string | undefined;
539
+ /**
540
+ * <p>The Amazon Resource Name (ARN) of the Outpost.</p>
541
+ * @public
542
+ */
543
+ OutpostArn?: string | undefined;
544
+ /**
545
+ * <p>The ID of the source volume from which the volume copy was created. Only for
546
+ * volume copies.</p>
547
+ * @public
548
+ */
549
+ SourceVolumeId?: string | undefined;
550
+ /**
551
+ * <p>The number of I/O operations per second (IOPS). For <code>gp3</code>, <code>io1</code>, and <code>io2</code> volumes, this represents
552
+ * the number of IOPS that are provisioned for the volume. For <code>gp2</code> volumes, this represents the baseline
553
+ * performance of the volume and the rate at which the volume accumulates I/O credits for bursting.</p>
554
+ * @public
555
+ */
556
+ Iops?: number | undefined;
557
+ /**
558
+ * <p>Any tags assigned to the volume.</p>
559
+ * @public
560
+ */
561
+ Tags?: Tag[] | undefined;
562
+ /**
563
+ * <p>The volume type.</p>
564
+ * @public
565
+ */
566
+ VolumeType?: VolumeType | undefined;
567
+ /**
568
+ * <note>
569
+ * <p>This parameter is not returned by CreateVolume.</p>
570
+ * </note>
571
+ * <p>Indicates whether the volume was created using fast snapshot restore.</p>
572
+ * @public
573
+ */
574
+ FastRestored?: boolean | undefined;
575
+ /**
576
+ * <p>Indicates whether Amazon EBS Multi-Attach is enabled.</p>
577
+ * @public
578
+ */
579
+ MultiAttachEnabled?: boolean | undefined;
580
+ /**
581
+ * <p>The throughput that the volume supports, in MiB/s.</p>
582
+ * @public
583
+ */
584
+ Throughput?: number | undefined;
585
+ /**
586
+ * <note>
587
+ * <p>This parameter is not returned by CreateVolume.</p>
588
+ * </note>
589
+ * <p>Reserved for future use.</p>
590
+ * @public
591
+ */
592
+ SseType?: SSEType | undefined;
593
+ /**
594
+ * <p>The service provider that manages the volume.</p>
595
+ * @public
596
+ */
597
+ Operator?: OperatorResponse | undefined;
598
+ /**
599
+ * <p>The Amazon EBS Provisioned Rate for Volume Initialization (volume initialization rate) specified for the volume during creation,
600
+ * in MiB/s. If no volume initialization rate was specified, the value is <code>null</code>.</p>
601
+ * @public
602
+ */
603
+ VolumeInitializationRate?: number | undefined;
604
+ /**
605
+ * <p>The ID of the volume.</p>
606
+ * @public
607
+ */
608
+ VolumeId?: string | undefined;
609
+ /**
610
+ * <p>The size of the volume, in GiBs.</p>
611
+ * @public
612
+ */
613
+ Size?: number | undefined;
614
+ /**
615
+ * <p>The snapshot from which the volume was created, if applicable.</p>
616
+ * @public
617
+ */
618
+ SnapshotId?: string | undefined;
619
+ /**
620
+ * <p>The Availability Zone for the volume.</p>
621
+ * @public
622
+ */
623
+ AvailabilityZone?: string | undefined;
624
+ /**
625
+ * <p>The volume state.</p>
626
+ * @public
627
+ */
628
+ State?: VolumeState | undefined;
629
+ /**
630
+ * <p>The time stamp when volume creation was initiated.</p>
631
+ * @public
632
+ */
633
+ CreateTime?: Date | undefined;
634
+ /**
635
+ * <note>
636
+ * <p>This parameter is not returned by CreateVolume.</p>
637
+ * </note>
638
+ * <p>Information about the volume attachments.</p>
639
+ * @public
640
+ */
641
+ Attachments?: VolumeAttachment[] | undefined;
642
+ /**
643
+ * <p>Indicates whether the volume is encrypted.</p>
644
+ * @public
645
+ */
646
+ Encrypted?: boolean | undefined;
647
+ /**
648
+ * <p>The Amazon Resource Name (ARN) of the KMS key that was used to protect the
649
+ * volume encryption key for the volume.</p>
650
+ * @public
651
+ */
652
+ KmsKeyId?: string | undefined;
653
+ }
654
+ /**
655
+ * @public
656
+ */
657
+ export interface CopyVolumesResult {
658
+ /**
659
+ * <p>Information about the volume copy.</p>
660
+ * @public
661
+ */
662
+ Volumes?: Volume[] | undefined;
663
+ }
358
664
  /**
359
665
  * @public
360
666
  * @enum
@@ -4242,23 +4548,6 @@ export interface FleetLaunchTemplateSpecificationRequest {
4242
4548
  */
4243
4549
  Version?: string | undefined;
4244
4550
  }
4245
- /**
4246
- * @public
4247
- * @enum
4248
- */
4249
- export declare const VolumeType: {
4250
- readonly gp2: "gp2";
4251
- readonly gp3: "gp3";
4252
- readonly io1: "io1";
4253
- readonly io2: "io2";
4254
- readonly sc1: "sc1";
4255
- readonly st1: "st1";
4256
- readonly standard: "standard";
4257
- };
4258
- /**
4259
- * @public
4260
- */
4261
- export type VolumeType = (typeof VolumeType)[keyof typeof VolumeType];
4262
4551
  /**
4263
4552
  * <p>Describes a block device for an EBS volume.</p>
4264
4553
  * @public
@@ -10948,7 +11237,7 @@ export interface RequestLaunchTemplateData {
10948
11237
  * <p>Amazon Elastic Graphics reached end of life on January 8, 2024.</p>
10949
11238
  * </note>
10950
11239
  *
10951
- * @deprecated
11240
+ * @deprecated Specifying Elastic Graphics accelerators is no longer supported on the RunInstances API.
10952
11241
  * @public
10953
11242
  */
10954
11243
  ElasticGpuSpecifications?: ElasticGpuSpecification[] | undefined;
@@ -10961,7 +11250,7 @@ export interface RequestLaunchTemplateData {
10961
11250
  * your Deep Learning (DL) inference workloads.</p>
10962
11251
  * <p>You cannot specify accelerators from different generations in the same request.</p>
10963
11252
  *
10964
- * @deprecated
11253
+ * @deprecated Specifying Elastic Inference accelerators is no longer supported on the RunInstances API.
10965
11254
  * @public
10966
11255
  */
10967
11256
  ElasticInferenceAccelerators?: LaunchTemplateElasticInferenceAccelerator[] | undefined;
@@ -11151,24 +11440,6 @@ export interface CreateLaunchTemplateRequest {
11151
11440
  */
11152
11441
  TagSpecifications?: TagSpecification[] | undefined;
11153
11442
  }
11154
- /**
11155
- * <p>Describes whether the resource is managed by a service provider and, if so, describes
11156
- * the service provider that manages it.</p>
11157
- * @public
11158
- */
11159
- export interface OperatorResponse {
11160
- /**
11161
- * <p>If <code>true</code>, the resource is managed by a service provider.</p>
11162
- * @public
11163
- */
11164
- Managed?: boolean | undefined;
11165
- /**
11166
- * <p>If <code>managed</code> is <code>true</code>, then the principal is returned. The
11167
- * principal is the service provider that manages the resource.</p>
11168
- * @public
11169
- */
11170
- Principal?: string | undefined;
11171
- }
11172
11443
  /**
11173
11444
  * <p>Describes a launch template.</p>
11174
11445
  * @public
@@ -11495,83 +11766,6 @@ export interface CreditSpecification {
11495
11766
  */
11496
11767
  CpuCredits?: string | undefined;
11497
11768
  }
11498
- /**
11499
- * <p>Deprecated.</p>
11500
- * <note>
11501
- * <p>Amazon Elastic Graphics reached end of life on January 8, 2024.</p>
11502
- * </note>
11503
- * @public
11504
- */
11505
- export interface ElasticGpuSpecificationResponse {
11506
- /**
11507
- * <p>Deprecated.</p>
11508
- * <note>
11509
- * <p>Amazon Elastic Graphics reached end of life on January 8, 2024.</p>
11510
- * </note>
11511
- * @public
11512
- */
11513
- Type?: string | undefined;
11514
- }
11515
- /**
11516
- * <note>
11517
- * <p>Amazon Elastic Inference is no longer available.</p>
11518
- * </note>
11519
- * <p> Describes an elastic inference accelerator. </p>
11520
- * @public
11521
- */
11522
- export interface LaunchTemplateElasticInferenceAcceleratorResponse {
11523
- /**
11524
- * <p>The type of elastic inference accelerator. The possible values are eia1.medium,
11525
- * eia1.large, and eia1.xlarge. </p>
11526
- * @public
11527
- */
11528
- Type?: string | undefined;
11529
- /**
11530
- * <p>The number of elastic inference accelerators to attach to the instance. </p>
11531
- * @public
11532
- */
11533
- Count?: number | undefined;
11534
- }
11535
- /**
11536
- * <p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.</p>
11537
- * @public
11538
- */
11539
- export interface LaunchTemplateEnclaveOptions {
11540
- /**
11541
- * <p>If this parameter is set to <code>true</code>, the instance is enabled for Amazon Web Services Nitro
11542
- * Enclaves; otherwise, it is not enabled for Amazon Web Services Nitro Enclaves.</p>
11543
- * @public
11544
- */
11545
- Enabled?: boolean | undefined;
11546
- }
11547
- /**
11548
- * <p>Indicates whether an instance is configured for hibernation.</p>
11549
- * @public
11550
- */
11551
- export interface LaunchTemplateHibernationOptions {
11552
- /**
11553
- * <p>If this parameter is set to <code>true</code>, the instance is enabled for
11554
- * hibernation; otherwise, it is not enabled for hibernation.</p>
11555
- * @public
11556
- */
11557
- Configured?: boolean | undefined;
11558
- }
11559
- /**
11560
- * <p>Describes an IAM instance profile.</p>
11561
- * @public
11562
- */
11563
- export interface LaunchTemplateIamInstanceProfileSpecification {
11564
- /**
11565
- * <p>The Amazon Resource Name (ARN) of the instance profile.</p>
11566
- * @public
11567
- */
11568
- Arn?: string | undefined;
11569
- /**
11570
- * <p>The name of the instance profile.</p>
11571
- * @public
11572
- */
11573
- Name?: string | undefined;
11574
- }
11575
11769
  /**
11576
11770
  * @internal
11577
11771
  */