From 5fff081c46cc2174b69b4985852cd62a75ddca90 Mon Sep 17 00:00:00 2001 From: awstools Date: Thu, 13 Jun 2024 18:14:26 +0000 Subject: [PATCH] feat(client-glue): This release adds support for configuration of evaluation method for composite rules in Glue Data Quality rulesets. --- ...tDataQualityRulesetEvaluationRunCommand.ts | 1 + .../src/commands/GetSchemaCommand.ts | 3 +- ...tDataQualityRulesetEvaluationRunCommand.ts | 1 + clients/client-glue/src/models/models_1.ts | 42 ++++++++++--------- clients/client-glue/src/models/models_2.ts | 19 +++++++++ .../client-glue/src/protocols/Aws_json1_1.ts | 2 +- codegen/sdk-codegen/aws-models/glue.json | 25 ++++++++++- 7 files changed, 69 insertions(+), 24 deletions(-) diff --git a/clients/client-glue/src/commands/GetDataQualityRulesetEvaluationRunCommand.ts b/clients/client-glue/src/commands/GetDataQualityRulesetEvaluationRunCommand.ts index 00f76ee1aec6..84e3c87142d9 100644 --- a/clients/client-glue/src/commands/GetDataQualityRulesetEvaluationRunCommand.ts +++ b/clients/client-glue/src/commands/GetDataQualityRulesetEvaluationRunCommand.ts @@ -67,6 +67,7 @@ export interface GetDataQualityRulesetEvaluationRunCommandOutput * // AdditionalRunOptions: { // DataQualityEvaluationRunAdditionalRunOptions * // CloudWatchMetricsEnabled: true || false, * // ResultsS3Prefix: "STRING_VALUE", + * // CompositeRuleEvaluationMethod: "COLUMN" || "ROW", * // }, * // Status: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT", * // ErrorString: "STRING_VALUE", diff --git a/clients/client-glue/src/commands/GetSchemaCommand.ts b/clients/client-glue/src/commands/GetSchemaCommand.ts index 08522a86b995..dff624326f4e 100644 --- a/clients/client-glue/src/commands/GetSchemaCommand.ts +++ b/clients/client-glue/src/commands/GetSchemaCommand.ts @@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient"; -import { GetSchemaInput } from "../models/models_1"; -import { GetSchemaResponse } from "../models/models_2"; +import { GetSchemaInput, GetSchemaResponse } from "../models/models_2"; import { de_GetSchemaCommand, se_GetSchemaCommand } from "../protocols/Aws_json1_1"; /** diff --git a/clients/client-glue/src/commands/StartDataQualityRulesetEvaluationRunCommand.ts b/clients/client-glue/src/commands/StartDataQualityRulesetEvaluationRunCommand.ts index f5bf037ecd58..88c99ca640be 100644 --- a/clients/client-glue/src/commands/StartDataQualityRulesetEvaluationRunCommand.ts +++ b/clients/client-glue/src/commands/StartDataQualityRulesetEvaluationRunCommand.ts @@ -62,6 +62,7 @@ export interface StartDataQualityRulesetEvaluationRunCommandOutput * AdditionalRunOptions: { // DataQualityEvaluationRunAdditionalRunOptions * CloudWatchMetricsEnabled: true || false, * ResultsS3Prefix: "STRING_VALUE", + * CompositeRuleEvaluationMethod: "COLUMN" || "ROW", * }, * RulesetNames: [ // RulesetNames // required * "STRING_VALUE", diff --git a/clients/client-glue/src/models/models_1.ts b/clients/client-glue/src/models/models_1.ts index af64f0d58d3a..08194f36fe09 100644 --- a/clients/client-glue/src/models/models_1.ts +++ b/clients/client-glue/src/models/models_1.ts @@ -6167,6 +6167,21 @@ export interface GetDataQualityRulesetEvaluationRunRequest { RunId: string | undefined; } +/** + * @public + * @enum + */ +export const DQCompositeRuleEvaluationMethod = { + COLUMN: "COLUMN", + ROW: "ROW", +} as const; + +/** + * @public + */ +export type DQCompositeRuleEvaluationMethod = + (typeof DQCompositeRuleEvaluationMethod)[keyof typeof DQCompositeRuleEvaluationMethod]; + /** *

