pub struct GetAuthorizationToken { /* 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 GetAuthorizationToken
impl GetAuthorizationToken
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetAuthorizationToken, AwsResponseRetryClassifier>, SdkError<GetAuthorizationTokenError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetAuthorizationToken, AwsResponseRetryClassifier>, SdkError<GetAuthorizationTokenError>>
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<GetAuthorizationTokenOutput, SdkError<GetAuthorizationTokenError>>
pub async fn send(
self
) -> Result<GetAuthorizationTokenOutput, SdkError<GetAuthorizationTokenError>>
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.
Trait Implementations§
source§impl Clone for GetAuthorizationToken
impl Clone for GetAuthorizationToken
source§fn clone(&self) -> GetAuthorizationToken
fn clone(&self) -> GetAuthorizationToken
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more