Smaws_Client_ECRPUBLIC.GetAuthorizationTokenRetrieves 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `ServerException of Types.server_exception
| `UnsupportedCommandException of Types.unsupported_command_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.get_authorization_token_request ->
(Types.get_authorization_token_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `ServerException of Types.server_exception
| `UnsupportedCommandException of Types.unsupported_command_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.get_authorization_token_request ->
(Types.get_authorization_token_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `ServerException of Types.server_exception
| `UnsupportedCommandException of Types.unsupported_command_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result