licensemanager_create_token: Creates a long-lived token

Description Usage Arguments Value Request syntax

View source: R/licensemanager_operations.R

Description

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.

Usage

1
2
licensemanager_create_token(LicenseArn, RoleArns, ExpirationInDays,
  TokenProperties, ClientToken)

Arguments

LicenseArn

[required] Amazon Resource Name (ARN) of the license. The ARN is mapped to the aud claim of the JWT token.

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.

ExpirationInDays

Token expiration, in days, counted from token creation. The default is 365 days.

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.

ClientToken

[required] Idempotency token, valid for 10 minutes.

Value

A list with the following syntax:

1
2
3
4
5
list(
  TokenId = "string",
  TokenType = "REFRESH_TOKEN",
  Token = "string"
)

Request syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
svc$create_token(
  LicenseArn = "string",
  RoleArns = list(
    "string"
  ),
  ExpirationInDays = 123,
  TokenProperties = list(
    "string"
  ),
  ClientToken = "string"
)

paws.management documentation built on March 8, 2021, 1:07 a.m.