Skip to content

Commit 711a8ff

Browse files
author
awstools
committed
feat(client-ec2): Adding Precision Hardware Clock (PHC) to public API DescribeInstanceTypes
1 parent 4f544d7 commit 711a8ff

File tree

10 files changed

+194
-140
lines changed

10 files changed

+194
-140
lines changed

clients/client-ec2/src/commands/DescribeInstanceTypesCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ export interface DescribeInstanceTypesCommandOutput extends DescribeInstanceType
232232
* // ],
233233
* // TotalNeuronDeviceMemoryInMiB: Number("int"),
234234
* // },
235+
* // PhcSupport: "unsupported" || "supported",
235236
* // },
236237
* // ],
237238
* // NextToken: "STRING_VALUE",

clients/client-ec2/src/commands/DescribeSpotPriceHistoryCommand.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { DescribeSpotPriceHistoryRequest } from "../models/models_4";
10-
import { DescribeSpotPriceHistoryResult } from "../models/models_5";
9+
import { DescribeSpotPriceHistoryRequest, DescribeSpotPriceHistoryResult } from "../models/models_5";
1110
import { de_DescribeSpotPriceHistoryCommand, se_DescribeSpotPriceHistoryCommand } from "../protocols/Aws_ec2";
1211

1312
/**

clients/client-ec2/src/commands/GetIpamAddressHistoryCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { GetIpamAddressHistoryRequest, GetIpamAddressHistoryResult } from "../models/models_5";
9+
import { GetIpamAddressHistoryRequest } from "../models/models_5";
10+
import { GetIpamAddressHistoryResult } from "../models/models_6";
1011
import { de_GetIpamAddressHistoryCommand, se_GetIpamAddressHistoryCommand } from "../protocols/Aws_ec2";
1112

1213
/**

clients/client-ec2/src/commands/ProvisionIpamByoasnCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { ProvisionIpamByoasnRequest, ProvisionIpamByoasnResult } from "../models/models_6";
9+
import { ProvisionIpamByoasnRequest } from "../models/models_6";
10+
import { ProvisionIpamByoasnResult } from "../models/models_7";
1011
import { de_ProvisionIpamByoasnCommand, se_ProvisionIpamByoasnCommand } from "../protocols/Aws_ec2";
1112

1213
/**

clients/client-ec2/src/models/models_4.ts

+21-104
Original file line numberDiff line numberDiff line change
@@ -4475,6 +4475,20 @@ export const NitroTpmSupport = {
44754475
*/
44764476
export type NitroTpmSupport = (typeof NitroTpmSupport)[keyof typeof NitroTpmSupport];
44774477

4478+
/**
4479+
* @public
4480+
* @enum
4481+
*/
4482+
export const PhcSupport = {
4483+
SUPPORTED: "supported",
4484+
UNSUPPORTED: "unsupported",
4485+
} as const;
4486+
4487+
/**
4488+
* @public
4489+
*/
4490+
export type PhcSupport = (typeof PhcSupport)[keyof typeof PhcSupport];
4491+
44784492
/**
44794493
* @public
44804494
* @enum
@@ -4826,6 +4840,13 @@ export interface InstanceTypeInfo {
48264840
* @public
48274841
*/
48284842
NeuronInfo?: NeuronInfo;
4843+
4844+
/**
4845+
* <p>Indicates whether a local Precision Time Protocol (PTP) hardware clock (PHC) is
4846+
* supported.</p>
4847+
* @public
4848+
*/
4849+
PhcSupport?: PhcSupport;
48294850
}
48304851

