Skip to content

Commit

Permalink
feat(client-ec2): Adding Precision Hardware Clock (PHC) to public API…
Browse files Browse the repository at this point in the history
… DescribeInstanceTypes
  • Loading branch information
awstools committed May 8, 2024
1 parent 4f544d7 commit 711a8ff
Show file tree
Hide file tree
Showing 10 changed files with 194 additions and 140 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ export interface DescribeInstanceTypesCommandOutput extends DescribeInstanceType
* // ],
* // TotalNeuronDeviceMemoryInMiB: Number("int"),
* // },
* // PhcSupport: "unsupported" || "supported",
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DescribeSpotPriceHistoryRequest } from "../models/models_4";
import { DescribeSpotPriceHistoryResult } from "../models/models_5";
import { DescribeSpotPriceHistoryRequest, DescribeSpotPriceHistoryResult } from "../models/models_5";
import { de_DescribeSpotPriceHistoryCommand, se_DescribeSpotPriceHistoryCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetIpamAddressHistoryRequest, GetIpamAddressHistoryResult } from "../models/models_5";
import { GetIpamAddressHistoryRequest } from "../models/models_5";
import { GetIpamAddressHistoryResult } from "../models/models_6";
import { de_GetIpamAddressHistoryCommand, se_GetIpamAddressHistoryCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ProvisionIpamByoasnRequest, ProvisionIpamByoasnResult } from "../models/models_6";
import { ProvisionIpamByoasnRequest } from "../models/models_6";
import { ProvisionIpamByoasnResult } from "../models/models_7";
import { de_ProvisionIpamByoasnCommand, se_ProvisionIpamByoasnCommand } from "../protocols/Aws_ec2";

/**
Expand Down
125 changes: 21 additions & 104 deletions clients/client-ec2/src/models/models_4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4475,6 +4475,20 @@ export const NitroTpmSupport = {
*/
export type NitroTpmSupport = (typeof NitroTpmSupport)[keyof typeof NitroTpmSupport];

/**
* @public
* @enum
*/
export const PhcSupport = {
SUPPORTED: "supported",
UNSUPPORTED: "unsupported",
} as const;

/**
* @public
*/
export type PhcSupport = (typeof PhcSupport)[keyof typeof PhcSupport];

/**
* @public
* @enum
Expand Down Expand Up @@ -4826,6 +4840,13 @@ export interface InstanceTypeInfo {
* @public
*/
NeuronInfo?: NeuronInfo;

/**
* <p>Indicates whether a local Precision Time Protocol (PTP) hardware clock (PHC) is
* supported.</p>
* @public
*/
PhcSupport?: PhcSupport;
}

/**
Expand Down Expand Up @@ -12638,110 +12659,6 @@ export interface DescribeSpotInstanceRequestsResult {
NextToken?: string;
}

/**
* <p>Contains the parameters for DescribeSpotPriceHistory.</p>
* @public
*/
export interface DescribeSpotPriceHistoryRequest {
/**
* <p>The filters.</p>
* <ul>
* <li>
* <p>
* <code>availability-zone</code> - The Availability Zone for which prices should
* be returned.</p>
* </li>
* <li>
* <p>
* <code>instance-type</code> - The type of instance (for example,
* <code>m3.medium</code>).</p>
* </li>
* <li>
* <p>
* <code>product-description</code> - The product description for the Spot price
* (<code>Linux/UNIX</code> | <code>Red Hat Enterprise Linux</code> |
* <code>SUSE Linux</code> | <code>Windows</code> | <code>Linux/UNIX (Amazon
* VPC)</code> | <code>Red Hat Enterprise Linux (Amazon VPC)</code> |
* <code>SUSE Linux (Amazon VPC)</code> | <code>Windows (Amazon
* VPC)</code>).</p>
* </li>
* <li>
* <p>
* <code>spot-price</code> - The Spot price. The value must match exactly (or use
* wildcards; greater than or less than comparison is not supported).</p>
* </li>
* <li>
* <p>
* <code>timestamp</code> - The time stamp of the Spot price history, in UTC format
* (for example, <i>ddd MMM dd
* HH</i>:<i>mm</i>:<i>ss</i> UTC
* <i>YYYY</i>). You can use wildcards (<code>*</code> and
* <code>?</code>). Greater than or less than comparison is not
* supported.</p>
* </li>
* </ul>
* @public
*/
Filters?: Filter[];

/**
* <p>Filters the results by the specified Availability Zone.</p>
* @public
*/
AvailabilityZone?: string;

/**
* <p>Checks whether you have the required permissions for the action, without actually
* making the request, and provides an error response. If you have the required
* permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is
* <code>UnauthorizedOperation</code>.</p>
* @public
*/
DryRun?: boolean;

/**
* <p>The date and time, up to the current date, from which to stop retrieving the price
* history data, in UTC format (for example,
* <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
* @public
*/
EndTime?: Date;

/**
* <p>Filters the results by the specified instance types.</p>
* @public
*/
InstanceTypes?: _InstanceType[];

/**
* <p>The maximum number of items to return for this request.
* To get the next page of items, make another request with the token returned in the output.
* For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
* @public
*/
MaxResults?: number;

/**
* <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
* @public
*/
NextToken?: string;

/**
* <p>Filters the results by the specified basic product descriptions.</p>
* @public
*/
ProductDescriptions?: string[];

/**
* <p>The date and time, up to the past 90 days, from which to start retrieving the price
* history data, in UTC format (for example,
* <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
* @public
*/
StartTime?: Date;
}

/**
* @internal
*/
Expand Down
121 changes: 104 additions & 17 deletions clients/client-ec2/src/models/models_5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,110 @@ import {
RIProductDescription,
} from "./models_4";

/**
* <p>Contains the parameters for DescribeSpotPriceHistory.</p>
* @public
*/
export interface DescribeSpotPriceHistoryRequest {
/**
* <p>The filters.</p>
* <ul>
* <li>
* <p>
* <code>availability-zone</code> - The Availability Zone for which prices should
* be returned.</p>
* </li>
* <li>
* <p>
* <code>instance-type</code> - The type of instance (for example,
* <code>m3.medium</code>).</p>
* </li>
* <li>
* <p>
* <code>product-description</code> - The product description for the Spot price
* (<code>Linux/UNIX</code> | <code>Red Hat Enterprise Linux</code> |
* <code>SUSE Linux</code> | <code>Windows</code> | <code>Linux/UNIX (Amazon
* VPC)</code> | <code>Red Hat Enterprise Linux (Amazon VPC)</code> |
* <code>SUSE Linux (Amazon VPC)</code> | <code>Windows (Amazon
* VPC)</code>).</p>
* </li>
* <li>
* <p>
* <code>spot-price</code> - The Spot price. The value must match exactly (or use
* wildcards; greater than or less than comparison is not supported).</p>
* </li>
* <li>
* <p>
* <code>timestamp</code> - The time stamp of the Spot price history, in UTC format
* (for example, <i>ddd MMM dd
* HH</i>:<i>mm</i>:<i>ss</i> UTC
* <i>YYYY</i>). You can use wildcards (<code>*</code> and
* <code>?</code>). Greater than or less than comparison is not
* supported.</p>
* </li>
* </ul>
* @public
*/
Filters?: Filter[];

/**
* <p>Filters the results by the specified Availability Zone.</p>
* @public
*/
AvailabilityZone?: string;

/**
* <p>Checks whether you have the required permissions for the action, without actually
* making the request, and provides an error response. If you have the required
* permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is
* <code>UnauthorizedOperation</code>.</p>
* @public
*/
DryRun?: boolean;

/**
* <p>The date and time, up to the current date, from which to stop retrieving the price
* history data, in UTC format (for example,
* <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
* @public
*/
EndTime?: Date;

/**
* <p>Filters the results by the specified instance types.</p>
* @public
*/
InstanceTypes?: _InstanceType[];

/**
* <p>The maximum number of items to return for this request.
* To get the next page of items, make another request with the token returned in the output.
* For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
* @public
*/
MaxResults?: number;

/**
* <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
* @public
*/
NextToken?: string;

/**
* <p>Filters the results by the specified basic product descriptions.</p>
* @public
*/
ProductDescriptions?: string[];

/**
* <p>The date and time, up to the past 90 days, from which to start retrieving the price
* history data, in UTC format (for example,
* <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
* @public
*/
StartTime?: Date;
}

/**
* <p>The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend
* 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>
Expand Down Expand Up @@ -8676,23 +8780,6 @@ export interface IpamAddressHistoryRecord {
SampledEndTime?: Date;
}

/**
* @public
*/
export interface GetIpamAddressHistoryResult {
/**
* <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>
* @public
*/
HistoryRecords?: IpamAddressHistoryRecord[];

/**
* <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>
* @public
*/
NextToken?: string;
}

/**
* @internal
*/
Expand Down
30 changes: 18 additions & 12 deletions clients/client-ec2/src/models/models_6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ import {
import {
ArchitectureValues,
BootModeValues,
Byoasn,
ConversionTask,
ConversionTaskFilterSensitiveLog,
Filter,
Expand Down Expand Up @@ -150,6 +149,7 @@ import {

import {
InstanceFamilyCreditSpecification,
IpamAddressHistoryRecord,
IpamComplianceStatus,
IpamOverlapStatus,
SnapshotBlockPublicAccessState,
Expand All @@ -159,6 +159,23 @@ import {
VolumeModification,
} from "./models_5";

/**
* @public
*/
export interface GetIpamAddressHistoryResult {
/**
* <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>
* @public
*/
HistoryRecords?: IpamAddressHistoryRecord[];

/**
* <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>
* @public
*/
NextToken?: string;
}

/**
* @public
*/
Expand Down Expand Up @@ -9556,17 +9573,6 @@ export interface ProvisionIpamByoasnRequest {
AsnAuthorizationContext: AsnAuthorizationContext | undefined;
}

/**
* @public
*/
export interface ProvisionIpamByoasnResult {
/**
* <p>An ASN and BYOIP CIDR association.</p>
* @public
*/
Byoasn?: Byoasn;
}

/**
* @internal
*/
Expand Down
Loading

0 comments on commit 711a8ff

Please sign in to comment.