pub struct CreateToken<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description

Fluent builder constructing a request to CreateToken.

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.

Implementations

Sends the request and returns the response.

If an error occurs, an SdkError will be returned with additional details that can be matched against.

By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.

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

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

Appends an item to RoleArns.

To override the contents of this collection use set_role_arns.

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

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

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

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

Appends an item to TokenProperties.

To override the contents of this collection use set_token_properties.

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

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

Idempotency token, valid for 10 minutes.

Idempotency token, valid for 10 minutes.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more