48314852
/**
@@ -12638,110 +12659,6 @@ export interface DescribeSpotInstanceRequestsResult {
1263812659
NextToken?: string;
1263912660
}
1264012661

12641-
/**
12642-
* <p>Contains the parameters for DescribeSpotPriceHistory.</p>
12643-
* @public
12644-
*/
12645-
export interface DescribeSpotPriceHistoryRequest {
12646-
/**
12647-
* <p>The filters.</p>
12648-
* <ul>
12649-
* <li>
12650-
* <p>
12651-
* <code>availability-zone</code> - The Availability Zone for which prices should
12652-
* be returned.</p>
12653-
* </li>
12654-
* <li>
12655-
* <p>
12656-
* <code>instance-type</code> - The type of instance (for example,
12657-
* <code>m3.medium</code>).</p>
12658-
* </li>
12659-
* <li>
12660-
* <p>
12661-
* <code>product-description</code> - The product description for the Spot price
12662-
* (<code>Linux/UNIX</code> | <code>Red Hat Enterprise Linux</code> |
12663-
* <code>SUSE Linux</code> | <code>Windows</code> | <code>Linux/UNIX (Amazon
12664-
* VPC)</code> | <code>Red Hat Enterprise Linux (Amazon VPC)</code> |
12665-
* <code>SUSE Linux (Amazon VPC)</code> | <code>Windows (Amazon
12666-
* VPC)</code>).</p>
12667-
* </li>
12668-
* <li>
12669-
* <p>
12670-
* <code>spot-price</code> - The Spot price. The value must match exactly (or use
12671-
* wildcards; greater than or less than comparison is not supported).</p>
12672-
* </li>
12673-
* <li>
12674-
* <p>
12675-
* <code>timestamp</code> - The time stamp of the Spot price history, in UTC format
12676-
* (for example, <i>ddd MMM dd
12677-
* HH</i>:<i>mm</i>:<i>ss</i> UTC
12678-
* <i>YYYY</i>). You can use wildcards (<code>*</code> and
12679-
* <code>?</code>). Greater than or less than comparison is not
12680-
* supported.</p>
12681-
* </li>
12682-
* </ul>
12683-
* @public
12684-
*/
12685-
Filters?: Filter[];
12686-
12687-
/**
12688-
* <p>Filters the results by the specified Availability Zone.</p>
12689-
* @public
12690-
*/
12691-
AvailabilityZone?: string;
12692-
12693-
/**
12694-
* <p>Checks whether you have the required permissions for the action, without actually
12695-
* making the request, and provides an error response. If you have the required
12696-
* permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is
12697-
* <code>UnauthorizedOperation</code>.</p>
12698-
* @public
12699-
*/
12700-
DryRun?: boolean;
12701-
12702-
/**
12703-
* <p>The date and time, up to the current date, from which to stop retrieving the price
12704-
* history data, in UTC format (for example,
12705-
* <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
12706-
* @public
12707-
*/
12708-
EndTime?: Date;
12709-
12710-
/**
12711-
* <p>Filters the results by the specified instance types.</p>
12712-
* @public
12713-
*/
12714-
InstanceTypes?: _InstanceType[];
12715-
12716-
/**
12717-
* <p>The maximum number of items to return for this request.
12718-
* To get the next page of items, make another request with the token returned in the output.
12719-
* For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
12720-
* @public
12721-
*/
12722-
MaxResults?: number;
12723-
12724-
/**
12725-
* <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
12726-
* @public
12727-
*/
12728-
NextToken?: string;
12729-
12730-
/**
12731-
* <p>Filters the results by the specified basic product descriptions.</p>
12732-
* @public
12733-
*/
12734-
ProductDescriptions?: string[];
12735-
12736-
/**
12737-
* <p>The date and time, up to the past 90 days, from which to start retrieving the price
12738-
* history data, in UTC format (for example,
12739-
* <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
12740-
* @public
12741-
*/
12742-
StartTime?: Date;
12743-
}
12744-
1274512662
/**
1274612663
* @internal
1274712664
*/

clients/client-ec2/src/models/models_5.ts

+104-17
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,110 @@ import {
9292
RIProductDescription,
9393
} from "./models_4";
9494

