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("billingconductor").create_billing_group method. boto3 documentation

# create_billing_group method definition

def create_billing_group(
    self,
    *,
    Name: str,
    AccountGrouping: AccountGroupingTypeDef,  # (1)
    ComputationPreference: ComputationPreferenceTypeDef,  # (2)
    ClientToken: str = ...,
    PrimaryAccountId: str = ...,
    Description: str = ...,
    Tags: Mapping[str, str] = ...,
) -> CreateBillingGroupOutputTypeDef:  # (3)
    ...
  1. See AccountGroupingTypeDef
  2. See ComputationPreferenceTypeDef
  3. See CreateBillingGroupOutputTypeDef
# create_billing_group method usage example with argument unpacking

kwargs: CreateBillingGroupInputRequestTypeDef = {  # (1)
    "Name": ...,
    "AccountGrouping": ...,
    "ComputationPreference": ...,
}

parent.create_billing_group(**kwargs)
  1. See CreateBillingGroupInputRequestTypeDef

create_custom_line_item#

Creates a custom line item that can be used to create a one-time fixed charge that can be applied to a single billing group for the current or previous billing period.

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

# create_custom_line_item method definition

def create_custom_line_item(
    self,
    *,
    Name: str,
    Description: str,
    BillingGroupArn: str,
    ChargeDetails: CustomLineItemChargeDetailsTypeDef,  # (1)
    ClientToken: str = ...,
    BillingPeriodRange: CustomLineItemBillingPeriodRangeTypeDef = ...,  # (2)
    Tags: Mapping[str, str] = ...,
    AccountId: str = ...,
) -> CreateCustomLineItemOutputTypeDef:  # (3)
    ...
  1. See CustomLineItemChargeDetailsTypeDef
  2. See CustomLineItemBillingPeriodRangeTypeDef
  3. See CreateCustomLineItemOutputTypeDef
# create_custom_line_item method usage example with argument unpacking

kwargs: CreateCustomLineItemInputRequestTypeDef = {  # (1)
    "Name": ...,
    "Description": ...,
    "BillingGroupArn": ...,
    "ChargeDetails": ...,
}

parent.create_custom_line_item(**kwargs)
  1. See CreateCustomLineItemInputRequestTypeDef

create_pricing_plan#

Creates a pricing plan that is used for computing Amazon Web Services charges for billing groups.

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

# create_pricing_plan method definition

def create_pricing_plan(
    self,
    *,
    Name: str,
    ClientToken: str = ...,
    Description: str = ...,
    PricingRuleArns: Sequence[str] = ...,
    Tags: Mapping[str, str] = ...,
) -> CreatePricingPlanOutputTypeDef:  # (1)
    ...
  1. See CreatePricingPlanOutputTypeDef
# create_pricing_plan method usage example with argument unpacking

kwargs: CreatePricingPlanInputRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.create_pricing_plan(**kwargs)
  1. See CreatePricingPlanInputRequestTypeDef

create_pricing_rule#

Creates a pricing rule can be associated to a pricing plan, or a set of pricing plans.

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

# create_pricing_rule method definition

def create_pricing_rule(
    self,
    *,
    Name: str,
    Scope: PricingRuleScopeType,  # (1)
    Type: PricingRuleTypeType,  # (2)
    ClientToken: str = ...,
    Description: str = ...,
    ModifierPercentage: float = ...,
    Service: str = ...,
    Tags: Mapping[str, str] = ...,
    BillingEntity: str = ...,
    Tiering: CreateTieringInputTypeDef = ...,  # (3)
    UsageType: str = ...,
    Operation: str = ...,
) -> CreatePricingRuleOutputTypeDef:  # (4)
    ...
  1. See