CmdID / aws / aws resource-groups
aws resource-groups get-group
Returns information about a specified resource group. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To get information about a resource group
The following get-group example displays details about the specified resource group. To get the query attached to the group, use get-group-query.
aws resource-groups get-group --group-name tbq-WebServerIdentify--group-nameDeprecated - don't use this parameter.Its output
{
"Group": {
"GroupArn": "arn:aws:resource-groups:us-west-2:123456789012:group/tbq-WebServer",
"Name": "tbq-WebServer",
"Description": "A tag-based query resource group of WebServers."
}
}For more information, see What are resource groups? in the AWS Resource Groups User Guide.
Options
--group-nameDeprecated - don't use this parameter.--groupThe name or the Amazon resource name (ARN) of the resource group to retrieve.