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 |
Creates a long-lived token.
A refresh token is a JWT token used to get an access token. With an access token, you can call AssumeRoleWithWebIdentity to get role credentials that you can use to call License Manager to manage the specified license.
Synopsis
- data CreateToken = CreateToken' {
- tokenProperties :: Maybe [Text]
- roleArns :: Maybe [Text]
- expirationInDays :: Maybe Int
- licenseArn :: Text
- clientToken :: Text
- newCreateToken :: Text -> Text -> CreateToken
- createToken_tokenProperties :: Lens' CreateToken (Maybe [Text])
- createToken_roleArns :: Lens' CreateToken (Maybe [Text])
- createToken_expirationInDays :: Lens' CreateToken (Maybe Int)
- createToken_licenseArn :: Lens' CreateToken Text
- createToken_clientToken :: Lens' CreateToken Text
- data CreateTokenResponse = CreateTokenResponse' {}
- newCreateTokenResponse :: Int -> CreateTokenResponse
- createTokenResponse_token :: Lens' CreateTokenResponse (Maybe Text)
- createTokenResponse_tokenId :: Lens' CreateTokenResponse (Maybe Text)
- createTokenResponse_tokenType :: Lens' CreateTokenResponse (Maybe TokenType)
- createTokenResponse_httpStatus :: Lens' CreateTokenResponse Int
Creating a Request
data CreateToken Source #
See: newCreateToken
smart constructor.
CreateToken' | |
|
Instances
Create a value of CreateToken
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:CreateToken'
, createToken_tokenProperties
- Data specified by the caller to be included in the JWT token. The data
is mapped to the amr claim of the JWT token.
$sel:roleArns:CreateToken'
, createToken_roleArns
- Amazon Resource Name (ARN) of the IAM roles to embed in the token.
License Manager does not check whether the roles are in use.
$sel:expirationInDays:CreateToken'
, createToken_expirationInDays
- Token expiration, in days, counted from token creation. The default is
365 days.
$sel:licenseArn:CreateToken'
, createToken_licenseArn
- Amazon Resource Name (ARN) of the license. The ARN is mapped to the aud
claim of the JWT token.
$sel:clientToken:CreateToken'
, createToken_clientToken
- Idempotency token, valid for 10 minutes.
Request Lenses
createToken_tokenProperties :: Lens' CreateToken (Maybe [Text]) Source #
Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token.
createToken_roleArns :: Lens' CreateToken (Maybe [Text]) Source #
Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use.
createToken_expirationInDays :: Lens' CreateToken (Maybe Int) Source #
Token expiration, in days, counted from token creation. The default is 365 days.
createToken_licenseArn :: Lens' CreateToken Text Source #
Amazon Resource Name (ARN) of the license. The ARN is mapped to the aud claim of the JWT token.
createToken_clientToken :: Lens' CreateToken Text Source #
Idempotency token, valid for 10 minutes.
Destructuring the Response
data CreateTokenResponse Source #
See: newCreateTokenResponse
smart constructor.
Instances
newCreateTokenResponse Source #
Create a value of CreateTokenResponse
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:token:CreateTokenResponse'
, createTokenResponse_token
- Refresh token, encoded as a JWT token.
$sel:tokenId:CreateTokenResponse'
, createTokenResponse_tokenId
- Token ID.
$sel:tokenType:CreateTokenResponse'
, createTokenResponse_tokenType
- Token type.
$sel:httpStatus:CreateTokenResponse'
, createTokenResponse_httpStatus
- The response's http status code.
Response Lenses
createTokenResponse_token :: Lens' CreateTokenResponse (Maybe Text) Source #
Refresh token, encoded as a JWT token.
createTokenResponse_tokenId :: Lens' CreateTokenResponse (Maybe Text) Source #
Token ID.
createTokenResponse_tokenType :: Lens' CreateTokenResponse (Maybe TokenType) Source #
Token type.
createTokenResponse_httpStatus :: Lens' CreateTokenResponse Int Source #
The response's http status code.