Type annotations for boto3.ServiceCatalog 1.14.38 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-servicecatalog
Type annotations for boto3.ServiceCatalog 1.14.38 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.38.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29456b5617c5e61cadb74310ea7c974dfd7557131cc2ba96a2f83418e0119b04 |
|
MD5 | cfdac47111bc0afc4d120e8269601f65 |
|
BLAKE2b-256 | 4971fff2d15875db112acbb7bc934d9c265267c71687484f034ba8981ccfb9ba |
Hashes for mypy_boto3_servicecatalog-1.14.38.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a63fdc6d6c302af915d64ed0c0d309f0e8e79ce7e22fe088d29323fe49722a4 |
|
MD5 | e833fba41af2f3ca5af9cbe72c9e1b66 |
|
BLAKE2b-256 | b8369c80107be1429cfae92c309c623977bde11ab0ee10f9d701cc71b91afe65 |