Skip to content

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

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.

Usage example
client = boto3.client("license-manager")

try:
    do_something(client)
except (
    client.AccessDeniedException,
    client.AuthorizationException,
    client.ClientError,
    client.ConflictException,
    client.EntitlementNotAllowedException,
    client.FailedDependencyException,
    client.FilterLimitExceededException,
    client.InvalidParameterValueException,
    client.InvalidResourceStateException,
    client.LicenseUsageException,
    client.NoEntitlementsAllowedException,
    client.RateLimitExceededException,
    client.RedirectException,
    client.ResourceLimitExceededException,
    client.ResourceNotFoundException,
    client.ServerInternalException,
    client.UnsupportedDigitalSignatureMethodException,
    client.ValidationException,
) as e:
    print(e)
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

Method definition
def accept_grant(
    self,
    *,
    GrantArn: str,
) -> AcceptGrantResponseTypeDef:  # (1)
    ...
  1. See AcceptGrantResponseTypeDef
Usage example with kwargs
kwargs: AcceptGrantRequestRequestTypeDef = {  # (1)
    "GrantArn": ...,
}

parent.accept_grant(**kwargs)
  1. See AcceptGrantRequestRequestTypeDef

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("license-manager").can_paginate method. boto3 documentation

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

Method definition
def check_in_license(
    self,
    *,
    LicenseConsumptionToken: str,
    Beneficiary: str = ...,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: CheckInLicenseRequestRequestTypeDef = {  # (1)
    "LicenseConsumptionToken": ...,
}

parent.check_in_license(**kwargs)
  1. See CheckInLicenseRequestRequestTypeDef

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

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)
    ...
  1. See EntitlementDataTypeDef
  2. See DigitalSignatureMethodType
  3. See MetadataTypeDef
  4. See CheckoutBorrowLicenseResponseTypeDef
Usage example with kwargs
kwargs: CheckoutBorrowLicenseRequestRequestTypeDef = {  # (1)
    "LicenseArn": ...,
    "Entitlements": ...,
    "DigitalSignatureMethod": ...,
    "ClientToken": ...,
}

parent.checkout_borrow_license(**kwargs)
  1. See CheckoutBorrowLicenseRequestRequestTypeDef

checkout_license

Checks out the specified license.

Type annotations and code completion for boto3.client("license-manager").checkout_license method. boto3 documentation

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)
    ...
  1. See CheckoutTypeType
  2. See EntitlementDataTypeDef
  3. See CheckoutLicenseResponseTypeDef
Usage example with kwargs
kwargs: CheckoutLicenseRequestRequestTypeDef = {  # (1)
    "ProductSKU": ...,
    "CheckoutType": ...,
    "KeyFingerprint": ...,
    "Entitlements": ...,
    "ClientToken": ...,
}

parent.checkout_license(**kwargs)
  1. See CheckoutLicenseRequestRequestTypeDef

close

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("license-manager").close method. boto3 documentation

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

Method definition
def create_grant(
    self,
    *,
    ClientToken: str,
    GrantName: str,
    LicenseArn: str,
    Principals: Sequence[str],
    HomeRegion: str,
    AllowedOperations: Sequence[AllowedOperationType],  # (1)
) -> CreateGrantResponseTypeDef:  # (2)
    ...
  1. See AllowedOperationType
  2. See CreateGrantResponseTypeDef
Usage example with kwargs
kwargs: CreateGrantRequestRequestTypeDef = {  # (1)
    "ClientToken": ...,
    "GrantName": ...,
    "LicenseArn": ...,
    "Principals": ...,
    "HomeRegion": ...,
    "AllowedOperations": ...,
}

parent.create_grant(**kwargs)
  1. See CreateGrantRequestRequestTypeDef

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

Method definition
def create_grant_version(
    self,
    *,
    ClientToken: str,
    GrantArn: str,
    GrantName: str = ...,
    AllowedOperations: Sequence[AllowedOperationType] = ...,  # (1)
    Status: GrantStatusType = ...,  # (2)
    StatusReason: str = ...,
    SourceVersion: str = ...,
) -> CreateGrantVersionResponseTypeDef:  # (3)
    ...
  1. See AllowedOperationType
  2. See GrantStatusType
  3. See CreateGrantVersionResponseTypeDef
