NAME
Paws::LicenseManager::CreateToken - Arguments for method CreateToken on Paws::LicenseManager
DESCRIPTION
This class represents the parameters used for calling the method CreateToken on the AWS License Manager service. Use the attributes of this class as arguments to method CreateToken.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateToken.
SYNOPSIS
my $license-manager = Paws->service('LicenseManager');
my $CreateTokenResponse = $license -manager->CreateToken(
ClientToken => 'MyClientToken',
LicenseArn => 'MyArn',
ExpirationInDays => 1, # OPTIONAL
RoleArns => [
'MyArn', ... # max: 2048
], # OPTIONAL
TokenProperties => [ 'MyString', ... ], # OPTIONAL
);
# Results:
my $Token = $CreateTokenResponse->Token;
my $TokenId = $CreateTokenResponse->TokenId;
my $TokenType = $CreateTokenResponse->TokenType;
# Returns a L<Paws::LicenseManager::CreateTokenResponse> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/license-manager/CreateToken
ATTRIBUTES
REQUIRED ClientToken => Str
Idempotency token, valid for 10 minutes.
ExpirationInDays => Int
Token expiration, in days, counted from token creation. The default is 365 days.
REQUIRED LicenseArn => Str
Amazon Resource Name (ARN) of the license. The ARN is mapped to the aud claim of the JWT token.
RoleArns => ArrayRef[Str|Undef]
Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use.
TokenProperties => ArrayRef[Str|Undef]
Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token.
SEE ALSO
This class forms part of Paws, documenting arguments for method CreateToken in Paws::LicenseManager
BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues