Skip to content

Commit

Permalink
feat(client-ec2): Amazon EC2 G6e instances powered by NVIDIA L40S Ten…
Browse files Browse the repository at this point in the history
…sor Core GPUs are the most cost-efficient GPU instances for deploying generative AI models and the highest performance GPU instances for spatial computing workloads.
  • Loading branch information
awstools committed Sep 23, 2024
1 parent 5428b83 commit a99738f
Show file tree
Hide file tree
Showing 32 changed files with 133 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ export interface CancelConversionTaskCommandOutput extends __MetadataBearer {}
* <p>Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all
* artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is
* in the process of transferring the final disk image, the command fails and returns an exception.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html">Importing a Virtual Machine Using the Amazon
* EC2 CLI</a>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions clients/client-ec2/src/commands/CreateFleetCommand.ts

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export interface DescribeCapacityBlockOfferingsCommandOutput
* const client = new EC2Client(config);
* const input = { // DescribeCapacityBlockOfferingsRequest
* DryRun: true || false,
* InstanceType: "STRING_VALUE", // required
* InstanceCount: Number("int"), // required
* InstanceType: "STRING_VALUE",
* InstanceCount: Number("int"),
* StartDateRange: new Date("TIMESTAMP"),
* EndDateRange: new Date("TIMESTAMP"),
* CapacityDurationHours: Number("int"), // required
Expand Down

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions clients/client-ec2/src/commands/DescribeFleetsCommand.ts

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions clients/client-ec2/src/commands/ImportInstanceCommand.ts

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions clients/client-ec2/src/commands/ImportVolumeCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ export interface ImportVolumeCommandInput extends ImportVolumeRequest {}
export interface ImportVolumeCommandOutput extends ImportVolumeResult, __MetadataBearer {}

/**
* <p>Creates an import volume task using metadata from the specified disk image.</p>
* <p>This API action supports only single-volume VMs. To import multi-volume VMs, use
* <note>
* <p>This API action supports only single-volume VMs. To import multi-volume VMs, use
* <a>ImportImage</a> instead. To import a disk to a snapshot, use
* <a>ImportSnapshot</a> instead.</p>
* <p>This API action is not supported by the Command Line Interface (CLI). For
* information about using the Amazon EC2 CLI, which is deprecated, see <a href="https://awsdocs.s3.amazonaws.com/EC2/ec2-clt.pdf#importing-your-volumes-into-amazon-ebs">Importing Disks to Amazon EBS</a> in the <i>Amazon EC2 CLI Reference</i> PDF file.</p>
* </note>
* <p>Creates an import volume task using metadata from the specified disk image.</p>
* <p>For information about the import manifest referenced by this API action, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html">VM Import Manifest</a>.</p>
* <p>This API action is not supported by the Command Line Interface (CLI).</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ec2/src/commands/ModifyFleetCommand.ts

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions clients/client-ec2/src/commands/RequestSpotFleetCommand.ts

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions clients/client-ec2/src/commands/RunInstancesCommand.ts

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions clients/client-ec2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9050,6 +9050,14 @@ export const _InstanceType = {
g6_4xlarge: "g6.4xlarge",
g6_8xlarge: "g6.8xlarge",
g6_xlarge: "g6.xlarge",
g6e_12xlarge: "g6e.12xlarge",
g6e_16xlarge: "g6e.16xlarge",
g6e_24xlarge: "g6e.24xlarge",
g6e_2xlarge: "g6e.2xlarge",
g6e_48xlarge: "g6e.48xlarge",
g6e_4xlarge: "g6e.4xlarge",
g6e_8xlarge: "g6e.8xlarge",
g6e_xlarge: "g6e.xlarge",
gr6_4xlarge: "gr6.4xlarge",
gr6_8xlarge: "gr6.8xlarge",
h1_16xlarge: "h1.16xlarge",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-ec2/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2781,7 +2781,9 @@ export type FleetOnDemandAllocationStrategy =
* @enum
*/
export const FleetCapacityReservationUsageStrategy = {
NONE: "none",
USE_CAPACITY_RESERVATIONS_FIRST: "use-capacity-reservations-first",
USE_CAPACITY_RESERVATIONS_ONLY: "use-capacity-reservations-only",
} as const;

/**
Expand Down
4 changes: 2 additions & 2 deletions clients/client-ec2/src/models/models_3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3024,13 +3024,13 @@ export interface DescribeCapacityBlockOfferingsRequest {
* <p>The type of instance for which the Capacity Block offering reserves capacity.</p>
* @public
*/
InstanceType: string | undefined;
InstanceType?: string;

/**
* <p>The number of instances for which to reserve capacity.</p>
* @public
*/
InstanceCount: number | undefined;
InstanceCount?: number;

/**
* <p>The earliest start date for the Capacity Block offering.</p>
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ec2/src/models/models_4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ export interface DescribeImportSnapshotTasksRequest {
*/
export interface SnapshotTaskDetail {
/**
* <p>The description of the snapshot.</p>
* <p>The description of the disk image being imported.</p>
* @public
*/
Description?: string;
Expand Down
81 changes: 70 additions & 11 deletions codegen/sdk-codegen/aws-models/ec2.json
Original file line number Diff line number Diff line change
Expand Up @@ -9921,7 +9921,7 @@
"target": "smithy.api#Unit"
},
"traits": {
"smithy.api#documentation": "<p>Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all\n artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is\n in the process of transferring the final disk image, the command fails and returns an exception.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html\">Importing a Virtual Machine Using the Amazon\n EC2 CLI</a>.</p>"
"smithy.api#documentation": "<p>Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all\n artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is\n in the process of transferring the final disk image, the command fails and returns an exception.</p>"
}
},
"com.amazonaws.ec2#CancelExportTask": {
Expand Down Expand Up @@ -23520,7 +23520,7 @@
"type": "structure",
"members": {
"KeyName": {
"target": "com.amazonaws.ec2#KeyPairName",
"target": "com.amazonaws.ec2#KeyPairNameWithResolver",
"traits": {
"smithy.api#documentation": "<p>The name of the key pair.</p>"
}
Expand Down Expand Up @@ -27891,17 +27891,13 @@
"InstanceType": {
"target": "com.amazonaws.ec2#String",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The type of instance for which the Capacity Block offering reserves capacity.</p>",
"smithy.api#required": {}
"smithy.api#documentation": "<p>The type of instance for which the Capacity Block offering reserves capacity.</p>"
}
},
"InstanceCount": {
"target": "com.amazonaws.ec2#Integer",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The number of instances for which to reserve capacity.</p>",
"smithy.api#required": {}
"smithy.api#documentation": "<p>The number of instances for which to reserve capacity.</p>"
}
},
"StartDateRange": {
Expand Down Expand Up @@ -49857,6 +49853,18 @@
"traits": {
"smithy.api#enumValue": "use-capacity-reservations-first"
}
},
"USE_CAPACITY_RESERVATIONS_ONLY": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "use-capacity-reservations-only"
}
},
"NONE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "none"
}
}
}
},
Expand Down Expand Up @@ -57482,7 +57490,7 @@
"target": "com.amazonaws.ec2#ImportInstanceResult"
},
"traits": {
"smithy.api#documentation": "<note>\n <p>We recommend that you use the <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportImage.html\">\n <code>ImportImage</code>\n </a>\n API. For more information, see <a href=\"https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html\">Importing a VM as an image using VM\n Import/Export</a> in the <i>VM Import/Export User Guide</i>.</p>\n </note>\n <p>Creates an import instance task using metadata from the specified disk image.</p>\n <p>This API action is not supported by the Command Line Interface (CLI). For\n information about using the Amazon EC2 CLI, which is deprecated, see <a href=\"https://awsdocs.s3.amazonaws.com/EC2/ec2-clt.pdf#UsingVirtualMachinesinAmazonEC2\">Importing\n a VM to Amazon EC2</a> in the <i>Amazon EC2 CLI Reference</i> PDF file.</p>\n <p>This API action supports only single-volume VMs. To import multi-volume VMs, use <a>ImportImage</a>\n instead.</p>\n <p>For information about the import manifest referenced by this API action, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html\">VM Import Manifest</a>.</p>"
"smithy.api#documentation": "<note>\n <p>We recommend that you use the <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportImage.html\">\n <code>ImportImage</code>\n </a>\n API instead. For more information, see <a href=\"https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html\">Importing a VM as an image using VM\n Import/Export</a> in the <i>VM Import/Export User Guide</i>.</p>\n </note>\n <p>Creates an import instance task using metadata from the specified disk image.</p>\n <p>This API action supports only single-volume VMs. To import multi-volume VMs, use <a>ImportImage</a>\n instead.</p>\n <p>For information about the import manifest referenced by this API action, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html\">VM Import Manifest</a>.</p>\n <p>This API action is not supported by the Command Line Interface (CLI).</p>"
}
},
"com.amazonaws.ec2#ImportInstanceLaunchSpecification": {
Expand Down Expand Up @@ -58056,7 +58064,7 @@
"target": "com.amazonaws.ec2#ImportVolumeResult"
},
"traits": {
"smithy.api#documentation": "<p>Creates an import volume task using metadata from the specified disk image.</p>\n <p>This API action supports only single-volume VMs. To import multi-volume VMs, use \n <a>ImportImage</a> instead. To import a disk to a snapshot, use\n <a>ImportSnapshot</a> instead.</p>\n <p>This API action is not supported by the Command Line Interface (CLI). For \n information about using the Amazon EC2 CLI, which is deprecated, see <a href=\"https://awsdocs.s3.amazonaws.com/EC2/ec2-clt.pdf#importing-your-volumes-into-amazon-ebs\">Importing Disks to Amazon EBS</a> in the <i>Amazon EC2 CLI Reference</i> PDF file.</p>\n <p>For information about the import manifest referenced by this API action, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html\">VM Import Manifest</a>.</p>"
"smithy.api#documentation": "<note>\n <p>This API action supports only single-volume VMs. To import multi-volume VMs, use \n <a>ImportImage</a> instead. To import a disk to a snapshot, use\n <a>ImportSnapshot</a> instead.</p>\n </note>\n <p>Creates an import volume task using metadata from the specified disk image.</p>\n <p>For information about the import manifest referenced by this API action, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html\">VM Import Manifest</a>.</p>\n <p>This API action is not supported by the Command Line Interface (CLI).</p>"
}
},
"com.amazonaws.ec2#ImportVolumeRequest": {
Expand Down Expand Up @@ -66558,6 +66566,54 @@
"traits": {
"smithy.api#enumValue": "mac2-m1ultra.metal"
}
},
"g6e_xlarge": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "g6e.xlarge"
}
},
"g6e_2xlarge": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "g6e.2xlarge"
}
},
"g6e_4xlarge": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "g6e.4xlarge"
}
},
"g6e_8xlarge": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "g6e.8xlarge"
}
},
"g6e_12xlarge": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "g6e.12xlarge"
}
},
"g6e_16xlarge": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "g6e.16xlarge"
}
},
"g6e_24xlarge": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "g6e.24xlarge"
}
},
"g6e_48xlarge": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "g6e.48xlarge"
}
}
}
},
Expand Down Expand Up @@ -70622,6 +70678,9 @@
"com.amazonaws.ec2#KeyPairName": {
"type": "string"
},
"com.amazonaws.ec2#KeyPairNameWithResolver": {
"type": "string"
},
"com.amazonaws.ec2#KeyType": {
"type": "enum",
"members": {
Expand Down Expand Up @@ -96036,7 +96095,7 @@
"target": "com.amazonaws.ec2#String",
"traits": {
"aws.protocols#ec2QueryName": "Description",
"smithy.api#documentation": "<p>The description of the snapshot.</p>",
"smithy.api#documentation": "<p>The description of the disk image being imported.</p>",
"smithy.api#xmlName": "description"
}
},
Expand Down

0 comments on commit a99738f

Please sign in to comment.