Usage example with kwargs
kwargs: CreateGrantVersionRequestRequestTypeDef = {  # (1)
    "ClientToken": ...,
    "GrantArn": ...,
}

parent.create_grant_version(**kwargs)
  1. See CreateGrantVersionRequestRequestTypeDef

create_license

Creates a license.

Type annotations and code completion for boto3.client("license-manager").create_license method. boto3 documentation

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)
    ...
  1. See IssuerTypeDef
  2. See DatetimeRangeTypeDef
  3. See EntitlementTypeDef
  4. See ConsumptionConfigurationTypeDef
  5. See MetadataTypeDef
  6. See CreateLicenseResponseTypeDef
Usage example with kwargs
kwargs: CreateLicenseRequestRequestTypeDef = {  # (1)
    "LicenseName": ...,
    "ProductName": ...,
    "ProductSKU": ...,
    "Issuer": ...,
    "HomeRegion": ...,
    "Validity": ...,
    "Entitlements": ...,
    "Beneficiary": ...,
    "ConsumptionConfiguration": ...,
    "ClientToken": ...,
}

parent.create_license(**kwargs)
  1. See CreateLicenseRequestRequestTypeDef

create_license_configuration

Creates a license configuration.

Type annotations and code completion for boto3.client("license-manager").create_license_configuration method. boto3 documentation

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[ProductInformationTypeDef] = ...,  # (3)
) -> CreateLicenseConfigurationResponseTypeDef:  # (4)
    ...
  1. See LicenseCountingTypeType
  2. See TagTypeDef
  3. See ProductInformationTypeDef
  4. See CreateLicenseConfigurationResponseTypeDef
Usage example with kwargs
kwargs: CreateLicenseConfigurationRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "LicenseCountingType": ...,
}

parent.create_license_configuration(**kwargs)
  1. See CreateLicenseConfigurationRequestRequestTypeDef

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

Method definition
def create_license_conversion_task_for_resource(
    self,
    *,
    ResourceArn: str,
    SourceLicenseContext: LicenseConversionContextTypeDef,  # (1)
    DestinationLicenseContext: LicenseConversionContextTypeDef,  # (1)
) -> CreateLicenseConversionTaskForResourceResponseTypeDef:  # (3)
    ...
  1. See LicenseConversionContextTypeDef
  2. See LicenseConversionContextTypeDef
  3. See CreateLicenseConversionTaskForResourceResponseTypeDef
Usage example with kwargs
kwargs: CreateLicenseConversionTaskForResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "SourceLicenseContext": ...,
    "DestinationLicenseContext": ...,
}

parent.create_license_conversion_task_for_resource(**kwargs)
  1. See CreateLicenseConversionTaskForResourceRequestRequestTypeDef

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

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)
    ...
  1. See ReportTypeType
  2. See ReportContextTypeDef
  3. See ReportFrequencyTypeDef
  4. See TagTypeDef
  5. See CreateLicenseManagerReportGeneratorResponseTypeDef
Usage example with kwargs
kwargs: CreateLicenseManagerReportGeneratorRequestRequestTypeDef = {  # (1)
    "ReportGeneratorName": ...,
    "Type": ...,
    "ReportContext": ...,
    "ReportFrequency": ...,
    "ClientToken": ...,
}

parent.create_license_manager_report_generator(**kwargs)
  1. See CreateLicenseManagerReportGeneratorRequestRequestTypeDef

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

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)
    ...
  1. See IssuerTypeDef
  2. See DatetimeRangeTypeDef
  3. See EntitlementTypeDef
  4. See ConsumptionConfigurationTypeDef
  5. See LicenseStatusType
  6. See MetadataTypeDef
  7. See CreateLicenseVersionResponseTypeDef
Usage example with kwargs
kwargs: CreateLicenseVersionRequestRequestTypeDef = {  # (1)
    "LicenseArn": ...,
    "LicenseName": ...,
    "ProductName": ...,
    "Issuer": ...,
    "HomeRegion": ...,
    "Validity": ...,
    "Entitlements": ...,
    "ConsumptionConfiguration": ...,
    "Status": ...,
    "ClientToken": ...,
}

parent.create_license_version(**kwargs)
  1. See CreateLicenseVersionRequestRequestTypeDef

create_token

Creates a long-lived token.

Type annotations and code completion for boto3.client("license-manager").create_token method. boto3 documentation

