Skip to main content

source_associations

Creates, updates, deletes, gets or lists a source_associations resource.

Overview

Namesource_associations
TypeResource
Idaws.ram.source_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The date and time when the source association was created.
last_updated_timestring (date-time)The date and time when the source association was last updated.
resource_share_arnstringThe Amazon Resource Name (ARN) of the resource share that contains the source association.
source_idstringThe identifier of the source. This can be an account ID, Amazon Resource Name (ARN), organization ID, or organization path.
source_typestringThe type of source.
statusstringThe current status of the source association.
status_messagestringA message about the status of the source association.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_source_associationsselectregionLists 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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
;