MarketplaceEntitlementServiceClient#
Index > MarketplaceEntitlementService > MarketplaceEntitlementServiceClient
Auto-generated documentation for MarketplaceEntitlementService type annotations stubs module mypy-boto3-marketplace-entitlement.
MarketplaceEntitlementServiceClient#
Type annotations and code completion for boto3.client("marketplace-entitlement")
.
boto3 documentation
# MarketplaceEntitlementServiceClient usage example
from boto3.session import Session
from mypy_boto3_marketplace_entitlement.client import MarketplaceEntitlementServiceClient
def get_marketplace-entitlement_client() -> MarketplaceEntitlementServiceClient:
return Session().client("marketplace-entitlement")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("marketplace-entitlement").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("marketplace-entitlement")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.InternalServiceErrorException,
client.exceptions.InvalidParameterException,
client.exceptions.ThrottlingException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_marketplace_entitlement.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("marketplace-entitlement").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("marketplace-entitlement").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_entitlements#
GetEntitlements retrieves entitlement values for a given product.
Type annotations and code completion for boto3.client("marketplace-entitlement").get_entitlements
method.
boto3 documentation
# get_entitlements method definition
def get_entitlements(
self,
*,
ProductCode: str,
Filter: Mapping[GetEntitlementFilterNameType, Sequence[str]] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> GetEntitlementsResultTypeDef: # (2)
...
# get_entitlements method usage example with argument unpacking
kwargs: GetEntitlementsRequestRequestTypeDef = { # (1)
"ProductCode": ...,
}
parent.get_entitlements(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("marketplace-entitlement").get_paginator
method with overloads.
client.get_paginator("get_entitlements")
-> GetEntitlementsPaginator