'2.0', 'service' => '
Resource Groups lets you organize Amazon Web Services resources such as Amazon Elastic Compute Cloud instances, Amazon Relational Database Service databases, and Amazon Simple Storage Service buckets into groups using criteria that you define as tags. A resource group is a collection of resources that match the resource types specified in a query, and share one or more tags or portions of tags. You can create a group of resources based on their roles in your cloud infrastructure, lifecycle stages, regions, application layers, or virtually any criteria. Resource Groups enable you to automate management tasks, such as those in Amazon Web Services Systems Manager Automation documents, on tag-related resources in Amazon Web Services Systems Manager. Groups of tagged resources also let you quickly view a custom console in Amazon Web Services Systems Manager that shows Config compliance and other monitoring data about member resources.
To create a resource group, build a resource query, and specify tags that identify the criteria that members of the group have in common. Tags are key-value pairs.
For more information about Resource Groups, see the Resource Groups User Guide.
Resource Groups uses a REST-compliant API that you can use to perform the following types of operations.
Create, Read, Update, and Delete (CRUD) operations on resource groups and resource query entities
Applying, editing, and removing tags from resource groups
Resolving resource group member ARNs so they can be returned as search results
Getting data about resources that are members of a group
Searching Amazon Web Services resources based on a resource query
Creates a resource group with the specified name and description. You can optionally include either a resource query or a service configuration. For more information about constructing a resource query, see Build queries and groups in Resource Groups in the Resource Groups User Guide. For more information about service-linked groups and service configurations, see Service configurations for Resource Groups.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:CreateGroup
Deletes the specified resource group. Deleting a resource group does not delete any resources that are members of the group; it only deletes the group structure.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:DeleteGroup
Retrieves the current status of optional features in Resource Groups.
', 'GetGroup' => 'Returns information about a specified resource group.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:GetGroup
Retrieves the service configuration associated with the specified resource group. For details about the service configuration syntax, see Service configurations for Resource Groups.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:GetGroupConfiguration
Retrieves the resource query associated with the specified resource group. For more information about resource queries, see Create a tag-based group in Resource Groups.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:GetGroupQuery
Returns a list of tags that are associated with a resource group, specified by an ARN.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:GetTags
Adds the specified resources to the specified group.
You can use this operation with only resource groups that are configured with the following types:
AWS::EC2::HostManagement
AWS::EC2::CapacityReservationPool
Other resource group type and resource types aren\'t currently supported by this operation.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:GroupResources
Returns a list of ARNs of the resources that are members of a specified resource group.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:ListGroupResources
cloudformation:DescribeStacks
cloudformation:ListStackResources
tag:GetResources
Returns a list of existing Resource Groups in your account.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:ListGroups
Attaches a service configuration to the specified group. This occurs asynchronously, and can take time to complete. You can use GetGroupConfiguration to check the status of the update.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:PutGroupConfiguration
Returns a list of Amazon Web Services resource identifiers that matches the specified query. The query uses the same format as a resource query in a CreateGroup or UpdateGroupQuery operation.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:SearchResources
cloudformation:DescribeStacks
cloudformation:ListStackResources
tag:GetResources
Adds tags to a resource group with the specified ARN. Existing tags on a resource group are not changed if they are not specified in the request parameters.
Do not store personally identifiable information (PII) or other confidential or sensitive information in tags. We use tags to provide you with billing and administration services. Tags are not intended to be used for private or sensitive data.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:Tag
Removes the specified resources from the specified group. This operation works only with static groups that you populated using the GroupResources operation. It doesn\'t work with any resource groups that are automatically populated by tag-based or CloudFormation stack-based queries.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:UngroupResources
Deletes tags from a specified resource group.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:Untag
Turns on or turns off optional features in Resource Groups.
The preceding example shows that the request to turn on group lifecycle events is IN_PROGRESS
. You can call the GetAccountSettings operation to check for completion by looking for GroupLifecycleEventsStatus
to change to ACTIVE
.
Updates the description for an existing group. You cannot update the name of a resource group.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:UpdateGroup
Updates the resource query of a group. For more information about resource queries, see Create a tag-based group in Resource Groups.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:UpdateGroupQuery
The Resource Groups settings for this Amazon Web Services account.
', 'refs' => [ 'GetAccountSettingsOutput$AccountSettings' => 'The current settings for the optional features in Resource Groups.
', 'UpdateAccountSettingsOutput$AccountSettings' => 'A structure that displays the status of the optional features in the account.
', ], ], 'BadRequestException' => [ 'base' => 'The request includes one or more parameters that violate validation rules.
', 'refs' => [], ], 'CreateGroupInput' => [ 'base' => NULL, 'refs' => [], ], 'CreateGroupOutput' => [ 'base' => NULL, 'refs' => [], ], 'DeleteGroupInput' => [ 'base' => NULL, 'refs' => [], ], 'DeleteGroupOutput' => [ 'base' => NULL, 'refs' => [], ], 'Description' => [ 'base' => NULL, 'refs' => [ 'CreateGroupInput$Description' => 'The description of the resource group. Descriptions can consist of letters, numbers, hyphens, underscores, periods, and spaces.
', 'Group$Description' => 'The description of the resource group.
', 'UpdateGroupInput$Description' => 'The new description that you want to update the resource group with. Descriptions can contain letters, numbers, hyphens, underscores, periods, and spaces.
', ], ], 'ErrorCode' => [ 'base' => NULL, 'refs' => [ 'FailedResource$ErrorCode' => 'The error code associated with the failure.
', ], ], 'ErrorMessage' => [ 'base' => NULL, 'refs' => [ 'BadRequestException$Message' => NULL, 'FailedResource$ErrorMessage' => 'The error message text associated with the failure.
', 'ForbiddenException$Message' => NULL, 'InternalServerErrorException$Message' => NULL, 'MethodNotAllowedException$Message' => NULL, 'NotFoundException$Message' => NULL, 'TooManyRequestsException$Message' => NULL, 'UnauthorizedException$Message' => NULL, ], ], 'FailedResource' => [ 'base' => 'A resource that failed to be added to or removed from a group.
', 'refs' => [ 'FailedResourceList$member' => NULL, ], ], 'FailedResourceList' => [ 'base' => NULL, 'refs' => [ 'GroupResourcesOutput$Failed' => 'A list of ARNs of any resources that this operation failed to add to the group.
', 'UngroupResourcesOutput$Failed' => 'A list of any resources that failed to be removed from the group by this operation.
', ], ], 'ForbiddenException' => [ 'base' => 'The caller isn\'t authorized to make the request. Check permissions.
', 'refs' => [], ], 'GetAccountSettingsOutput' => [ 'base' => NULL, 'refs' => [], ], 'GetGroupConfigurationInput' => [ 'base' => NULL, 'refs' => [], ], 'GetGroupConfigurationOutput' => [ 'base' => NULL, 'refs' => [], ], 'GetGroupInput' => [ 'base' => NULL, 'refs' => [], ], 'GetGroupOutput' => [ 'base' => NULL, 'refs' => [], ], 'GetGroupQueryInput' => [ 'base' => NULL, 'refs' => [], ], 'GetGroupQueryOutput' => [ 'base' => NULL, 'refs' => [], ], 'GetTagsInput' => [ 'base' => NULL, 'refs' => [], ], 'GetTagsOutput' => [ 'base' => NULL, 'refs' => [], ], 'Group' => [ 'base' => 'A resource group that contains Amazon Web Services resources. You can assign resources to the group by associating either of the following elements with the group:
ResourceQuery - Use a resource query to specify a set of tag keys and values. All resources in the same Amazon Web Services Region and Amazon Web Services account that have those keys with the same values are included in the group. You can add a resource query when you create the group, or later by using the PutGroupConfiguration operation.
GroupConfiguration - Use a service configuration to associate the group with an Amazon Web Services service. The configuration specifies which resource types can be included in the group.
The description of the resource group.
', 'DeleteGroupOutput$Group' => 'A full description of the deleted resource group.
', 'GetGroupOutput$Group' => 'A structure that contains the metadata details for the specified resource group. Use GetGroupQuery and GetGroupConfiguration to get those additional details of the resource group.
', 'GroupList$member' => NULL, 'UpdateGroupOutput$Group' => 'The update description of the resource group.
', ], ], 'GroupArn' => [ 'base' => NULL, 'refs' => [ 'GetTagsInput$Arn' => 'The ARN of the resource group whose tags you want to retrieve.
', 'GetTagsOutput$Arn' => 'The ARN of the tagged resource group.
', 'Group$GroupArn' => 'The ARN of the resource group.
', 'GroupIdentifier$GroupArn' => 'The ARN of the resource group.
', 'TagInput$Arn' => 'The ARN of the resource group to which to add tags.
', 'TagOutput$Arn' => 'The ARN of the tagged resource.
', 'UntagInput$Arn' => 'The ARN of the resource group from which to remove tags. The command removed both the specified keys and any values associated with those keys.
', 'UntagOutput$Arn' => 'The ARN of the resource group from which tags have been removed.
', ], ], 'GroupConfiguration' => [ 'base' => 'A service configuration associated with a resource group. The configuration options are determined by the Amazon Web Services service that defines the Type
, and specifies which resources can be included in the group. You can add a service configuration when you create the group by using CreateGroup, or later by using the PutGroupConfiguration operation. For details about group service configuration syntax, see Service configurations for resource groups.
The service configuration associated with the resource group. For details about the syntax of a service configuration, see Service configurations for Resource Groups.
', 'GetGroupConfigurationOutput$GroupConfiguration' => 'A structure that describes the service configuration attached with the specified group. For details about the service configuration syntax, see Service configurations for Resource Groups.
', ], ], 'GroupConfigurationFailureReason' => [ 'base' => NULL, 'refs' => [ 'GroupConfiguration$FailureReason' => 'If present, the reason why a request to update the group configuration failed.
', ], ], 'GroupConfigurationItem' => [ 'base' => 'An item in a group configuration. A group service configuration can have one or more items. For details about group service configuration syntax, see Service configurations for resource groups.
', 'refs' => [ 'GroupConfigurationList$member' => NULL, ], ], 'GroupConfigurationList' => [ 'base' => NULL, 'refs' => [ 'CreateGroupInput$Configuration' => 'A configuration associates the resource group with an Amazon Web Services service and specifies how the service can interact with the resources in the group. A configuration is an array of GroupConfigurationItem elements. For details about the syntax of service configurations, see Service configurations for Resource Groups.
A resource group can contain either a Configuration
or a ResourceQuery
, but not both.
The configuration currently associated with the group and in effect.
', 'GroupConfiguration$ProposedConfiguration' => 'If present, the new configuration that is in the process of being applied to the group.
', 'PutGroupConfigurationInput$Configuration' => 'The new configuration to associate with the specified group. A configuration associates the resource group with an Amazon Web Services service and specifies how the service can interact with the resources in the group. A configuration is an array of GroupConfigurationItem elements.
For information about the syntax of a service configuration, see Service configurations for Resource Groups.
A resource group can contain either a Configuration
or a ResourceQuery
, but not both.
A parameter for a group configuration item. For details about group service configuration syntax, see Service configurations for resource groups.
', 'refs' => [ 'GroupParameterList$member' => NULL, ], ], 'GroupConfigurationParameterName' => [ 'base' => NULL, 'refs' => [ 'GroupConfigurationParameter$Name' => 'The name of the group configuration parameter. For the list of parameters that you can use with each configuration item type, see Supported resource types and parameters.
', ], ], 'GroupConfigurationParameterValue' => [ 'base' => NULL, 'refs' => [ 'GroupConfigurationParameterValueList$member' => NULL, ], ], 'GroupConfigurationParameterValueList' => [ 'base' => NULL, 'refs' => [ 'GroupConfigurationParameter$Values' => 'The value or values to be used for the specified parameter. For the list of values you can use with each parameter, see Supported resource types and parameters.
', ], ], 'GroupConfigurationStatus' => [ 'base' => NULL, 'refs' => [ 'GroupConfiguration$Status' => 'The current status of an attempt to update the group configuration.
', ], ], 'GroupConfigurationType' => [ 'base' => NULL, 'refs' => [ 'GroupConfigurationItem$Type' => 'Specifies the type of group configuration item. Each item must have a unique value for type
. For the list of types that you can specify for a configuration item, see Supported resource types and parameters.
A filter collection that you can use to restrict the results from a List
operation to only those you want to include.
Filters, formatted as GroupFilter objects, that you want to apply to a ListGroups
operation.
resource-type
- Filter the results to include only those of the specified resource types. Specify up to five resource types in the format AWS::ServiceCode::ResourceType
. For example, AWS::EC2::Instance
, or AWS::S3::Bucket
.
configuration-type
- Filter the results to include only those groups that have the specified configuration types attached. The current supported values are:
AWS::EC2::CapacityReservationPool
AWS::EC2::HostManagement
The name of the filter. Filter names are case-sensitive.
', ], ], 'GroupFilterValue' => [ 'base' => NULL, 'refs' => [ 'GroupFilterValues$member' => NULL, ], ], 'GroupFilterValues' => [ 'base' => NULL, 'refs' => [ 'GroupFilter$Values' => 'One or more filter values. Allowed filter values vary by group filter name, and are case-sensitive.
', ], ], 'GroupIdentifier' => [ 'base' => 'The unique identifiers for a resource group.
', 'refs' => [ 'GroupIdentifierList$member' => NULL, ], ], 'GroupIdentifierList' => [ 'base' => NULL, 'refs' => [ 'ListGroupsOutput$GroupIdentifiers' => 'A list of GroupIdentifier objects. Each identifier is an object that contains both the Name
and the GroupArn
.
The desired target status of the group lifecycle events feature. If
', 'UpdateAccountSettingsInput$GroupLifecycleEventsDesiredStatus' => 'Specifies whether you want to turn group lifecycle events on or off.
', ], ], 'GroupLifecycleEventsStatus' => [ 'base' => NULL, 'refs' => [ 'AccountSettings$GroupLifecycleEventsStatus' => 'The current status of the group lifecycle events feature.
', ], ], 'GroupLifecycleEventsStatusMessage' => [ 'base' => NULL, 'refs' => [ 'AccountSettings$GroupLifecycleEventsStatusMessage' => 'The text of any error message occurs during an attempt to turn group lifecycle events on or off.
', ], ], 'GroupList' => [ 'base' => NULL, 'refs' => [ 'ListGroupsOutput$Groups' => ' Deprecated - don\'t use this field. Use the GroupIdentifiers
response field instead.
The name of the group, which is the identifier of the group in other operations. You can\'t change the name of a resource group after you create it. A resource group name can consist of letters, numbers, hyphens, periods, and underscores. The name cannot start with AWS
or aws
; these are reserved. A resource group name must be unique within each Amazon Web Services Region in your Amazon Web Services account.
Deprecated - don\'t use this parameter. Use Group
instead.
Deprecated - don\'t use this parameter. Use Group
instead.
Don\'t use this parameter. Use Group
instead.
The name of the resource group.
', 'GroupIdentifier$GroupName' => 'The name of the resource group.
', 'GroupQuery$GroupName' => 'The name of the resource group that is associated with the specified resource query.
', 'ListGroupResourcesInput$GroupName' => ' Deprecated - don\'t use this parameter. Use the Group
request field instead.
Don\'t use this parameter. Use Group
instead.
Don\'t use this parameter. Use Group
instead.
A collection of parameters for this group configuration item. For the list of parameters that you can use with each configuration item type, see Supported resource types and parameters.
', ], ], 'GroupQuery' => [ 'base' => 'A mapping of a query attached to a resource group that determines the Amazon Web Services resources that are members of the group.
', 'refs' => [ 'GetGroupQueryOutput$GroupQuery' => 'The resource query associated with the specified group. For more information about resource queries, see Create a tag-based group in Resource Groups.
', 'UpdateGroupQueryOutput$GroupQuery' => 'The updated resource query associated with the resource group after the update.
', ], ], 'GroupResourcesInput' => [ 'base' => NULL, 'refs' => [], ], 'GroupResourcesOutput' => [ 'base' => NULL, 'refs' => [], ], 'GroupString' => [ 'base' => NULL, 'refs' => [ 'DeleteGroupInput$Group' => 'The name or the ARN of the resource group to delete.
', 'GetGroupConfigurationInput$Group' => 'The name or the ARN of the resource group for which you want to retrive the service configuration.
', 'GetGroupInput$Group' => 'The name or the ARN of the resource group to retrieve.
', 'GetGroupQueryInput$Group' => 'The name or the ARN of the resource group to query.
', 'GroupResourcesInput$Group' => 'The name or the ARN of the resource group to add resources to.
', 'ListGroupResourcesInput$Group' => 'The name or the ARN of the resource group
', 'PutGroupConfigurationInput$Group' => 'The name or ARN of the resource group with the configuration that you want to update.
', 'UngroupResourcesInput$Group' => 'The name or the ARN of the resource group from which to remove the resources.
', 'UpdateGroupInput$Group' => 'The name or the ARN of the resource group to modify.
', 'UpdateGroupQueryInput$Group' => 'The name or the ARN of the resource group to query.
', ], ], 'InternalServerErrorException' => [ 'base' => 'An internal error occurred while processing the request. Try again later.
', 'refs' => [], ], 'ListGroupResourcesInput' => [ 'base' => NULL, 'refs' => [], ], 'ListGroupResourcesItem' => [ 'base' => 'A structure returned by the ListGroupResources operation that contains identity and group membership status information for one of the resources in the group.
', 'refs' => [ 'ListGroupResourcesItemList$member' => NULL, ], ], 'ListGroupResourcesItemList' => [ 'base' => NULL, 'refs' => [ 'ListGroupResourcesOutput$Resources' => 'An array of resources from which you can determine each resource\'s identity, type, and group membership status.
', ], ], 'ListGroupResourcesOutput' => [ 'base' => NULL, 'refs' => [], ], 'ListGroupsInput' => [ 'base' => NULL, 'refs' => [], ], 'ListGroupsOutput' => [ 'base' => NULL, 'refs' => [], ], 'MaxResults' => [ 'base' => NULL, 'refs' => [ 'ListGroupResourcesInput$MaxResults' => 'The total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken
response element is present and has a value (is not null). Include that value as the NextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken
after every operation to ensure that you receive all of the results.
The total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken
response element is present and has a value (is not null). Include that value as the NextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken
after every operation to ensure that you receive all of the results.
The total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken
response element is present and has a value (is not null). Include that value as the NextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken
after every operation to ensure that you receive all of the results.
The request uses an HTTP method that isn\'t allowed for the specified resource.
', 'refs' => [], ], 'NextToken' => [ 'base' => NULL, 'refs' => [ 'ListGroupResourcesInput$NextToken' => 'The parameter for receiving additional results if you receive a NextToken
response in a previous request. A NextToken
response indicates that more output is available. Set this parameter to the value provided by a previous call\'s NextToken
response to indicate where the output should continue from.
If present, indicates that more output is available than is included in the current response. Use this value in the NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken
response element comes back as null
.
The parameter for receiving additional results if you receive a NextToken
response in a previous request. A NextToken
response indicates that more output is available. Set this parameter to the value provided by a previous call\'s NextToken
response to indicate where the output should continue from.
If present, indicates that more output is available than is included in the current response. Use this value in the NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken
response element comes back as null
.
The parameter for receiving additional results if you receive a NextToken
response in a previous request. A NextToken
response indicates that more output is available. Set this parameter to the value provided by a previous call\'s NextToken
response to indicate where the output should continue from.
If present, indicates that more output is available than is included in the current response. Use this value in the NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken
response element comes back as null
.
One or more of the specified resources don\'t exist.
', 'refs' => [], ], 'PendingResource' => [ 'base' => 'A structure that identifies a resource that is currently pending addition to the group as a member. Adding a resource to a resource group happens asynchronously as a background task and this one isn\'t completed yet.
', 'refs' => [ 'PendingResourceList$member' => NULL, ], ], 'PendingResourceList' => [ 'base' => NULL, 'refs' => [ 'GroupResourcesOutput$Pending' => 'A list of ARNs of any resources that this operation is still in the process adding to the group. These pending additions continue asynchronously. You can check the status of pending additions by using the ListGroupResources
operation, and checking the Resources
array in the response and the Status
field of each object in that array.
A list of any resources that are still in the process of being removed from the group by this operation. These pending removals continue asynchronously. You can check the status of pending removals by using the ListGroupResources
operation. After the resource is successfully removed, it no longer appears in the response.
The query that defines a group or a search. The contents depends on the value of the Type
element.
ResourceTypeFilters
– Applies to all ResourceQuery
objects of either Type
. This element contains one of the following two items:
The value AWS::AllSupported
. This causes the ResourceQuery to match resources of any resource type that also match the query.
A list (a JSON array) of resource type identifiers that limit the query to only resources of the specified types. For the complete list of resource types that you can use in the array value for ResourceTypeFilters
, see Resources you can use with Resource Groups and Tag Editor in the Resource Groups User Guide.
Example: "ResourceTypeFilters": ["AWS::AllSupported"]
or "ResourceTypeFilters": ["AWS::EC2::Instance", "AWS::S3::Bucket"]
TagFilters
– applicable only if Type
= TAG_FILTERS_1_0
. The Query
contains a JSON string that represents a collection of simple tag filters. The JSON string uses a syntax similar to the GetResources
operation, but uses only the ResourceTypeFilters
and TagFilters
fields. If you specify more than one tag key, only resources that match all tag keys, and at least one value of each specified tag key, are returned in your query. If you specify more than one value for a tag key, a resource matches the filter if it has a tag key value that matches any of the specified values.
For example, consider the following sample query for resources that have two tags, Stage
and Version
, with two values each:
[{"Stage":["Test","Deploy"]},{"Version":["1","2"]}]
The results of this resource query could include the following.
An Amazon EC2 instance that has the following two tags: {"Stage":"Deploy"}
, and {"Version":"2"}
An S3 bucket that has the following two tags: {"Stage":"Test"}
, and {"Version":"1"}
The resource query results would not include the following items in the results, however.
An Amazon EC2 instance that has only the following tag: {"Stage":"Deploy"}
.
The instance does not have all of the tag keys specified in the filter, so it is excluded from the results.
An RDS database that has the following two tags: {"Stage":"Archived"}
and {"Version":"4"}
The database has all of the tag keys, but none of those keys has an associated value that matches at least one of the specified values in the filter.
Example: "TagFilters": [ { "Key": "Stage", "Values": [ "Gamma", "Beta" ] }
StackIdentifier
– applicable only if Type
= CLOUDFORMATION_STACK_1_0
. The value of this parameter is the Amazon Resource Name (ARN) of the CloudFormation stack whose resources you want included in the group.
A two-part error structure that can occur in ListGroupResources
or SearchResources
operations on CloudFront stack-based queries. The error occurs if the CloudFront stack on which the query is based either does not exist, or has a status that renders the stack inactive. A QueryError
occurrence does not necessarily mean that Resource Groups could not complete the operation, but the resulting group might have no member resources.
Specifies the error code that was raised.
', ], ], 'QueryErrorList' => [ 'base' => NULL, 'refs' => [ 'ListGroupResourcesOutput$QueryErrors' => 'A list of QueryError
objects. Each error is an object that contains ErrorCode
and Message
structures. Possible values for ErrorCode
are CLOUDFORMATION_STACK_INACTIVE
and CLOUDFORMATION_STACK_NOT_EXISTING
.
A list of QueryError
objects. Each error is an object that contains ErrorCode
and Message
structures.
Possible values for ErrorCode
:
CLOUDFORMATION_STACK_INACTIVE
CLOUDFORMATION_STACK_NOT_EXISTING
A message that explains the ErrorCode
value. Messages might state that the specified CloudFront stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE
, the message typically states that the CloudFront stack has a status that is not (or no longer) active, such as CREATE_FAILED
.
The type of the query to perform. This can have one of two values:
CLOUDFORMATION_STACK_1_0:
Specifies that you want the group to contain the members of an CloudFormation stack. The Query
contains a StackIdentifier
element with an ARN for a CloudFormation stack.
TAG_FILTERS_1_0:
Specifies that you want the group to include resource that have tags that match the query.
The ARN of the resource that failed to be added or removed.
', 'PendingResource$ResourceArn' => 'The Amazon resource name (ARN) of the resource that\'s in a pending state.
', 'ResourceArnList$member' => NULL, 'ResourceIdentifier$ResourceArn' => 'The ARN of a resource.
', ], ], 'ResourceArnList' => [ 'base' => NULL, 'refs' => [ 'GroupResourcesInput$ResourceArns' => 'The list of ARNs of the resources to be added to the group.
', 'GroupResourcesOutput$Succeeded' => 'A list of ARNs of the resources that this operation successfully added to the group.
', 'UngroupResourcesInput$ResourceArns' => 'The ARNs of the resources to be removed from the group.
', 'UngroupResourcesOutput$Succeeded' => 'A list of resources that were successfully removed from the group by this operation.
', ], ], 'ResourceFilter' => [ 'base' => 'A filter name and value pair that is used to obtain more specific results from a list of resources.
', 'refs' => [ 'ResourceFilterList$member' => NULL, ], ], 'ResourceFilterList' => [ 'base' => NULL, 'refs' => [ 'ListGroupResourcesInput$Filters' => 'Filters, formatted as ResourceFilter objects, that you want to apply to a ListGroupResources
operation. Filters the results to include only those of the specified resource types.
resource-type
- Filter resources by their type. Specify up to five resource types in the format AWS::ServiceCode::ResourceType
. For example, AWS::EC2::Instance
, or AWS::S3::Bucket
.
When you specify a resource-type
filter for ListGroupResources
, Resource Groups validates your filter resource types against the types that are defined in the query associated with the group. For example, if a group contains only S3 buckets because its query specifies only that resource type, but your resource-type
filter includes EC2 instances, AWS Resource Groups does not filter for EC2 instances. In this case, a ListGroupResources
request returns a BadRequestException
error with a message similar to the following:
The resource types specified as filters in the request are not valid.
The error includes a list of resource types that failed the validation because they are not part of the query associated with the group. This validation doesn\'t occur when the group query specifies AWS::AllSupported
, because a group based on such a query can contain any of the allowed resource types for the query type (tag-based or Amazon CloudFront stack-based queries).
The name of the filter. Filter names are case-sensitive.
', ], ], 'ResourceFilterValue' => [ 'base' => NULL, 'refs' => [ 'ResourceFilterValues$member' => NULL, ], ], 'ResourceFilterValues' => [ 'base' => NULL, 'refs' => [ 'ResourceFilter$Values' => 'One or more filter values. Allowed filter values vary by resource filter name, and are case-sensitive.
', ], ], 'ResourceIdentifier' => [ 'base' => 'A structure that contains the ARN of a resource and its resource type.
', 'refs' => [ 'ListGroupResourcesItem$Identifier' => NULL, 'ResourceIdentifierList$member' => NULL, ], ], 'ResourceIdentifierList' => [ 'base' => NULL, 'refs' => [ 'ListGroupResourcesOutput$ResourceIdentifiers' => ' Deprecated - don\'t use this parameter. Use the Resources
response field instead.
The ARNs and resource types of resources that are members of the group that you specified.
', ], ], 'ResourceQuery' => [ 'base' => 'The query you can use to define a resource group or a search for resources. A ResourceQuery
specifies both a query Type
and a Query
string as JSON string objects. See the examples section for example JSON strings. For more information about creating a resource group with a resource query, see Build queries and groups in Resource Groups in the Resource Groups User Guide
When you combine all of the elements together into a single string, any double quotes that are embedded inside another double quote pair must be escaped by preceding the embedded double quote with a backslash character (\\). For example, a complete ResourceQuery
parameter must be formatted like the following CLI parameter example:
--resource-query \'{"Type":"TAG_FILTERS_1_0","Query":"{\\"ResourceTypeFilters\\":[\\"AWS::AllSupported\\"],\\"TagFilters\\":[{\\"Key\\":\\"Stage\\",\\"Values\\":[\\"Test\\"]}]}"}\'
In the preceding example, all of the double quote characters in the value part of the Query
element must be escaped because the value itself is surrounded by double quotes. For more information, see Quoting strings in the Command Line Interface User Guide.
For the complete list of resource types that you can use in the array value for ResourceTypeFilters
, see Resources you can use with Resource Groups and Tag Editor in the Resource Groups User Guide. For example:
"ResourceTypeFilters":["AWS::S3::Bucket", "AWS::EC2::Instance"]
The resource query that determines which Amazon Web Services resources are members of this group. For more information about resource queries, see Create a tag-based group in Resource Groups.
A resource group can contain either a ResourceQuery
or a Configuration
, but not both.
The resource query associated with the group. For more information about resource queries, see Create a tag-based group in Resource Groups.
', 'GroupQuery$ResourceQuery' => 'The resource query that determines which Amazon Web Services resources are members of the associated resource group.
', 'SearchResourcesInput$ResourceQuery' => 'The search query, using the same formats that are supported for resource group definition. For more information, see CreateGroup.
', 'UpdateGroupQueryInput$ResourceQuery' => 'The resource query to determine which Amazon Web Services resources are members of this resource group.
A resource group can contain either a Configuration
or a ResourceQuery
, but not both.
A structure that identifies the current group membership status for a resource. Adding a resource to a resource group is performed asynchronously as a background task. A PENDING
status indicates, for this resource, that the process isn\'t completed yet.
A structure that contains the status of this resource\'s membership in the group.
This field is present in the response only if the group is of type AWS::EC2::HostManagement
.
The current status.
', ], ], 'ResourceType' => [ 'base' => NULL, 'refs' => [ 'ResourceIdentifier$ResourceType' => 'The resource type of a resource, such as AWS::EC2::Instance
.
The keys of the tags to be removed.
', 'UntagOutput$Keys' => 'The keys of the tags that were removed.
', ], ], 'TagOutput' => [ 'base' => NULL, 'refs' => [], ], 'TagValue' => [ 'base' => NULL, 'refs' => [ 'Tags$value' => NULL, ], ], 'Tags' => [ 'base' => NULL, 'refs' => [ 'CreateGroupInput$Tags' => 'The tags to add to the group. A tag is key-value pair string.
', 'CreateGroupOutput$Tags' => 'The tags associated with the group.
', 'GetTagsOutput$Tags' => 'The tags associated with the specified resource group.
', 'TagInput$Tags' => 'The tags to add to the specified resource group. A tag is a string-to-string map of key-value pairs.
', 'TagOutput$Tags' => 'The tags that have been added to the specified resource group.
', ], ], 'TooManyRequestsException' => [ 'base' => 'You\'ve exceeded throttling limits by making too many requests in a period of time.
', 'refs' => [], ], 'UnauthorizedException' => [ 'base' => 'The request was rejected because it doesn\'t have valid credentials for the target resource.
', 'refs' => [], ], 'UngroupResourcesInput' => [ 'base' => NULL, 'refs' => [], ], 'UngroupResourcesOutput' => [ 'base' => NULL, 'refs' => [], ], 'UntagInput' => [ 'base' => NULL, 'refs' => [], ], 'UntagOutput' => [ 'base' => NULL, 'refs' => [], ], 'UpdateAccountSettingsInput' => [ 'base' => NULL, 'refs' => [], ], 'UpdateAccountSettingsOutput' => [ 'base' => NULL, 'refs' => [], ], 'UpdateGroupInput' => [ 'base' => NULL, 'refs' => [], ], 'UpdateGroupOutput' => [ 'base' => NULL, 'refs' => [], ], 'UpdateGroupQueryInput' => [ 'base' => NULL, 'refs' => [], ], 'UpdateGroupQueryOutput' => [ 'base' => NULL, 'refs' => [], ], ],];