source_associations
Creates, updates, deletes, gets or lists a source_associations resource.
Overview
| Name | source_associations |
| Type | Resource |
| Id | aws.ram.source_associations |
Fields
The following fields are returned by SELECT queries:
- list_source_associations
| Name | Datatype | Description |
|---|---|---|
creation_time | string (date-time) | The date and time when the source association was created. |
last_updated_time | string (date-time) | The date and time when the source association was last updated. |
resource_share_arn | string | The Amazon Resource Name (ARN) of the resource share that contains the source association. |
source_id | string | The identifier of the source. This can be an account ID, Amazon Resource Name (ARN), organization ID, or organization path. |
source_type | string | The type of source. |
status | string | The current status of the source association. |
status_message | string | A message about the status of the source association. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_source_associations | select | region | Lists source associations for resource shares. Source associations control which sources can be used with service principals in resource shares. This operation provides visibility into source associations for resource share owners. You can filter the results by resource share Amazon Resource Name (ARN), source ID, source type, or association status. We recommend using pagination to ensure that the operation returns quickly and successfully. |
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_source_associations
Lists source associations for resource shares. Source associations control which sources can be used with service principals in resource shares. This operation provides visibility into source associations for resource share owners. You can filter the results by resource share Amazon Resource Name (ARN), source ID, source type, or association status. We recommend using pagination to ensure that the operation returns quickly and successfully.
SELECT
creation_time,
last_updated_time,
resource_share_arn,
source_id,
source_type,
status,
status_message
FROM aws.ram.source_associations
WHERE region = '{{ region }}' -- required
;