@aws-sdk/client-ec2 3.1119.0 → 3.1121.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 (38) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +84 -7
  3. package/dist-es/EC2.js +2 -0
  4. package/dist-es/commands/ReplaceImageInstanceTypeSpecificationCommand.js +4 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/schemas/schemas_0.js +72 -6
  7. package/dist-types/EC2.d.ts +7 -0
  8. package/dist-types/EC2Client.d.ts +3 -2
  9. package/dist-types/commands/DescribeImagesCommand.d.ts +12 -0
  10. package/dist-types/commands/DescribeScheduledInstanceAvailabilityCommand.d.ts +2 -1
  11. package/dist-types/commands/EnableEbsEncryptionByDefaultCommand.d.ts +1 -1
  12. package/dist-types/commands/ImportKeyPairCommand.d.ts +1 -1
  13. package/dist-types/commands/ReplaceImageInstanceTypeSpecificationCommand.d.ts +108 -0
  14. package/dist-types/commands/RequestSpotFleetCommand.d.ts +1 -1
  15. package/dist-types/commands/RequestSpotInstancesCommand.d.ts +1 -1
  16. package/dist-types/commands/index.d.ts +1 -0
  17. package/dist-types/models/models_4.d.ts +54 -87
  18. package/dist-types/models/models_5.d.ts +87 -22
  19. package/dist-types/models/models_6.d.ts +22 -59
  20. package/dist-types/models/models_7.d.ts +119 -256
  21. package/dist-types/models/models_8.d.ts +255 -1
  22. package/dist-types/schemas/schemas_0.d.ts +6 -0
  23. package/dist-types/ts3.4/EC2.d.ts +17 -0
  24. package/dist-types/ts3.4/EC2Client.d.ts +6 -0
  25. package/dist-types/ts3.4/commands/DescribeScheduledInstanceAvailabilityCommand.d.ts +2 -4
  26. package/dist-types/ts3.4/commands/EnableEbsEncryptionByDefaultCommand.d.ts +1 -1
  27. package/dist-types/ts3.4/commands/ImportKeyPairCommand.d.ts +1 -1
  28. package/dist-types/ts3.4/commands/ReplaceImageInstanceTypeSpecificationCommand.d.ts +42 -0
  29. package/dist-types/ts3.4/commands/RequestSpotFleetCommand.d.ts +1 -1
  30. package/dist-types/ts3.4/commands/RequestSpotInstancesCommand.d.ts +1 -1
  31. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  32. package/dist-types/ts3.4/models/models_4.d.ts +8 -19
  33. package/dist-types/ts3.4/models/models_5.d.ts +19 -6
  34. package/dist-types/ts3.4/models/models_6.d.ts +6 -12
  35. package/dist-types/ts3.4/models/models_7.d.ts +24 -51
  36. package/dist-types/ts3.4/models/models_8.d.ts +50 -1
  37. package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
  38. package/package.json +1 -1
