update_job_from_source_control
async
¶
update_job_from_source_control(
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
job_name: Optional[NameString] = None,
provider: Optional[SourceControlProvider] = None,
repository_name: Optional[NameString] = None,
repository_owner: Optional[NameString] = None,
branch_name: Optional[NameString] = None,
folder: Optional[NameString] = None,
commit_id: Optional[CommitIdString] = None,
auth_strategy: Optional[SourceControlAuthStrategy] = None,
auth_token: Optional[AuthTokenString] = None,
) -> UpdateJobFromSourceControlResponse
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.
Parameters:
-
job_name(Optional[NameString], default:None) –The name of the Glue job to be synchronized to or from the remote repository.
-
provider(Optional[SourceControlProvider], default:None) –The provider for the remote repository. Possible values: GITHUB, AWS_CODE_COMMIT, GITLAB, BITBUCKET.
-
repository_name(Optional[NameString], default:None) –The name of the remote repository that contains the job artifacts. For BitBucket providers,
RepositoryNameshould includeWorkspaceName. Use the format./ -
repository_owner(Optional[NameString], default:None) –The owner of the remote repository that contains the job artifacts.
-
branch_name(Optional[NameString], default:None) –An optional branch in the remote repository.
-
folder(Optional[NameString], default:None) –An optional folder in the remote repository.
-
commit_id(Optional[CommitIdString], default:None) –A commit ID for a commit in the remote repository.
-
auth_strategy(Optional[SourceControlAuthStrategy], default:None) –The type of authentication, which can be an authentication token stored in Amazon Web Services Secrets Manager, or a personal access token.
-
auth_token(Optional[AuthTokenString], default:None) –The value of the authorization token.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
AlreadyExistsException–A resource to be created or added already exists.
-
EntityNotFoundException–A specified entity does not exist
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
ValidationException–A value could not be validated.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
20637 20638 20639 20640 20641 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 20670 20671 20672 20673 20674 20675 20676 20677 20678 20679 20680 20681 20682 20683 20684 20685 20686 20687 20688 20689 20690 20691 20692 20693 20694 20695 20696 20697 20698 20699 20700 20701 20702 20703 20704 20705 20706 20707 20708 20709 20710 20711 20712 20713 20714 20715 20716 20717 20718 20719 20720 20721 20722 20723 20724 20725 | |