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

# 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)
    ...
  1. See AcceptGrantResponseTypeDef
# accept_grant method usage example with argument unpacking

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

# 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)
  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

# 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)
    ...
  1. See EntitlementDataTypeDef
  2. See DigitalSignatureMethodType
  3. See MetadataTypeDef
  4. See CheckoutBorrowLicenseResponseTypeDef
# checkout_borrow_license method usage example with argument unpacking

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

# 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)
    ...
  1. See CheckoutTypeType
  2. See EntitlementDataTypeDef
  3. See CheckoutLicenseResponseTypeDef
# checkout_license method usage example with argument unpacking

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

# 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)
    ...
  1. See AllowedOperationType
  2. See CreateGrantResponseTypeDef
# create_grant method usage example with argument unpacking

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

# 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)
    ...
  1. See AllowedOperationType
  2. See GrantStatusType
  3. See OptionsTypeDef
  4. See CreateGrantVersionResponseTypeDef
# create_grant_version method usage example with argument unpacking

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

# 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)
    ...
  1. See IssuerTypeDef
  2. See DatetimeRangeTypeDef
  3. See EntitlementTypeDef
  4. See ConsumptionConfigurationTypeDef
  5. See MetadataTypeDef
  6. 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)
  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

# 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[ProductInformationTypeDef] = ...,  # (3)
) -> CreateLicenseConfigurationResponseTypeDef:  # (4)
    ...
  1. See LicenseCountingTypeType
  2. See TagTypeDef
  3. See ProductInformationTypeDef
  4. See CreateLicenseConfigurationResponseTypeDef
# create_license_configuration method usage example with argument unpacking

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.