update_source_control_from_job
async
¶
update_source_control_from_job(
*,
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,
) -> 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/async_glue.py
21011 21012 21013 21014 21015 21016 21017 21018 21019 21020 21021 21022 21023 21024 21025 21026 21027 21028 21029 21030 21031 21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049 21050 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 21095 21096 21097 21098 21099 | |