Skip to content

ServiceCatalogClient#

Index > ServiceCatalog > ServiceCatalogClient

Auto-generated documentation for ServiceCatalog type annotations stubs module mypy-boto3-servicecatalog.

ServiceCatalogClient#

Type annotations and code completion for boto3.client("servicecatalog"). boto3 documentation

# ServiceCatalogClient usage example

from boto3.session import Session
from mypy_boto3_servicecatalog.client import ServiceCatalogClient

def get_servicecatalog_client() -> ServiceCatalogClient:
    return Session().client("servicecatalog")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("servicecatalog").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("servicecatalog")

try:
    do_something(client)
except (
    client.exceptions.ClientError,
    client.exceptions.DuplicateResourceException,
    client.exceptions.InvalidParametersException,
    client.exceptions.InvalidStateException,
    client.exceptions.LimitExceededException,
    client.exceptions.OperationNotSupportedException,
    client.exceptions.ResourceInUseException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.TagOptionNotMigratedException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_servicecatalog.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods#

accept_portfolio_share#

Accepts an offer to share the specified portfolio.

Type annotations and code completion for boto3.client("servicecatalog").accept_portfolio_share method.