Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Retrieves a token that is valid for a specified registry for 12 hours.
This command allows you to use the docker
CLI to push and pull images
with Amazon ECR. If you do not specify a registry, the default registry
is assumed.
The authorizationToken
returned for each registry specified is a
base64 encoded string that can be decoded and used in a 'docker login'
command to authenticate to a registry. The AWS CLI offers an
'aws ecr get-login' command that simplifies the login process.
- getAuthorizationToken :: GetAuthorizationToken
- data GetAuthorizationToken
- gatRegistryIds :: Lens' GetAuthorizationToken (Maybe (NonEmpty Text))
- getAuthorizationTokenResponse :: Int -> GetAuthorizationTokenResponse
- data GetAuthorizationTokenResponse
- gatrsAuthorizationData :: Lens' GetAuthorizationTokenResponse [AuthorizationData]
- gatrsResponseStatus :: Lens' GetAuthorizationTokenResponse Int
Creating a Request
getAuthorizationToken :: GetAuthorizationToken Source #
Creates a value of GetAuthorizationToken
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetAuthorizationToken Source #
See: getAuthorizationToken
smart constructor.
Request Lenses
gatRegistryIds :: Lens' GetAuthorizationToken (Maybe (NonEmpty Text)) Source #
A list of AWS account IDs that are associated with the registries for which to get authorization tokens. If you do not specify a registry, the default registry is assumed.
Destructuring the Response
getAuthorizationTokenResponse Source #
Creates a value of GetAuthorizationTokenResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetAuthorizationTokenResponse Source #
See: getAuthorizationTokenResponse
smart constructor.
Response Lenses
gatrsAuthorizationData :: Lens' GetAuthorizationTokenResponse [AuthorizationData] Source #
A list of authorization token data objects that correspond to the
registryIds
values in the request.
gatrsResponseStatus :: Lens' GetAuthorizationTokenResponse Int Source #
The response status code.