update_source_control_from_job
¶
update_source_control_from_job(
*,
config_overrides: Optional[GlueClientConfig] = 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,
) -> UpdateSourceControlFromJobResponse
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.
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/glue.py
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 20726 20727 20728 20729 20730 20731 20732 20733 20734 20735 20736 20737 20738 20739 20740 20741 20742 20743 20744 20745 20746 20747 20748 20749 20750 20751 20752 20753 20754 20755 20756 20757 20758 20759 20760 20761 | |