account#
Exec module for managing organization accounts.
- async idem_aws.exec.aws.organizations.account.get(hub, ctx, resource_id: str, name: str = None) Dict[str, Any] [source]#
Get info about AWS Organizations account based on resource_id.
- Parameters:
- Returns:
Returns account in present format
- Return type:
Dict[str, Any]
Examples
Calling this exec module function from the cli
idem exec aws.organizations.account.get name="get account" resource_id="account_id"
Using in a state:
my_unmanaged_resources: exec.run: - path: aws.organizations.account.get - kwargs: name: "get account info" resource_id: "257230699585"
- async idem_aws.exec.aws.organizations.account.list_(hub, ctx, name: str = None) Dict[str, Any] [source]#
List AWS accounts in an organization.
- Parameters:
name (str, Optional) – Name of the Idem state.
- Returns:
Returns organization accounts in present format
- Return type:
Dict[str, Any]
Examples
Calling this exec module function from the cli
idem exec aws.organizations.account.list name="list accounts"
Using in a state:
my_unmanaged_resources: exec.run: - path: aws.organizations.account.list - kwargs: name: my_accounts