From ee7f0b1a7b7a887768c2e9b31c5b600f2556fca2 Mon Sep 17 00:00:00 2001 From: awstools Date: Tue, 25 Jul 2023 20:10:55 +0000 Subject: [PATCH] feat(client-sagemaker): Mark ContentColumn and TargetLabelColumn as required Targets in TextClassificationJobConfig in CreateAutoMLJobV2API --- .../src/commands/CreateAutoMLJobV2Command.ts | 4 ++-- .../src/commands/DescribeAutoMLJobV2Command.ts | 4 ++-- clients/client-sagemaker/src/models/models_0.ts | 8 ++++---- codegen/sdk-codegen/aws-models/sagemaker.json | 6 ++++-- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/clients/client-sagemaker/src/commands/CreateAutoMLJobV2Command.ts b/clients/client-sagemaker/src/commands/CreateAutoMLJobV2Command.ts index 83ee8875a3a6..4f33c4a9773b 100644 --- a/clients/client-sagemaker/src/commands/CreateAutoMLJobV2Command.ts +++ b/clients/client-sagemaker/src/commands/CreateAutoMLJobV2Command.ts @@ -90,8 +90,8 @@ export interface CreateAutoMLJobV2CommandOutput extends CreateAutoMLJobV2Respons * MaxRuntimePerTrainingJobInSeconds: Number("int"), * MaxAutoMLJobRuntimeInSeconds: Number("int"), * }, - * ContentColumn: "STRING_VALUE", - * TargetLabelColumn: "STRING_VALUE", + * ContentColumn: "STRING_VALUE", // required + * TargetLabelColumn: "STRING_VALUE", // required * }, * TabularJobConfig: { // TabularJobConfig * CandidateGenerationConfig: { // CandidateGenerationConfig diff --git a/clients/client-sagemaker/src/commands/DescribeAutoMLJobV2Command.ts b/clients/client-sagemaker/src/commands/DescribeAutoMLJobV2Command.ts index e95ac5a5573f..4d23d5d9411f 100644 --- a/clients/client-sagemaker/src/commands/DescribeAutoMLJobV2Command.ts +++ b/clients/client-sagemaker/src/commands/DescribeAutoMLJobV2Command.ts @@ -87,8 +87,8 @@ export interface DescribeAutoMLJobV2CommandOutput extends DescribeAutoMLJobV2Res * // MaxRuntimePerTrainingJobInSeconds: Number("int"), * // MaxAutoMLJobRuntimeInSeconds: Number("int"), * // }, - * // ContentColumn: "STRING_VALUE", - * // TargetLabelColumn: "STRING_VALUE", + * // ContentColumn: "STRING_VALUE", // required + * // TargetLabelColumn: "STRING_VALUE", // required * // }, * // TabularJobConfig: { // TabularJobConfig * // CandidateGenerationConfig: { // CandidateGenerationConfig diff --git a/clients/client-sagemaker/src/models/models_0.ts b/clients/client-sagemaker/src/models/models_0.ts index 77d4101a66a5..1d3a326ff053 100644 --- a/clients/client-sagemaker/src/models/models_0.ts +++ b/clients/client-sagemaker/src/models/models_0.ts @@ -5621,15 +5621,15 @@ export interface TextClassificationJobConfig { /** *

The name of the column used to provide the sentences to be classified. It should not be - * the same as the target column (Required).

+ * the same as the target column.

*/ - ContentColumn?: string; + ContentColumn: string | undefined; /** *

The name of the column used to provide the class labels. It should not be same as the - * content column (Required).

+ * content column.

*/ - TargetLabelColumn?: string; + TargetLabelColumn: string | undefined; } /** diff --git a/codegen/sdk-codegen/aws-models/sagemaker.json b/codegen/sdk-codegen/aws-models/sagemaker.json index bd3f3ebd3444..0fc70de359fc 100644 --- a/codegen/sdk-codegen/aws-models/sagemaker.json +++ b/codegen/sdk-codegen/aws-models/sagemaker.json @@ -53853,13 +53853,15 @@ "ContentColumn": { "target": "com.amazonaws.sagemaker#ContentColumn", "traits": { - "smithy.api#documentation": "

The name of the column used to provide the sentences to be classified. It should not be\n the same as the target column (Required).

" + "smithy.api#documentation": "

The name of the column used to provide the sentences to be classified. It should not be\n the same as the target column.

", + "smithy.api#required": {} } }, "TargetLabelColumn": { "target": "com.amazonaws.sagemaker#TargetLabelColumn", "traits": { - "smithy.api#documentation": "

The name of the column used to provide the class labels. It should not be same as the\n content column (Required).

" + "smithy.api#documentation": "

The name of the column used to provide the class labels. It should not be same as the\n content column.

", + "smithy.api#required": {} } } },