Skip to content

AccountClient

Index > Account > AccountClient

Auto-generated documentation for Account type annotations stubs module types-aiobotocore-account.

AccountClient

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

Usage example
from aioboto3.session import Session
from types_aiobotocore_account.client import AccountClient

session = Session()
async with session.client("account") as client:
    client: AccountClient

Exceptions

aioboto3 client exceptions are generated in runtime. This class provides code completion for session.client("account").exceptions structure.

Usage example
async with session.client("account") as client:
    try:
        do_something(client)
    except (
            client.AccessDeniedException,
        client.ClientError,
        client.InternalServerException,
        client.ResourceNotFoundException,
        client.TooManyRequestsException,
        client.ValidationException,
    ) as e:
        print(e)
Type checking example
from types_aiobotocore_account.client import Exceptions

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

Methods

can_paginate

Check if an operation can be paginated.

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

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

close

Closes underlying endpoint connections.

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

Method definition
await def close(
    self,
) -> None:
    ...

delete_alternate_contact

Deletes the specified alternate contact from an Amazon Web Services account.

Type annotations and code completion for session.client("account").delete_alternate_contact method. boto3 documentation

Method definition
await def delete_alternate_contact(
    self,
    *,
    AlternateContactType: AlternateContactTypeType,  # (1)
    AccountId: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See AlternateContactTypeType
  2. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteAlternateContactRequestRequestTypeDef = {  # (1)
    "AlternateContactType": ...,
}

parent.delete_alternate_contact(**kwargs)
  1. See DeleteAlternateContactRequestRequestTypeDef

generate_presigned_url

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

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

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

get_alternate_contact

Retrieves the specified alternate contact attached to an Amazon Web Services account.

Type annotations and code completion for session.client("account").get_alternate_contact method. boto3 documentation

Method definition
await def get_alternate_contact(
    self,
    *,
    AlternateContactType: AlternateContactTypeType,  # (1)
    AccountId: str = ...,
) -> GetAlternateContactResponseTypeDef:  # (2)
    ...
  1. See AlternateContactTypeType
  2. See GetAlternateContactResponseTypeDef
Usage example with kwargs
kwargs: GetAlternateContactRequestRequestTypeDef = {  # (1)
    "AlternateContactType": ...,
}

parent.get_alternate_contact(**kwargs)
  1. See GetAlternateContactRequestRequestTypeDef

get_contact_information

Retrieves the primary contact information of an Amazon Web Services account.

Type annotations and code completion for session.client("account").get_contact_information method. boto3 documentation

Method definition
await def get_contact_information(
    self,
    *,
    AccountId: str = ...,
) -> GetContactInformationResponseTypeDef:  # (1)
    ...
  1. See GetContactInformationResponseTypeDef
Usage example with kwargs
kwargs: GetContactInformationRequestRequestTypeDef = {  # (1)
    "AccountId": ...,
}

parent.get_contact_information(**kwargs)
  1. See GetContactInformationRequestRequestTypeDef

put_alternate_contact

Modifies the specified alternate contact attached to an Amazon Web Services account.

Type annotations and code completion for session.client("account").put_alternate_contact method. boto3 documentation

Method definition
await def put_alternate_contact(
    self,
    *,
    AlternateContactType: AlternateContactTypeType,  # (1)
    EmailAddress: str,
    Name: str,
    PhoneNumber: str,
    Title: str,
    AccountId: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See AlternateContactTypeType
  2. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: PutAlternateContactRequestRequestTypeDef = {  # (1)
    "AlternateContactType": ...,
    "EmailAddress": ...,
    "Name": ...,
    "PhoneNumber": ...,
    "Title": ...,
}

parent.put_alternate_contact(**kwargs)
  1. See PutAlternateContactRequestRequestTypeDef

put_contact_information

Updates the primary contact information of an Amazon Web Services account.

Type annotations and code completion for session.client("account").put_contact_information method. boto3 documentation

Method definition
await def put_contact_information(
    self,
    *,
    ContactInformation: ContactInformationTypeDef,  # (1)
    AccountId: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See ContactInformationTypeDef
  2. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: PutContactInformationRequestRequestTypeDef = {  # (1)
    "ContactInformation": ...,
}

parent.put_contact_information(**kwargs)
  1. See PutContactInformationRequestRequestTypeDef

__aenter__

Type annotations and code completion for session.client("account").__aenter__ method. boto3 documentation

Method definition
await def __aenter__(
    self,
) -> AccountClient:
    ...

__aexit__

Type annotations and code completion for session.client("account").__aexit__ method. boto3 documentation

Method definition
await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...