aws_sdk_ecr/client/get_authorization_token.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetAuthorizationToken`](crate::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`registry_ids(impl Into<String>)`](crate::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder::registry_ids) / [`set_registry_ids(Option<Vec::<String>>)`](crate::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder::set_registry_ids):<br>required: **false**<br><p>A list of Amazon Web Services account IDs that are associated with the registries for which to get AuthorizationData objects. If you do not specify a registry, the default registry is assumed.</p><br>
7 /// - On success, responds with [`GetAuthorizationTokenOutput`](crate::operation::get_authorization_token::GetAuthorizationTokenOutput) with field(s):
8 /// - [`authorization_data(Option<Vec::<AuthorizationData>>)`](crate::operation::get_authorization_token::GetAuthorizationTokenOutput::authorization_data): <p>A list of authorization token data objects that correspond to the <code>registryIds</code> values in the request.</p><note> <p>The size of the authorization token returned by Amazon ECR is not fixed. We recommend that you don't make assumptions about the maximum size.</p> </note>
9 /// - On failure, responds with [`SdkError<GetAuthorizationTokenError>`](crate::operation::get_authorization_token::GetAuthorizationTokenError)
10 pub fn get_authorization_token(&self) -> crate::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder {
11 crate::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder::new(self.handle.clone())
12 }
13}