Skip to content

Commit

Permalink
feat(client-glue): Add optional field JobMode to CreateJob and Update…
Browse files Browse the repository at this point in the history
…Job APIs.
  • Loading branch information
awstools committed May 29, 2024
1 parent 3ac165f commit 52dd4ea
Show file tree
Hide file tree
Showing 18 changed files with 215 additions and 53 deletions.
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/BatchGetJobsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export interface BatchGetJobsCommandOutput extends BatchGetJobsResponse, __Metad
* // Jobs: [ // JobList
* // { // Job
* // Name: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // Description: "STRING_VALUE",
* // LogUri: "STRING_VALUE",
* // Role: "STRING_VALUE",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-glue/src/commands/BatchGetWorkflowsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
* // PreviousRunId: "STRING_VALUE",
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand Down Expand Up @@ -241,6 +242,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
* // PreviousRunId: "STRING_VALUE",
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand Down
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 { CreateCustomEntityTypeRequest } from "../models/models_0";
import { CreateCustomEntityTypeResponse } from "../models/models_1";
import { CreateCustomEntityTypeRequest, CreateCustomEntityTypeResponse } from "../models/models_1";
import { de_CreateCustomEntityTypeCommand, se_CreateCustomEntityTypeCommand } from "../protocols/Aws_json1_1";

/**
Expand Down
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/CreateJobCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export interface CreateJobCommandOutput extends CreateJobResponse, __MetadataBea
* const client = new GlueClient(config);
* const input = { // CreateJobRequest
* Name: "STRING_VALUE", // required
* JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* Description: "STRING_VALUE",
* LogUri: "STRING_VALUE",
* Role: "STRING_VALUE", // required
Expand Down
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/GetJobCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export interface GetJobCommandOutput extends GetJobResponse, __MetadataBearer {}
* // { // GetJobResponse
* // Job: { // Job
* // Name: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // Description: "STRING_VALUE",
* // LogUri: "STRING_VALUE",
* // Role: "STRING_VALUE",
Expand Down
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/GetJobRunCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface GetJobRunCommandOutput extends GetJobRunResponse, __MetadataBea
* // PreviousRunId: "STRING_VALUE",
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand Down
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/GetJobRunsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export interface GetJobRunsCommandOutput extends GetJobRunsResponse, __MetadataB
* // PreviousRunId: "STRING_VALUE",
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand Down
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/GetJobsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export interface GetJobsCommandOutput extends GetJobsResponse, __MetadataBearer
* // Jobs: [ // JobList
* // { // Job
* // Name: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // Description: "STRING_VALUE",
* // LogUri: "STRING_VALUE",
* // Role: "STRING_VALUE",
Expand Down
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 { GetSecurityConfigurationsRequest } from "../models/models_1";
import { GetSecurityConfigurationsResponse } from "../models/models_2";
import { GetSecurityConfigurationsRequest, GetSecurityConfigurationsResponse } from "../models/models_2";
import { de_GetSecurityConfigurationsCommand, se_GetSecurityConfigurationsCommand } from "../protocols/Aws_json1_1";

/**
Expand Down
2 changes: 2 additions & 0 deletions clients/client-glue/src/commands/GetWorkflowCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
* // PreviousRunId: "STRING_VALUE",
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand Down Expand Up @@ -238,6 +239,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
* // PreviousRunId: "STRING_VALUE",
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand Down
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/GetWorkflowRunCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export interface GetWorkflowRunCommandOutput extends GetWorkflowRunResponse, __M
* // PreviousRunId: "STRING_VALUE",
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand Down
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/GetWorkflowRunsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export interface GetWorkflowRunsCommandOutput extends GetWorkflowRunsResponse, _
* // PreviousRunId: "STRING_VALUE",
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand Down
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/UpdateJobCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export interface UpdateJobCommandOutput extends UpdateJobResponse, __MetadataBea
* const input = { // UpdateJobRequest
* JobName: "STRING_VALUE", // required
* JobUpdate: { // JobUpdate
* JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* Description: "STRING_VALUE",
* LogUri: "STRING_VALUE",
* Role: "STRING_VALUE",
Expand Down
66 changes: 36 additions & 30 deletions clients/client-glue/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6788,6 +6788,21 @@ export interface ExecutionProperty {
MaxConcurrentRuns?: number;
}

/**
* @public
* @enum
*/
export const JobMode = {
NOTEBOOK: "NOTEBOOK",
SCRIPT: "SCRIPT",
VISUAL: "VISUAL",
} as const;

/**
* @public
*/
export type JobMode = (typeof JobMode)[keyof typeof JobMode];

/**
* @public
* @enum
Expand Down Expand Up @@ -7784,6 +7799,27 @@ export interface JobRun {
*/
JobName?: string;

/**
* <p>A mode that describes how a job was created. Valid values are:</p>
* <ul>
* <li>
* <p>
* <code>SCRIPT</code> - The job was created using the Glue Studio script editor.</p>
* </li>
* <li>
* <p>
* <code>VISUAL</code> - The job was created using the Glue Studio visual editor.</p>
* </li>
* <li>
* <p>
* <code>NOTEBOOK</code> - The job was created using an interactive sessions notebook.</p>
* </li>
* </ul>
* <p>When the <code>JobMode</code> field is missing or null, <code>SCRIPT</code> is assigned as the default value.</p>
* @public
*/
JobMode?: JobMode;

