Skip to content

yggdrasil.aws.account

account

AWS account resource + service (folder module: resource in resource.py, service in service.py).

AWSAccount

AWSAccount(service: Optional[AWSService] = None, **kwargs: Any)

Bases: AWSResource

The AWS account a client authenticates as.

AWSClient.current().account AWSAccount(URL('https://us-east-1.console.aws.amazon.com/console/home?region=us-east-1')) AWSClient.current().account.account_id '123456789012'

explore_url property

explore_url: URL

AWS Console home for this account, pinned to its region.

caller_identity

caller_identity() -> dict

STS GetCallerIdentity — account, ARN, and user id of the caller.

AccountService

AccountService(client: Optional[AWSClient] = None)

Bases: AWSService

AWS account/identity service — STS-backed (GetCallerIdentity).