Skip to content

Adds the specified resources to the specified group

Description

Adds the specified resources to the specified group.

You can only use this operation with the following groups:

  • AWS::EC2::HostManagement
  • AWS::EC2::CapacityReservationPool
  • AWS::ResourceGroups::ApplicationGroup

Other resource group types and resource types are not currently supported by this operation.

Minimum permissions

To run this command, you must have the following permissions:

  • resource-groups:GroupResources

Usage

resourcegroups_group_resources(Group, ResourceArns)

Arguments

  • Group

    [required] The name or the Amazon resource name (ARN) of the resource group to add resources to.

  • ResourceArns

    [required] The list of Amazon resource names (ARNs) of the resources to be added to the group.

Value

A list with the following syntax:

list(
  Succeeded = list(
    "string"
  ),
  Failed = list(
    list(
      ResourceArn = "string",
      ErrorMessage = "string",
      ErrorCode = "string"
    )
  ),
  Pending = list(
    list(
      ResourceArn = "string"
    )
  )
)

Request syntax

svc$group_resources(
  Group = "string",
  ResourceArns = list(
    "string"
  )
)