Skip to content

BillingConductorClient#

Index > BillingConductor > BillingConductorClient

Auto-generated documentation for BillingConductor type annotations stubs module mypy-boto3-billingconductor.

BillingConductorClient#

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

# BillingConductorClient usage example

from boto3.session import Session
from mypy_boto3_billingconductor.client import BillingConductorClient

def get_billingconductor_client() -> BillingConductorClient:
    return Session().client("billingconductor")

Exceptions#

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

# Exceptions.exceptions usage example

client = boto3.client("billingconductor")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.InternalServerException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServiceLimitExceededException,
    client.exceptions.ThrottlingException,
    client.exceptions.ValidationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_billingconductor.client import Exceptions

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

Methods#

associate_accounts#

Connects an array of account IDs in a consolidated billing family to a predefined billing group.

Type annotations and code completion for boto3.client("billingconductor").associate_accounts method. boto3 documentation

# associate_accounts method definition

def associate_accounts(
    self,
    *,
    Arn: str,
    AccountIds: Sequence[str],
) -> AssociateAccountsOutputTypeDef:  # (1)
    ...
  1. See AssociateAccountsOutputTypeDef
# associate_accounts method usage example with argument unpacking

kwargs: AssociateAccountsInputRequestTypeDef = {  # (1)
    "Arn": ...,
    "AccountIds": ...,
}

parent.associate_accounts(**kwargs)
  1. See AssociateAccountsInputRequestTypeDef

associate_pricing_rules#

Connects an array of PricingRuleArns to a defined PricingPlan.

Type annotations and code completion for boto3.client("billingconductor").associate_pricing_rules method. boto3 documentation

# associate_pricing_rules method definition

def associate_pricing_rules(
    self,
    *,
    Arn: str,
    PricingRuleArns: Sequence[str],
) -> AssociatePricingRulesOutputTypeDef:  # (1)
    ...
  1. See AssociatePricingRulesOutputTypeDef
# associate_pricing_rules method usage example with argument unpacking

kwargs: AssociatePricingRulesInputRequestTypeDef = {  # (1)
    "Arn": ...,
    "PricingRuleArns": ...,
}

parent.associate_pricing_rules(**kwargs)
  1. See AssociatePricingRulesInputRequestTypeDef

batch_associate_resources_to_custom_line_item#

Associates a batch of resources to a percentage custom line item.

Type annotations and code completion for boto3.client("billingconductor").batch_associate_resources_to_custom_line_item method. boto3 documentation

# batch_associate_resources_to_custom_line_item method definition

def batch_associate_resources_to_custom_line_item(
    self,
    *,
    TargetArn: str,
    ResourceArns: Sequence[str],
    BillingPeriodRange: CustomLineItemBillingPeriodRangeTypeDef = ...,  # (1)
) -> BatchAssociateResourcesToCustomLineItemOutputTypeDef:  # (2)
    ...
  1. See CustomLineItemBillingPeriodRangeTypeDef
  2. See BatchAssociateResourcesToCustomLineItemOutputTypeDef
# batch_associate_resources_to_custom_line_item method usage example with argument unpacking

kwargs: BatchAssociateResourcesToCustomLineItemInputRequestTypeDef = {  # (1)
    "TargetArn": ...,
    "ResourceArns": ...,
}

parent.batch_associate_resources_to_custom_line_item(**kwargs)
  1. See BatchAssociateResourcesToCustomLineItemInputRequestTypeDef

batch_disassociate_resources_from_custom_line_item#

Disassociates a batch of resources from a percentage custom line item.

Type annotations and code completion for boto3.client("billingconductor").batch_disassociate_resources_from_custom_line_item method. boto3 documentation

# batch_disassociate_resources_from_custom_line_item method definition

def batch_disassociate_resources_from_custom_line_item(
    self,
    *,
    TargetArn: str,
    ResourceArns: Sequence[str],
    BillingPeriodRange: CustomLineItemBillingPeriodRangeTypeDef = ...,  # (1)
) -> BatchDisassociateResourcesFromCustomLineItemOutputTypeDef:  # (2)
    ...
  1. See CustomLineItemBillingPeriodRangeTypeDef
  2. See BatchDisassociateResourcesFromCustomLineItemOutputTypeDef
# batch_disassociate_resources_from_custom_line_item method usage example with argument unpacking

kwargs: BatchDisassociateResourcesFromCustomLineItemInputRequestTypeDef = {  # (1)
    "TargetArn": ...,
    "ResourceArns": ...,
}

parent.batch_disassociate_resources_from_custom_line_item(**kwargs)
  1. See BatchDisassociateResourcesFromCustomLineItemInputRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("billingconductor").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("billingconductor").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

create_billing_group#

Creates a billing group that resembles a consolidated billing family that Amazon Web Services charges, based off of the predefined pricing plan computation.

Type annotations and code completion for boto3.client("billing