Skip to main content

principals

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

Overview

Nameprincipals
TypeResource
Idaws.ram.principals

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the principal that can be associated with a resource share.
creation_timestring (date-time)The date and time when the principal was associated with the resource share.
externalbooleanIndicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share: True – The two accounts belong to same organization. False – The two accounts do not belong to the same organization.
last_updated_timestring (date-time)The date and time when the association between the resource share and the principal was last updated.
resource_share_arnstringThe Amazon Resource Name (ARN) of a resource share the principal is associated with.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_principalsselectregionLists the principals that you are sharing resources with or that are sharing resources with you. 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

Lists the principals that you are sharing resources with or that are sharing resources with you. 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
id,
creation_time,
external,
last_updated_time,
resource_share_arn
FROM aws.ram.principals
WHERE region = '{{ region }}' -- required
;