Skip to content

TaxSettingsClient#

Index > TaxSettings > TaxSettingsClient

Auto-generated documentation for TaxSettings type annotations stubs module mypy-boto3-taxsettings.

TaxSettingsClient#

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

# TaxSettingsClient usage example

from boto3.session import Session
from mypy_boto3_taxsettings.client import TaxSettingsClient

def get_taxsettings_client() -> TaxSettingsClient:
    return Session().client("taxsettings")

Exceptions#

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

# Exceptions.exceptions usage example

client = boto3.client("taxsettings")

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

from mypy_boto3_taxsettings.client import Exceptions

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

Methods#

batch_delete_tax_registration#

Deletes tax registration for multiple accounts in batch.

Type annotations and code completion for boto3.client("taxsettings").batch_delete_tax_registration method. boto3 documentation

# batch_delete_tax_registration method definition

def batch_delete_tax_registration(
    self,
    *,
    accountIds: Sequence[str],
) -> BatchDeleteTaxRegistrationResponseTypeDef:  # (1)
    ...
  1. See BatchDeleteTaxRegistrationResponseTypeDef
# batch_delete_tax_registration method usage example with argument unpacking

kwargs: BatchDeleteTaxRegistrationRequestRequestTypeDef = {  # (1)
    "accountIds": ...,
}

parent.batch_delete_tax_registration(**kwargs)
  1. See BatchDeleteTaxRegistrationRequestRequestTypeDef

batch_put_tax_registration#

Adds or updates tax registration for multiple accounts in batch.

Type annotations and code completion for boto3.client("taxsettings").batch_put_tax_registration method. boto3 documentation

# batch_put_tax_registration method definition

def batch_put_tax_registration(
    self,
    *,
    accountIds: Sequence[str],
    taxRegistrationEntry: TaxRegistrationEntryTypeDef,  # (1)
) -> BatchPutTaxRegistrationResponseTypeDef:  # (2)
    ...
  1. See TaxRegistrationEntryTypeDef
  2. See BatchPutTaxRegistrationResponseTypeDef
# batch_put_tax_registration method usage example with argument unpacking

kwargs: BatchPutTaxRegistrationRequestRequestTypeDef = {  # (1)
    "accountIds": ...,
    "taxRegistrationEntry": ...,
}

parent.batch_put_tax_registration(**kwargs)
  1. See BatchPutTaxRegistrationRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("taxsettings").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("taxsettings").close method. boto3 documentation

# close method definition

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

delete_tax_registration#

Deletes tax registration for a single account.

Type annotations and code completion for boto3.client("taxsettings").delete_tax_registration method. boto3 documentation

# delete_tax_registration method definition

def delete_tax_registration(
    self,
    *,
    accountId: str = ...,
) -> Dict[str, Any]:
    ...
# delete_tax_registration method usage example with argument unpacking

kwargs: DeleteTaxRegistrationRequestRequestTypeDef = {  # (1)
    "accountId": ...,
}

parent.delete_tax_registration(**kwargs)
  1. See DeleteTaxRegistrationRequestRequestTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("taxsettings").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:
    ...

get_tax_registration#

Retrieves tax registration for a single account.

Type annotations and code completion for boto3.client("taxsettings").get_tax_registration method. boto3 documentation

# get_tax_registration method definition

def get_tax_registration(
    self,
    *,
    accountId: str = ...,
) -> GetTaxRegistrationResponseTypeDef:  # (1)
    ...
  1. See GetTaxRegistrationResponseTypeDef
# get_tax_registration method usage example with argument unpacking

kwargs: GetTaxRegistrationRequestRequestTypeDef = {  # (1)
    "accountId": ...,
}

parent.get_tax_registration(**kwargs)
  1. See GetTaxRegistrationRequestRequestTypeDef

get_tax_registration_document#

Downloads your tax documents to the Amazon S3 bucket that you specify in your request.

Type annotations and code completion for boto3.client("taxsettings").get_tax_registration_document method. boto3 documentation

# get_tax_registration_document method definition

def get_tax_registration_document(
    self,
    *,
    destinationS3Location: DestinationS3LocationTypeDef,  # (1)
    taxDocumentMetadata: TaxDocumentMetadataTypeDef,  # (2)
) -> GetTaxRegistrationDocumentResponseTypeDef:  # (3)
    ...
  1. See DestinationS3LocationTypeDef
  2. See TaxDocumentMetadataTypeDef
  3. See GetTaxRegistrationDocumentResponseTypeDef
# get_tax_registration_document method usage example with argument unpacking

kwargs: GetTaxRegistrationDocumentRequestRequestTypeDef = {  # (1)
    "destinationS3Location": ...,
    "taxDocumentMetadata": ...,
}

parent.get_tax_registration_document(**kwargs)
  1. See GetTaxRegistrationDocumentRequestRequestTypeDef

list_tax_registrations#

Retrieves the tax registration of accounts listed in a consolidated billing family.

Type annotations and code completion for boto3.client("taxsettings").list_tax_registrations method. boto3 documentation

# list_tax_registrations method definition

def list_tax_registrations(
    self,
    *,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListTaxRegistrationsResponseTypeDef:  # (1)
    ...
  1. See