list_tokens
(**kwargs)¶Lists your tokens.
See also: AWS API Documentation
Request Syntax
response = client.list_tokens(
TokenIds=[
'string',
],
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
],
NextToken='string',
MaxResults=123
)
Token IDs.
Filters to scope the results. The following filter is supported:
LicenseArns
A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
Name of the filter. Filter names are case-sensitive.
Filter values. Filter values are case-sensitive.
dict
Response Syntax
{
'Tokens': [
{
'TokenId': 'string',
'TokenType': 'string',
'LicenseArn': 'string',
'ExpirationTime': 'string',
'TokenProperties': [
'string',
],
'RoleArns': [
'string',
],
'Status': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Tokens (list) --
Received token details.
(dict) --
Describes a token.
TokenId (string) --
Token ID.
TokenType (string) --
Type of token generated. The supported value is REFRESH_TOKEN
.
LicenseArn (string) --
Amazon Resource Name (ARN) of the license.
ExpirationTime (string) --
Token expiration time, in ISO8601-UTC format.
TokenProperties (list) --
Data specified by the caller.
RoleArns (list) --
Amazon Resource Names (ARN) of the roles included in the token.
Status (string) --
Token status. The possible values are AVAILABLE
and DELETED
.
NextToken (string) --
Token for the next set of results.
Exceptions
LicenseManager.Client.exceptions.ValidationException
LicenseManager.Client.exceptions.AuthorizationException
LicenseManager.Client.exceptions.AccessDeniedException
LicenseManager.Client.exceptions.RateLimitExceededException
LicenseManager.Client.exceptions.ServerInternalException