Note: You are viewing the documentation for an older major version of the AWS CLI (version 1).

AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . license-manager ]



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.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.


--license-arn <value>
[--role-arns <value>]
[--expiration-in-days <value>]
[--token-properties <value>]
--client-token <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]


--license-arn (string)

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

--role-arns (list)

Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use.



"string" "string" ...

--expiration-in-days (integer)

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

--token-properties (list)

Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token.



"string" "string" ...

--client-token (string)

Idempotency token, valid for 10 minutes.

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.


TokenId -> (string)

Token ID.

TokenType -> (string)

Token type.

Token -> (string)

Refresh token, encoded as a JWT token.