Additional run options you can specify for an evaluation run.

* @public @@ -6183,6 +6198,12 @@ export interface DataQualityEvaluationRunAdditionalRunOptions { * @public */ ResultsS3Prefix?: string; + + /** + *

Set the evaluation method for composite rules in the ruleset to ROW/COLUMN

+ * @public + */ + CompositeRuleEvaluationMethod?: DQCompositeRuleEvaluationMethod; } /** @@ -6262,7 +6283,7 @@ export interface GetDataQualityRulesetEvaluationRunResponse { ExecutionTime?: number; /** - *

A list of ruleset names for the run.

+ *

A list of ruleset names for the run. Currently, this parameter takes only one Ruleset name.

* @public */ RulesetNames?: string[]; @@ -8330,22 +8351,3 @@ export interface GetResourcePolicyResponse { */ UpdateTime?: Date; } - -/** - * @public - */ -export interface GetSchemaInput { - /** - *

This is a wrapper structure to contain schema identity fields. The structure contains:

- * - * @public - */ - SchemaId: SchemaId | undefined; -} diff --git a/clients/client-glue/src/models/models_2.ts b/clients/client-glue/src/models/models_2.ts index e24dea8b2468..51f7d450fae9 100644 --- a/clients/client-glue/src/models/models_2.ts +++ b/clients/client-glue/src/models/models_2.ts @@ -143,6 +143,25 @@ import { ViewDialect, } from "./models_1"; +/** + * @public + */ +export interface GetSchemaInput { + /** + *

This is a wrapper structure to contain schema identity fields. The structure contains:

+ * + * @public + */ + SchemaId: SchemaId | undefined; +} + /** * @public */ diff --git a/clients/client-glue/src/protocols/Aws_json1_1.ts b/clients/client-glue/src/protocols/Aws_json1_1.ts index 868c1a39ec45..6f12464e347e 100644 --- a/clients/client-glue/src/protocols/Aws_json1_1.ts +++ b/clients/client-glue/src/protocols/Aws_json1_1.ts @@ -872,7 +872,6 @@ import { GetResourcePoliciesResponse, GetResourcePolicyRequest, GetResourcePolicyResponse, - GetSchemaInput, GluePolicy, GrokClassifier, IcebergInput, @@ -939,6 +938,7 @@ import { GetJobResponse, GetJobsResponse, GetSchemaByDefinitionInput, + GetSchemaInput, GetSchemaVersionInput, GetSchemaVersionsDiffInput, GetSecurityConfigurationRequest, diff --git a/codegen/sdk-codegen/aws-models/glue.json b/codegen/sdk-codegen/aws-models/glue.json index fd7b94045158..0e2d2fa2ecd8 100644 --- a/codegen/sdk-codegen/aws-models/glue.json +++ b/codegen/sdk-codegen/aws-models/glue.json @@ -10639,6 +10639,23 @@ "target": "com.amazonaws.glue#GenericString" } }, + "com.amazonaws.glue#DQCompositeRuleEvaluationMethod": { + "type": "enum", + "members": { + "COLUMN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COLUMN" + } + }, + "ROW": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ROW" + } + } + } + }, "com.amazonaws.glue#DQDLAliases": { "type": "map", "key": { @@ -10874,6 +10891,12 @@ "traits": { "smithy.api#documentation": "

Prefix for Amazon S3 to store results.

" } + }, + "CompositeRuleEvaluationMethod": { + "target": "com.amazonaws.glue#DQCompositeRuleEvaluationMethod", + "traits": { + "smithy.api#documentation": "

Set the evaluation method for composite rules in the ruleset to ROW/COLUMN

" + } } }, "traits": { @@ -16713,7 +16736,7 @@ "RulesetNames": { "target": "com.amazonaws.glue#RulesetNames", "traits": { - "smithy.api#documentation": "

A list of ruleset names for the run.

" + "smithy.api#documentation": "

A list of ruleset names for the run. Currently, this parameter takes only one Ruleset name.

" } }, "ResultIds": {