Struct aws_sdk_ecrpublic::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder
source · pub struct GetAuthorizationTokenFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to GetAuthorizationToken.
Retrieves an authorization token. An authorization token represents your IAM authentication credentials. You can use it to access any Amazon ECR registry that your IAM principal has access to. The authorization token is valid for 12 hours. This API requires the ecr-public:GetAuthorizationToken and sts:GetServiceBearerToken permissions.
Implementations§
source§impl GetAuthorizationTokenFluentBuilder
impl GetAuthorizationTokenFluentBuilder
sourcepub fn as_input(&self) -> &GetAuthorizationTokenInputBuilder
pub fn as_input(&self) -> &GetAuthorizationTokenInputBuilder
Access the GetAuthorizationToken as a reference.
sourcepub async fn send(
self
) -> Result<GetAuthorizationTokenOutput, SdkError<GetAuthorizationTokenError, HttpResponse>>
pub async fn send( self ) -> Result<GetAuthorizationTokenOutput, SdkError<GetAuthorizationTokenError, HttpResponse>>
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 async fn customize(
self
) -> Result<CustomizableOperation<GetAuthorizationTokenOutput, GetAuthorizationTokenError>, SdkError<GetAuthorizationTokenError>>
pub async fn customize( self ) -> Result<CustomizableOperation<GetAuthorizationTokenOutput, GetAuthorizationTokenError>, SdkError<GetAuthorizationTokenError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
Trait Implementations§
source§impl Clone for GetAuthorizationTokenFluentBuilder
impl Clone for GetAuthorizationTokenFluentBuilder
source§fn clone(&self) -> GetAuthorizationTokenFluentBuilder
fn clone(&self) -> GetAuthorizationTokenFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more