Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Retrieves an authorization token. An authorization token represents your
IAM authentication credentials and can be used 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.
Synopsis
- data GetAuthorizationToken = GetAuthorizationToken' {
- newGetAuthorizationToken :: GetAuthorizationToken
- data GetAuthorizationTokenResponse = GetAuthorizationTokenResponse' {}
- newGetAuthorizationTokenResponse :: Int -> GetAuthorizationTokenResponse
- getAuthorizationTokenResponse_authorizationData :: Lens' GetAuthorizationTokenResponse (Maybe AuthorizationData)
- getAuthorizationTokenResponse_httpStatus :: Lens' GetAuthorizationTokenResponse Int
Creating a Request
data GetAuthorizationToken Source #
See: newGetAuthorizationToken
smart constructor.
Instances
newGetAuthorizationToken :: GetAuthorizationToken Source #
Create a value of GetAuthorizationToken
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data GetAuthorizationTokenResponse Source #
See: newGetAuthorizationTokenResponse
smart constructor.
GetAuthorizationTokenResponse' | |
|
Instances
newGetAuthorizationTokenResponse Source #
Create a value of GetAuthorizationTokenResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:authorizationData:GetAuthorizationTokenResponse'
, getAuthorizationTokenResponse_authorizationData
- An authorization token data object that corresponds to a public
registry.
$sel:httpStatus:GetAuthorizationTokenResponse'
, getAuthorizationTokenResponse_httpStatus
- The response's http status code.
Response Lenses
getAuthorizationTokenResponse_authorizationData :: Lens' GetAuthorizationTokenResponse (Maybe AuthorizationData) Source #
An authorization token data object that corresponds to a public registry.
getAuthorizationTokenResponse_httpStatus :: Lens' GetAuthorizationTokenResponse Int Source #
The response's http status code.