Skip to content

AccountClient

Index > Account > AccountClient

Auto-generated documentation for Account type annotations stubs module mypy-boto3-account.

AccountClient

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

Usage example
from boto3.session import Session
from mypy_boto3_account.client import AccountClient

def get_account_client() -> AccountClient:
    return Session().client("account")

Exceptions

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

Usage example
client = boto3.client("account")

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 mypy_boto3_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 boto3.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 boto3.client("account").close method. boto3 documentation

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

delete_alternate_contact

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

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

Method definition
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 boto3.client("account").generate_presigned_url method. boto3 documentation

Method definition
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 boto3.client("account").get_alternate_contact method. boto3 documentation

Method definition
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 boto3.client("account").get_contact_information method. boto3 documentation

Method definition
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 boto3.client("account").put_alternate_contact method. boto3 documentation

Method definition
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 boto3.client("account").put_contact_information method. boto3 documentation

Method definition
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