Struct aws_sdk_codecatalyst::operation::create_access_token::builders::CreateAccessTokenFluentBuilder
source · pub struct CreateAccessTokenFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateAccessToken
.
Creates a personal access token (PAT) for the current user. A personal access token (PAT) is similar to a password. It is associated with your user account. You use PATs to access Amazon CodeCatalyst resources such as source repositories from third-party applications like Git and integrated development environments (IDEs). For more information, see Managing personal access tokens in Amazon CodeCatalyst.
Implementations§
source§impl CreateAccessTokenFluentBuilder
impl CreateAccessTokenFluentBuilder
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateAccessToken, AwsResponseRetryClassifier>, SdkError<CreateAccessTokenError>>
pub async fn customize( self ) -> Result<CustomizableOperation<CreateAccessToken, AwsResponseRetryClassifier>, SdkError<CreateAccessTokenError>>
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<CreateAccessTokenOutput, SdkError<CreateAccessTokenError>>
pub async fn send( self ) -> Result<CreateAccessTokenOutput, SdkError<CreateAccessTokenError>>
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 name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The friendly name of the personal access token.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The friendly name of the personal access token.
sourcepub fn expires_time(self, input: DateTime) -> Self
pub fn expires_time(self, input: DateTime) -> Self
The date and time the personal access token expires, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
sourcepub fn set_expires_time(self, input: Option<DateTime>) -> Self
pub fn set_expires_time(self, input: Option<DateTime>) -> Self
The date and time the personal access token expires, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
Trait Implementations§
source§impl Clone for CreateAccessTokenFluentBuilder
impl Clone for CreateAccessTokenFluentBuilder
source§fn clone(&self) -> CreateAccessTokenFluentBuilder
fn clone(&self) -> CreateAccessTokenFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more