AccountClient#
Auto-generated documentation for Account type annotations stubs module types-aiobotocore-account.
AccountClient#
Type annotations and code completion for session.create_client("account")
boto3 documentation
AccountClient usage example
from aiobotocore.session import get_session
from types_aiobotocore_account.client import AccountClient
session = get_session()
async with session.create_client("account") as client:
client: AccountClient
Exceptions#
aiobotocore
client exceptions are generated in runtime.
This class provides code completion for session.create_client("account").exceptions
structure.
AccountClient.exceptions usage example
async with session.create_client("account") as client:
try:
do_something(client)
except (
client.AccessDeniedException,
client.ClientError,
client.ConflictException,
client.InternalServerException,
client.ResourceNotFoundException,
client.TooManyRequestsException,
client.ValidationException,
) as e:
print(e)
AccountClient usage 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.create_client("account").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 session.create_client("account").close
method.
boto3 documentation
# close 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.create_client("account").delete_alternate_contact
method.
boto3 documentation
# delete_alternate_contact method definition
await def delete_alternate_contact(
self,
*,
AlternateContactType: AlternateContactTypeType, # (1)
AccountId: str = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
# delete_alternate_contact method usage example with argument unpacking
kwargs: DeleteAlternateContactRequestRequestTypeDef = { # (1)
"AlternateContactType": ...,
}
parent.delete_alternate_contact(**kwargs)
disable_region#
Disables (opts-out) a particular Region for an account.
Type annotations and code completion for session.create_client("account").disable_region
method.
boto3 documentation
# disable_region method definition
await def disable_region(
self,
*,
RegionName: str,
AccountId: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# disable_region method usage example with argument unpacking
kwargs: DisableRegionRequestRequestTypeDef = { # (1)
"RegionName": ...,
}
parent.disable_region(**kwargs)
enable_region#
Enables (opts-in) a particular Region for an account.
Type annotations and code completion for session.create_client("account").enable_region
method.
boto3 documentation
# enable_region method definition
await def enable_region(
self,
*,
RegionName: str,
AccountId: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# enable_region method usage example with argument unpacking
kwargs: EnableRegionRequestRequestTypeDef = { # (1)
"RegionName": ...,
}
parent.enable_region(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.create_client("account").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url 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.create_client("account").get_alternate_contact
method.
boto3 documentation
# get_alternate_contact method definition
await def get_alternate_contact(
self,
*,
AlternateContactType: AlternateContactTypeType, # (1)
AccountId: str = ...,
) -> GetAlternateContactResponseTypeDef: # (2)
...
# get_alternate_contact method usage example with argument unpacking
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.create_client("account").get_contact_information
method.
boto3 documentation
# get_contact_information method definition
await def get_contact_information(
self,
*,
AccountId: str = ...,
) -> GetContactInformationResponseTypeDef: # (1)
...
# get_contact_information method usage example with argument unpacking
kwargs: GetContactInformationRequestRequestTypeDef = { # (1)
"AccountId": ...,
}
parent.get_contact_information(**kwargs)
get_region_opt_status#
Retrieves the opt-in status of a particular Region.
Type annotations and code completion for session.create_client("account").get_region_opt_status
method.
boto3 documentation
# get_region_opt_status method definition
await def get_region_opt_status(
self,
*,
RegionName: str,
AccountId: str = ...,
) -> GetRegionOptStatusResponseTypeDef: # (1)
...
# get_region_opt_status method usage example with argument unpacking
kwargs: GetRegionOptStatusRequestRequestTypeDef = { # (1)
"RegionName": ...,
}
parent.get_region_opt_status(**kwargs)
list_regions#
Lists all the Regions for a given account and their respective opt-in statuses.
Type annotations and code completion for session.create_client("account").list_regions
method.
boto3 documentation
# list_regions method definition
await def list_regions(
self,
*,
AccountId: str = ...,
MaxResults: int = ...,
NextToken: str = ...,
RegionOptStatusContains: Sequence[RegionOptStatusType] = ..., # (1)
) -> ListRegionsResponseTypeDef: # (2)
...
# list_regions method usage example with argument unpacking
kwargs: ListRegionsRequestRequestTypeDef = { # (1)
"AccountId": ...,
}
parent.list_regions(**kwargs)
put_alternate_contact#
Modifies the specified alternate contact attached to an Amazon Web Services account.
Type annotations and code completion for session.create_client("account").put_alternate_contact
method.
boto3 documentation
# put_alternate_contact method definition
await def put_alternate_contact(
self,
*,
AlternateContactType: AlternateContactTypeType, # (1)
EmailAddress: str,
Name: str,
PhoneNumber: str,
Title: str,
AccountId: str = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
# put_alternate_contact method usage example with argument unpacking
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.create_client("account").put_contact_information
method.
boto3 documentation
# put_contact_information method definition
await def put_contact_information(
self,
*,
ContactInformation: ContactInformationTypeDef, # (1)
AccountId: str = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
# put_contact_information method usage example with argument unpacking
kwargs: PutContactInformationRequestRequestTypeDef = { # (1)
"ContactInformation": ...,
}
parent.put_contact_information(**kwargs)
__aenter__#
Type annotations and code completion for session.create_client("account").__aenter__
method.
boto3 documentation
# __aenter__ method definition
await def __aenter__(
self,
) -> AccountClient:
...
__aexit__#
Type annotations and code completion for session.create_client("account").__aexit__
method.
boto3 documentation
# __aexit__ method definition
await def __aexit__(
self,
exc_type: Any,
exc_val: Any,
exc_tb: Any,
) -> Any:
...
get_paginator#
Type annotations and code completion for session.create_client("account").get_paginator
method with overloads.
client.get_paginator("list_regions")
-> ListRegionsPaginator