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.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:
...
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_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
# get_service_settings method definition
def get_service_settings(
self,
) -> GetServiceSettingsResponseTypeDef: # (1)
...
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)
...
# list_linux_subscription_instances method usage example with argument unpacking
kwargs: ListLinuxSubscriptionInstancesRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.list_linux_subscription_instances(**kwargs)
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)
...
# list_linux_subscriptions method usage example with argument unpacking
kwargs: ListLinuxSubscriptionsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.list_linux_subscriptions(**kwargs)
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)
...
- See LinuxSubscriptionsDiscoveryType
- See LinuxSubscriptionsDiscoverySettingsTypeDef
- See UpdateServiceSettingsResponseTypeDef
# update_service_settings method usage example with argument unpacking
kwargs: UpdateServiceSettingsRequestRequestTypeDef = { # (1)
"LinuxSubscriptionsDiscovery": ...,
"LinuxSubscriptionsDiscoverySettings": ...,
}
parent.update_service_settings(**kwargs)
get_paginator
Type annotations and code completion for boto3.client("license-manager-linux-subscriptions").get_paginator
method with overloads.
client.get_paginator("list_linux_subscription_instances")
-> ListLinuxSubscriptionInstancesPaginatorclient.get_paginator("list_linux_subscriptions")
-> ListLinuxSubscriptionsPaginator