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 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
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ImportSourceCredentials
impl Send for ImportSourceCredentials
impl Sync for ImportSourceCredentials
impl Unpin for ImportSourceCredentials
impl !UnwindSafe for ImportSourceCredentials
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more