aws.ram.list_principals
Example SQL Queries
SELECT * FROMaws.ram.list_principalsWHERE"resource_owner" = 'VALUE';Description
Lists the principals that you are sharing resources with or that are sharing resources with you.
Table Definition
| Column Name | Column Data Type |
|---|---|
| resource_owner Required Input Column Specifies that you want to list information for only resource shares that match the following:
| VARCHAR |
| principals Input Column Specifies that you want to list information for only the listed principals. You can include the following values:
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide. | VARCHAR[] |
Show child fields
| |
| resource_arn Input Column Specifies that you want to list principal information for the resource share with the specified Amazon Resource Name (ARN). | VARCHAR |
| resource_share_arns Input Column Specifies that you want to list information for only principals associated with the resource shares specified by a list the Amazon Resource Names (ARNs). | VARCHAR[] |
Show child fields
| |
| resource_type Input Column Specifies that you want to list information for only principals associated with resource shares that include the specified resource type. For a list of valid values, query the ListResourceTypes operation. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| creation_time The date and time when the principal was associated with the resource share. | TIMESTAMP_S |
| external Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:
| BOOLEAN |
| id The ID of the principal that can be associated with a resource share. | VARCHAR |
| last_updated_time The date and time when the association between the resource share and the principal was last updated. | TIMESTAMP_S |
| resource_share_arn The Amazon Resource Name (ARN) of a resource share the principal is associated with. | VARCHAR |