v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1437208153.9 KB

Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target. The created resource group is then used to create an Amazon Inspector assessment target. For more information, see <a>CreateAssessmentTarget</a>.

post/#X-Amz-Target=InspectorService.CreateResourceGroup

Headers

X-Amz-Target'InspectorService.CreateResourceGroup' required

Request body

Response

Success

resourceGroupArnstring required

The ARN that specifies the resource group that is created.

Example response

{
  "resourceGroupArn": "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv"
}