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 |
Gets a temporary access token to use with AssumeRoleWithWebIdentity. Access tokens are valid for one hour.
Synopsis
- data GetAccessToken = GetAccessToken' {
- tokenProperties :: Maybe [Text]
- token :: Text
- newGetAccessToken :: Text -> GetAccessToken
- getAccessToken_tokenProperties :: Lens' GetAccessToken (Maybe [Text])
- getAccessToken_token :: Lens' GetAccessToken Text
- data GetAccessTokenResponse = GetAccessTokenResponse' {
- accessToken :: Maybe Text
- httpStatus :: Int
- newGetAccessTokenResponse :: Int -> GetAccessTokenResponse
- getAccessTokenResponse_accessToken :: Lens' GetAccessTokenResponse (Maybe Text)
- getAccessTokenResponse_httpStatus :: Lens' GetAccessTokenResponse Int
Creating a Request
data GetAccessToken Source #
See: newGetAccessToken
smart constructor.
GetAccessToken' | |
|
Instances
Create a value of GetAccessToken
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:tokenProperties:GetAccessToken'
, getAccessToken_tokenProperties
- Token properties to validate against those present in the JWT token.
$sel:token:GetAccessToken'
, getAccessToken_token
- Refresh token, encoded as a JWT token.
Request Lenses
getAccessToken_tokenProperties :: Lens' GetAccessToken (Maybe [Text]) Source #
Token properties to validate against those present in the JWT token.
getAccessToken_token :: Lens' GetAccessToken Text Source #
Refresh token, encoded as a JWT token.
Destructuring the Response
data GetAccessTokenResponse Source #
See: newGetAccessTokenResponse
smart constructor.
GetAccessTokenResponse' | |
|
Instances
newGetAccessTokenResponse Source #
Create a value of GetAccessTokenResponse
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:accessToken:GetAccessTokenResponse'
, getAccessTokenResponse_accessToken
- Temporary access token.
$sel:httpStatus:GetAccessTokenResponse'
, getAccessTokenResponse_httpStatus
- The response's http status code.
Response Lenses
getAccessTokenResponse_accessToken :: Lens' GetAccessTokenResponse (Maybe Text) Source #
Temporary access token.
getAccessTokenResponse_httpStatus :: Lens' GetAccessTokenResponse Int Source #
The response's http status code.