organization_delegated_admins
Creates, updates, deletes, gets or lists an organization_delegated_admins resource.
Overview
| Name | organization_delegated_admins |
| Type | Resource |
| Id | aws.cloudtrail.organization_delegated_admins |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
register_organization_delegated_admin | insert | region, MemberAccountId | Registers an organization’s member account as the CloudTrail delegated administrator. | |
deregister_organization_delegated_admin | delete | region | Removes CloudTrail delegated administrator permissions from a member account in an organization. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
INSERT examples
- register_organization_delegated_admin
- Manifest
Registers an organization’s member account as the CloudTrail delegated administrator.
INSERT INTO aws.cloudtrail.organization_delegated_admins (
MemberAccountId,
region
)
SELECT
'{{ MemberAccountId }}' /* required */,
'{{ region }}'
;
# Description fields are for documentation purposes
- name: organization_delegated_admins
props:
- name: region
value: "{{ region }}"
description: Required parameter for the organization_delegated_admins resource.
- name: MemberAccountId
value: "{{ MemberAccountId }}"
description: |
An organization member account ID that you want to designate as a delegated administrator.
DELETE examples
- deregister_organization_delegated_admin
Removes CloudTrail delegated administrator permissions from a member account in an organization.
DELETE FROM aws.cloudtrail.organization_delegated_admins
WHERE region = '{{ region }}' --required
;