Method definition
def create_token(
    self,
    *,
    LicenseArn: str,
    ClientToken: str,
    RoleArns: Sequence[str] = ...,
    ExpirationInDays: int = ...,
    TokenProperties: Sequence[str] = ...,
) -> CreateTokenResponseTypeDef:  # (1)
    ...
  1. See CreateTokenResponseTypeDef
Usage example with kwargs
kwargs: CreateTokenRequestRequestTypeDef = {  # (1)
    "LicenseArn": ...,
    "ClientToken": ...,
}

parent.create_token(**kwargs)
  1. See CreateTokenRequestRequestTypeDef

delete_grant

Deletes the specified grant.

Type annotations and code completion for boto3.client("license-manager").delete_grant method. boto3 documentation

Method definition
def delete_grant(
    self,
    *,
    GrantArn: str,
    Version: str,
    StatusReason: str = ...,
) -> DeleteGrantResponseTypeDef:  # (1)
    ...
  1. See DeleteGrantResponseTypeDef
Usage example with kwargs
kwargs: DeleteGrantRequestRequestTypeDef = {  # (1)
    "GrantArn": ...,
    "Version": ...,
}

parent.delete_grant(**kwargs)
  1. See DeleteGrantRequestRequestTypeDef

delete_license

Deletes the specified license.

Type annotations and code completion for boto3.client("license-manager").delete_license method. boto3 documentation

Method definition
def delete_license(
    self,
    *,
    LicenseArn: str,
    SourceVersion: str,
) -> DeleteLicenseResponseTypeDef:  # (1)
    ...
  1. See DeleteLicenseResponseTypeDef
Usage example with kwargs
kwargs: DeleteLicenseRequestRequestTypeDef = {  # (1)
    "LicenseArn": ...,
    "SourceVersion": ...,
}

parent.delete_license(**kwargs)
  1. See DeleteLicenseRequestRequestTypeDef

delete_license_configuration

Deletes the specified license configuration.

Type annotations and code completion for boto3.client("license-manager").delete_license_configuration method. boto3 documentation

Method definition
def delete_license_configuration(
    self,
    *,
    LicenseConfigurationArn: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteLicenseConfigurationRequestRequestTypeDef = {  # (1)
    "LicenseConfigurationArn": ...,
}

parent.delete_license_configuration(**kwargs)
  1. See DeleteLicenseConfigurationRequestRequestTypeDef

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

Method definition
def delete_license_manager_report_generator(
    self,
    *,
    LicenseManagerReportGeneratorArn: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteLicenseManagerReportGeneratorRequestRequestTypeDef = {  # (1)
    "LicenseManagerReportGeneratorArn": ...,
}

parent.delete_license_manager_report_generator(**kwargs)
  1. See DeleteLicenseManagerReportGeneratorRequestRequestTypeDef

delete_token

Deletes the specified token.

Type annotations and code completion for boto3.client("license-manager").delete_token method. boto3 documentation

Method definition
def delete_token(
    self,
    *,
    TokenId: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteTokenRequestRequestTypeDef = {  # (1)
    "TokenId": ...,
}

parent.delete_token(**kwargs)
  1. See DeleteTokenRequestRequestTypeDef

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

Method definition
def extend_license_consumption(
    self,
    *,
    LicenseConsumptionToken: str,
    DryRun: bool = ...,
) -> ExtendLicenseConsumptionResponseTypeDef:  # (1)
    ...
  1. See ExtendLicenseConsumptionResponseTypeDef
Usage example with kwargs
kwargs: ExtendLicenseConsumptionRequestRequestTypeDef = {  # (1)
    "LicenseConsumptionToken": ...,
}

parent.extend_license_consumption(**kwargs)
  1. See ExtendLicenseConsumptionRequestRequestTypeDef

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

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

Method definition
def get_access_token(
    self,
    *,
    Token: str,
    TokenProperties: Sequence[str] = ...,
) -> GetAccessTokenResponseTypeDef:  # (1)
    ...
  1. See GetAccessTokenResponseTypeDef
Usage example with kwargs
kwargs: GetAccessTokenRequestRequestTypeDef = {  # (1)
    "Token": ...,
}

parent.get_access_token(**kwargs)
  1. See GetAccessTokenRequestRequestTypeDef

get_grant

Gets detailed information about the specified grant.

Type annotations and code completion for boto3.client("license-manager").get_grant method. boto3 documentation

Method definition
def get_grant(
    self,
    *,
    GrantArn: str,
    Version: str = ...,
) -> GetGrantResponseTypeDef:  # (1)
    ...
  1. See GetGrantResponseTypeDef
Usage example with kwargs
kwargs: GetGrantRequestRequestTypeDef = {  # (1)
    "GrantArn": ...,
}

parent.get_grant(**kwargs)
  1. See GetGrantRequestRequestTypeDef

get_license

Gets detailed information about the specified license.

Type annotations and code completion for boto3.client("license-manager").get_license method. boto3 documentation

Method definition
def get_license(
    self,
    *,
    LicenseArn: str,
    Version: str = ...,
) -> GetLicenseResponseTypeDef:  # (1)
    ...
  1. See GetLicenseResponseTypeDef
Usage example with kwargs
kwargs: GetLicenseRequestRequestTypeDef = {  # (1)
    "LicenseArn": ...,
}

parent.get_license(**kwargs)
  1. See GetLicenseRequestRequestTypeDef

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

Method definition
def get_license_configuration(
    self,
    *,
    LicenseConfigurationArn: str,
) -> GetLicenseConfigurationResponseTypeDef:  # (1)
    ...
  1. See GetLicenseConfigurationResponseTypeDef
Usage example with kwargs
kwargs: GetLicenseConfigurationRequestRequestTypeDef = {  # (1)
    "LicenseConfigurationArn": ...,
}

parent.get_license_configuration(**kwargs)
  1. See GetLicenseConfigurationRequestRequestTypeDef

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

Method definition
def get_license_conversion_task(
    self,
    *,
    LicenseConversionTaskId: str,
) -> GetLicenseConversionTaskResponseTypeDef:  # (1)
    ...
  1. See GetLicenseConversionTaskResponseTypeDef
Usage example with kwargs
kwargs: GetLicenseConversionTaskRequestRequestTypeDef = {  # (1)
    "LicenseConversionTaskId": ...,
}

parent.get_license_conversion_task(**kwargs)
  1. See GetLicenseConversionTaskRequestRequestTypeDef

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

Method definition
def get_license_manager_report_generator(
    self,
    *,
    LicenseManagerReportGeneratorArn: str,
) -> GetLicenseManagerReportGeneratorResponseTypeDef:  # (1)
    ...
  1. See GetLicenseManagerReportGeneratorResponseTypeDef
Usage example with kwargs
kwargs: GetLicenseManagerReportGeneratorRequestRequestTypeDef = {  # (1)
    "LicenseManagerReportGeneratorArn": ...,
}

parent.get_license_manager_report_generator(**kwargs)
  1. See GetLicenseManagerReportGeneratorRequestRequestTypeDef

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

Method definition
def get_license_usage(
    self,
    *,
    LicenseArn: str,
) -> GetLicenseUsageResponseTypeDef:  # (1)
    ...
  1. See GetLicenseUsageResponseTypeDef
Usage example with kwargs
kwargs: GetLicenseUsageRequestRequestTypeDef = {  # (1)
    "LicenseArn": ...,
}

parent.get_license_usage(**kwargs)
  1. See GetLicenseUsageRequestRequestTypeDef

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

Method definition
def get_service_settings(
    self,
) -> GetServiceSettingsResponseTypeDef:  # (1)
    ...
  1. See GetServiceSettingsResponseTypeDef

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

Method definition
def list_associations_for_license_configuration(
    self,
    *,
    LicenseConfigurationArn: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListAssociationsForLicenseConfigurationResponseTypeDef:  # (1)
    ...
  1. See ListAssociationsForLicenseConfigurationResponseTypeDef
Usage example with kwargs
kwargs: ListAssociationsForLicenseConfigurationRequestRequestTypeDef = {  # (1)
    "LicenseConfigurationArn": ...,
}

parent.list_associations_for_license_configuration(**kwargs)
  1. See ListAssociationsForLicenseConfigurationRequestRequestTypeDef

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

Method definition
def list_distributed_grants(
    self,
    *,
    GrantArns: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListDistributedGrantsResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See ListDistributedGrantsResponseTypeDef
Usage example with kwargs
kwargs: ListDistributedGrantsRequestRequestTypeDef = {  # (1)
    "GrantArns": ...,
}

parent.list_distributed_grants(**kwargs)
  1. See ListDistributedGrantsRequestRequestTypeDef

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

Method definition
def list_failures_for_license_configuration_operations(
    self,
    *,
    LicenseConfigurationArn: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListFailuresForLicenseConfigurationOperationsResponseTypeDef:  # (1)
    ...
  1. See ListFailuresForLicenseConfigurationOperationsResponseTypeDef
Usage example with kwargs
kwargs: ListFailuresForLicenseConfigurationOperationsRequestRequestTypeDef = {  # (1)
    "LicenseConfigurationArn": ...,
}

parent.list_failures_for_license_configuration_operations(**kwargs)
  1. See ListFailuresForLicenseConfigurationOperationsRequestRequestTypeDef

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

Method definition
def list_license_configurations(
    self,
    *,
    LicenseConfigurationArns: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> ListLicenseConfigurationsResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See ListLicenseConfigurationsResponseTypeDef
Usage example with kwargs
kwargs: ListLicenseConfigurationsRequestRequestTypeDef = {  # (1)
    "LicenseConfigurationArns": ...,
}

parent.list_license_configurations(**kwargs)
  1. See ListLicenseConfigurationsRequestRequestTypeDef

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

Method definition
def list_license_conversion_tasks(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> ListLicenseConversionTasksResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See ListLicenseConversionTasksResponseTypeDef
Usage example with kwargs
kwargs: ListLicenseConversionTasksRequestRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_license_conversion_tasks(**kwargs)
  1. See ListLicenseConversionTasksRequestRequestTypeDef

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

Method definition
def list_license_manager_report_generators(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListLicenseManagerReportGeneratorsResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See ListLicenseManagerReportGeneratorsResponseTypeDef
Usage example with kwargs
kwargs: ListLicenseManagerReportGeneratorsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.list_license_manager_report_generators(**kwargs)
  1. See ListLicenseManagerReportGeneratorsRequestRequestTypeDef

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

Method definition
def list_license_specifications_for_resource(
    self,
    *,
    ResourceArn: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListLicenseSpecificationsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListLicenseSpecificationsForResourceResponseTypeDef
Usage example with kwargs
kwargs: ListLicenseSpecificationsForResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}

parent.list_license_specifications_for_resource(**kwargs)
  1. See ListLicenseSpecificationsForResourceRequestRequestTypeDef

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

Method definition
def list_license_versions(
    self,
    *,
    LicenseArn: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListLicenseVersionsResponseTypeDef:  # (1)
    ...
  1. See ListLicenseVersionsResponseTypeDef
Usage example with kwargs
kwargs: ListLicenseVersionsRequestRequestTypeDef = {  # (1)
    "LicenseArn": ...,
}

parent.list_license_versions(**kwargs)
  1. See ListLicenseVersionsRequestRequestTypeDef

list_licenses

Lists the licenses for your account.

Type annotations and code completion for boto3.client("license-manager").list_licenses method. boto3 documentation

Method definition
def list_licenses(
    self,
    *,
    LicenseArns: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListLicensesResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See ListLicensesResponseTypeDef
Usage example with kwargs
kwargs: ListLicensesRequestRequestTypeDef = {  # (1)
    "LicenseArns": ...,
}

parent.list_licenses(**kwargs)
  1. See ListLicensesRequestRequestTypeDef

list_received_grants

Lists grants that are received but not accepted.

Type annotations and code completion for boto3.client("license-manager").list_received_grants method. boto3 documentation

Method definition
def list_received_grants(
    self,
    *,
    GrantArns: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListReceivedGrantsResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See ListReceivedGrantsResponseTypeDef
Usage example with kwargs
kwargs: ListReceivedGrantsRequestRequestTypeDef = {  # (1)
    "GrantArns": ...,
}

parent.list_received_grants(**kwargs)
  1. See ListReceivedGrantsRequestRequestTypeDef

list_received_licenses

Lists received licenses.

Type annotations and code completion for boto3.client("license-manager").list_received_licenses method. boto3 documentation

Method definition
def list_received_licenses(
    self,
    *,
    LicenseArns: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListReceivedLicensesResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See ListReceivedLicensesResponseTypeDef
Usage example with kwargs
kwargs: ListReceivedLicensesRequestRequestTypeDef = {  # (1)
    "LicenseArns": ...,
}

parent.list_received_licenses(**kwargs)
  1. See ListReceivedLicensesRequestRequestTypeDef

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

Method definition
def list_resource_inventory(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[InventoryFilterTypeDef] = ...,  # (1)
) -> ListResourceInventoryResponseTypeDef:  # (2)
    ...
  1. See InventoryFilterTypeDef
  2. See ListResourceInventoryResponseTypeDef
Usage example with kwargs
kwargs: ListResourceInventoryRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_resource_inventory(**kwargs)
  1. See ListResourceInventoryRequestRequestTypeDef

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

Method definition
def list_tags_for_resource(
    self,
    *,
    ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
Usage example with kwargs
kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

list_tokens

Lists your tokens.

Type annotations and code completion for boto3.client("license-manager").list_tokens method. boto3 documentation

Method definition
def list_tokens(
    self,
    *,
    TokenIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListTokensResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See ListTokensResponseTypeDef
Usage example with kwargs
kwargs: ListTokensRequestRequestTypeDef = {  # (1)
    "TokenIds": ...,
}

parent.list_tokens(**kwargs)
  1. See ListTokensRequestRequestTypeDef

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

Method definition
def list_usage_for_license_configuration(
    self,
    *,
    LicenseConfigurationArn: str,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> ListUsageForLicenseConfigurationResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See ListUsageForLicenseConfigurationResponseTypeDef
Usage example with kwargs
kwargs: ListUsageForLicenseConfigurationRequestRequestTypeDef = {  # (1)
    "LicenseConfigurationArn": ...,
}

parent.list_usage_for_license_configuration(**kwargs)
  1. See ListUsageForLicenseConfigurationRequestRequestTypeDef

reject_grant

Rejects the specified grant.

Type annotations and code completion for boto3.client("license-manager").reject_grant method. boto3 documentation

Method definition
def reject_grant(
    self,
    *,
    GrantArn: str,
) -> RejectGrantResponseTypeDef:  # (1)
    ...
  1. See RejectGrantResponseTypeDef
Usage example with kwargs
kwargs: RejectGrantRequestRequestTypeDef = {  # (1)
    "GrantArn": ...,
}

parent.reject_grant(**kwargs)
  1. See RejectGrantRequestRequestTypeDef

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

Method definition
def tag_resource(
    self,
    *,
    ResourceArn: str,
    Tags: Sequence[TagTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
Usage example with kwargs
kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "Tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

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

Method definition
def untag_resource(
    self,
    *,
    ResourceArn: str,
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "TagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

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

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]:
    ...
  1. See LicenseConfigurationStatusType
  2. See ProductInformationTypeDef
Usage example with kwargs
kwargs: UpdateLicenseConfigurationRequestRequestTypeDef = {  # (1)
    "LicenseConfigurationArn": ...,
}

parent.update_license_configuration(**kwargs)
  1. See UpdateLicenseConfigurationRequestRequestTypeDef

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

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]:
    ...
  1. See ReportTypeType
  2. See ReportContextTypeDef
  3. See ReportFrequencyTypeDef
Usage example with kwargs
kwargs: UpdateLicenseManagerReportGeneratorRequestRequestTypeDef = {  # (1)
    "LicenseManagerReportGeneratorArn": ...,
    "ReportGeneratorName": ...,
    "Type": ...,
    "ReportContext": ...,
    "ReportFrequency": ...,
    "ClientToken": ...,
}

parent.update_license_manager_report_generator(**kwargs)
  1. See UpdateLicenseManagerReportGeneratorRequestRequestTypeDef

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

Method definition
def update_license_specifications_for_resource(
    self,
    *,
    ResourceArn: str,
    AddLicenseSpecifications: Sequence[LicenseSpecificationTypeDef] = ...,  # (1)
    RemoveLicenseSpecifications: Sequence[LicenseSpecificationTypeDef] = ...,  # (1)
) -> Dict[str, Any]:
    ...
  1. See LicenseSpecificationTypeDef
  2. See LicenseSpecificationTypeDef
Usage example with kwargs
kwargs: UpdateLicenseSpecificationsForResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}

parent.update_license_specifications_for_resource(**kwargs)
  1. See UpdateLicenseSpecificationsForResourceRequestRequestTypeDef

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.