Skip to content

LicenseManagerLinuxSubscriptionsClient#

Index > LicenseManagerLinuxSubscriptions > LicenseManagerLinuxSubscriptionsClient

Auto-generated documentation for LicenseManagerLinuxSubscriptions type annotations stubs module mypy-boto3-license-manager-linux-subscriptions.

LicenseManagerLinuxSubscriptionsClient#

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

# LicenseManagerLinuxSubscriptionsClient usage example

from boto3.session import Session
from mypy_boto3_license_manager_linux_subscriptions.client import LicenseManagerLinuxSubscriptionsClient

def get_license-manager-linux-subscriptions_client() -> LicenseManagerLinuxSubscriptionsClient:
    return Session().client("license-manager-linux-subscriptions")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("license-manager-linux-subscriptions").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("license-manager-linux-subscriptions")

try:
    do_something(client)
except (
    client.exceptions.ClientError,
    client.exceptions.InternalServerException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ThrottlingException,
    client.exceptions.ValidationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_license_manager_linux_subscriptions.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods#

can_paginate#

Check if an operation can be paginated.

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

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

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

# close method definition

def close(
    self,
) -> None:
    ...

deregister_subscription_provider#

Remove a third-party subscription provider from the Bring Your Own License (BYOL) subscriptions registered to your account.

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

# deregister_subscription_provider method definition

def deregister_subscription_provider(
    self,
    *,
    SubscriptionProviderArn: str,
) -> Dict[str, Any]:
    ...
# deregister_subscription_provider method usage example with argument unpacking

kwargs: DeregisterSubscriptionProviderRequestRequestTypeDef = {  # (1)
    "SubscriptionProviderArn": ...,
}

parent.deregister_subscription_provider(**kwargs)
  1. See DeregisterSubscriptionProviderRequestRequestTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("license-manager-linux-subscriptions").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_registered_subscription_provider#

Get details for a Bring Your Own License (BYOL) subscription that's registered to your account.

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

# get_registered_subscription_provider method definition

def get_registered_subscription_provider(
    self,
    *,
    SubscriptionProviderArn: str,
) -> GetRegisteredSubscriptionProviderResponseTypeDef:  # (1)
    ...
  1. See GetRegisteredSubscriptionProviderResponseTypeDef
# get_registered_subscription_provider method usage example with argument unpacking

kwargs: GetRegisteredSubscriptionProviderRequestRequestTypeDef = {  # (1)
    "SubscriptionProviderArn": ...,
}

parent.get_registered_subscription_provider(**kwargs)
  1. See GetRegisteredSubscriptionProviderRequestRequestTypeDef

get_service_settings#

Lists the Linux subscriptions service settings for your account.

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

# get_service_settings method definition

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

list_linux_subscription_instances#

Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.

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

# list_linux_subscription_instances method definition

def list_linux_subscription_instances(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListLinuxSubscriptionInstancesResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See ListLinuxSubscriptionInstancesResponseTypeDef
# list_linux_subscription_instances method usage example with argument unpacking

kwargs: ListLinuxSubscriptionInstancesRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.list_linux_subscription_instances(**kwargs)
  1. See ListLinuxSubscriptionInstancesRequestRequestTypeDef

list_linux_subscriptions#

Lists the Linux subscriptions that have been discovered.

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

# list_linux_subscriptions method definition

def list_linux_subscriptions(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListLinuxSubscriptionsResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See