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
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.
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)
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
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("account").close
method.
boto3 documentation
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
await def delete_alternate_contact(
self,
*,
AlternateContactType: AlternateContactTypeType, # (1)
AccountId: str = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
kwargs: DeleteAlternateContactRequestRequestTypeDef = { # (1)
"AlternateContactType": ...,
}
parent.delete_alternate_contact(**kwargs)
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
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
await def get_alternate_contact(
self,
*,
AlternateContactType: AlternateContactTypeType, # (1)
AccountId: str = ...,
) -> GetAlternateContactResponseTypeDef: # (2)
...
kwargs: GetAlternateContactRequestRequestTypeDef = { # (1)
"AlternateContactType": ...,
}
parent.get_alternate_contact(**kwargs)
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
await def get_contact_information(
self,
*,
AccountId: str = ...,
) -> GetContactInformationResponseTypeDef: # (1)
...
kwargs: GetContactInformationRequestRequestTypeDef = { # (1)
"AccountId": ...,
}
parent.get_contact_information(**kwargs)
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
await def put_alternate_contact(
self,
*,
AlternateContactType: AlternateContactTypeType, # (1)
EmailAddress: str,
Name: str,
PhoneNumber: str,
Title: str,
AccountId: str = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
kwargs: PutAlternateContactRequestRequestTypeDef = { # (1)
"AlternateContactType": ...,
"EmailAddress": ...,
"Name": ...,
"PhoneNumber": ...,
"Title": ...,
}
parent.put_alternate_contact(**kwargs)
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
await def put_contact_information(
self,
*,
ContactInformation: ContactInformationTypeDef, # (1)
AccountId: str = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
kwargs: PutContactInformationRequestRequestTypeDef = { # (1)
"ContactInformation": ...,
}
parent.put_contact_information(**kwargs)
__aenter__
Type annotations and code completion for session.client("account").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("account").__aexit__
method.
boto3 documentation