organization_admin_account#

Exec module for managing Guardduty org admins.

async idem_aws.exec.aws.guardduty.organization_admin_account.list_(hub, ctx, name: str = None) Dict[source]#

List AWS Guardduty organization admin accounts.

Fetch a list of organization admin accounts for AWS Guardduty. The function returns empty list when no resource is found. Only the organization’s management account can run this API operation.

Parameters:

name (str, Optional) – The name of the Idem state.

Returns:

Returns organization admin accounts in present format

Return type:

Dict[str, Any]

Examples

Calling this exec module function from the cli

idem exec aws.guardduty.organization_admin_account.list name="list org admins"

Using in a state:

my_unmanaged_resources:
  exec.run:
    - path: aws.guardduty.organization_admin_account.list
    - kwargs:
        name: my_resources