[ aws . license-manager ]

create-token

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.

See also: AWS API Documentation

See ‘aws help’ for descriptions of global parameters.

Synopsis

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

Options

--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)

Syntax:

"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)

Syntax:

"string" "string" ...

--client-token (string)

Idempotency token, valid for 10 minutes.

--cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those 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. This may not be specified along with --cli-input-yaml.

--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. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. 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.

Output

TokenId -> (string)

Token ID.

TokenType -> (string)

Token type.

Token -> (string)

Refresh token, encoded as a JWT token.