/**
* <p>The date and time at which this job run was started.</p>
* @public
Expand Down Expand Up @@ -9309,33 +9345,3 @@ export interface CreateCrawlerRequest {
* @public
*/
export interface CreateCrawlerResponse {}

/**
* @public
*/
export interface CreateCustomEntityTypeRequest {
/**
* <p>A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.</p>
* @public
*/
Name: string | undefined;

/**
* <p>A regular expression string that is used for detecting sensitive data in a custom pattern.</p>
* @public
*/
RegexString: string | undefined;

/**
* <p>A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.</p>
* <p>If no context words are passed only a regular expression is checked.</p>
* @public
*/
ContextWords?: string[];

/**
* <p>A list of tags applied to the custom entity type.</p>
* @public
*/
Tags?: Record<string, string>;
}
47 changes: 30 additions & 17 deletions clients/client-glue/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,36 @@ import {
WorkerType,
} from "./models_0";

/**
* @public
*/
export interface CreateCustomEntityTypeRequest {
/**
* <p>A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.</p>
* @public
*/
Name: string | undefined;

/**
* <p>A regular expression string that is used for detecting sensitive data in a custom pattern.</p>
* @public
*/
RegexString: string | undefined;

/**
* <p>A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.</p>
* <p>If no context words are passed only a regular expression is checked.</p>
* @public
*/
ContextWords?: string[];

/**
* <p>A list of tags applied to the custom entity type.</p>
* @public
*/
Tags?: Record<string, string>;
}

/**
* @public
*/
Expand Down Expand Up @@ -8139,20 +8169,3 @@ export interface GetSecurityConfigurationResponse {
*/
SecurityConfiguration?: SecurityConfiguration;
}

/**
* @public
*/
export interface GetSecurityConfigurationsRequest {
/**
* <p>The maximum number of results to return.</p>
* @public
*/
MaxResults?: number;

/**
* <p>A continuation token, if this is a continuation call.</p>
* @public
*/
NextToken?: string;
}
81 changes: 81 additions & 0 deletions clients/client-glue/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import {
JDBCConnectorSource,
JDBCConnectorTarget,
JobCommand,
JobMode,
Join,
LakeFormationConfiguration,
LineageConfiguration,
Expand Down Expand Up @@ -141,6 +142,23 @@ import {
UserDefinedFunctionInput,
} from "./models_1";

/**
* @public
*/
export interface GetSecurityConfigurationsRequest {
/**
* <p>The maximum number of results to return.</p>
* @public
*/
MaxResults?: number;

/**
* <p>A continuation token, if this is a continuation call.</p>
* @public
*/
NextToken?: string;
}

/**
* @public
*/
Expand Down Expand Up @@ -6953,6 +6971,27 @@ export interface CreateJobRequest {
*/
Name: string | undefined;

/**
* <p>A mode that describes how a job was created. Valid values are:</p>
* <ul>
* <li>
* <p>
* <code>SCRIPT</code> - The job was created using the Glue Studio script editor.</p>
* </li>
* <li>
* <p>
* <code>VISUAL</code> - The job was created using the Glue Studio visual editor.</p>
* </li>
* <li>
* <p>
* <code>NOTEBOOK</code> - The job was created using an interactive sessions notebook.</p>
* </li>
* </ul>
* <p>When the <code>JobMode</code> field is missing or null, <code>SCRIPT</code> is assigned as the default value.</p>
* @public
*/
JobMode?: JobMode;

/**
* <p>Description of the job being defined.</p>
* @public
Expand Down Expand Up @@ -7174,6 +7213,27 @@ export interface Job {
*/
Name?: string;

/**
* <p>A mode that describes how a job was created. Valid values are:</p>
* <ul>
* <li>
* <p>
* <code>SCRIPT</code> - The job was created using the Glue Studio script editor.</p>
* </li>
* <li>
* <p>
* <code>VISUAL</code> - The job was created using the Glue Studio visual editor.</p>
* </li>
* <li>
* <p>
* <code>NOTEBOOK</code> - The job was created using an interactive sessions notebook.</p>
* </li>
* </ul>
* <p>When the <code>JobMode</code> field is missing or null, <code>SCRIPT</code> is assigned as the default value.</p>
* @public
*/
JobMode?: JobMode;

/**
* <p>A description of the job.</p>
* @public
Expand Down Expand Up @@ -7397,6 +7457,27 @@ export interface Job {
* @public
*/
export interface JobUpdate {
/**
* <p>A mode that describes how a job was created. Valid values are:</p>
* <ul>
* <li>
* <p>
* <code>SCRIPT</code> - The job was created using the Glue Studio script editor.</p>
* </li>
* <li>
* <p>
* <code>VISUAL</code> - The job was created using the Glue Studio visual editor.</p>
* </li>
* <li>
* <p>
* <code>NOTEBOOK</code> - The job was created using an interactive sessions notebook.</p>
* </li>
* </ul>
* <p>When the <code>JobMode</code> field is missing or null, <code>SCRIPT</code> is assigned as the default value.</p>
* @public
*/
JobMode?: JobMode;

/**
* <p>Description of the job being defined.</p>
* @public
Expand Down
Loading

0 comments on commit 52dd4ea

Please sign in to comment.