Skip to main content

resource_share_associations

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

Overview

Nameresource_share_associations
TypeResource
Idaws.ram.resource_share_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
associated_entitystringThe associated entity. This can be either of the following: For a resource association, this is the Amazon Resource Name (ARN) of the resource. For principal associations, this is one of the following: The ID of an Amazon Web Services account The Amazon Resource Name (ARN) of an organization in Organizations The ARN of an organizational unit (OU) in Organizations The ARN of an IAM role The ARN of an IAM user
association_typestringThe type of entity included in this association. (PRINCIPAL, RESOURCE, SOURCE)
creation_timestring (date-time)The date and time when the association was created.
externalbooleanIndicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
last_updated_timestring (date-time)The date and time when the association was last updated.
resource_share_arnstringThe Amazon Resource Name (ARN) of the resource share.
resource_share_namestringThe name of the resource share.
statusstringThe current status of the association. (ASSOCIATING, ASSOCIATED, FAILED, DISASSOCIATING, DISASSOCIATED, SUSPENDED, SUSPENDING, RESTORING)
status_messagestringA message about the status of the association.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_resource_share_associationsselectregionRetrieves the lists of resources and principals that associated for resource shares that you own. Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results available. The NextToken response parameter value is null only when there are no more results to display.

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

Retrieves the lists of resources and principals that associated for resource shares that you own. Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results available. The NextToken response parameter value is null only when there are no more results to display.

SELECT
associated_entity,
association_type,
creation_time,
external,
last_updated_time,
resource_share_arn,
resource_share_name,
status,
status_message
FROM aws.ram.resource_share_associations
WHERE region = '{{ region }}' -- required
;