cross_account_resource_accounts
Creates, updates, deletes, gets or lists a cross_account_resource_accounts resource.
Overview
| Name | cross_account_resource_accounts |
| Type | Resource |
| Id | aws.globalaccelerator.cross_account_resource_accounts |
Fields
The following fields are returned by SELECT queries:
- list_cross_account_resource_accounts
| Name | Datatype | Description |
|---|---|---|
resource_owner_aws_account_id | string | The account IDs of principals (resource owners) in a cross-account attachment who can work with resources listed in the same attachment. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_cross_account_resource_accounts | select | region | List the accounts that have cross-account resources. For more information, see Working with cross-account attachments and resources in Global Accelerator in the Global Accelerator Developer Guide. |
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) |
SELECT examples
- list_cross_account_resource_accounts
List the accounts that have cross-account resources. For more information, see Working with cross-account attachments and resources in Global Accelerator in the Global Accelerator Developer Guide.
SELECT
resource_owner_aws_account_id
FROM aws.globalaccelerator.cross_account_resource_accounts
WHERE region = '{{ region }}' -- required
;