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
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.
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)
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
def accept_grant(
self,
*,
GrantArn: str,
) -> AcceptGrantResponseTypeDef: # (1)
...
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
check_in_license
Checks in the specified license.
Type annotations and code completion for boto3.client("license-manager").check_in_license
method.
boto3 documentation
def check_in_license(
self,
*,
LicenseConsumptionToken: str,
Beneficiary: str = ...,
) -> Dict[str, Any]:
...
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
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
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
def checkout_license(
self,
*,
ProductSKU: str,
CheckoutType: CheckoutTypeType, # (1)
KeyFingerprint: str,
Entitlements: Sequence[EntitlementDataTypeDef], # (2)
ClientToken: str,
Beneficiary: str = ...,
NodeId: str = ...,
) -> CheckoutLicenseResponseTypeDef: # (3)
...
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
create_grant
Creates a grant for the specified license.
Type annotations and code completion for boto3.client("license-manager").create_grant
method.
boto3 documentation
def create_grant(
self,
*,
ClientToken: str,
GrantName: str,
LicenseArn: str,
Principals: Sequence[str],
HomeRegion: str,
AllowedOperations: Sequence[AllowedOperationType], # (1)
) -> CreateGrantResponseTypeDef: # (2)
...
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
def create_grant_version(
self,
*,
ClientToken: str,
GrantArn: str,
GrantName: str = ...,
AllowedOperations: Sequence[AllowedOperationType] = ..., # (1)
Status: GrantStatusType = ..., # (2)
StatusReason: str = ...,
SourceVersion: str = ...,
) -> CreateGrantVersionResponseTypeDef: # (3)
...
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
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
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
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)
...
- See LicenseCountingTypeType
- See TagTypeDef
- See ProductInformationTypeDef
- See CreateLicenseConfigurationResponseTypeDef
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
def create_license_conversion_task_for_resource(
self,
*,
ResourceArn: str,
SourceLicenseContext: LicenseConversionContextTypeDef, # (1)
DestinationLicenseContext: LicenseConversionContextTypeDef, # (1)
) -> CreateLicenseConversionTaskForResourceResponseTypeDef: # (3)
...
- See LicenseConversionContextTypeDef
- See LicenseConversionContextTypeDef
- See CreateLicenseConversionTaskForResourceResponseTypeDef
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
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
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
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
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
def create_token(
self,
*,
LicenseArn: str,
ClientToken: str,
RoleArns: Sequence[str] = ...,
ExpirationInDays: int = ...,
TokenProperties: Sequence[str] = ...,
) -> CreateTokenResponseTypeDef: # (1)
...
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
def delete_grant(
self,
*,
GrantArn: str,
Version: str,
StatusReason: str = ...,
) -> DeleteGrantResponseTypeDef: # (1)
...
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
def delete_license(
self,
*,
LicenseArn: str,
SourceVersion: str,
) -> DeleteLicenseResponseTypeDef: # (1)
...
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
def delete_license_configuration(
self,
*,
LicenseConfigurationArn: str,
) -> Dict[str, Any]:
...
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
def delete_license_manager_report_generator(
self,
*,
LicenseManagerReportGeneratorArn: str,
) -> Dict[str, Any]:
...
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
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
def extend_license_consumption(
self,
*,
LicenseConsumptionToken: str,
DryRun: bool = ...,
) -> ExtendLicenseConsumptionResponseTypeDef: # (1)
...
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
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
def get_access_token(
self,
*,
Token: str,
TokenProperties: Sequence[str] = ...,
) -> GetAccessTokenResponseTypeDef: # (1)
...
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
def get_grant(
self,
*,
GrantArn: str,
Version: str = ...,
) -> GetGrantResponseTypeDef: # (1)
...
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
def get_license(
self,
*,
LicenseArn: str,
Version: str = ...,
) -> GetLicenseResponseTypeDef: # (1)
...
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
def get_license_configuration(
self,
*,
LicenseConfigurationArn: str,
) -> GetLicenseConfigurationResponseTypeDef: # (1)
...
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
def get_license_conversion_task(
self,
*,
LicenseConversionTaskId: str,
) -> GetLicenseConversionTaskResponseTypeDef: # (1)
...
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
def get_license_manager_report_generator(
self,
*,
LicenseManagerReportGeneratorArn: str,
) -> GetLicenseManagerReportGeneratorResponseTypeDef: # (1)
...
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
def get_license_usage(
self,
*,
LicenseArn: str,
) -> GetLicenseUsageResponseTypeDef: # (1)
...
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
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
def list_associations_for_license_configuration(
self,
*,
LicenseConfigurationArn: str,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListAssociationsForLicenseConfigurationResponseTypeDef: # (1)
...
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
def list_distributed_grants(
self,
*,
GrantArns: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListDistributedGrantsResponseTypeDef: # (2)
...
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
def list_failures_for_license_configuration_operations(
self,
*,
LicenseConfigurationArn: str,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListFailuresForLicenseConfigurationOperationsResponseTypeDef: # (1)
...
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
def list_license_configurations(
self,
*,
LicenseConfigurationArns: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
) -> ListLicenseConfigurationsResponseTypeDef: # (2)
...
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
def list_license_conversion_tasks(
self,
*,
NextToken: str = ...,
MaxResults: int = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
) -> ListLicenseConversionTasksResponseTypeDef: # (2)
...
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
def list_license_manager_report_generators(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListLicenseManagerReportGeneratorsResponseTypeDef: # (2)
...
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
def list_license_specifications_for_resource(
self,
*,
ResourceArn: str,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListLicenseSpecificationsForResourceResponseTypeDef: # (1)
...
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
def list_license_versions(
self,
*,
LicenseArn: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListLicenseVersionsResponseTypeDef: # (1)
...
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
def list_licenses(
self,
*,
LicenseArns: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListLicensesResponseTypeDef: # (2)
...
kwargs: ListLicensesRequestRequestTypeDef = { # (1)
"LicenseArns": ...,
}
parent.list_licenses(**kwargs)
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
def list_received_grants(
self,
*,
GrantArns: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListReceivedGrantsResponseTypeDef: # (2)
...
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
def list_received_grants_for_organization(
self,
*,
LicenseArn: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListReceivedGrantsForOrganizationResponseTypeDef: # (2)
...
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
def list_received_licenses(
self,
*,
LicenseArns: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListReceivedLicensesResponseTypeDef: # (2)
...
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
def list_received_licenses_for_organization(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListReceivedLicensesForOrganizationResponseTypeDef: # (2)
...
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
def list_resource_inventory(
self,
*,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[InventoryFilterTypeDef] = ..., # (1)
) -> ListResourceInventoryResponseTypeDef: # (2)
...
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
def list_tags_for_resource(
self,
*,
ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
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
def list_tokens(
self,
*,
TokenIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListTokensResponseTypeDef: # (2)
...
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
def list_usage_for_license_configuration(
self,
*,
LicenseConfigurationArn: str,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
) -> ListUsageForLicenseConfigurationResponseTypeDef: # (2)
...
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
def reject_grant(
self,
*,
GrantArn: str,
) -> RejectGrantResponseTypeDef: # (1)
...
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
def tag_resource(
self,
*,
ResourceArn: str,
Tags: Sequence[TagTypeDef], # (1)
) -> Dict[str, Any]:
...
- See TagTypeDef
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
def untag_resource(
self,
*,
ResourceArn: str,
TagKeys: Sequence[str],
) -> Dict[str, Any]:
...
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
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]:
...
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
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
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
def update_license_specifications_for_resource(
self,
*,
ResourceArn: str,
AddLicenseSpecifications: Sequence[LicenseSpecificationTypeDef] = ..., # (1)
RemoveLicenseSpecifications: Sequence[LicenseSpecificationTypeDef] = ..., # (1)
) -> Dict[str, Any]:
...
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
def update_service_settings(
self,
*,
S3BucketArn: str = ...,
SnsTopicArn: str = ...,
OrganizationConfiguration: OrganizationConfigurationTypeDef = ..., # (1)
EnableCrossAccountsDiscovery: bool = ...,
) -> Dict[str, Any]:
...
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