Skip to content

Examples#

Index > BillingandCostManagementPricingCalculator > Examples

Auto-generated documentation for BillingandCostManagementPricingCalculator type annotations stubs module mypy-boto3-bcm-pricing-calculator.

Client#

Implicit type annotations#

Can be used with boto3-stubs[bcm-pricing-calculator] package installed.

Write your BillingandCostManagementPricingCalculator code as usual, type checking and code completion should work out of the box.

# BillingandCostManagementPricingCalculatorClient usage example

from boto3.session import Session


session = Session()

client = session.client("bcm-pricing-calculator")  # (1)
result = client.batch_create_bill_scenario_commitment_modification()  # (2)
  1. client: BillingandCostManagementPricingCalculatorClient
  2. result: BatchCreateBillScenarioCommitmentModificationResponseTypeDef
# ListBillEstimateCommitmentsPaginator usage example

from boto3.session import Session


session = Session()
client = session.client("bcm-pricing-calculator")  # (1)

paginator = client.get_paginator("list_bill_estimate_commitments")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: BillingandCostManagementPricingCalculatorClient
  2. paginator: ListBillEstimateCommitmentsPaginator
  3. item: ListBillEstimateCommitmentsResponseTypeDef

Explicit type annotations#

With boto3-stubs-lite[bcm-pricing-calculator] or a standalone mypy_boto3_bcm_pricing_calculator package, you have to explicitly specify client: BillingandCostManagementPricingCalculatorClient type annotation.

All other type annotations are optional, as types should be discovered automatically. However,