paws.security.identity (version 0.1.0)

inspector_create_resource_group: 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

Description

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 CreateAssessmentTarget.

Usage

inspector_create_resource_group(resourceGroupTags)

Arguments

resourceGroupTags

[required] A collection of keys and an array of possible values, '["key":"key1","values":["Value1","Value2"],"key":"Key2","values":["Value3"]]'.

For example,'["key":"Name","values":["TestEC2Instance"]]'.

Request syntax

svc$create_resource_group(
  resourceGroupTags = list(
    list(
      key = "string",
      value = "string"
    )
  )
)

Examples

Run this code
# NOT RUN {
# 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.
# }
# NOT RUN {
svc$create_resource_group(
  resourceGroupTags = list(
    list(
      key = "Name",
      value = "example"
    )
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab