aws_sdk_glue/client/
update_source_control_from_job.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateSourceControlFromJob`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`job_name(impl Into<String>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::job_name) / [`set_job_name(Option<String>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::set_job_name):<br>required: **false**<br><p>The name of the Glue job to be synchronized to or from the remote repository.</p><br>
7    ///   - [`provider(SourceControlProvider)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::provider) / [`set_provider(Option<SourceControlProvider>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::set_provider):<br>required: **false**<br><p>The provider for the remote repository. Possible values: GITHUB, AWS_CODE_COMMIT, GITLAB, BITBUCKET.</p><br>
8    ///   - [`repository_name(impl Into<String>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::set_repository_name):<br>required: **false**<br><p>The name of the remote repository that contains the job artifacts. For BitBucket providers, <code>RepositoryName</code> should include <code>WorkspaceName</code>. Use the format <code><workspacename>    /    <repositoryname></repositoryname>   </workspacename></code>.</p><br>
9    ///   - [`repository_owner(impl Into<String>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::repository_owner) / [`set_repository_owner(Option<String>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::set_repository_owner):<br>required: **false**<br><p>The owner of the remote repository that contains the job artifacts.</p><br>
10    ///   - [`branch_name(impl Into<String>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::branch_name) / [`set_branch_name(Option<String>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::set_branch_name):<br>required: **false**<br><p>An optional branch in the remote repository.</p><br>
11    ///   - [`folder(impl Into<String>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::folder) / [`set_folder(Option<String>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::set_folder):<br>required: **false**<br><p>An optional folder in the remote repository.</p><br>
12    ///   - [`commit_id(impl Into<String>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::commit_id) / [`set_commit_id(Option<String>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::set_commit_id):<br>required: **false**<br><p>A commit ID for a commit in the remote repository.</p><br>
13    ///   - [`auth_strategy(SourceControlAuthStrategy)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::auth_strategy) / [`set_auth_strategy(Option<SourceControlAuthStrategy>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::set_auth_strategy):<br>required: **false**<br><p>The type of authentication, which can be an authentication token stored in Amazon Web Services Secrets Manager, or a personal access token.</p><br>
14    ///   - [`auth_token(impl Into<String>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::auth_token) / [`set_auth_token(Option<String>)`](crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::set_auth_token):<br>required: **false**<br><p>The value of the authorization token.</p><br>
15    /// - On success, responds with [`UpdateSourceControlFromJobOutput`](crate::operation::update_source_control_from_job::UpdateSourceControlFromJobOutput) with field(s):
16    ///   - [`job_name(Option<String>)`](crate::operation::update_source_control_from_job::UpdateSourceControlFromJobOutput::job_name): <p>The name of the Glue job.</p>
17    /// - On failure, responds with [`SdkError<UpdateSourceControlFromJobError>`](crate::operation::update_source_control_from_job::UpdateSourceControlFromJobError)
18    pub fn update_source_control_from_job(
19        &self,
20    ) -> crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder {
21        crate::operation::update_source_control_from_job::builders::UpdateSourceControlFromJobFluentBuilder::new(self.handle.clone())
22    }
23}