diff --git a/clients/client-glue/src/Glue.ts b/clients/client-glue/src/Glue.ts index 5d0ffb7cdf64f..a302152194a2b 100644 --- a/clients/client-glue/src/Glue.ts +++ b/clients/client-glue/src/Glue.ts @@ -757,6 +757,11 @@ import { UpdateDevEndpointCommandOutput, } from "./commands/UpdateDevEndpointCommand"; import { UpdateJobCommand, UpdateJobCommandInput, UpdateJobCommandOutput } from "./commands/UpdateJobCommand"; +import { + UpdateJobFromSourceControlCommand, + UpdateJobFromSourceControlCommandInput, + UpdateJobFromSourceControlCommandOutput, +} from "./commands/UpdateJobFromSourceControlCommand"; import { UpdateMLTransformCommand, UpdateMLTransformCommandInput, @@ -777,6 +782,11 @@ import { UpdateSchemaCommandInput, UpdateSchemaCommandOutput, } from "./commands/UpdateSchemaCommand"; +import { + UpdateSourceControlFromJobCommand, + UpdateSourceControlFromJobCommandInput, + UpdateSourceControlFromJobCommandOutput, +} from "./commands/UpdateSourceControlFromJobCommand"; import { UpdateTableCommand, UpdateTableCommandInput, UpdateTableCommandOutput } from "./commands/UpdateTableCommand"; import { UpdateTriggerCommand, @@ -6419,6 +6429,40 @@ export class Glue extends GlueClient { } } + /** + *
Synchronizes a job from the source control repository. This operation takes the job artifacts that are located in the remote repository and updates the Glue internal stores with these artifacts.
+ * + *This API supports optional parameters which take in the repository information.
+ */ + public updateJobFromSourceControl( + args: UpdateJobFromSourceControlCommandInput, + options?: __HttpHandlerOptions + ): PromiseUpdates an existing machine learning transform. Call this operation to tune the algorithm parameters to achieve better results.
* @@ -6551,6 +6595,40 @@ export class Glue extends GlueClient { } } + /** + *Synchronizes a job to the source control repository. This operation takes the job artifacts from the Glue internal stores and makes a commit to the remote repository that is configured on the job.
+ * + *This API supports optional parameters which take in the repository information.
+ */ + public updateSourceControlFromJob( + args: UpdateSourceControlFromJobCommandInput, + options?: __HttpHandlerOptions + ): PromiseUpdates a metadata table in the Data Catalog.
*/ diff --git a/clients/client-glue/src/GlueClient.ts b/clients/client-glue/src/GlueClient.ts index 55102135e670a..824015fcb3f6f 100644 --- a/clients/client-glue/src/GlueClient.ts +++ b/clients/client-glue/src/GlueClient.ts @@ -391,10 +391,18 @@ import { import { UpdateDatabaseCommandInput, UpdateDatabaseCommandOutput } from "./commands/UpdateDatabaseCommand"; import { UpdateDevEndpointCommandInput, UpdateDevEndpointCommandOutput } from "./commands/UpdateDevEndpointCommand"; import { UpdateJobCommandInput, UpdateJobCommandOutput } from "./commands/UpdateJobCommand"; +import { + UpdateJobFromSourceControlCommandInput, + UpdateJobFromSourceControlCommandOutput, +} from "./commands/UpdateJobFromSourceControlCommand"; import { UpdateMLTransformCommandInput, UpdateMLTransformCommandOutput } from "./commands/UpdateMLTransformCommand"; import { UpdatePartitionCommandInput, UpdatePartitionCommandOutput } from "./commands/UpdatePartitionCommand"; import { UpdateRegistryCommandInput, UpdateRegistryCommandOutput } from "./commands/UpdateRegistryCommand"; import { UpdateSchemaCommandInput, UpdateSchemaCommandOutput } from "./commands/UpdateSchemaCommand"; +import { + UpdateSourceControlFromJobCommandInput, + UpdateSourceControlFromJobCommandOutput, +} from "./commands/UpdateSourceControlFromJobCommand"; import { UpdateTableCommandInput, UpdateTableCommandOutput } from "./commands/UpdateTableCommand"; import { UpdateTriggerCommandInput, UpdateTriggerCommandOutput } from "./commands/UpdateTriggerCommand"; import { @@ -581,10 +589,12 @@ export type ServiceInputTypes = | UpdateDatabaseCommandInput | UpdateDevEndpointCommandInput | UpdateJobCommandInput + | UpdateJobFromSourceControlCommandInput | UpdateMLTransformCommandInput | UpdatePartitionCommandInput | UpdateRegistryCommandInput | UpdateSchemaCommandInput + | UpdateSourceControlFromJobCommandInput | UpdateTableCommandInput | UpdateTriggerCommandInput | UpdateUserDefinedFunctionCommandInput @@ -767,10 +777,12 @@ export type ServiceOutputTypes = | UpdateDatabaseCommandOutput | UpdateDevEndpointCommandOutput | UpdateJobCommandOutput + | UpdateJobFromSourceControlCommandOutput | UpdateMLTransformCommandOutput | UpdatePartitionCommandOutput | UpdateRegistryCommandOutput | UpdateSchemaCommandOutput + | UpdateSourceControlFromJobCommandOutput | UpdateTableCommandOutput | UpdateTriggerCommandOutput | UpdateUserDefinedFunctionCommandOutput diff --git a/clients/client-glue/src/commands/CreateWorkflowCommand.ts b/clients/client-glue/src/commands/CreateWorkflowCommand.ts index 22cbeb6409ac1..71caa1f9d0d50 100644 --- a/clients/client-glue/src/commands/CreateWorkflowCommand.ts +++ b/clients/client-glue/src/commands/CreateWorkflowCommand.ts @@ -13,12 +13,8 @@ import { } from "@aws-sdk/types"; import { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient"; -import { - CreateWorkflowRequest, - CreateWorkflowRequestFilterSensitiveLog, - CreateWorkflowResponse, - CreateWorkflowResponseFilterSensitiveLog, -} from "../models/models_0"; +import { CreateWorkflowRequest, CreateWorkflowRequestFilterSensitiveLog } from "../models/models_0"; +import { CreateWorkflowResponse, CreateWorkflowResponseFilterSensitiveLog } from "../models/models_1"; import { deserializeAws_json1_1CreateWorkflowCommand, serializeAws_json1_1CreateWorkflowCommand, diff --git a/clients/client-glue/src/commands/DeleteBlueprintCommand.ts b/clients/client-glue/src/commands/DeleteBlueprintCommand.ts index 7af852730a261..decb8332c43d8 100644 --- a/clients/client-glue/src/commands/DeleteBlueprintCommand.ts +++ b/clients/client-glue/src/commands/DeleteBlueprintCommand.ts @@ -18,7 +18,7 @@ import { DeleteBlueprintRequestFilterSensitiveLog, DeleteBlueprintResponse, DeleteBlueprintResponseFilterSensitiveLog, -} from "../models/models_0"; +} from "../models/models_1"; import { deserializeAws_json1_1DeleteBlueprintCommand, serializeAws_json1_1DeleteBlueprintCommand, diff --git a/clients/client-glue/src/commands/QuerySchemaVersionMetadataCommand.ts b/clients/client-glue/src/commands/QuerySchemaVersionMetadataCommand.ts index 4a38a15f4a006..cf5274b052198 100644 --- a/clients/client-glue/src/commands/QuerySchemaVersionMetadataCommand.ts +++ b/clients/client-glue/src/commands/QuerySchemaVersionMetadataCommand.ts @@ -13,8 +13,9 @@ import { } from "@aws-sdk/types"; import { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient"; -import { QuerySchemaVersionMetadataInput, QuerySchemaVersionMetadataInputFilterSensitiveLog } from "../models/models_1"; import { + QuerySchemaVersionMetadataInput, + QuerySchemaVersionMetadataInputFilterSensitiveLog, QuerySchemaVersionMetadataResponse, QuerySchemaVersionMetadataResponseFilterSensitiveLog, } from "../models/models_2"; diff --git a/clients/client-glue/src/commands/UpdateJobFromSourceControlCommand.ts b/clients/client-glue/src/commands/UpdateJobFromSourceControlCommand.ts new file mode 100644 index 0000000000000..56c1bdb8493b2 --- /dev/null +++ b/clients/client-glue/src/commands/UpdateJobFromSourceControlCommand.ts @@ -0,0 +1,106 @@ +// smithy-typescript generated code +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient"; +import { + UpdateJobFromSourceControlRequest, + UpdateJobFromSourceControlRequestFilterSensitiveLog, + UpdateJobFromSourceControlResponse, + UpdateJobFromSourceControlResponseFilterSensitiveLog, +} from "../models/models_2"; +import { + deserializeAws_json1_1UpdateJobFromSourceControlCommand, + serializeAws_json1_1UpdateJobFromSourceControlCommand, +} from "../protocols/Aws_json1_1"; + +export interface UpdateJobFromSourceControlCommandInput extends UpdateJobFromSourceControlRequest {} +export interface UpdateJobFromSourceControlCommandOutput extends UpdateJobFromSourceControlResponse, __MetadataBearer {} + +/** + *Synchronizes a job from the source control repository. This operation takes the job artifacts that are located in the remote repository and updates the Glue internal stores with these artifacts.
+ * + *This API supports optional parameters which take in the repository information.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { GlueClient, UpdateJobFromSourceControlCommand } from "@aws-sdk/client-glue"; // ES Modules import + * // const { GlueClient, UpdateJobFromSourceControlCommand } = require("@aws-sdk/client-glue"); // CommonJS import + * const client = new GlueClient(config); + * const command = new UpdateJobFromSourceControlCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link UpdateJobFromSourceControlCommandInput} for command's `input` shape. + * @see {@link UpdateJobFromSourceControlCommandOutput} for command's `response` shape. + * @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape. + * + */ +export class UpdateJobFromSourceControlCommand extends $Command< + UpdateJobFromSourceControlCommandInput, + UpdateJobFromSourceControlCommandOutput, + GlueClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateJobFromSourceControlCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackSynchronizes a job to the source control repository. This operation takes the job artifacts from the Glue internal stores and makes a commit to the remote repository that is configured on the job.
+ * + *This API supports optional parameters which take in the repository information.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { GlueClient, UpdateSourceControlFromJobCommand } from "@aws-sdk/client-glue"; // ES Modules import + * // const { GlueClient, UpdateSourceControlFromJobCommand } = require("@aws-sdk/client-glue"); // CommonJS import + * const client = new GlueClient(config); + * const command = new UpdateSourceControlFromJobCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link UpdateSourceControlFromJobCommandInput} for command's `input` shape. + * @see {@link UpdateSourceControlFromJobCommandOutput} for command's `response` shape. + * @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape. + * + */ +export class UpdateSourceControlFromJobCommand extends $Command< + UpdateSourceControlFromJobCommandInput, + UpdateSourceControlFromJobCommandOutput, + GlueClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateSourceControlFromJobCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackThe details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.
+ */ +export interface SourceControlDetails { + /** + *The provider for the remote repository.
+ */ + Provider?: SourceControlProvider | string; + + /** + *The name of the remote repository that contains the job artifacts.
+ */ + Repository?: string; + + /** + *The owner of the remote repository that contains the job artifacts.
+ */ + Owner?: string; + + /** + *An optional branch in the remote repository.
+ */ + Branch?: string; + + /** + *An optional folder in the remote repository.
+ */ + Folder?: string; + + /** + *The last commit ID for a commit in the remote repository.
+ */ + LastCommitId?: string; + + /** + *The type of authentication, which can be an authentication token stored in Amazon Web Services Secrets Manager, or a personal access token.
+ */ + AuthStrategy?: SourceControlAuthStrategy | string; + + /** + *The value of an authorization token.
+ */ + AuthToken?: string; +} + export interface BatchGetPartitionRequest { /** *The ID of the Data Catalog where the partitions in question reside. @@ -7152,27 +7207,6 @@ export interface CreateWorkflowRequest { MaxConcurrentRuns?: number; } -export interface CreateWorkflowResponse { - /** - *
The name of the workflow which was provided as part of the request.
- */ - Name?: string; -} - -export interface DeleteBlueprintRequest { - /** - *The name of the blueprint to delete.
- */ - Name: string | undefined; -} - -export interface DeleteBlueprintResponse { - /** - *Returns the name of the blueprint that was deleted.
- */ - Name?: string; -} - /** * @internal */ @@ -8041,6 +8075,13 @@ export const ExecutionPropertyFilterSensitiveLog = (obj: ExecutionProperty): any ...obj, }); +/** + * @internal + */ +export const SourceControlDetailsFilterSensitiveLog = (obj: SourceControlDetails): any => ({ + ...obj, +}); + /** * @internal */ @@ -8793,24 +8834,3 @@ export const CreateUserDefinedFunctionResponseFilterSensitiveLog = (obj: CreateU export const CreateWorkflowRequestFilterSensitiveLog = (obj: CreateWorkflowRequest): any => ({ ...obj, }); - -/** - * @internal - */ -export const CreateWorkflowResponseFilterSensitiveLog = (obj: CreateWorkflowResponse): any => ({ - ...obj, -}); - -/** - * @internal - */ -export const DeleteBlueprintRequestFilterSensitiveLog = (obj: DeleteBlueprintRequest): any => ({ - ...obj, -}); - -/** - * @internal - */ -export const DeleteBlueprintResponseFilterSensitiveLog = (obj: DeleteBlueprintResponse): any => ({ - ...obj, -}); diff --git a/clients/client-glue/src/models/models_1.ts b/clients/client-glue/src/models/models_1.ts index a8260b5cdbaaf..34444a0f5850f 100644 --- a/clients/client-glue/src/models/models_1.ts +++ b/clients/client-glue/src/models/models_1.ts @@ -45,6 +45,27 @@ import { WorkflowRun, } from "./models_0"; +export interface CreateWorkflowResponse { + /** + *The name of the workflow which was provided as part of the request.
+ */ + Name?: string; +} + +export interface DeleteBlueprintRequest { + /** + *The name of the blueprint to delete.
+ */ + Name: string | undefined; +} + +export interface DeleteBlueprintResponse { + /** + *Returns the name of the blueprint that was deleted.
+ */ + Name?: string; +} + export interface DeleteClassifierRequest { /** *Name of the classifier to remove.
@@ -5678,72 +5699,26 @@ export interface PutWorkflowRunPropertiesRequest { export interface PutWorkflowRunPropertiesResponse {} -export interface QuerySchemaVersionMetadataInput { - /** - *A wrapper structure that may contain the schema name and Amazon Resource Name (ARN).
- */ - SchemaId?: SchemaId; - - /** - *The version number of the schema.
- */ - SchemaVersionNumber?: SchemaVersionNumber; - - /** - *The unique version ID of the schema version.
- */ - SchemaVersionId?: string; - - /** - *Search key-value pairs for metadata, if they are not provided all the metadata information will be fetched.
- */ - MetadataList?: MetadataKeyValuePair[]; - - /** - *Maximum number of results required per page. If the value is not supplied, this will be defaulted to 25 per page.
- */ - MaxResults?: number; - - /** - *A continuation token, if this is a continuation call.
- */ - NextToken?: string; -} - /** - *A structure containing other metadata for a schema version belonging to the same metadata key.
+ * @internal */ -export interface OtherMetadataValueListItem { - /** - *The metadata key’s corresponding value for the other metadata belonging to the same metadata key.
- */ - MetadataValue?: string; - - /** - *The time at which the entry was created.
- */ - CreatedTime?: string; -} +export const CreateWorkflowResponseFilterSensitiveLog = (obj: CreateWorkflowResponse): any => ({ + ...obj, +}); /** - *A structure containing metadata information for a schema version.
+ * @internal */ -export interface MetadataInfo { - /** - *The metadata key’s corresponding value.
- */ - MetadataValue?: string; - - /** - *The time at which the entry was created.
- */ - CreatedTime?: string; +export const DeleteBlueprintRequestFilterSensitiveLog = (obj: DeleteBlueprintRequest): any => ({ + ...obj, +}); - /** - *Other metadata belonging to the same metadata key.
- */ - OtherMetadataValueList?: OtherMetadataValueListItem[]; -} +/** + * @internal + */ +export const DeleteBlueprintResponseFilterSensitiveLog = (obj: DeleteBlueprintResponse): any => ({ + ...obj, +}); /** * @internal @@ -7682,24 +7657,3 @@ export const PutWorkflowRunPropertiesRequestFilterSensitiveLog = (obj: PutWorkfl export const PutWorkflowRunPropertiesResponseFilterSensitiveLog = (obj: PutWorkflowRunPropertiesResponse): any => ({ ...obj, }); - -/** - * @internal - */ -export const QuerySchemaVersionMetadataInputFilterSensitiveLog = (obj: QuerySchemaVersionMetadataInput): any => ({ - ...obj, -}); - -/** - * @internal - */ -export const OtherMetadataValueListItemFilterSensitiveLog = (obj: OtherMetadataValueListItem): any => ({ - ...obj, -}); - -/** - * @internal - */ -export const MetadataInfoFilterSensitiveLog = (obj: MetadataInfo): any => ({ - ...obj, -}); diff --git a/clients/client-glue/src/models/models_2.ts b/clients/client-glue/src/models/models_2.ts index 614111bd76e54..9a256408fcfc5 100644 --- a/clients/client-glue/src/models/models_2.ts +++ b/clients/client-glue/src/models/models_2.ts @@ -68,6 +68,9 @@ import { SchemaVersionStatus, SelectFields, SelectFromCollection, + SourceControlAuthStrategy, + SourceControlDetails, + SourceControlProvider, SparkConnectorSource, SparkConnectorTarget, SparkSQL, @@ -83,13 +86,79 @@ import { import { ColumnStatistics, JobBookmarkEntry, - MetadataInfo, MetadataKeyValuePair, ResourceShareType, SchemaVersionNumber, Table, } from "./models_1"; +export interface QuerySchemaVersionMetadataInput { + /** + *A wrapper structure that may contain the schema name and Amazon Resource Name (ARN).
+ */ + SchemaId?: SchemaId; + + /** + *The version number of the schema.
+ */ + SchemaVersionNumber?: SchemaVersionNumber; + + /** + *The unique version ID of the schema version.
+ */ + SchemaVersionId?: string; + + /** + *Search key-value pairs for metadata, if they are not provided all the metadata information will be fetched.
+ */ + MetadataList?: MetadataKeyValuePair[]; + + /** + *Maximum number of results required per page. If the value is not supplied, this will be defaulted to 25 per page.
+ */ + MaxResults?: number; + + /** + *A continuation token, if this is a continuation call.
+ */ + NextToken?: string; +} + +/** + *A structure containing other metadata for a schema version belonging to the same metadata key.
+ */ +export interface OtherMetadataValueListItem { + /** + *The metadata key’s corresponding value for the other metadata belonging to the same metadata key.
+ */ + MetadataValue?: string; + + /** + *The time at which the entry was created.
+ */ + CreatedTime?: string; +} + +/** + *A structure containing metadata information for a schema version.
+ */ +export interface MetadataInfo { + /** + *The metadata key’s corresponding value.
+ */ + MetadataValue?: string; + + /** + *The time at which the entry was created.
+ */ + CreatedTime?: string; + + /** + *Other metadata belonging to the same metadata key.
+ */ + OtherMetadataValueList?: OtherMetadataValueListItem[]; +} + export interface QuerySchemaVersionMetadataResponse { /** *A map of a metadata key and associated values.
@@ -1468,6 +1537,60 @@ export interface UpdateJobResponse { JobName?: string; } +export interface UpdateJobFromSourceControlRequest { + /** + *The name of the Glue job to be synchronized to or from the remote repository.
+ */ + JobName?: string; + + /** + *The provider for the remote repository.
+ */ + Provider?: SourceControlProvider | string; + + /** + *The name of the remote repository that contains the job artifacts.
+ */ + RepositoryName?: string; + + /** + *The owner of the remote repository that contains the job artifacts.
+ */ + RepositoryOwner?: string; + + /** + *An optional branch in the remote repository.
+ */ + BranchName?: string; + + /** + *An optional folder in the remote repository.
+ */ + Folder?: string; + + /** + *A commit ID for a commit in the remote repository.
+ */ + CommitId?: string; + + /** + *The type of authentication, which can be an authentication token stored in Amazon Web Services Secrets Manager, or a personal access token.
+ */ + AuthStrategy?: SourceControlAuthStrategy | string; + + /** + *The value of the authorization token.
+ */ + AuthToken?: string; +} + +export interface UpdateJobFromSourceControlResponse { + /** + *The name of the Glue job.
+ */ + JobName?: string; +} + export interface UpdateMLTransformRequest { /** *A unique identifier that was generated when the transform was created.
@@ -1654,6 +1777,60 @@ export interface UpdateSchemaResponse { RegistryName?: string; } +export interface UpdateSourceControlFromJobRequest { + /** + *The name of the Glue job to be synchronized to or from the remote repository.
+ */ + JobName?: string; + + /** + *The provider for the remote repository.
+ */ + Provider?: SourceControlProvider | string; + + /** + *The name of the remote repository that contains the job artifacts.
+ */ + RepositoryName?: string; + + /** + *The owner of the remote repository that contains the job artifacts.
+ */ + RepositoryOwner?: string; + + /** + *An optional branch in the remote repository.
+ */ + BranchName?: string; + + /** + *An optional folder in the remote repository.
+ */ + Folder?: string; + + /** + *A commit ID for a commit in the remote repository.
+ */ + CommitId?: string; + + /** + *The type of authentication, which can be an authentication token stored in Amazon Web Services Secrets Manager, or a personal access token.
+ */ + AuthStrategy?: SourceControlAuthStrategy | string; + + /** + *The value of the authorization token.
+ */ + AuthToken?: string; +} + +export interface UpdateSourceControlFromJobResponse { + /** + *The name of the Glue job.
+ */ + JobName?: string; +} + export interface UpdateTableRequest { /** *The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account @@ -2322,6 +2499,11 @@ export interface CreateJobRequest { *
Only jobs with Glue version 3.0 and above and command type glueetl
will be allowed to set ExecutionClass
to FLEX
. The flexible execution class is available for Spark jobs.
The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.
+ */ + SourceControlDetails?: SourceControlDetails; } /** @@ -2497,6 +2679,11 @@ export interface Job { *Only jobs with Glue version 3.0 and above and command type glueetl
will be allowed to set ExecutionClass
to FLEX
. The flexible execution class is available for Spark jobs.
The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.
+ */ + SourceControlDetails?: SourceControlDetails; } /** @@ -2654,6 +2841,11 @@ export interface JobUpdate { *Only jobs with Glue version 3.0 and above and command type glueetl
will be allowed to set ExecutionClass
to FLEX
. The flexible execution class is available for Spark jobs.
The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.
+ */ + SourceControlDetails?: SourceControlDetails; } export interface GetJobResponse { @@ -2699,6 +2891,27 @@ export interface GetJobsResponse { NextToken?: string; } +/** + * @internal + */ +export const QuerySchemaVersionMetadataInputFilterSensitiveLog = (obj: QuerySchemaVersionMetadataInput): any => ({ + ...obj, +}); + +/** + * @internal + */ +export const OtherMetadataValueListItemFilterSensitiveLog = (obj: OtherMetadataValueListItem): any => ({ + ...obj, +}); + +/** + * @internal + */ +export const MetadataInfoFilterSensitiveLog = (obj: MetadataInfo): any => ({ + ...obj, +}); + /** * @internal */ @@ -3231,6 +3444,20 @@ export const UpdateJobResponseFilterSensitiveLog = (obj: UpdateJobResponse): any ...obj, }); +/** + * @internal + */ +export const UpdateJobFromSourceControlRequestFilterSensitiveLog = (obj: UpdateJobFromSourceControlRequest): any => ({ + ...obj, +}); + +/** + * @internal + */ +export const UpdateJobFromSourceControlResponseFilterSensitiveLog = (obj: UpdateJobFromSourceControlResponse): any => ({ + ...obj, +}); + /** * @internal */ @@ -3287,6 +3514,20 @@ export const UpdateSchemaResponseFilterSensitiveLog = (obj: UpdateSchemaResponse ...obj, }); +/** + * @internal + */ +export const UpdateSourceControlFromJobRequestFilterSensitiveLog = (obj: UpdateSourceControlFromJobRequest): any => ({ + ...obj, +}); + +/** + * @internal + */ +export const UpdateSourceControlFromJobResponseFilterSensitiveLog = (obj: UpdateSourceControlFromJobResponse): any => ({ + ...obj, +}); + /** * @internal */ diff --git a/clients/client-glue/src/protocols/Aws_json1_1.ts b/clients/client-glue/src/protocols/Aws_json1_1.ts index 456a63b4b42e0..4a8a09e96f659 100644 --- a/clients/client-glue/src/protocols/Aws_json1_1.ts +++ b/clients/client-glue/src/protocols/Aws_json1_1.ts @@ -358,10 +358,18 @@ import { import { UpdateDatabaseCommandInput, UpdateDatabaseCommandOutput } from "../commands/UpdateDatabaseCommand"; import { UpdateDevEndpointCommandInput, UpdateDevEndpointCommandOutput } from "../commands/UpdateDevEndpointCommand"; import { UpdateJobCommandInput, UpdateJobCommandOutput } from "../commands/UpdateJobCommand"; +import { + UpdateJobFromSourceControlCommandInput, + UpdateJobFromSourceControlCommandOutput, +} from "../commands/UpdateJobFromSourceControlCommand"; import { UpdateMLTransformCommandInput, UpdateMLTransformCommandOutput } from "../commands/UpdateMLTransformCommand"; import { UpdatePartitionCommandInput, UpdatePartitionCommandOutput } from "../commands/UpdatePartitionCommand"; import { UpdateRegistryCommandInput, UpdateRegistryCommandOutput } from "../commands/UpdateRegistryCommand"; import { UpdateSchemaCommandInput, UpdateSchemaCommandOutput } from "../commands/UpdateSchemaCommand"; +import { + UpdateSourceControlFromJobCommandInput, + UpdateSourceControlFromJobCommandOutput, +} from "../commands/UpdateSourceControlFromJobCommand"; import { UpdateTableCommandInput, UpdateTableCommandOutput } from "../commands/UpdateTableCommand"; import { UpdateTriggerCommandInput, UpdateTriggerCommandOutput } from "../commands/UpdateTriggerCommand"; import { @@ -480,7 +488,6 @@ import { CreateUserDefinedFunctionRequest, CreateUserDefinedFunctionResponse, CreateWorkflowRequest, - CreateWorkflowResponse, CreateXMLClassifierRequest, CustomCode, CustomEntityType, @@ -488,8 +495,6 @@ import { DatabaseInput, DataLakePrincipal, Datatype, - DeleteBlueprintRequest, - DeleteBlueprintResponse, DeltaTarget, DevEndpoint, DirectKafkaSource, @@ -598,6 +603,7 @@ import { Session, SessionCommand, SkewedInfo, + SourceControlDetails, SparkConnectorSource, SparkConnectorTarget, SparkSQL, @@ -646,12 +652,15 @@ import { CrawlerMetrics, CrawlerRunningException, CrawlsFilter, + CreateWorkflowResponse, CsvClassifier, Database, DataCatalogEncryptionSettings, DateColumnStatisticsData, DecimalColumnStatisticsData, DecimalNumber, + DeleteBlueprintRequest, + DeleteBlueprintResponse, DeleteClassifierRequest, DeleteClassifierResponse, DeleteColumnStatisticsForPartitionRequest, @@ -866,10 +875,8 @@ import { Location, LongColumnStatisticsData, MappingEntry, - MetadataInfo, MetadataKeyValuePair, MLTransform, - OtherMetadataValueListItem, PartitionIndexDescriptor, PermissionType, PermissionTypeMismatchException, @@ -881,7 +888,6 @@ import { PutSchemaVersionMetadataResponse, PutWorkflowRunPropertiesRequest, PutWorkflowRunPropertiesResponse, - QuerySchemaVersionMetadataInput, RegistryListItem, SchedulerTransitioningException, SchemaColumn, @@ -924,9 +930,12 @@ import { Job, JobUpdate, Mapping, + MetadataInfo, MLTransformNotReadyException, NoScheduleException, + OtherMetadataValueListItem, PropertyPredicate, + QuerySchemaVersionMetadataInput, QuerySchemaVersionMetadataResponse, RegisterSchemaVersionInput, RegisterSchemaVersionResponse, @@ -998,6 +1007,8 @@ import { UpdateDevEndpointRequest, UpdateDevEndpointResponse, UpdateGrokClassifierRequest, + UpdateJobFromSourceControlRequest, + UpdateJobFromSourceControlResponse, UpdateJobRequest, UpdateJobResponse, UpdateJsonClassifierRequest, @@ -1009,6 +1020,8 @@ import { UpdateRegistryResponse, UpdateSchemaInput, UpdateSchemaResponse, + UpdateSourceControlFromJobRequest, + UpdateSourceControlFromJobResponse, UpdateTableRequest, UpdateTableResponse, UpdateTriggerRequest, @@ -3309,6 +3322,19 @@ export const serializeAws_json1_1UpdateJobCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +export const serializeAws_json1_1UpdateJobFromSourceControlCommand = async ( + input: UpdateJobFromSourceControlCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AWSGlue.UpdateJobFromSourceControl", + }; + let body: any; + body = JSON.stringify(serializeAws_json1_1UpdateJobFromSourceControlRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + export const serializeAws_json1_1UpdateMLTransformCommand = async ( input: UpdateMLTransformCommandInput, context: __SerdeContext @@ -3361,6 +3387,19 @@ export const serializeAws_json1_1UpdateSchemaCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +export const serializeAws_json1_1UpdateSourceControlFromJobCommand = async ( + input: UpdateSourceControlFromJobCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AWSGlue.UpdateSourceControlFromJob", + }; + let body: any; + body = JSON.stringify(serializeAws_json1_1UpdateSourceControlFromJobRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + export const serializeAws_json1_1UpdateTableCommand = async ( input: UpdateTableCommandInput, context: __SerdeContext @@ -12465,6 +12504,65 @@ const deserializeAws_json1_1UpdateJobCommandError = async ( } }; +export const deserializeAws_json1_1UpdateJobFromSourceControlCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): PromiseSpecifies not to trim values before identifying the type of column values. The default value is true.
" } }, @@ -5829,8 +5853,6 @@ "GlueVersion": { "target": "com.amazonaws.glue#GlueVersionString", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": "0.9", "smithy.api#documentation": "Glue version determines the versions of Apache Spark and Python that Glue supports. The Python version indicates the version supported for running your ETL scripts on development endpoints.
\n \nFor more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.
\n\t \n\tDevelopment endpoints that are created without specifying a Glue version default to Glue 0.9.
\n\t\n\tYou can specify a version of Python support for development endpoints by using the Arguments
parameter in the CreateDevEndpoint
or UpdateDevEndpoint
APIs. If no arguments are provided, the version defaults to Python 2.
The job timeout in minutes. This is the maximum time that a job run\n can consume resources before it is terminated and enters TIMEOUT
\n status. The default is 2,880 minutes (48 hours).
Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.
\n\nThe flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.
\n\t\n\tOnly jobs with Glue version 3.0 and above and command type glueetl
will be allowed to set ExecutionClass
to FLEX
. The flexible execution class is available for Spark jobs.
The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.
" + } } } }, @@ -6312,16 +6338,12 @@ "GlueVersion": { "target": "com.amazonaws.glue#GlueVersionString", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": "0.9", "smithy.api#documentation": "This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see Glue Versions in the developer guide.
" } }, "MaxCapacity": { "target": "com.amazonaws.glue#NullableDouble", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": 10, "smithy.api#documentation": "The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of\n processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more\n information, see the Glue pricing\n page.
\n\t\t\n\t\t\t\n MaxCapacity
is a mutually exclusive option with NumberOfWorkers
and WorkerType
.
If either NumberOfWorkers
or WorkerType
is set, then MaxCapacity
cannot be set.
If MaxCapacity
is set then neither NumberOfWorkers
or WorkerType
can be set.
If WorkerType
is set, then NumberOfWorkers
is required (and vice versa).
\n MaxCapacity
and NumberOfWorkers
must both be at least 1.
When the WorkerType
field is set to a value other than Standard
, the MaxCapacity
field is set automatically and becomes read-only.
When the WorkerType
field is set to a value other than Standard
, the MaxCapacity
field is set automatically and becomes read-only.
The timeout of the task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours).
Glue version determines the versions of Apache Spark and Python that Glue supports. The Python version indicates the version supported for running your ETL scripts on development endpoints.
\n \nFor more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.
\n\t \n\tDevelopment endpoints that are created without specifying a Glue version default to Glue 0.9.
\n\t\n\tYou can specify a version of Python support for development endpoints by using the Arguments
parameter in the CreateDevEndpoint
or UpdateDevEndpoint
APIs. If no arguments are provided, the version defaults to Python 2.
Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.
\n\t\n\tA value of true
means to scan all records, while a value of false
means to sample the records. If no value is specified, the value defaults to true
.
This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see Glue Versions in the developer guide.
" } }, "MaxCapacity": { "target": "com.amazonaws.glue#NullableDouble", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": 10, "smithy.api#documentation": "The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of\n processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more\n information, see the Glue pricing\n page.
\n\t\t\nWhen the WorkerType
field is set to a value other than Standard
, the MaxCapacity
field is set automatically and becomes read-only.
The timeout for a task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours).
The job timeout in minutes. This is the maximum time that a job run\n can consume resources before it is terminated and enters TIMEOUT
\n status. The default is 2,880 minutes (48 hours).
Indicates whether the job is run with a standard or flexible execution class. The standard execution class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.
\n\nThe flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.
\n\t\n\tOnly jobs with Glue version 3.0 and above and command type glueetl
will be allowed to set ExecutionClass
to FLEX
. The flexible execution class is available for Spark jobs.
The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.
" + } } }, "traits": { @@ -16696,8 +16710,6 @@ "Timeout": { "target": "com.amazonaws.glue#Timeout", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": 2880, "smithy.api#documentation": "The job timeout in minutes. This is the maximum time that a job run\n can consume resources before it is terminated and enters TIMEOUT
\n status. The default is 2,880 minutes (48 hours).
Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.
\n\nThe flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.
\n\t\n\tOnly jobs with Glue version 3.0 and above and command type glueetl
will be allowed to set ExecutionClass
to FLEX
. The flexible execution class is available for Spark jobs.
The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.
" + } } }, "traits": { @@ -16966,8 +16984,6 @@ "StartingOffsets": { "target": "com.amazonaws.glue#EnclosedInStringProperty", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": "latest", "smithy.api#documentation": "The starting position in the Kafka topic to read data from. The possible values are \"earliest\"
or \"latest\"
. The default value is \"latest\"
.
The timeout in milliseconds to poll data from Kafka in Spark job executors. The default value is 512
.
The number of times to retry before failing to fetch Kafka offsets. The default value is 3
.
The time in milliseconds to wait before retrying to fetch Kafka offsets. The default value is 10
.
The starting position in the Kinesis data stream to read data from. The possible values are \"latest\"
, \"trim_horizon\"
, or \"earliest\"
. The default value is \"latest\"
.
The maximum time spent in the job executor to fetch a record from the Kinesis data stream per shard, specified in milliseconds (ms). The default value is 1000
.
The maximum number of records to fetch per shard in the Kinesis data stream. The default value is 100000
.
The maximum number of records to fetch from the Kinesis data stream in each getRecords operation. The default value is 10000
.
Adds a time delay between two consecutive getRecords operations. The default value is \"False\"
. This option is only configurable for Glue version 2.0 and above.
The minimum time delay between two consecutive getRecords operations, specified in ms. The default value is 1000
. This option is only configurable for Glue version 2.0 and above.
The minimum time interval between two ListShards API calls for your script to consider resharding. The default value is 1s
.
The maximum number of retries for Kinesis Data Streams API requests. The default value is 3
.
The cool-off time period (specified in ms) before retrying the Kinesis Data Streams API call. The default value is 1000
.
The maximum cool-off time period (specified in ms) between two retries of a Kinesis Data Streams API call. The default value is 10000
.
Avoids creating an empty microbatch job by checking for unread data in the Kinesis data stream before the batch is started. The default value is \"False\"
.
The maximum number of results to return. The default is 20, and maximum is 100.
" } }, @@ -18631,16 +18617,12 @@ "GlueVersion": { "target": "com.amazonaws.glue#GlueVersionString", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": "0.9", "smithy.api#documentation": "This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see Glue Versions in the developer guide.
" } }, "MaxCapacity": { "target": "com.amazonaws.glue#NullableDouble", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": 10, "smithy.api#documentation": "The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of\n processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more\n information, see the Glue pricing\n page.
\n\t\t\n\t\t\n MaxCapacity
is a mutually exclusive option with NumberOfWorkers
and WorkerType
.
If either NumberOfWorkers
or WorkerType
is set, then MaxCapacity
cannot be set.
If MaxCapacity
is set then neither NumberOfWorkers
or WorkerType
can be set.
If WorkerType
is set, then NumberOfWorkers
is required (and vice versa).
\n MaxCapacity
and NumberOfWorkers
must both be at least 1.
When the WorkerType
field is set to a value other than Standard
, the MaxCapacity
field is set automatically and becomes read-only.
Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.
\n\t\n\tA value of true
means to scan all records, while a value of false
means to sample the records. If no value is specified, the value defaults to true
.
This option controls the duration in milliseconds after which the s3 listing is likely to be consistent. Files with modification timestamps falling within the last maxBand milliseconds are tracked specially when using JobBookmarks to account for Amazon S3 eventual consistency. Most users don't need to set this option. The default is 900000 milliseconds, or 15 minutes.
" } }, @@ -21880,8 +21858,6 @@ "Separator": { "target": "com.amazonaws.glue#Separator", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": "comma", "smithy.api#documentation": "Specifies the delimiter character. The default is a comma: \",\", but any other character can be specified.
", "smithy.api#required": {} } @@ -21889,16 +21865,12 @@ "Escaper": { "target": "com.amazonaws.glue#EnclosedInStringPropertyWithQuote", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": "none", "smithy.api#documentation": "Specifies a character to use for escaping. This option is used only when reading CSV files. The default value is none
. If enabled, the character which immediately follows is used as-is, except for a small set of well-known escapes (\\n
, \\r
, \\t
, and \\0
).
Specifies the character to use for quoting. The default is a double quote: '\"'
. Set this to -1
to turn off quoting entirely.
A Boolean value that specifies whether a single record can span multiple lines. This can occur when a field contains a quoted new-line character. You must set this option to True if any record spans multiple lines. The default value is False
, which allows for more aggressive file-splitting during parsing.
A Boolean value that specifies whether to treat the first line as a header. The default value is False
.
A Boolean value that specifies whether to write the header to output. The default value is True
.
A Boolean value that specifies whether to skip the first data line. The default value is False
.
This option controls the duration in milliseconds after which the s3 listing is likely to be consistent. Files with modification timestamps falling within the last maxBand milliseconds are tracked specially when using JobBookmarks to account for Amazon S3 eventual consistency. Most users don't need to set this option. The default is 900000 milliseconds, or 15 minutes.
" } }, @@ -22211,8 +22173,6 @@ "Multiline": { "target": "com.amazonaws.glue#BoxedBoolean", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": false, "smithy.api#documentation": "A Boolean value that specifies whether a single record can span multiple lines. This can occur when a field contains a quoted new-line character. You must set this option to True if any record spans multiple lines. The default value is False
, which allows for more aggressive file-splitting during parsing.
This option controls the duration in milliseconds after which the s3 listing is likely to be consistent. Files with modification timestamps falling within the last maxBand milliseconds are tracked specially when using JobBookmarks to account for Amazon S3 eventual consistency. Most users don't need to set this option. The default is 900000 milliseconds, or 15 minutes.
" } }, @@ -23384,6 +23342,96 @@ } } }, + "com.amazonaws.glue#SourceControlAuthStrategy": { + "type": "enum", + "members": { + "PERSONAL_ACCESS_TOKEN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PERSONAL_ACCESS_TOKEN" + } + }, + "AWS_SECRETS_MANAGER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AWS_SECRETS_MANAGER" + } + } + } + }, + "com.amazonaws.glue#SourceControlDetails": { + "type": "structure", + "members": { + "Provider": { + "target": "com.amazonaws.glue#SourceControlProvider", + "traits": { + "smithy.api#documentation": "The provider for the remote repository.
" + } + }, + "Repository": { + "target": "com.amazonaws.glue#Generic512CharString", + "traits": { + "smithy.api#documentation": "The name of the remote repository that contains the job artifacts.
" + } + }, + "Owner": { + "target": "com.amazonaws.glue#Generic512CharString", + "traits": { + "smithy.api#documentation": "The owner of the remote repository that contains the job artifacts.
" + } + }, + "Branch": { + "target": "com.amazonaws.glue#Generic512CharString", + "traits": { + "smithy.api#documentation": "An optional branch in the remote repository.
" + } + }, + "Folder": { + "target": "com.amazonaws.glue#Generic512CharString", + "traits": { + "smithy.api#documentation": "An optional folder in the remote repository.
" + } + }, + "LastCommitId": { + "target": "com.amazonaws.glue#Generic512CharString", + "traits": { + "smithy.api#documentation": "The last commit ID for a commit in the remote repository.
" + } + }, + "AuthStrategy": { + "target": "com.amazonaws.glue#SourceControlAuthStrategy", + "traits": { + "smithy.api#documentation": "The type of authentication, which can be an authentication token stored in Amazon Web Services Secrets Manager, or a personal access token.
" + } + }, + "AuthToken": { + "target": "com.amazonaws.glue#Generic512CharString", + "traits": { + "smithy.api#documentation": "The value of an authorization token.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.
" + } + }, + "com.amazonaws.glue#SourceControlProvider": { + "type": "enum", + "members": { + "GITHUB": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "GITHUB" + } + }, + "AWS_CODE_COMMIT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AWS_CODE_COMMIT" + } + } + } + }, "com.amazonaws.glue#SparkConnectorSource": { "type": "structure", "members": { @@ -25710,8 +25758,6 @@ "GlueVersion": { "target": "com.amazonaws.glue#GlueVersionString", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": "0.9", "smithy.api#documentation": "This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see Glue Versions in the developer guide.
" } }, @@ -26846,8 +26892,6 @@ "DisableValueTrimming": { "target": "com.amazonaws.glue#NullableBoolean", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": true, "smithy.api#documentation": "Specifies not to trim values before identifying the type of column values. The default value is true.
" } }, @@ -27073,6 +27117,111 @@ "smithy.api#documentation": "Updates an existing job definition. The previous job definition is completely overwritten by this information.
" } }, + "com.amazonaws.glue#UpdateJobFromSourceControl": { + "type": "operation", + "input": { + "target": "com.amazonaws.glue#UpdateJobFromSourceControlRequest" + }, + "output": { + "target": "com.amazonaws.glue#UpdateJobFromSourceControlResponse" + }, + "errors": [ + { + "target": "com.amazonaws.glue#AccessDeniedException" + }, + { + "target": "com.amazonaws.glue#AlreadyExistsException" + }, + { + "target": "com.amazonaws.glue#EntityNotFoundException" + }, + { + "target": "com.amazonaws.glue#InternalServiceException" + }, + { + "target": "com.amazonaws.glue#InvalidInputException" + }, + { + "target": "com.amazonaws.glue#OperationTimeoutException" + }, + { + "target": "com.amazonaws.glue#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Synchronizes a job from the source control repository. This operation takes the job artifacts that are located in the remote repository and updates the Glue internal stores with these artifacts.
\n\t\n\tThis API supports optional parameters which take in the repository information.
" + } + }, + "com.amazonaws.glue#UpdateJobFromSourceControlRequest": { + "type": "structure", + "members": { + "JobName": { + "target": "com.amazonaws.glue#NameString", + "traits": { + "smithy.api#documentation": "The name of the Glue job to be synchronized to or from the remote repository.
" + } + }, + "Provider": { + "target": "com.amazonaws.glue#SourceControlProvider", + "traits": { + "smithy.api#documentation": "The provider for the remote repository.
" + } + }, + "RepositoryName": { + "target": "com.amazonaws.glue#NameString", + "traits": { + "smithy.api#documentation": "The name of the remote repository that contains the job artifacts.
" + } + }, + "RepositoryOwner": { + "target": "com.amazonaws.glue#NameString", + "traits": { + "smithy.api#documentation": "The owner of the remote repository that contains the job artifacts.
" + } + }, + "BranchName": { + "target": "com.amazonaws.glue#NameString", + "traits": { + "smithy.api#documentation": "An optional branch in the remote repository.
" + } + }, + "Folder": { + "target": "com.amazonaws.glue#NameString", + "traits": { + "smithy.api#documentation": "An optional folder in the remote repository.
" + } + }, + "CommitId": { + "target": "com.amazonaws.glue#CommitIdString", + "traits": { + "smithy.api#documentation": "A commit ID for a commit in the remote repository.
" + } + }, + "AuthStrategy": { + "target": "com.amazonaws.glue#SourceControlAuthStrategy", + "traits": { + "smithy.api#documentation": "The type of authentication, which can be an authentication token stored in Amazon Web Services Secrets Manager, or a personal access token.
" + } + }, + "AuthToken": { + "target": "com.amazonaws.glue#AuthTokenString", + "traits": { + "smithy.api#documentation": "The value of the authorization token.
" + } + } + } + }, + "com.amazonaws.glue#UpdateJobFromSourceControlResponse": { + "type": "structure", + "members": { + "JobName": { + "target": "com.amazonaws.glue#NameString", + "traits": { + "smithy.api#documentation": "The name of the Glue job.
" + } + } + } + }, "com.amazonaws.glue#UpdateJobRequest": { "type": "structure", "members": { @@ -27190,16 +27339,12 @@ "GlueVersion": { "target": "com.amazonaws.glue#GlueVersionString", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": "0.9", "smithy.api#documentation": "This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see Glue Versions in the developer guide.
" } }, "MaxCapacity": { "target": "com.amazonaws.glue#NullableDouble", "traits": { - "smithy.api#addedDefault": {}, - "smithy.api#default": 10, "smithy.api#documentation": "The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of\n processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more\n information, see the Glue pricing\n page.
\n\t\t\nWhen the WorkerType
field is set to a value other than Standard
, the MaxCapacity
field is set automatically and becomes read-only.
The timeout for a task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours).
Synchronizes a job to the source control repository. This operation takes the job artifacts from the Glue internal stores and makes a commit to the remote repository that is configured on the job.
\n\n\tThis API supports optional parameters which take in the repository information.
" + } + }, + "com.amazonaws.glue#UpdateSourceControlFromJobRequest": { + "type": "structure", + "members": { + "JobName": { + "target": "com.amazonaws.glue#NameString", + "traits": { + "smithy.api#documentation": "The name of the Glue job to be synchronized to or from the remote repository.
" + } + }, + "Provider": { + "target": "com.amazonaws.glue#SourceControlProvider", + "traits": { + "smithy.api#documentation": "The provider for the remote repository.
" + } + }, + "RepositoryName": { + "target": "com.amazonaws.glue#NameString", + "traits": { + "smithy.api#documentation": "The name of the remote repository that contains the job artifacts.
" + } + }, + "RepositoryOwner": { + "target": "com.amazonaws.glue#NameString", + "traits": { + "smithy.api#documentation": "The owner of the remote repository that contains the job artifacts.
" + } + }, + "BranchName": { + "target": "com.amazonaws.glue#NameString", + "traits": { + "smithy.api#documentation": "An optional branch in the remote repository.
" + } + }, + "Folder": { + "target": "com.amazonaws.glue#NameString", + "traits": { + "smithy.api#documentation": "An optional folder in the remote repository.
" + } + }, + "CommitId": { + "target": "com.amazonaws.glue#CommitIdString", + "traits": { + "smithy.api#documentation": "A commit ID for a commit in the remote repository.
" + } + }, + "AuthStrategy": { + "target": "com.amazonaws.glue#SourceControlAuthStrategy", + "traits": { + "smithy.api#documentation": "The type of authentication, which can be an authentication token stored in Amazon Web Services Secrets Manager, or a personal access token.
" + } + }, + "AuthToken": { + "target": "com.amazonaws.glue#AuthTokenString", + "traits": { + "smithy.api#documentation": "The value of the authorization token.
" + } + } + } + }, + "com.amazonaws.glue#UpdateSourceControlFromJobResponse": { + "type": "structure", + "members": { + "JobName": { + "target": "com.amazonaws.glue#NameString", + "traits": { + "smithy.api#documentation": "The name of the Glue job.
" + } + } + } + }, "com.amazonaws.glue#UpdateTable": { "type": "operation", "input": {