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

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.

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

try:
    do_something(client)
except (
    client.ClientError,
    client.InternalServerException,
    client.ThrottlingException,
    client.ValidationException,
) as e:
    print(e)
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

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

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

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

Method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_service_settings

Lists the Linux subscriptions service settings.

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

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

Method definition
def list_linux_subscription_instances(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListLinuxSubscriptionInstancesResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See ListLinuxSubscriptionInstancesResponseTypeDef
Usage example with kwargs
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

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

parent.list_linux_subscriptions(**kwargs)
  1. See ListLinuxSubscriptionsRequestRequestTypeDef

update_service_settings

Updates the service settings for Linux subscriptions.

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

Method definition
def update_service_settings(
    self,
    *,
    LinuxSubscriptionsDiscovery: LinuxSubscriptionsDiscoveryType,  # (1)
    LinuxSubscriptionsDiscoverySettings: LinuxSubscriptionsDiscoverySettingsTypeDef,  # (2)
    AllowUpdate: bool = ...,
) -> UpdateServiceSettingsResponseTypeDef:  # (3)
    ...
  1. See LinuxSubscriptionsDiscoveryType
  2. See LinuxSubscriptionsDiscoverySettingsTypeDef
  3. See UpdateServiceSettingsResponseTypeDef
Usage example with kwargs
kwargs: UpdateServiceSettingsRequestRequestTypeDef = {  # (1)
    "LinuxSubscriptionsDiscovery": ...,
    "LinuxSubscriptionsDiscoverySettings": ...,
}

parent.update_service_settings(**kwargs)
  1. See UpdateServiceSettingsRequestRequestTypeDef

get_paginator

Type annotations and code completion for boto3.client("license-manager-linux-subscriptions").get_paginator method with overloads.