Type annotations for boto3.ServiceCatalog 1.14.23 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-servicecatalog
Type annotations for boto3.ServiceCatalog 1.14.23 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.2.0.
More information can be found on boto3-stubs page.
How to install
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for ServiceCatalog
service.
python -m pip install boto3-stubs[servicecatalog]
How to use
Client annotations
ServiceCatalogClient
provides annotations for boto3.client("servicecatalog")
.
import boto3
from mypy_boto3_servicecatalog import ServiceCatalogClient
from mypy_boto3_servicecatalog.paginator import (
ListAcceptedPortfolioSharesPaginator,
ListConstraintsForPortfolioPaginator,
ListLaunchPathsPaginator,
ListOrganizationPortfolioAccessPaginator,
ListPortfoliosForProductPaginator,
ListPortfoliosPaginator,
ListPrincipalsForPortfolioPaginator,
ListProvisionedProductPlansPaginator,
ListProvisioningArtifactsForServiceActionPaginator,
ListRecordHistoryPaginator,
ListResourcesForTagOptionPaginator,
ListServiceActionsForProvisioningArtifactPaginator,
ListServiceActionsPaginator,
ListTagOptionsPaginator,
ScanProvisionedProductsPaginator,
SearchProductsAsAdminPaginator,
)
from mypy_boto3_servicecatalog.type_defs import BudgetDetailTypeDef, ...
client: ServiceCatalogClient = boto3.client("servicecatalog")
# now client usage is checked by mypy and IDE should provide code auto-complete
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ServiceCatalogClient = session.client("servicecatalog")
Paginators annotations
mypy_boto3_servicecatalog.paginator
module contains type annotations for all paginators.
client: ServiceCatalogClient = boto3.client("servicecatalog")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
list_accepted_portfolio_shares_paginator: ListAcceptedPortfolioSharesPaginator = client.get_paginator("list_accepted_portfolio_shares")
list_constraints_for_portfolio_paginator: ListConstraintsForPortfolioPaginator = client.get_paginator("list_constraints_for_portfolio")
list_launch_paths_paginator: ListLaunchPathsPaginator = client.get_paginator("list_launch_paths")
list_organization_portfolio_access_paginator: ListOrganizationPortfolioAccessPaginator = client.get_paginator("list_organization_portfolio_access")
list_portfolios_paginator: ListPortfoliosPaginator = client.get_paginator("list_portfolios")
list_portfolios_for_product_paginator: ListPortfoliosForProductPaginator = client.get_paginator("list_portfolios_for_product")
list_principals_for_portfolio_paginator: ListPrincipalsForPortfolioPaginator = client.get_paginator("list_principals_for_portfolio")
list_provisioned_product_plans_paginator: ListProvisionedProductPlansPaginator = client.get_paginator("list_provisioned_product_plans")
list_provisioning_artifacts_for_service_action_paginator: ListProvisioningArtifactsForServiceActionPaginator = client.get_paginator("list_provisioning_artifacts_for_service_action")
list_record_history_paginator: ListRecordHistoryPaginator = client.get_paginator("list_record_history")
list_resources_for_tag_option_paginator: ListResourcesForTagOptionPaginator = client.get_paginator("list_resources_for_tag_option")
list_service_actions_paginator: ListServiceActionsPaginator = client.get_paginator("list_service_actions")
list_service_actions_for_provisioning_artifact_paginator: ListServiceActionsForProvisioningArtifactPaginator = client.get_paginator("list_service_actions_for_provisioning_artifact")
list_tag_options_paginator: ListTagOptionsPaginator = client.get_paginator("list_tag_options")
scan_provisioned_products_paginator: ScanProvisionedProductsPaginator = client.get_paginator("scan_provisioned_products")
search_products_as_admin_paginator: SearchProductsAsAdminPaginator = client.get_paginator("search_products_as_admin")
Typed dictionations
mypy_boto3_servicecatalog.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> BudgetDetailTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_servicecatalog
and other installed services.
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated type annotations provide overloads for boto3.client
and boto3.resource
,
boto3.Session.client
and boto3.Session.resource
functions,
so explicit type annotations are not needed.
mypy
supports function overloads as expectedPyCharm
also supports function overloads, but consumes a lot of RAM, use carefully if you have many services installedVSCode
does not currently support function overloads, use explicit type annotations
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("servicecatalog")
session_client = boto3.Session().client("servicecatalog")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mypy-boto3-servicecatalog-1.14.23.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 798e00067edfc91ea61ff9feb55634aa28bab56c3df22bc942ee8b825653e416 |
|
MD5 | dbcebe71ea0b44e6c850f3901279ce5a |
|
BLAKE2b-256 | 195a577ca02b57a6726521b54880ad3889d2d88878c1192d9146ea427dc8dcf6 |
Hashes for mypy_boto3_servicecatalog-1.14.23.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcfc411ffcf217f47f4cedbda15e7c62e5586f80edca73c0dcb7692b035e88b3 |
|
MD5 | 8440bf9a24bce4d4a3e90928c4134fe3 |
|
BLAKE2b-256 | b6a7ffb35668c7e946bc2a0aa76f69fd400a2749c599f54a2b7933dcf3e48c01 |