#[non_exhaustive]pub struct CreateTokenInput {
pub license_arn: Option<String>,
pub role_arns: Option<Vec<String>>,
pub expiration_in_days: Option<i32>,
pub token_properties: Option<Vec<String>>,
pub client_token: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.license_arn: Option<String>Amazon Resource Name (ARN) of the license. The ARN is mapped to the aud claim of the JWT token.
role_arns: Option<Vec<String>>Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use.
expiration_in_days: Option<i32>Token expiration, in days, counted from token creation. The default is 365 days.
token_properties: Option<Vec<String>>Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token.
client_token: Option<String>Idempotency token, valid for 10 minutes.
Implementations§
source§impl CreateTokenInput
impl CreateTokenInput
sourcepub fn license_arn(&self) -> Option<&str>
pub fn license_arn(&self) -> Option<&str>
Amazon Resource Name (ARN) of the license. The ARN is mapped to the aud claim of the JWT token.
sourcepub fn role_arns(&self) -> Option<&[String]>
pub fn role_arns(&self) -> Option<&[String]>
Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use.
sourcepub fn expiration_in_days(&self) -> Option<i32>
pub fn expiration_in_days(&self) -> Option<i32>
Token expiration, in days, counted from token creation. The default is 365 days.
sourcepub fn token_properties(&self) -> Option<&[String]>
pub fn token_properties(&self) -> Option<&[String]>
Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Idempotency token, valid for 10 minutes.
source§impl CreateTokenInput
impl CreateTokenInput
sourcepub fn builder() -> CreateTokenInputBuilder
pub fn builder() -> CreateTokenInputBuilder
Creates a new builder-style object to manufacture CreateTokenInput.
Trait Implementations§
source§impl Clone for CreateTokenInput
impl Clone for CreateTokenInput
source§fn clone(&self) -> CreateTokenInput
fn clone(&self) -> CreateTokenInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateTokenInput
impl Debug for CreateTokenInput
source§impl PartialEq<CreateTokenInput> for CreateTokenInput
impl PartialEq<CreateTokenInput> for CreateTokenInput
source§fn eq(&self, other: &CreateTokenInput) -> bool
fn eq(&self, other: &CreateTokenInput) -> bool
self and other values to be equal, and is used
by ==.