95+
/**
96+
* <p>Contains the parameters for DescribeSpotPriceHistory.</p>
97+
* @public
98+
*/
99+
export interface DescribeSpotPriceHistoryRequest {
100+
/**
101+
* <p>The filters.</p>
102+
* <ul>
103+
* <li>
104+
* <p>
105+
* <code>availability-zone</code> - The Availability Zone for which prices should
106+
* be returned.</p>
107+
* </li>
108+
* <li>
109+
* <p>
110+
* <code>instance-type</code> - The type of instance (for example,
111+
* <code>m3.medium</code>).</p>
112+
* </li>
113+
* <li>
114+
* <p>
115+
* <code>product-description</code> - The product description for the Spot price
116+
* (<code>Linux/UNIX</code> | <code>Red Hat Enterprise Linux</code> |
117+
* <code>SUSE Linux</code> | <code>Windows</code> | <code>Linux/UNIX (Amazon
118+
* VPC)</code> | <code>Red Hat Enterprise Linux (Amazon VPC)</code> |
119+
* <code>SUSE Linux (Amazon VPC)</code> | <code>Windows (Amazon
120+
* VPC)</code>).</p>
121+
* </li>
122+
* <li>
123+
* <p>
124+
* <code>spot-price</code> - The Spot price. The value must match exactly (or use
125+
* wildcards; greater than or less than comparison is not supported).</p>
126+
* </li>
127+
* <li>
128+
* <p>
129+
* <code>timestamp</code> - The time stamp of the Spot price history, in UTC format
130+
* (for example, <i>ddd MMM dd
131+
* HH</i>:<i>mm</i>:<i>ss</i> UTC
132+
* <i>YYYY</i>). You can use wildcards (<code>*</code> and
133+
* <code>?</code>). Greater than or less than comparison is not
134+
* supported.</p>
135+
* </li>
136+
* </ul>
137+
* @public
138+
*/
139+
Filters?: Filter[];
140+
141+
/**
142+
* <p>Filters the results by the specified Availability Zone.</p>
143+
* @public
144+
*/
145+
AvailabilityZone?: string;
146+
147+
/**
148+
* <p>Checks whether you have the required permissions for the action, without actually
149+
* making the request, and provides an error response. If you have the required
150+
* permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is
151+
* <code>UnauthorizedOperation</code>.</p>
152+
* @public
153+
*/
154+
DryRun?: boolean;
155+
156+
/**
157+
* <p>The date and time, up to the current date, from which to stop retrieving the price
158+
* history data, in UTC format (for example,
159+
* <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
160+
* @public
161+
*/
162+
EndTime?: Date;
163+
164+
/**
165+
* <p>Filters the results by the specified instance types.</p>
166+
* @public
167+
*/
168+
InstanceTypes?: _InstanceType[];
169+
170+
/**
171+
* <p>The maximum number of items to return for this request.
172+
* To get the next page of items, make another request with the token returned in the output.
173+
* For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
174+
* @public
175+
*/
176+
MaxResults?: number;
177+
178+
/**
179+
* <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
180+
* @public
181+
*/
182+
NextToken?: string;
183+
184+
/**
185+
* <p>Filters the results by the specified basic product descriptions.</p>
186+
* @public
187+
*/
188+
ProductDescriptions?: string[];
189+
190+
/**
191+
* <p>The date and time, up to the past 90 days, from which to start retrieving the price
192+
* history data, in UTC format (for example,
193+
* <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
194+
* @public
195+
*/
196+
StartTime?: Date;
197+
}
198+
95199
/**
96200
* <p>The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend
97201
* using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.</p>
@@ -8676,23 +8780,6 @@ export interface IpamAddressHistoryRecord {
86768780
SampledEndTime?: Date;
86778781
}
86788782

8679-
/**
8680-
* @public
8681-
*/
8682-
export interface GetIpamAddressHistoryResult {
8683-
/**
8684-
* <p>A historical record for a CIDR within an IPAM scope. If the CIDR is associated with an EC2 instance, you will see an object in the response for the instance and one for the network interface.</p>
8685-
* @public
8686-
*/
8687-
HistoryRecords?: IpamAddressHistoryRecord[];
8688-
8689-
/**
8690-
* <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
8691-
* @public
8692-
*/
8693-
NextToken?: string;
8694-
}
8695-
86968783
/**
86978784
* @internal
86988785
*/

clients/client-ec2/src/models/models_6.ts

+18-12
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ import {
110110
import {
111111
ArchitectureValues,
112112
BootModeValues,
113-
Byoasn,
114113
ConversionTask,
115114
ConversionTaskFilterSensitiveLog,
116115
Filter,
@@ -150,6 +149,7 @@ import {
150149

151150
import {
152151
InstanceFamilyCreditSpecification,
152+
IpamAddressHistoryRecord,
153153
IpamComplianceStatus,
154154
IpamOverlapStatus,
155155
SnapshotBlockPublicAccessState,
@@ -159,6 +159,23 @@ import {
159159
VolumeModification,
160160
} from "./models_5";
161161

162+
/**
163+
* @public
164+
*/
165+
export interface GetIpamAddressHistoryResult {
166+
/**
167+
* <p>A historical record for a CIDR within an IPAM scope. If the CIDR is associated with an EC2 instance, you will see an object in the response for the instance and one for the network interface.</p>
168+
* @public
169+
*/
170+
HistoryRecords?: IpamAddressHistoryRecord[];
171+
172+
/**
173+
* <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
174+
* @public
175+
*/
176+
NextToken?: string;
177+
}
178+
162179
/**
163180
* @public
164181
*/
@@ -9556,17 +9573,6 @@ export interface ProvisionIpamByoasnRequest {
95569573
AsnAuthorizationContext: AsnAuthorizationContext | undefined;
95579574
}
95589575

9559-
/**
9560-
* @public
9561-
*/
9562-
export interface ProvisionIpamByoasnResult {
9563-
/**
9564-
* <p>An ASN and BYOIP CIDR association.</p>
9565-
* @public
9566-
*/
9567-
Byoasn?: Byoasn;
9568-
}
9569-
95709576
/**
95719577
* @internal
95729578
*/

0 commit comments

Comments
 (0)