@@ -1707,6 +1707,11 @@ export interface DescribeImagesRequest {
1707
1707
  * </li>
1708
1708
  * <li>
1709
1709
  * <p>
1710
+ * <code>boot-mode</code> – The boot mode of the image (<code>legacy-bios</code> |
1711
+ * <code>uefi</code> | <code>uefi-preferred</code>).</p>
1712
+ * </li>
1713
+ * <li>
1714
+ * <p>
1710
1715
  * <code>creation-date</code> - The time when the image was created, in the ISO 8601
1711
1716
  * format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example,
1712
1717
  * <code>2021-09-29T11:04:43.305Z</code>. You can use a wildcard (<code>*</code>), for
@@ -1784,6 +1789,20 @@ export interface DescribeImagesRequest {
1784
1789
  * </li>
1785
1790
  * <li>
1786
1791
  * <p>
1792
+ * <code>instance-type-specification.supported-instance-type</code> – The instance
1793
+ * types that are compatible with the AMI, as specified by the AMI owner. Values can be
1794
+ * individual instance types (for example, <code>t3.micro</code>) or wildcard patterns that
1795
+ * match multiple instance types (for example, <code>t3.*</code>).</p>
1796
+ * </li>
1797
+ * <li>
1798
+ * <p>
1799
+ * <code>instance-type-specification.unsupported-instance-type</code> – The instance
1800
+ * types that are not compatible with the AMI, as specified by the AMI owner. Values can be
1801
+ * individual instance types (for example, <code>t3.micro</code>) or wildcard patterns that
1802
+ * match multiple instance types (for example, <code>t3.*</code>).</p>
1803
+ * </li>
1804
+ * <li>
1805
+ * <p>
1787
1806
  * <code>is-public</code> - A Boolean that indicates whether the image is public.</p>
1788
1807
  * </li>
1789
1808
  * <li>
@@ -1934,6 +1953,35 @@ export interface ImageWatermark {
1934
1953
  */
1935
1954
  WatermarkCreationTime?: Date | undefined;
1936
1955
  }
1956
+ /**
1957
+ * <p>An instance type name or wildcard pattern in an instance type specification.</p>
1958
+ * @public
1959
+ */
1960
+ export interface InstanceTypeItem {
1961
+ /**
1962
+ * <p>The instance type or wildcard pattern (for example, <code>t3.*</code> or
1963
+ * <code>m5.large</code>).</p>
1964
+ * @public
1965
+ */
1966
+ InstanceType?: string | undefined;
1967
+ }
1968
+ /**
1969
+ * <p>Describes the instance type compatibility rules for an AMI, including lists of supported
1970
+ * and unsupported instance type patterns.</p>
1971
+ * @public
1972
+ */
1973
+ export interface InstanceTypeSpecification {
1974
+ /**
1975
+ * <p>The instance types that the AMI supports.</p>
1976
+ * @public
1977
+ */
1978
+ SupportedInstanceTypes?: InstanceTypeItem[] | undefined;
1979
+ /**
1980
+ * <p>The instance types that the AMI does not support.</p>
1981
+ * @public
1982
+ */
1983
+ UnsupportedInstanceTypes?: InstanceTypeItem[] | undefined;
1984
+ }
1937
1985
  /**
1938
1986
  * <p>Describes an image.</p>
1939
1987
  * @public
@@ -2117,6 +2165,12 @@ export interface Image {
2117
2165
  * @public
2118
2166
  */
2119
2167
  ImageWatermarks?: ImageWatermark[] | undefined;
2168
+ /**
2169
+ * <p>The instance type specification for the AMI, which defines which instance types are
2170
+ * compatible with this image.</p>
2171
+ * @public
2172
+ */
2173
+ InstanceTypeSpecification?: InstanceTypeSpecification | undefined;
2120
2174
  /**
2121
2175
  * <p>The ID of the AMI.</p>
2122
2176
  * @public
@@ -12673,90 +12727,3 @@ export interface ScheduledInstanceRecurrence {
12673
12727
  */
12674
12728
  OccurrenceUnit?: string | undefined;
12675
12729
  }
12676
- /**
12677
- * <p>Describes a schedule that is available for your Scheduled Instances.</p>
12678
- * @public
12679
- */
12680
- export interface ScheduledInstanceAvailability {
12681
- /**
12682
- * <p>The Availability Zone.</p>
12683
- * @public
12684
- */
12685
- AvailabilityZone?: string | undefined;
12686
- /**
12687
- * <p>The number of available instances.</p>
12688
- * @public
12689
- */
12690
- AvailableInstanceCount?: number | undefined;
12691
- /**
12692
- * <p>The time period for the first schedule to start.</p>
12693
- * @public
12694
- */
12695
- FirstSlotStartTime?: Date | undefined;
12696
- /**
12697
- * <p>The hourly price for a single instance.</p>
12698
- * @public
12699
- */
12700
- HourlyPrice?: string | undefined;
12701
- /**
12702
- * <p>The instance type. You can specify one of the C3, C4, M4, or R3 instance types.</p>
12703
- * @public
12704
- */
12705
- InstanceType?: string | undefined;
12706
- /**
12707
- * <p>The maximum term. The only possible value is 365 days.</p>
12708
- * @public
12709
- */
12710
- MaxTermDurationInDays?: number | undefined;
12711
- /**
12712
- * <p>The minimum term. The only possible value is 365 days.</p>
12713
- * @public
12714
- */
12715
- MinTermDurationInDays?: number | undefined;
12716
- /**
12717
- * <p>The network platform.</p>
12718
- * @public
12719
- */
12720
- NetworkPlatform?: string | undefined;
12721
- /**
12722
- * <p>The platform (<code>Linux/UNIX</code> or <code>Windows</code>).</p>
12723
- * @public
12724
- */
12725
- Platform?: string | undefined;
12726
- /**
12727
- * <p>The purchase token. This token expires in two hours.</p>
12728
- * @public
12729
- */
12730
- PurchaseToken?: string | undefined;
12731
- /**
12732
- * <p>The schedule recurrence.</p>
12733
- * @public
12734
- */
12735
- Recurrence?: ScheduledInstanceRecurrence | undefined;
12736
- /**
12737
- * <p>The number of hours in the schedule.</p>
12738
- * @public
12739
- */
12740
- SlotDurationInHours?: number | undefined;
12741
- /**
12742
- * <p>The total number of hours for a single instance for the entire term.</p>
12743
- * @public
12744
- */
12745
- TotalScheduledInstanceHours?: number | undefined;
12746
- }
12747
- /**
12748
- * <p>Contains the output of DescribeScheduledInstanceAvailability.</p>
12749
- * @public
12750
- */
12751
- export interface DescribeScheduledInstanceAvailabilityResult {
12752
- /**
12753
- * <p>The token required to retrieve the next set of results. This value is <code>null</code> when there are no more results to return.</p>
12754
- * @public
12755
- */
12756
- NextToken?: string | undefined;
12757
- /**
12758
- * <p>Information about the available Scheduled Instances.</p>
12759
- * @public
12760
- */
12761
- ScheduledInstanceAvailabilitySet?: ScheduledInstanceAvailability[] | undefined;
12762
- }
@@ -4,6 +4,93 @@ import type { BlockDeviceMapping, ConnectionTrackingSpecificationRequest, EnaSrd
4
4
  import type { ConnectionNotification, DnsEntry, PayerResponsibilityEntry, SecondaryNetwork, SecondarySubnet, ServiceConfiguration, ServiceTypeDetail, Snapshot, SpotDatafeedSubscription, SpotInstanceStateFault, TrafficMirrorFilter, TrafficMirrorFilterRule, TrafficMirrorSession, TrafficMirrorTarget, TransitGateway, TransitGatewayConnect, TransitGatewayConnectPeer, TransitGatewayMeteringPolicy, TransitGatewayMulticastDomain, TransitGatewayPolicyTable, TransitGatewayRouteTable, TransitGatewayRouteTableAnnouncement, VerifiedAccessEndpoint, VerifiedAccessGroup, VpcBlockPublicAccessExclusion, VpcEndpoint, VpnConcentrator, VpnConnection, VpnGateway } from "./models_2";
5
5
  import type { EventInformation, FastLaunchLaunchTemplateSpecificationResponse, FastLaunchSnapshotConfigurationResponse, Filter } from "./models_3";
6
6
  import type { AttributeBooleanValue, ProductCode, RegisteredInstance, ScheduledInstanceRecurrence } from "./models_4";
7
+ /**
8
+ * <p>Describes a schedule that is available for your Scheduled Instances.</p>
9
+ * @public
10
+ */
11
+ export interface ScheduledInstanceAvailability {
12
+ /**
13
+ * <p>The Availability Zone.</p>
14
+ * @public
15
+ */
16
+ AvailabilityZone?: string | undefined;
17
+ /**
18
+ * <p>The number of available instances.</p>
19
+ * @public
20
+ */
21
+ AvailableInstanceCount?: number | undefined;
22
+ /**
23
+ * <p>The time period for the first schedule to start.</p>
24
+ * @public
25
+ */
26
+ FirstSlotStartTime?: Date | undefined;
27
+ /**
28
+ * <p>The hourly price for a single instance.</p>
29
+ * @public
30
+ */
31
+ HourlyPrice?: string | undefined;
32
+ /**
33
+ * <p>The instance type. You can specify one of the C3, C4, M4, or R3 instance types.</p>
34
+ * @public
35
+ */
36
+ InstanceType?: string | undefined;
37
+ /**
38
+ * <p>The maximum term. The only possible value is 365 days.</p>
39
+ * @public
40
+ */
41
+ MaxTermDurationInDays?: number | undefined;
42
+ /**
43
+ * <p>The minimum term. The only possible value is 365 days.</p>
44
+ * @public
45
+ */
46
+ MinTermDurationInDays?: number | undefined;
47
+ /**
48
+ * <p>The network platform.</p>
49
+ * @public
50
+ */
51
+ NetworkPlatform?: string | undefined;
52
+ /**
53
+ * <p>The platform (<code>Linux/UNIX</code> or <code>Windows</code>).</p>
54
+ * @public
55
+ */
56
+ Platform?: string | undefined;
57
+ /**
58
+ * <p>The purchase token. This token expires in two hours.</p>
59
+ * @public
60
+ */
61
+ PurchaseToken?: string | undefined;
62
+ /**
63
+ * <p>The schedule recurrence.</p>
64
+ * @public
65
+ */
66
+ Recurrence?: ScheduledInstanceRecurrence | undefined;
67
+ /**
68
+ * <p>The number of hours in the schedule.</p>
69
+ * @public
70
+ */
71
+ SlotDurationInHours?: number | undefined;
72
+ /**
73
+ * <p>The total number of hours for a single instance for the entire term.</p>
74
+ * @public
75
+ */
76
+ TotalScheduledInstanceHours?: number | undefined;
77
+ }
78
+ /**
79
+ * <p>Contains the output of DescribeScheduledInstanceAvailability.</p>
80
+ * @public
81
+ */
82
+ export interface DescribeScheduledInstanceAvailabilityResult {
83
+ /**
84
+ * <p>The token required to retrieve the next set of results. This value is <code>null</code> when there are no more results to return.</p>
85
+ * @public
86
+ */
87
+ NextToken?: string | undefined;
88
+ /**
89
+ * <p>Information about the available Scheduled Instances.</p>
90
+ * @public
91
+ */
92
+ ScheduledInstanceAvailabilitySet?: ScheduledInstanceAvailability[] | undefined;
93
+ }
7
94
  /**
8
95
  * <p>Describes the time period for a Scheduled Instance to start its first schedule.</p>
9
96
  * @public
@@ -9849,25 +9936,3 @@ export interface EnableCapacityManagerResult {
9849
9936
  */
9850
9937
  OrganizationsAccess?: boolean | undefined;
9851
9938
  }
9852
- /**
9853
- * @public
9854
- */
9855
- export interface EnableEbsEncryptionByDefaultRequest {
9856
- /**
9857
- * <p>Checks whether you have the required permissions for the action, without actually making the request,
9858
- * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
9859
- * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
9860
- * @public
9861
- */
9862
- DryRun?: boolean | undefined;
9863
- }
9864
- /**
9865
- * @public
9866
- */
9867
- export interface EnableEbsEncryptionByDefaultResult {
9868
- /**
9869
- * <p>The updated status of encryption by default.</p>
9870
- * @public
9871
- */
9872
- EbsEncryptionByDefault?: boolean | undefined;
9873
- }
@@ -5,6 +5,28 @@ import type { SubnetCidrReservation, TransitGatewayMeteringPolicyEntry, TransitG
5
5
  import type { ConversionTask, ExportTaskS3Location, FastLaunchLaunchTemplateSpecificationResponse, FastLaunchSnapshotConfigurationResponse, Filter, IpamPoolCidr } from "./models_3";
6
6
  import type { ImportImageLicenseConfigurationResponse, RegisteredInstance, SnapshotDetail } from "./models_4";
7
7
  import type { RouteServerPropagation, TransitGatewayPropagation } from "./models_5";
8
+ /**
9
+ * @public
10
+ */
11
+ export interface EnableEbsEncryptionByDefaultRequest {
12
+ /**
13
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
14
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
15
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
16
+ * @public
17
+ */
18
+ DryRun?: boolean | undefined;
19
+ }
20
+ /**
21
+ * @public
22
+ */
23
+ export interface EnableEbsEncryptionByDefaultResult {
24
+ /**
25
+ * <p>The updated status of encryption by default.</p>
26
+ * @public
27
+ */
28
+ EbsEncryptionByDefault?: boolean | undefined;
29
+ }
8
30
  /**
9
31
  * <p>Request to create a launch template for a Windows fast launch enabled AMI.</p>
10
32
  * <note>
@@ -8328,62 +8350,3 @@ export interface ImportInstanceResult {
8328
8350
  */
8329
8351
  ConversionTask?: ConversionTask | undefined;
8330
8352
  }
8331
- /**
8332
- * @public
8333
- */
8334
- export interface ImportKeyPairRequest {
8335
- /**
8336
- * <p>The tags to apply to the imported key pair.</p>
8337
- * @public
8338
- */
8339
- TagSpecifications?: TagSpecification[] | undefined;
8340
- /**
8341
- * <p>Checks whether you have the required permissions for the action, without actually making the request,
8342
- * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
8343
- * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
8344
- * @public
8345
- */
8346
- DryRun?: boolean | undefined;
8347
- /**
8348
- * <p>A unique name for the key pair.</p>
8349
- * @public
8350
- */
8351
- KeyName: string | undefined;
8352
- /**
8353
- * <p>The public key.</p>
8354
- * @public
8355
- */
8356
- PublicKeyMaterial: Uint8Array | undefined;
8357
- }
8358
- /**
8359
- * @public
8360
- */
8361
- export interface ImportKeyPairResult {
8362
- /**
8363
- * <ul>
8364
- * <li>
8365
- * <p>For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC 4716.</p>
8366
- * </li>
8367
- * <li>
8368
- * <p>For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with <a href="http://www.openssh.com/txt/release-6.8">OpenSSH 6.8</a>.</p>
8369
- * </li>
8370
- * </ul>
8371
- * @public
8372
- */
8373
- KeyFingerprint?: string | undefined;
8374
- /**
8375
- * <p>The key pair name that you provided.</p>
8376
- * @public
8377
- */
8378
- KeyName?: string | undefined;
8379
- /**
8380
- * <p>The ID of the resulting key pair.</p>
8381
- * @public
8382
- */
8383
- KeyPairId?: string | undefined;
8384
- /**
8385
- * <p>The tags applied to the imported key pair.</p>
8386
- * @public
8387
- */
8388
- Tags?: Tag[] | undefined;
8389
- }