update_job_from_source_control
¶
update_job_from_source_control(
*,
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,
) -> 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/glue.py
20305 20306 20307 20308 20309 20310 20311 20312 20313 20314 20315 20316 20317 20318 20319 20320 20321 20322 20323 20324 20325 20326 20327 20328 20329 20330 20331 20332 20333 20334 20335 20336 20337 20338 20339 20340 20341 20342 20343 20344 20345 20346 20347 20348 20349 20350 20351 20352 20353 20354 20355 20356 20357 20358 20359 20360 20361 20362 20363 20364 20365 20366 20367 20368 20369 20370 20371 20372 20373 20374 20375 20376 20377 20378 20379 20380 20381 20382 20383 20384 20385 20386 20387 20388 20389 20390 20391 20392 | |