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#

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:
    ...

generate_presigned_url#

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:
    ...

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

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 ListLinuxSubscriptionsResponseTypeDef
# list_linux_subscriptions method usage example with argument unpacking

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

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

list_registered_subscription_providers#

List Bring Your Own License (BYOL) subscription registration resources for your account.

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

# list_registered_subscription_providers method definition

def list_registered_subscription_providers(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    SubscriptionProviderSources: Sequence[SubscriptionProviderSourceType] = ...,  # (1)
) -> ListRegisteredSubscriptionProvidersResponseTypeDef:  # (2)
    ...
  1. See SubscriptionProviderSourceType
  2. See ListRegisteredSubscriptionProvidersResponseTypeDef
# list_registered_subscription_providers method usage example with argument unpacking

kwargs: ListRegisteredSubscriptionProvidersRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_registered_subscription_providers(**kwargs)
  1. See ListRegisteredSubscriptionProvidersRequestRequestTypeDef

list_tags_for_resource#

List the metadata tags that are assigned to the specified Amazon Web Services resource.

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

# list_tags_for_resource method definition

def list_tags_for_resource(
    self,
    *,
    resourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
# list_tags_for_resource method usage example with argument unpacking

kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
}

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

register_subscription_provider#

Register the supported third-party subscription provider for your Bring Your Own License (BYOL) subscription.

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

# register_subscription_provider method definition

def register_subscription_provider(
    self,
    *,
    SecretArn: str,
    SubscriptionProviderSource: SubscriptionProviderSourceType,  # (1)
    Tags: Mapping[str, str] = ...,
) -> RegisterSubscriptionProviderResponseTypeDef:  # (2)
    ...
  1. See SubscriptionProviderSourceType
  2. See RegisterSubscriptionProviderResponseTypeDef
# register_subscription_provider method usage example with argument unpacking

kwargs: RegisterSubscriptionProviderRequestRequestTypeDef = {  # (1)
    "SecretArn": ...,
    "SubscriptionProviderSource": ...,
}

parent.register_subscription_provider(**kwargs)
  1. See RegisterSubscriptionProviderRequestRequestTypeDef

tag_resource#

Add metadata tags to the specified Amazon Web Services resource.

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

# tag_resource method definition

def tag_resource(
    self,
    *,
    resourceArn: str,
    tags: Mapping[str, str],
) -> dict[str, Any]:
    ...
# tag_resource method usage example with argument unpacking

kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tags": ...,
}

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

untag_resource#

Remove one or more metadata tag from the specified Amazon Web Services resource.

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

# untag_resource method definition

def untag_resource(
    self,
    *,
    resourceArn: str,
    tagKeys: Sequence[str],
) -> dict[str, Any]:
    ...
# untag_resource method usage example with argument unpacking

kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tagKeys": ...,
}

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

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

# update_service_settings 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
# update_service_settings method usage example with argument unpacking

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.