Struct aws_sdk_licensemanager::client::fluent_builders::CreateToken
source · [−]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
impl<C, M, R> CreateToken<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateToken<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(self) -> Result<CreateTokenOutput, SdkError<CreateTokenError>> where
R::Policy: SmithyRetryPolicy<CreateTokenInputOperationOutputAlias, CreateTokenOutput, CreateTokenError, CreateTokenInputOperationRetryAlias>,
pub async fn send(self) -> Result<CreateTokenOutput, SdkError<CreateTokenError>> where
R::Policy: SmithyRetryPolicy<CreateTokenInputOperationOutputAlias, CreateTokenOutput, CreateTokenError, CreateTokenInputOperationRetryAlias>,
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
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateToken<C, M, R>
impl<C, M, R> Unpin for CreateToken<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateToken<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
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