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
21501 21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 21572 21573 21574 21575 21576 21577 21578 21579 21580 21581 21582 21583 21584 21585 21586 21587 21588 | |