From 35fbeb846843da47b950e7e03be3370489cab5bc Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 6 Dec 2023 19:19:15 +0000 Subject: [PATCH] feat(client-ec2): Releasing the new cpuManufacturer attribute within the DescribeInstanceTypes API response which notifies our customers with information on who the Manufacturer is for the processor attached to the instance, for example: Intel. --- .../src/commands/DescribeInstanceTypesCommand.ts | 1 + clients/client-ec2/src/models/models_4.ts | 6 ++++++ clients/client-ec2/src/protocols/Aws_ec2.ts | 3 +++ codegen/sdk-codegen/aws-models/ec2.json | 11 +++++++++++ 4 files changed, 21 insertions(+) diff --git a/clients/client-ec2/src/commands/DescribeInstanceTypesCommand.ts b/clients/client-ec2/src/commands/DescribeInstanceTypesCommand.ts index 9c0048ac84c86..2a580940e3e30 100644 --- a/clients/client-ec2/src/commands/DescribeInstanceTypesCommand.ts +++ b/clients/client-ec2/src/commands/DescribeInstanceTypesCommand.ts @@ -88,6 +88,7 @@ export interface DescribeInstanceTypesCommandOutput extends DescribeInstanceType * // SupportedFeatures: [ // SupportedAdditionalProcessorFeatureList * // "amd-sev-snp", * // ], + * // Manufacturer: "STRING_VALUE", * // }, * // VCpuInfo: { // VCpuInfo * // DefaultVCpus: Number("int"), diff --git a/clients/client-ec2/src/models/models_4.ts b/clients/client-ec2/src/models/models_4.ts index 7444fbaf496e7..1f5ec9b52c157 100644 --- a/clients/client-ec2/src/models/models_4.ts +++ b/clients/client-ec2/src/models/models_4.ts @@ -4380,6 +4380,12 @@ export interface ProcessorInfo { * AMD SEV-SNP.

*/ SupportedFeatures?: SupportedAdditionalProcessorFeature[]; + + /** + * @public + *

The manufacturer of the processor.

+ */ + Manufacturer?: string; } /** diff --git a/clients/client-ec2/src/protocols/Aws_ec2.ts b/clients/client-ec2/src/protocols/Aws_ec2.ts index 1b81cb3515759..2282164666cea 100644 --- a/clients/client-ec2/src/protocols/Aws_ec2.ts +++ b/clients/client-ec2/src/protocols/Aws_ec2.ts @@ -88785,6 +88785,9 @@ const de_ProcessorInfo = (output: any, context: __SerdeContext): ProcessorInfo = context ); } + if (output["manufacturer"] !== undefined) { + contents.Manufacturer = __expectString(output["manufacturer"]); + } return contents; }; diff --git a/codegen/sdk-codegen/aws-models/ec2.json b/codegen/sdk-codegen/aws-models/ec2.json index 0a2bd4c04e68d..c83f1aa6faffe 100644 --- a/codegen/sdk-codegen/aws-models/ec2.json +++ b/codegen/sdk-codegen/aws-models/ec2.json @@ -13652,6 +13652,9 @@ } } }, + "com.amazonaws.ec2#CpuManufacturerName": { + "type": "string" + }, "com.amazonaws.ec2#CpuManufacturerSet": { "type": "list", "member": { @@ -82757,6 +82760,14 @@ "smithy.api#documentation": "

Indicates whether the instance type supports AMD SEV-SNP. If the request returns \n amd-sev-snp, AMD SEV-SNP is supported. Otherwise, it is not supported. \n For more information, see \n AMD SEV-SNP.

", "smithy.api#xmlName": "supportedFeatures" } + }, + "Manufacturer": { + "target": "com.amazonaws.ec2#CpuManufacturerName", + "traits": { + "aws.protocols#ec2QueryName": "Manufacturer", + "smithy.api#documentation": "

The manufacturer of the processor.

", + "smithy.api#xmlName": "manufacturer" + } } }, "traits": {