Actions, resources, and condition keys for Amazon Resource Groups
Amazon Resource Groups (service prefix: resource-groups) provides the following
service-specific operations, resources, actions, and condition keys for use in IAM permission
policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
API operations defined by Amazon Resource Groups
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|
|
CancelTagSyncTask |
Write |
|||
Write |
||||
|
CreateGroup |
Write |
|||
Tagging, Write |
||||
|
DeleteGroup |
Write |
|||
|
GetAccountSettings |
Read |
|||
|
GetGroup |
Read |
|||
|
GetGroupConfiguration |
Read |
|||
|
GetGroupQuery |
Read |
|||
|
GetTagSyncTask |
Read |
|||
|
GetTags |
Read |
|||
|
GroupResources |
Write |
|||
|
ListGroupResources |
List |
|||
|
ListGroupingStatuses |
List |
|||
|
ListGroups |
List |
|||
|
ListTagSyncTasks |
List |
|||
|
PutGroupConfiguration |
Write |
|||
|
SearchResources |
List |
|||
|
StartTagSyncTask |
Write |
|||
Write |
||||
iam:PassedToService |
resource-groups.amazonaws.com |
Write |
||
|
Tag |
Tagging, Write |
|||
|
UngroupResources |
Write |
|||
|
Untag |
Tagging, Write |
|||
|
UpdateAccountSettings |
Write |
|||
|
UpdateGroup |
Write |
|||
|
UpdateGroupQuery |
Write |
Actions defined by Amazon Resource Groups
You can specify the following actions in the Action element of an IAM
policy statement. Use policies to grant permissions to perform an operation in Amazon. When
you use an action in a policy, you usually allow or deny access to the API operation or CLI
command with the same name. However, in some cases, a single action controls access to more
than one operation. Alternatively, some operations require several different actions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to cancel a tag-sync task for an application group |
Write |
|||
Grants permission to create a resource group with a specified name, description, and resource query |
Write |
|||
Grants permission to delete a specified resource group |
Write |
|||
Grants permission to get the current status of optional features in Resource Groups |
Read |
|||
Grants permission to get information of a specified resource group |
Read |
|||
Grants permission to get the service configuration associated with the specified resource group |
Read |
|||
Grants permission to get the query associated with a specified resource group |
Read |
|||
Grants permission to get information of a specified tag-sync task |
Read |
|||
Grants permission to get the tags associated with a specified resource group |
Read |
|||
Grants permission to add the specified resources to the specified group |
Write |
|||
Grants permission to list the resources that are members of a specified resource group |
List |
|||
Grants permission to list grouping statuses for a specified application group |
List |
|||
Grants permission to list all resource groups in your account |
List |
|||
Grants permission to list all tag-sync tasks in your account |
List |
|||
Grants permission to put the service configuration associated with the specified resource group |
Write |
|||
Grants permission to search for Amazon resources matching the given query |
List |
|||
Grants permission to create a tag-sync task for an application group |
Write |
|||
Grants permission to tag a specified resource group |
Tagging, Write |
|||
Grants permission to remove the specified resources from the specified group |
Write |
|||
Grants permission to remove tags associated with a specified resource group |
Tagging, Write |
|||
Grants permission to update optional features in Resource Groups |
Write |
|||
Grants permission to update a specified resource group |
Write |
|||
Grants permission to update the query associated with a specified resource group |
Write |
Permission-only actions for Amazon Resource Groups
The following actions are defined by Amazon Resource Groups but are not directly invocable through any API operation. They can only be used in IAM policy statements to grant or deny permissions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to associate a resource to an Application |
Write |
|||
Grants permission to delete a resource-based policy for the specified group |
Write |
|||
Grants permission to disassociate a resource from an Application |
Write |
|||
Grants permission to get a resource-based policy for the specified group |
Read |
|||
Grants permission to list supported resource types |
List |
|||
Grants permission to add a resource-based policy for the specified group |
Write |
Resource types defined by Amazon Resource Groups
The following resource types are defined by this service and can be used in the
Resource element of IAM permission policy statements.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:resource-groups:${Region}:${Account}:group/${GroupName} |
||
arn:${Partition}:resource-groups:${Region}:${Account}:group/${GroupName}/tag-sync-task/${TaskId} |
Condition keys for Amazon Resource Groups
Amazon Resource Groups defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters access by the presence of tag key-value pairs in the request |
String |
|
Filters access by tag key-value pairs attached to the resource |
String |
|
Filters access by the presence of tag keys in the request |
ArrayOfString |