pub struct ImportSourceCredentials { /* private fields */ }
Expand description
Fluent builder constructing a request to ImportSourceCredentials
.
Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.
Implementations
sourceimpl ImportSourceCredentials
impl ImportSourceCredentials
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ImportSourceCredentials, AwsResponseRetryClassifier>, SdkError<ImportSourceCredentialsError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ImportSourceCredentials, AwsResponseRetryClassifier>, SdkError<ImportSourceCredentialsError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<ImportSourceCredentialsOutput, SdkError<ImportSourceCredentialsError>>
pub async fn send(
self
) -> Result<ImportSourceCredentialsOutput, SdkError<ImportSourceCredentialsError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn username(self, input: impl Into<String>) -> Self
pub fn username(self, input: impl Into<String>) -> Self
The Bitbucket username when the authType
is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
sourcepub fn set_username(self, input: Option<String>) -> Self
pub fn set_username(self, input: Option<String>) -> Self
The Bitbucket username when the authType
is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
sourcepub fn token(self, input: impl Into<String>) -> Self
pub fn token(self, input: impl Into<String>) -> Self
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
sourcepub fn set_token(self, input: Option<String>) -> Self
pub fn set_token(self, input: Option<String>) -> Self
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
sourcepub fn server_type(self, input: ServerType) -> Self
pub fn server_type(self, input: ServerType) -> Self
The source provider used for this project.
sourcepub fn set_server_type(self, input: Option<ServerType>) -> Self
pub fn set_server_type(self, input: Option<ServerType>) -> Self
The source provider used for this project.
sourcepub fn auth_type(self, input: AuthType) -> Self
pub fn auth_type(self, input: AuthType) -> Self
The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.
sourcepub fn set_auth_type(self, input: Option<AuthType>) -> Self
pub fn set_auth_type(self, input: Option<AuthType>) -> Self
The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.
sourcepub fn should_overwrite(self, input: bool) -> Self
pub fn should_overwrite(self, input: bool) -> Self
Set to false
to prevent overwriting the repository source credentials. Set to true
to overwrite the repository source credentials. The default value is true
.
sourcepub fn set_should_overwrite(self, input: Option<bool>) -> Self
pub fn set_should_overwrite(self, input: Option<bool>) -> Self
Set to false
to prevent overwriting the repository source credentials. Set to true
to overwrite the repository source credentials. The default value is true
.
Trait Implementations
sourceimpl Clone for ImportSourceCredentials
impl Clone for ImportSourceCredentials
sourcefn clone(&self) -> ImportSourceCredentials
fn clone(&self) -> ImportSourceCredentials
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more