Skip to content

InvoicingClient#

Index > Invoicing > InvoicingClient

Auto-generated documentation for Invoicing type annotations stubs module types-boto3-invoicing.

InvoicingClient#

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

# InvoicingClient usage example

from boto3.session import Session
from types_boto3_invoicing.client import InvoicingClient

def get_invoicing_client() -> InvoicingClient:
    return Session().client("invoicing")

Exceptions#

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

# Exceptions.exceptions usage example

client = boto3.client("invoicing")

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

from types_boto3_invoicing.client import Exceptions

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

Methods#

can_paginate#

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

# can_paginate method definition

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

generate_presigned_url#

Type annotations and code completion for boto3.client("invoicing").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

batch_get_invoice_profile#

This gets the invoice profile associated with a set of accounts.

Type annotations and code completion for boto3.client("invoicing").batch_get_invoice_profile method. boto3 documentation

# batch_get_invoice_profile method definition

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

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

parent.batch_get_invoice_profile(**kwargs)
  1. See BatchGetInvoiceProfileRequestRequestTypeDef

create_invoice_unit#

This creates a new invoice unit with the provided definition.

Type annotations and code completion for boto3.client("invoicing").create_invoice_unit method. boto3 documentation

# create_invoice_unit method definition

def create_invoice_unit(
    self,
    *,
    Name: str,
    InvoiceReceiver: str,
    Rule: InvoiceUnitRuleTypeDef,  # (1)
    Description: str = ...,
    TaxInheritanceDisabled: bool = ...,
    ResourceTags: Sequence[ResourceTagTypeDef] = ...,  # (2)
) -> CreateInvoiceUnitResponseTypeDef:  # (3)
    ...
  1. See InvoiceUnitRuleTypeDef
  2. See ResourceTagTypeDef
  3. See CreateInvoiceUnitResponseTypeDef
# create_invoice_unit method usage example with argument unpacking

kwargs: CreateInvoiceUnitRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "InvoiceReceiver": ...,
    "Rule": ...,
}

parent.create_invoice_unit(**kwargs)
  1. See CreateInvoiceUnitRequestRequestTypeDef

delete_invoice_unit#

This deletes an invoice unit with the provided invoice unit ARN.

Type annotations and code completion for boto3.client("invoicing").delete_invoice_unit method. boto3 documentation

# delete_invoice_unit method definition

def delete_invoice_unit(
    self,
    *,
    InvoiceUnitArn: str,
) -> DeleteInvoiceUnitResponseTypeDef:  # (1)
    ...
  1. See DeleteInvoiceUnitResponseTypeDef
# delete_invoice_unit method usage example with argument unpacking

kwargs: DeleteInvoiceUnitRequestRequestTypeDef = {  # (1)
    "InvoiceUnitArn": ...,
}

parent.delete_invoice_unit(**kwargs)
  1. See DeleteInvoiceUnitRequestRequestTypeDef

get_invoice_unit#

This retrieves the invoice unit definition.

Type annotations and code completion for boto3.client("invoicing").get_invoice_unit method. boto3 documentation

# get_invoice_unit method definition

def get_invoice_unit(
    self,
    *,
    InvoiceUnitArn: str,
    AsOf: TimestampTypeDef = ...,
) -> GetInvoiceUnitResponseTypeDef:  # (1)
    ...
  1. See GetInvoiceUnitResponseTypeDef
# get_invoice_unit method usage example with argument unpacking

kwargs: GetInvoiceUnitRequestRequestTypeDef = {  # (1)
    "InvoiceUnitArn": ...,
}

parent.get_invoice_unit(**kwargs)
  1. See GetInvoiceUnitRequestRequestTypeDef

list_invoice_units#

This fetches a list of all invoice unit definitions for a given account, as of the provided AsOf date.

Type annotations and code completion for boto3.client("invoicing").list_invoice_units method. boto3 documentation

# list_invoice_units method definition

def list_invoice_units(
    self,
    *,
    Filters: FiltersTypeDef = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
    AsOf: TimestampTypeDef = ...,
) -> ListInvoiceUnitsResponseTypeDef:  # (2)
    ...
  1. See FiltersTypeDef
  2. See ListInvoiceUnitsResponseTypeDef
# list_invoice_units method usage example with argument unpacking

kwargs: ListInvoiceUnitsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.list_invoice_units(**kwargs)
  1. See ListInvoiceUnitsRequestRequestTypeDef

list_tags_for_resource#

Lists the tags for a resource.

Type annotations and code completion for boto3.client("invoicing").list_tags_for_resource method. boto3 documentation

# list_tags_for_resource method definition

def list_tags_for_resource(
    self,
    *,
    ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
# list_tags_for_resource method usage example with argument unpacking

kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

tag_resource#

Adds a tag to a resource.

Type annotations and code completion for boto3.client("invoicing").tag_resource method. boto3 documentation

# tag_resource method definition

def tag_resource(
    self,
    *,
    ResourceArn: str,
    ResourceTags: Sequence[ResourceTagTypeDef],  # (1)
) -> dict[str, Any]:
    ...
  1. See ResourceTagTypeDef
# tag_resource method usage example with argument unpacking

kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "ResourceTags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource#

Removes a tag from a resource.

Type annotations and code completion for boto3.client("invoicing").untag_resource method. boto3 documentation

# untag_resource method definition

def untag_resource(
    self,
    *,
    ResourceArn: str,
    ResourceTagKeys: Sequence[str],
) -> dict[str, Any]:
    ...
# untag_resource method usage example with argument unpacking

kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "ResourceTagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

update_invoice_unit#

You can update the invoice unit configuration at any time, and Amazon Web Services will use the latest configuration at the end of the month.

Type annotations and code completion for boto3.client("invoicing").update_invoice_unit method. boto3 documentation

# update_invoice_unit method definition

def update_invoice_unit(
    self,
    *,
    InvoiceUnitArn: str,
    Description: str = ...,
    TaxInheritanceDisabled: bool = ...,
    Rule: InvoiceUnitRuleTypeDef = ...,  # (1)
) -> UpdateInvoiceUnitResponseTypeDef:  # (2)
    ...
  1. See InvoiceUnitRuleTypeDef
  2. See UpdateInvoiceUnitResponseTypeDef
# update_invoice_unit method usage example with argument unpacking

kwargs: UpdateInvoiceUnitRequestRequestTypeDef = {  # (1)
    "InvoiceUnitArn": ...,
}

parent.update_invoice_unit(**kwargs)
  1. See UpdateInvoiceUnitRequestRequestTypeDef

get_paginator#

Type annotations and code completion for boto3.client("invoicing").get_paginator method with overloads.