Skip to content

MarketplaceEntitlementServiceClient#

Index > MarketplaceEntitlementService > MarketplaceEntitlementServiceClient

Auto-generated documentation for MarketplaceEntitlementService type annotations stubs module types-aiobotocore-marketplace-entitlement.

MarketplaceEntitlementServiceClient#

Type annotations and code completion for session.create_client("marketplace-entitlement") boto3 documentation

MarketplaceEntitlementServiceClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_marketplace_entitlement.client import MarketplaceEntitlementServiceClient

session = get_session()
async with session.create_client("marketplace-entitlement") as client:
    client: MarketplaceEntitlementServiceClient

Exceptions#

aiobotocore client exceptions are generated in runtime. This class provides code completion for session.create_client("marketplace-entitlement").exceptions structure.

MarketplaceEntitlementServiceClient.exceptions usage example

async with session.create_client("marketplace-entitlement") as client:
    try:
        do_something(client)
    except (
            client.ClientError,
        client.InternalServiceErrorException,
        client.InvalidParameterException,
        client.ThrottlingException,
    ) as e:
        print(e)
MarketplaceEntitlementServiceClient usage type checking example

from types_aiobotocore_marketplace_entitlement.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 session.create_client("marketplace-entitlement").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 session.create_client("marketplace-entitlement").close method. boto3 documentation

# close method definition

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

generate_presigned_url#

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

Type annotations and code completion for session.create_client("marketplace-entitlement").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

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

get_entitlements#

GetEntitlements retrieves entitlement values for a given product.

Type annotations and code completion for session.create_client("marketplace-entitlement").get_entitlements method. boto3 documentation

# get_entitlements method definition

await def get_entitlements(
    self,
    *,
    ProductCode: str,
    Filter: Mapping[GetEntitlementFilterNameType, Sequence[str]] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetEntitlementsResultTypeDef:  # (2)
    ...
  1. See GetEntitlementFilterNameType
  2. See GetEntitlementsResultTypeDef
# get_entitlements method usage example with argument unpacking

kwargs: GetEntitlementsRequestRequestTypeDef = {  # (1)
    "ProductCode": ...,
}

parent.get_entitlements(**kwargs)
  1. See GetEntitlementsRequestRequestTypeDef

__aenter__#

Type annotations and code completion for session.create_client("marketplace-entitlement").__aenter__ method. boto3 documentation

# __aenter__ method definition

await def __aenter__(
    self,
) -> MarketplaceEntitlementServiceClient:
    ...

__aexit__#

Type annotations and code completion for session.create_client("marketplace-entitlement").__aexit__ method. boto3 documentation

# __aexit__ method definition

await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator#

Type annotations and code completion for session.create_client("marketplace-entitlement").get_paginator method with overloads.