Skip to content

Commit

Permalink
feat(client-glue): This release adds support for configuration of eva…
Browse files Browse the repository at this point in the history
…luation method for composite rules in Glue Data Quality rulesets.
  • Loading branch information
awstools committed Jun 13, 2024
1 parent bd9be23 commit 5fff081
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions clients/client-glue/src/commands/GetSchemaCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export interface StartDataQualityRulesetEvaluationRunCommandOutput
* AdditionalRunOptions: { // DataQualityEvaluationRunAdditionalRunOptions
* CloudWatchMetricsEnabled: true || false,
* ResultsS3Prefix: "STRING_VALUE",
* CompositeRuleEvaluationMethod: "COLUMN" || "ROW",
* },
* RulesetNames: [ // RulesetNames // required
* "STRING_VALUE",
Expand Down
42 changes: 22 additions & 20 deletions clients/client-glue/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];

/**
* <p>Additional run options you can specify for an evaluation run.</p>
* @public
Expand All @@ -6183,6 +6198,12 @@ export interface DataQualityEvaluationRunAdditionalRunOptions {
* @public
*/
ResultsS3Prefix?: string;

/**
* <p>Set the evaluation method for composite rules in the ruleset to ROW/COLUMN</p>
* @public
*/
CompositeRuleEvaluationMethod?: DQCompositeRuleEvaluationMethod;
}

/**
Expand Down Expand Up @@ -6262,7 +6283,7 @@ export interface GetDataQualityRulesetEvaluationRunResponse {
ExecutionTime?: number;

/**
* <p>A list of ruleset names for the run.</p>
* <p>A list of ruleset names for the run. Currently, this parameter takes only one Ruleset name.</p>
* @public
*/
RulesetNames?: string[];
Expand Down Expand Up @@ -8330,22 +8351,3 @@ export interface GetResourcePolicyResponse {
*/
UpdateTime?: Date;
}

/**
* @public
*/
export interface GetSchemaInput {
/**
* <p>This is a wrapper structure to contain schema identity fields. The structure contains:</p>
* <ul>
* <li>
* <p>SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. Either <code>SchemaArn</code> or <code>SchemaName</code> and <code>RegistryName</code> has to be provided.</p>
* </li>
* <li>
* <p>SchemaId$SchemaName: The name of the schema. Either <code>SchemaArn</code> or <code>SchemaName</code> and <code>RegistryName</code> has to be provided.</p>
* </li>
* </ul>
* @public
*/
SchemaId: SchemaId | undefined;
}
19 changes: 19 additions & 0 deletions clients/client-glue/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,25 @@ import {
ViewDialect,
} from "./models_1";

/**
* @public
*/
export interface GetSchemaInput {
/**
* <p>This is a wrapper structure to contain schema identity fields. The structure contains:</p>
* <ul>
* <li>
* <p>SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. Either <code>SchemaArn</code> or <code>SchemaName</code> and <code>RegistryName</code> has to be provided.</p>
* </li>
* <li>
* <p>SchemaId$SchemaName: The name of the schema. Either <code>SchemaArn</code> or <code>SchemaName</code> and <code>RegistryName</code> has to be provided.</p>
* </li>
* </ul>
* @public
*/
SchemaId: SchemaId | undefined;
}

/**
* @public
*/
Expand Down
2 changes: 1 addition & 1 deletion clients/client-glue/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,6 @@ import {
GetResourcePoliciesResponse,
GetResourcePolicyRequest,
GetResourcePolicyResponse,
GetSchemaInput,
GluePolicy,
GrokClassifier,
IcebergInput,
Expand Down Expand Up @@ -939,6 +938,7 @@ import {
GetJobResponse,
GetJobsResponse,
GetSchemaByDefinitionInput,
GetSchemaInput,
GetSchemaVersionInput,
GetSchemaVersionsDiffInput,
GetSecurityConfigurationRequest,
Expand Down
25 changes: 24 additions & 1 deletion codegen/sdk-codegen/aws-models/glue.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -10874,6 +10891,12 @@
"traits": {
"smithy.api#documentation": "<p>Prefix for Amazon S3 to store results.</p>"
}
},
"CompositeRuleEvaluationMethod": {
"target": "com.amazonaws.glue#DQCompositeRuleEvaluationMethod",
"traits": {
"smithy.api#documentation": "<p>Set the evaluation method for composite rules in the ruleset to ROW/COLUMN</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -16713,7 +16736,7 @@
"RulesetNames": {
"target": "com.amazonaws.glue#RulesetNames",
"traits": {
"smithy.api#documentation": "<p>A list of ruleset names for the run.</p>"
"smithy.api#documentation": "<p>A list of ruleset names for the run. Currently, this parameter takes only one Ruleset name.</p>"
}
},
"ResultIds": {
Expand Down

0 comments on commit 5fff081

Please sign in to comment.