LicenseManagerClient#
Index > LicenseManager > LicenseManagerClient
Auto-generated documentation for LicenseManager type annotations stubs module mypy-boto3-license-manager.
LicenseManagerClient#
Type annotations and code completion for boto3.client("license-manager")
.
boto3 documentation
# LicenseManagerClient usage example
from boto3.session import Session
from mypy_boto3_license_manager.client import LicenseManagerClient
def get_license-manager_client() -> LicenseManagerClient:
return Session().client("license-manager")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("license-manager").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("license-manager")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.AuthorizationException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.EntitlementNotAllowedException,
client.exceptions.FailedDependencyException,
client.exceptions.FilterLimitExceededException,
client.exceptions.InvalidParameterValueException,
client.exceptions.InvalidResourceStateException,
client.exceptions.LicenseUsageException,
client.exceptions.NoEntitlementsAllowedException,
client.exceptions.RateLimitExceededException,
client.exceptions.RedirectException,
client.exceptions.ResourceLimitExceededException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServerInternalException,
client.exceptions.UnsupportedDigitalSignatureMethodException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_license_manager.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
accept_grant#
Accepts the specified grant.
Type annotations and code completion for boto3.client("license-manager").accept_grant
method.
boto3 documentation
# accept_grant method definition
def accept_grant(
self,
*,
GrantArn: str,
) -> AcceptGrantResponseTypeDef: # (1)
...
# accept_grant method usage example with argument unpacking
kwargs: AcceptGrantRequestRequestTypeDef = { # (1)
"GrantArn": ...,
}
parent.accept_grant(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("license-manager").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
check_in_license#
Checks in the specified license.
Type annotations and code completion for boto3.client("license-manager").check_in_license
method.
boto3 documentation
# check_in_license method definition
def check_in_license(
self,
*,
LicenseConsumptionToken: str,
Beneficiary: str = ...,
) -> Dict[str, Any]:
...
# check_in_license method usage example with argument unpacking
kwargs: CheckInLicenseRequestRequestTypeDef = { # (1)
"LicenseConsumptionToken": ...,
}
parent.check_in_license(**kwargs)
checkout_borrow_license#
Checks out the specified license for offline use.
Type annotations and code completion for boto3.client("license-manager").checkout_borrow_license
method.
boto3 documentation
# checkout_borrow_license method definition
def checkout_borrow_license(
self,
*,
LicenseArn: str,
Entitlements: Sequence[EntitlementDataTypeDef], # (1)
DigitalSignatureMethod: DigitalSignatureMethodType, # (2)
ClientToken: str,
NodeId: str = ...,
CheckoutMetadata: Sequence[MetadataTypeDef] = ..., # (3)
) -> CheckoutBorrowLicenseResponseTypeDef: # (4)
...
- See EntitlementDataTypeDef
- See DigitalSignatureMethodType
- See MetadataTypeDef
- See CheckoutBorrowLicenseResponseTypeDef
# checkout_borrow_license method usage example with argument unpacking
kwargs: CheckoutBorrowLicenseRequestRequestTypeDef = { # (1)
"LicenseArn": ...,
"Entitlements": ...,
"DigitalSignatureMethod": ...,
"ClientToken": ...,
}
parent.checkout_borrow_license(**kwargs)
checkout_license#
Checks out the specified license.
Type annotations and code completion for boto3.client("license-manager").checkout_license
method.
boto3 documentation
# checkout_license method definition
def checkout_license(
self,
*,
ProductSKU: str,
CheckoutType: CheckoutTypeType, # (1)
KeyFingerprint: str,
Entitlements: Sequence[EntitlementDataTypeDef], # (2)
ClientToken: str,
Beneficiary: str = ...,
NodeId: str = ...,
) -> CheckoutLicenseResponseTypeDef: # (3)
...
# checkout_license method usage example with argument unpacking
kwargs: CheckoutLicenseRequestRequestTypeDef = { # (1)
"ProductSKU": ...,
"CheckoutType": ...,
"KeyFingerprint": ...,
"Entitlements": ...,
"ClientToken": ...,
}
parent.checkout_license(**kwargs)
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("license-manager").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_grant#
Creates a grant for the specified license.
Type annotations and code completion for boto3.client("license-manager").create_grant
method.
boto3 documentation
# create_grant method definition
def create_grant(
self,
*,
ClientToken: str,
GrantName: str,
LicenseArn: str,
Principals: Sequence[str],
HomeRegion: str,
AllowedOperations: Sequence[AllowedOperationType], # (1)
) -> CreateGrantResponseTypeDef: # (2)
...
# create_grant method usage example with argument unpacking
kwargs: CreateGrantRequestRequestTypeDef = { # (1)
"ClientToken": ...,
"GrantName": ...,
"LicenseArn": ...,
"Principals": ...,
"HomeRegion": ...,
"AllowedOperations": ...,
}
parent.create_grant(**kwargs)
create_grant_version#
Creates a new version of the specified grant.
Type annotations and code completion for boto3.client("license-manager").create_grant_version
method.
boto3 documentation
# create_grant_version method definition
def create_grant_version(
self,
*,
ClientToken: str,
GrantArn: str,
GrantName: str = ...,
AllowedOperations: Sequence[AllowedOperationType] = ..., # (1)
Status: GrantStatusType = ..., # (2)
StatusReason: str = ...,
SourceVersion: str = ...,
Options: OptionsTypeDef = ..., # (3)
) -> CreateGrantVersionResponseTypeDef: # (4)
...
- See AllowedOperationType
- See GrantStatusType
- See OptionsTypeDef
- See CreateGrantVersionResponseTypeDef
# create_grant_version method usage example with argument unpacking
kwargs: CreateGrantVersionRequestRequestTypeDef = { # (1)
"ClientToken": ...,
"GrantArn": ...,
}
parent.create_grant_version(**kwargs)
create_license#
Creates a license.
Type annotations and code completion for boto3.client("license-manager").create_license
method.
boto3 documentation
# create_license method definition
def create_license(
self,
*,
LicenseName: str,
ProductName: str,
ProductSKU: str,
Issuer: IssuerTypeDef, # (1)
HomeRegion: str,
Validity: DatetimeRangeTypeDef, # (2)
Entitlements: Sequence[EntitlementTypeDef], # (3)
Beneficiary: str,
ConsumptionConfiguration: ConsumptionConfigurationTypeDef, # (4)
ClientToken: str,
LicenseMetadata: Sequence[MetadataTypeDef] = ..., # (5)
) -> CreateLicenseResponseTypeDef: # (6)
...
- See IssuerTypeDef
- See DatetimeRangeTypeDef
- See EntitlementTypeDef
- See ConsumptionConfigurationTypeDef
- See MetadataTypeDef
- See CreateLicenseResponseTypeDef
# create_license method usage example with argument unpacking
kwargs: CreateLicenseRequestRequestTypeDef = { # (1)
"LicenseName": ...,
"ProductName": ...,
"ProductSKU": ...,
"Issuer": ...,
"HomeRegion": ...,
"Validity": ...,
"Entitlements": ...,
"Beneficiary": ...,
"ConsumptionConfiguration": ...,
"ClientToken": ...,
}
parent.create_license(**kwargs)
create_license_configuration#
Creates a license configuration.
Type annotations and code completion for boto3.client("license-manager").create_license_configuration
method.
boto3 documentation
# create_license_configuration method definition
def create_license_configuration(
self,
*,
Name: str,
LicenseCountingType: LicenseCountingTypeType, # (1)
Description: str = ...,
LicenseCount: int = ...,
LicenseCountHardLimit: bool = ...,
LicenseRules: Sequence[str] = ...,
Tags: Sequence[TagTypeDef] = ..., # (2)
DisassociateWhenNotFound: bool = ...,
ProductInformationList: Sequence[ProductInformationUnionTypeDef] = ..., # (3)
) -> CreateLicenseConfigurationResponseTypeDef: # (4)
...
- See LicenseCountingTypeType
- See TagTypeDef
- See ProductInformationTypeDef ProductInformationOutputTypeDef
- See CreateLicenseConfigurationResponseTypeDef
# create_license_configuration method usage example with argument unpacking
kwargs: CreateLicenseConfigurationRequestRequestTypeDef = { # (1)
"Name": ...,
"LicenseCountingType": ...,
}
parent.create_license_configuration(**kwargs)
create_license_conversion_task_for_resource#
Creates a new license conversion task.
Type annotations and code completion for boto3.client("license-manager").create_license_conversion_task_for_resource
method.
boto3 documentation
# create_license_conversion_task_for_resource method definition
def create_license_conversion_task_for_resource(
self,
*,
ResourceArn: str,
SourceLicenseContext: LicenseConversionContextTypeDef, # (1)
DestinationLicenseContext: LicenseConversionContextTypeDef, # (1)
) -> CreateLicenseConversionTaskForResourceResponseTypeDef: # (3)
...
- See LicenseConversionContextTypeDef
- See LicenseConversionContextTypeDef
- See CreateLicenseConversionTaskForResourceResponseTypeDef
# create_license_conversion_task_for_resource method usage example with argument unpacking
kwargs: CreateLicenseConversionTaskForResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"SourceLicenseContext": ...,
"DestinationLicenseContext": ...,
}
parent.create_license_conversion_task_for_resource(**kwargs)
create_license_manager_report_generator#
Creates a report generator.
Type annotations and code completion for boto3.client("license-manager").create_license_manager_report_generator
method.
boto3 documentation
# create_license_manager_report_generator method definition
def create_license_manager_report_generator(
self,
*,
ReportGeneratorName: str,
Type: Sequence[ReportTypeType], # (1)
ReportContext: ReportContextTypeDef, # (2)
ReportFrequency: ReportFrequencyTypeDef, # (3)
ClientToken: str,
Description: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (4)
) -> CreateLicenseManagerReportGeneratorResponseTypeDef: # (5)
...
- See ReportTypeType
- See ReportContextTypeDef
- See ReportFrequencyTypeDef
- See TagTypeDef
- See CreateLicenseManagerReportGeneratorResponseTypeDef
# create_license_manager_report_generator method usage example with argument unpacking
kwargs: CreateLicenseManagerReportGeneratorRequestRequestTypeDef = { # (1)
"ReportGeneratorName": ...,
"Type": ...,
"ReportContext": ...,
"ReportFrequency": ...,
"ClientToken": ...,
}
parent.create_license_manager_report_generator(**kwargs)
create_license_version#
Creates a new version of the specified license.
Type annotations and code completion for boto3.client("license-manager").create_license_version
method.
boto3 documentation
# create_license_version method definition
def create_license_version(
self,
*,
LicenseArn: str,
LicenseName: str,
ProductName: str,
Issuer: IssuerTypeDef, # (1)
HomeRegion: str,
Validity: DatetimeRangeTypeDef, # (2)
Entitlements: Sequence[EntitlementTypeDef], # (3)
ConsumptionConfiguration: ConsumptionConfigurationTypeDef, # (4)
Status: LicenseStatusType, # (5)
ClientToken: str,
LicenseMetadata: Sequence[MetadataTypeDef] = ..., # (6)
SourceVersion: str = ...,
) -> CreateLicenseVersionResponseTypeDef: # (7)
...
- See IssuerTypeDef
- See DatetimeRangeTypeDef
- See EntitlementTypeDef
- See ConsumptionConfigurationTypeDef
- See LicenseStatusType
- See MetadataTypeDef
- See CreateLicenseVersionResponseTypeDef
# create_license_version method usage example with argument unpacking
kwargs: CreateLicenseVersionRequestRequestTypeDef = { # (1)
"LicenseArn": ...,
"LicenseName": ...,
"ProductName": ...,
"Issuer": ...,
"HomeRegion": ...,
"Validity": ...,
"Entitlements": ...,
"ConsumptionConfiguration": ...,
"Status": ...,
"ClientToken": ...,
}
parent.create_license_version(**kwargs)
create_token#
Creates a long-lived token.
Type annotations and code completion for boto3.client("license-manager").create_token
method.
boto3 documentation
# create_token method definition
def create_token(
self,
*,
LicenseArn: str,
ClientToken: str,
RoleArns: Sequence[str] = ...,
ExpirationInDays: int = ...,
TokenProperties: Sequence[str] = ...,
) -> CreateTokenResponseTypeDef: # (1)
...
# create_token method usage example with argument unpacking
kwargs: CreateTokenRequestRequestTypeDef = { # (1)
"LicenseArn": ...,
"ClientToken": ...,
}
parent.create_token(**kwargs)
delete_grant#
Deletes the specified grant.
Type annotations and code completion for boto3.client("license-manager").delete_grant
method.
boto3 documentation
# delete_grant method definition
def delete_grant(
self,
*,
GrantArn: str,
Version: str,
StatusReason: str = ...,
) -> DeleteGrantResponseTypeDef: # (1)
...
# delete_grant method usage example with argument unpacking
kwargs: DeleteGrantRequestRequestTypeDef = { # (1)
"GrantArn": ...,
"Version": ...,
}
parent.delete_grant(**kwargs)
delete_license#
Deletes the specified license.
Type annotations and code completion for boto3.client("license-manager").delete_license
method.
boto3 documentation
# delete_license method definition
def delete_license(
self,
*,
LicenseArn: str,
SourceVersion: str,
) -> DeleteLicenseResponseTypeDef: # (1)
...
# delete_license method usage example with argument unpacking
kwargs: DeleteLicenseRequestRequestTypeDef = { # (1)
"LicenseArn": ...,
"SourceVersion": ...,
}
parent.delete_license(**kwargs)
delete_license_configuration#
Deletes the specified license configuration.
Type annotations and code completion for boto3.client("license-manager").delete_license_configuration
method.
boto3 documentation
# delete_license_configuration method definition
def delete_license_configuration(
self,
*,
LicenseConfigurationArn: str,
) -> Dict[str, Any]:
...
# delete_license_configuration method usage example with argument unpacking
kwargs: DeleteLicenseConfigurationRequestRequestTypeDef = { # (1)
"LicenseConfigurationArn": ...,
}
parent.delete_license_configuration(**kwargs)
delete_license_manager_report_generator#
Deletes the specified report generator.
Type annotations and code completion for boto3.client("license-manager").delete_license_manager_report_generator
method.
boto3 documentation
# delete_license_manager_report_generator method definition
def delete_license_manager_report_generator(
self,
*,
LicenseManagerReportGeneratorArn: str,
) -> Dict[str, Any]:
...
# delete_license_manager_report_generator method usage example with argument unpacking
kwargs: DeleteLicenseManagerReportGeneratorRequestRequestTypeDef = { # (1)
"LicenseManagerReportGeneratorArn": ...,
}
parent.delete_license_manager_report_generator(**kwargs)
delete_token#
Deletes the specified token.
Type annotations and code completion for boto3.client("license-manager").delete_token
method.
boto3 documentation
# delete_token method definition
def delete_token(
self,
*,
TokenId: str,
) -> Dict[str, Any]:
...
# delete_token method usage example with argument unpacking
kwargs: DeleteTokenRequestRequestTypeDef = { # (1)
"TokenId": ...,
}
parent.delete_token(**kwargs)
extend_license_consumption#
Extends the expiration date for license consumption.
Type annotations and code completion for boto3.client("license-manager").extend_license_consumption
method.
boto3 documentation
# extend_license_consumption method definition
def extend_license_consumption(
self,
*,
LicenseConsumptionToken: str,
DryRun: bool = ...,
) -> ExtendLicenseConsumptionResponseTypeDef: # (1)
...
# extend_license_consumption method usage example with argument unpacking
kwargs: ExtendLicenseConsumptionRequestRequestTypeDef = { # (1)
"LicenseConsumptionToken": ...,
}
parent.extend_license_consumption(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("license-manager").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_access_token#
Gets a temporary access token to use with AssumeRoleWithWebIdentity.
Type annotations and code completion for boto3.client("license-manager").get_access_token
method.
boto3 documentation
# get_access_token method definition
def get_access_token(
self,
*,
Token: str,
TokenProperties: Sequence[str] = ...,
) -> GetAccessTokenResponseTypeDef: # (1)
...
# get_access_token method usage example with argument unpacking
kwargs: GetAccessTokenRequestRequestTypeDef = { # (1)
"Token": ...,
}
parent.get_access_token(**kwargs)
get_grant#
Gets detailed information about the specified grant.
Type annotations and code completion for boto3.client("license-manager").get_grant
method.
boto3 documentation
# get_grant method definition
def get_grant(
self,
*,
GrantArn: str,
Version: str = ...,
) -> GetGrantResponseTypeDef: # (1)
...
# get_grant method usage example with argument unpacking
kwargs: GetGrantRequestRequestTypeDef = { # (1)
"GrantArn": ...,
}
parent.get_grant(**kwargs)
get_license#
Gets detailed information about the specified license.
Type annotations and code completion for boto3.client("license-manager").get_license
method.
boto3 documentation
# get_license method definition
def get_license(
self,
*,
LicenseArn: str,
Version: str = ...,
) -> GetLicenseResponseTypeDef: # (1)
...
# get_license method usage example with argument unpacking
kwargs: GetLicenseRequestRequestTypeDef = { # (1)
"LicenseArn": ...,
}
parent.get_license(**kwargs)
get_license_configuration#
Gets detailed information about the specified license configuration.
Type annotations and code completion for boto3.client("license-manager").get_license_configuration
method.
boto3 documentation
# get_license_configuration method definition
def get_license_configuration(
self,
*,
LicenseConfigurationArn: str,
) -> GetLicenseConfigurationResponseTypeDef: # (1)
...
# get_license_configuration method usage example with argument unpacking
kwargs: GetLicenseConfigurationRequestRequestTypeDef = { # (1)
"LicenseConfigurationArn": ...,
}
parent.get_license_configuration(**kwargs)
get_license_conversion_task#
Gets information about the specified license type conversion task.
Type annotations and code completion for boto3.client("license-manager").get_license_conversion_task
method.
boto3 documentation
# get_license_conversion_task method definition
def get_license_conversion_task(
self,
*,
LicenseConversionTaskId: str,
) -> GetLicenseConversionTaskResponseTypeDef: # (1)
...
# get_license_conversion_task method usage example with argument unpacking
kwargs: GetLicenseConversionTaskRequestRequestTypeDef = { # (1)
"LicenseConversionTaskId": ...,
}
parent.get_license_conversion_task(**kwargs)
get_license_manager_report_generator#
Gets information about the specified report generator.
Type annotations and code completion for boto3.client("license-manager").get_license_manager_report_generator
method.
boto3 documentation
# get_license_manager_report_generator method definition
def get_license_manager_report_generator(
self,
*,
LicenseManagerReportGeneratorArn: str,
) -> GetLicenseManagerReportGeneratorResponseTypeDef: # (1)
...
# get_license_manager_report_generator method usage example with argument unpacking
kwargs: GetLicenseManagerReportGeneratorRequestRequestTypeDef = { # (1)
"LicenseManagerReportGeneratorArn": ...,
}
parent.get_license_manager_report_generator(**kwargs)
get_license_usage#
Gets detailed information about the usage of the specified license.
Type annotations and code completion for boto3.client("license-manager").get_license_usage
method.
boto3 documentation
# get_license_usage method definition
def get_license_usage(
self,
*,
LicenseArn: str,
) -> GetLicenseUsageResponseTypeDef: # (1)
...
# get_license_usage method usage example with argument unpacking
kwargs: GetLicenseUsageRequestRequestTypeDef = { # (1)
"LicenseArn": ...,
}
parent.get_license_usage(**kwargs)
get_service_settings#
Gets the License Manager settings for the current Region.
Type annotations and code completion for boto3.client("license-manager").get_service_settings
method.
boto3 documentation
# get_service_settings method definition
def get_service_settings(
self,
) -> GetServiceSettingsResponseTypeDef: # (1)
...
list_associations_for_license_configuration#
Lists the resource associations for the specified license configuration.
Type annotations and code completion for boto3.client("license-manager").list_associations_for_license_configuration
method.
boto3 documentation
# list_associations_for_license_configuration method definition
def list_associations_for_license_configuration(
self,
*,
LicenseConfigurationArn: str,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListAssociationsForLicenseConfigurationResponseTypeDef: # (1)
...
# list_associations_for_license_configuration method usage example with argument unpacking
kwargs: ListAssociationsForLicenseConfigurationRequestRequestTypeDef = { # (1)
"LicenseConfigurationArn": ...,
}
parent.list_associations_for_license_configuration(**kwargs)
list_distributed_grants#
Lists the grants distributed for the specified license.
Type annotations and code completion for boto3.client("license-manager").list_distributed_grants
method.
boto3 documentation
# list_distributed_grants method definition
def list_distributed_grants(
self,
*,
GrantArns: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListDistributedGrantsResponseTypeDef: # (2)
...
# list_distributed_grants method usage example with argument unpacking
kwargs: ListDistributedGrantsRequestRequestTypeDef = { # (1)
"GrantArns": ...,
}
parent.list_distributed_grants(**kwargs)
list_failures_for_license_configuration_operations#
Lists the license configuration operations that failed.
Type annotations and code completion for boto3.client("license-manager").list_failures_for_license_configuration_operations
method.
boto3 documentation
# list_failures_for_license_configuration_operations method definition
def list_failures_for_license_configuration_operations(
self,
*,
LicenseConfigurationArn: str,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListFailuresForLicenseConfigurationOperationsResponseTypeDef: # (1)
...
# list_failures_for_license_configuration_operations method usage example with argument unpacking
kwargs: ListFailuresForLicenseConfigurationOperationsRequestRequestTypeDef = { # (1)
"LicenseConfigurationArn": ...,
}
parent.list_failures_for_license_configuration_operations(**kwargs)
list_license_configurations#
Lists the license configurations for your account.
Type annotations and code completion for boto3.client("license-manager").list_license_configurations
method.
boto3 documentation
# list_license_configurations method definition
def list_license_configurations(
self,
*,
LicenseConfigurationArns: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
) -> ListLicenseConfigurationsResponseTypeDef: # (2)
...
# list_license_configurations method usage example with argument unpacking
kwargs: ListLicenseConfigurationsRequestRequestTypeDef = { # (1)
"LicenseConfigurationArns": ...,
}
parent.list_license_configurations(**kwargs)
list_license_conversion_tasks#
Lists the license type conversion tasks for your account.
Type annotations and code completion for boto3.client("license-manager").list_license_conversion_tasks
method.
boto3 documentation
# list_license_conversion_tasks method definition
def list_license_conversion_tasks(
self,
*,
NextToken: str = ...,
MaxResults: int = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
) -> ListLicenseConversionTasksResponseTypeDef: # (2)
...
# list_license_conversion_tasks method usage example with argument unpacking
kwargs: ListLicenseConversionTasksRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.list_license_conversion_tasks(**kwargs)
list_license_manager_report_generators#
Lists the report generators for your account.
Type annotations and code completion for boto3.client("license-manager").list_license_manager_report_generators
method.
boto3 documentation
# list_license_manager_report_generators method definition
def list_license_manager_report_generators(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListLicenseManagerReportGeneratorsResponseTypeDef: # (2)
...
# list_license_manager_report_generators method usage example with argument unpacking
kwargs: ListLicenseManagerReportGeneratorsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.list_license_manager_report_generators(**kwargs)
list_license_specifications_for_resource#
Describes the license configurations for the specified resource.
Type annotations and code completion for boto3.client("license-manager").list_license_specifications_for_resource
method.
boto3 documentation
# list_license_specifications_for_resource method definition
def list_license_specifications_for_resource(
self,
*,
ResourceArn: str,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListLicenseSpecificationsForResourceResponseTypeDef: # (1)
...
# list_license_specifications_for_resource method usage example with argument unpacking
kwargs: ListLicenseSpecificationsForResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.list_license_specifications_for_resource(**kwargs)
list_license_versions#
Lists all versions of the specified license.
Type annotations and code completion for boto3.client("license-manager").list_license_versions
method.
boto3 documentation
# list_license_versions method definition
def list_license_versions(
self,
*,
LicenseArn: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListLicenseVersionsResponseTypeDef: # (1)
...
# list_license_versions method usage example with argument unpacking
kwargs: ListLicenseVersionsRequestRequestTypeDef = { # (1)
"LicenseArn": ...,
}
parent.list_license_versions(**kwargs)
list_licenses#
Lists the licenses for your account.
Type annotations and code completion for boto3.client("license-manager").list_licenses
method.
boto3 documentation
# list_licenses method definition
def list_licenses(
self,
*,
LicenseArns: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListLicensesResponseTypeDef: # (2)
...
# list_licenses method usage example with argument unpacking
kwargs: ListLicensesRequestRequestTypeDef = { # (1)
"LicenseArns": ...,
}
parent.list_licenses(**kwargs)
list_received_grants#
Lists grants that are received.
Type annotations and code completion for boto3.client("license-manager").list_received_grants
method.
boto3 documentation
# list_received_grants method definition
def list_received_grants(
self,
*,
GrantArns: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListReceivedGrantsResponseTypeDef: # (2)
...
# list_received_grants method usage example with argument unpacking
kwargs: ListReceivedGrantsRequestRequestTypeDef = { # (1)
"GrantArns": ...,
}
parent.list_received_grants(**kwargs)
list_received_grants_for_organization#
Lists the grants received for all accounts in the organization.
Type annotations and code completion for boto3.client("license-manager").list_received_grants_for_organization
method.
boto3 documentation
# list_received_grants_for_organization method definition
def list_received_grants_for_organization(
self,
*,
LicenseArn: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListReceivedGrantsForOrganizationResponseTypeDef: # (2)
...
# list_received_grants_for_organization method usage example with argument unpacking
kwargs: ListReceivedGrantsForOrganizationRequestRequestTypeDef = { # (1)
"LicenseArn": ...,
}
parent.list_received_grants_for_organization(**kwargs)
list_received_licenses#
Lists received licenses.
Type annotations and code completion for boto3.client("license-manager").list_received_licenses
method.
boto3 documentation
# list_received_licenses method definition
def list_received_licenses(
self,
*,
LicenseArns: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListReceivedLicensesResponseTypeDef: # (2)
...
# list_received_licenses method usage example with argument unpacking
kwargs: ListReceivedLicensesRequestRequestTypeDef = { # (1)
"LicenseArns": ...,
}
parent.list_received_licenses(**kwargs)
list_received_licenses_for_organization#
Lists the licenses received for all accounts in the organization.
Type annotations and code completion for boto3.client("license-manager").list_received_licenses_for_organization
method.
boto3 documentation
# list_received_licenses_for_organization method definition
def list_received_licenses_for_organization(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListReceivedLicensesForOrganizationResponseTypeDef: # (2)
...
# list_received_licenses_for_organization method usage example with argument unpacking
kwargs: ListReceivedLicensesForOrganizationRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.list_received_licenses_for_organization(**kwargs)
list_resource_inventory#
Lists resources managed using Systems Manager inventory.
Type annotations and code completion for boto3.client("license-manager").list_resource_inventory
method.
boto3 documentation
# list_resource_inventory method definition
def list_resource_inventory(
self,
*,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[InventoryFilterTypeDef] = ..., # (1)
) -> ListResourceInventoryResponseTypeDef: # (2)
...
# list_resource_inventory method usage example with argument unpacking
kwargs: ListResourceInventoryRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.list_resource_inventory(**kwargs)
list_tags_for_resource#
Lists the tags for the specified license configuration.
Type annotations and code completion for boto3.client("license-manager").list_tags_for_resource
method.
boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
list_tokens#
Lists your tokens.
Type annotations and code completion for boto3.client("license-manager").list_tokens
method.
boto3 documentation
# list_tokens method definition
def list_tokens(
self,
*,
TokenIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListTokensResponseTypeDef: # (2)
...
# list_tokens method usage example with argument unpacking
kwargs: ListTokensRequestRequestTypeDef = { # (1)
"TokenIds": ...,
}
parent.list_tokens(**kwargs)
list_usage_for_license_configuration#
Lists all license usage records for a license configuration, displaying license consumption details by resource at a selected point in time.
Type annotations and code completion for boto3.client("license-manager").list_usage_for_license_configuration
method.
boto3 documentation
# list_usage_for_license_configuration method definition
def list_usage_for_license_configuration(
self,
*,
LicenseConfigurationArn: str,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
) -> ListUsageForLicenseConfigurationResponseTypeDef: # (2)
...
# list_usage_for_license_configuration method usage example with argument unpacking
kwargs: ListUsageForLicenseConfigurationRequestRequestTypeDef = { # (1)
"LicenseConfigurationArn": ...,
}
parent.list_usage_for_license_configuration(**kwargs)
reject_grant#
Rejects the specified grant.
Type annotations and code completion for boto3.client("license-manager").reject_grant
method.
boto3 documentation
# reject_grant method definition
def reject_grant(
self,
*,
GrantArn: str,
) -> RejectGrantResponseTypeDef: # (1)
...
# reject_grant method usage example with argument unpacking
kwargs: RejectGrantRequestRequestTypeDef = { # (1)
"GrantArn": ...,
}
parent.reject_grant(**kwargs)
tag_resource#
Adds the specified tags to the specified license configuration.
Type annotations and code completion for boto3.client("license-manager").tag_resource
method.
boto3 documentation
# tag_resource method definition
def tag_resource(
self,
*,
ResourceArn: str,
Tags: Sequence[TagTypeDef], # (1)
) -> Dict[str, Any]:
...
- See TagTypeDef
# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"Tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
Removes the specified tags from the specified license configuration.
Type annotations and code completion for boto3.client("license-manager").untag_resource
method.
boto3 documentation
# untag_resource method definition
def untag_resource(
self,
*,
ResourceArn: str,
TagKeys: Sequence[str],
) -> Dict[str, Any]:
...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
update_license_configuration#
Modifies the attributes of an existing license configuration.
Type annotations and code completion for boto3.client("license-manager").update_license_configuration
method.
boto3 documentation
# update_license_configuration method definition
def update_license_configuration(
self,
*,
LicenseConfigurationArn: str,
LicenseConfigurationStatus: LicenseConfigurationStatusType = ..., # (1)
LicenseRules: Sequence[str] = ...,
LicenseCount: int = ...,
LicenseCountHardLimit: bool = ...,
Name: str = ...,
Description: str = ...,
ProductInformationList: Sequence[ProductInformationTypeDef] = ..., # (2)
DisassociateWhenNotFound: bool = ...,
) -> Dict[str, Any]:
...
# update_license_configuration method usage example with argument unpacking
kwargs: UpdateLicenseConfigurationRequestRequestTypeDef = { # (1)
"LicenseConfigurationArn": ...,
}
parent.update_license_configuration(**kwargs)
update_license_manager_report_generator#
Updates a report generator.
Type annotations and code completion for boto3.client("license-manager").update_license_manager_report_generator
method.
boto3 documentation
# update_license_manager_report_generator method definition
def update_license_manager_report_generator(
self,
*,
LicenseManagerReportGeneratorArn: str,
ReportGeneratorName: str,
Type: Sequence[ReportTypeType], # (1)
ReportContext: ReportContextTypeDef, # (2)
ReportFrequency: ReportFrequencyTypeDef, # (3)
ClientToken: str,
Description: str = ...,
) -> Dict[str, Any]:
...
- See ReportTypeType
- See ReportContextTypeDef
- See ReportFrequencyTypeDef
# update_license_manager_report_generator method usage example with argument unpacking
kwargs: UpdateLicenseManagerReportGeneratorRequestRequestTypeDef = { # (1)
"LicenseManagerReportGeneratorArn": ...,
"ReportGeneratorName": ...,
"Type": ...,
"ReportContext": ...,
"ReportFrequency": ...,
"ClientToken": ...,
}
parent.update_license_manager_report_generator(**kwargs)
update_license_specifications_for_resource#
Adds or removes the specified license configurations for the specified Amazon Web Services resource.
Type annotations and code completion for boto3.client("license-manager").update_license_specifications_for_resource
method.
boto3 documentation
# update_license_specifications_for_resource method definition
def update_license_specifications_for_resource(
self,
*,
ResourceArn: str,
AddLicenseSpecifications: Sequence[LicenseSpecificationTypeDef] = ..., # (1)
RemoveLicenseSpecifications: Sequence[LicenseSpecificationTypeDef] = ..., # (1)
) -> Dict[str, Any]:
...
# update_license_specifications_for_resource method usage example with argument unpacking
kwargs: UpdateLicenseSpecificationsForResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.update_license_specifications_for_resource(**kwargs)
update_service_settings#
Updates License Manager settings for the current Region.
Type annotations and code completion for boto3.client("license-manager").update_service_settings
method.
boto3 documentation
# update_service_settings method definition
def update_service_settings(
self,
*,
S3BucketArn: str = ...,
SnsTopicArn: str = ...,
OrganizationConfiguration: OrganizationConfigurationTypeDef = ..., # (1)
EnableCrossAccountsDiscovery: bool = ...,
) -> Dict[str, Any]:
...
# update_service_settings method usage example with argument unpacking
kwargs: UpdateServiceSettingsRequestRequestTypeDef = { # (1)
"S3BucketArn": ...,
}
parent.update_service_settings(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("license-manager").get_paginator
method with overloads.
client.get_paginator("list_associations_for_license_configuration")
-> ListAssociationsForLicenseConfigurationPaginatorclient.get_paginator("list_license_configurations")
-> ListLicenseConfigurationsPaginatorclient.get_paginator("list_license_specifications_for_resource")
-> ListLicenseSpecificationsForResourcePaginatorclient.get_paginator("list_resource_inventory")
-> ListResourceInventoryPaginatorclient.get_paginator("list_usage_for_license_configuration")
-> ListUsageForLicenseConfigurationPaginator