From dedea39839bd1f09445a96fce5ef1aace18aed1e Mon Sep 17 00:00:00 2001 From: awstools Date: Mon, 24 Jul 2023 18:24:35 +0000 Subject: [PATCH] feat(client-ec2): Add "disabled" enum value to SpotInstanceState. --- .../src/commands/DescribeSpotInstanceRequestsCommand.ts | 2 +- .../client-ec2/src/commands/RequestSpotInstancesCommand.ts | 2 +- clients/client-ec2/src/models/models_4.ts | 1 + codegen/sdk-codegen/aws-models/ec2.json | 6 ++++++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/clients/client-ec2/src/commands/DescribeSpotInstanceRequestsCommand.ts b/clients/client-ec2/src/commands/DescribeSpotInstanceRequestsCommand.ts index 8ec251203b6b..7ed8765e05f2 100644 --- a/clients/client-ec2/src/commands/DescribeSpotInstanceRequestsCommand.ts +++ b/clients/client-ec2/src/commands/DescribeSpotInstanceRequestsCommand.ts @@ -188,7 +188,7 @@ export interface DescribeSpotInstanceRequestsCommandOutput * // ProductDescription: "Linux/UNIX" || "Linux/UNIX (Amazon VPC)" || "Windows" || "Windows (Amazon VPC)", * // SpotInstanceRequestId: "STRING_VALUE", * // SpotPrice: "STRING_VALUE", - * // State: "open" || "active" || "closed" || "cancelled" || "failed", + * // State: "open" || "active" || "closed" || "cancelled" || "failed" || "disabled", * // Status: { // SpotInstanceStatus * // Code: "STRING_VALUE", * // Message: "STRING_VALUE", diff --git a/clients/client-ec2/src/commands/RequestSpotInstancesCommand.ts b/clients/client-ec2/src/commands/RequestSpotInstancesCommand.ts index 4518903cbf07..afb0b912fa76 100644 --- a/clients/client-ec2/src/commands/RequestSpotInstancesCommand.ts +++ b/clients/client-ec2/src/commands/RequestSpotInstancesCommand.ts @@ -278,7 +278,7 @@ export interface RequestSpotInstancesCommandOutput extends RequestSpotInstancesR * // ProductDescription: "Linux/UNIX" || "Linux/UNIX (Amazon VPC)" || "Windows" || "Windows (Amazon VPC)", * // SpotInstanceRequestId: "STRING_VALUE", * // SpotPrice: "STRING_VALUE", - * // State: "open" || "active" || "closed" || "cancelled" || "failed", + * // State: "open" || "active" || "closed" || "cancelled" || "failed" || "disabled", * // Status: { // SpotInstanceStatus * // Code: "STRING_VALUE", * // Message: "STRING_VALUE", diff --git a/clients/client-ec2/src/models/models_4.ts b/clients/client-ec2/src/models/models_4.ts index 391827404803..7e5dabd75661 100644 --- a/clients/client-ec2/src/models/models_4.ts +++ b/clients/client-ec2/src/models/models_4.ts @@ -9081,6 +9081,7 @@ export const SpotInstanceState = { active: "active", cancelled: "cancelled", closed: "closed", + disabled: "disabled", failed: "failed", open: "open", } as const; diff --git a/codegen/sdk-codegen/aws-models/ec2.json b/codegen/sdk-codegen/aws-models/ec2.json index ede7aef80229..00f107b8067b 100644 --- a/codegen/sdk-codegen/aws-models/ec2.json +++ b/codegen/sdk-codegen/aws-models/ec2.json @@ -90328,6 +90328,12 @@ "traits": { "smithy.api#enumValue": "failed" } + }, + "disabled": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "disabled" + } } } },