Update Source Control From Job
glue_update_source_control_from_job | R Documentation |
Synchronizes a job to the source control repository¶
Description¶
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.
Usage¶
glue_update_source_control_from_job(JobName, Provider, RepositoryName,
RepositoryOwner, BranchName, Folder, CommitId, AuthStrategy, AuthToken)
Arguments¶
JobName
The name of the Glue job to be synchronized to or from the remote repository.
Provider
The provider for the remote repository. Possible values: GITHUB, AWS_CODE_COMMIT, GITLAB, BITBUCKET.
RepositoryName
The name of the remote repository that contains the job artifacts. For BitBucket providers,
RepositoryName
should includeWorkspaceName
. Use the format<WorkspaceName>/<RepositoryName>
.RepositoryOwner
The owner of the remote repository that contains the job artifacts.
BranchName
An optional branch in the remote repository.
Folder
An optional folder in the remote repository.
CommitId
A commit ID for a commit in the remote repository.
AuthStrategy
The type of authentication, which can be an authentication token stored in Amazon Web Services Secrets Manager, or a personal access token.
AuthToken
The value of the authorization token.
Value¶
A list with the following syntax:
Request syntax¶
svc$update_source_control_from_job(
JobName = "string",
Provider = "GITHUB"|"GITLAB"|"BITBUCKET"|"AWS_CODE_COMMIT",
RepositoryName = "string",
RepositoryOwner = "string",
BranchName = "string",
Folder = "string",
CommitId = "string",
AuthStrategy = "PERSONAL_ACCESS_TOKEN"|"AWS_SECRETS_MANAGER",
AuthToken = "string"
)