inspector_create_resource_group: Creates a resource group using the specified set of tags (key...

Description Usage Arguments Request syntax Examples

View source: R/inspector_operations.R

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

1

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

1
2
3
4
5
6
7
8
svc$create_resource_group(
  resourceGroupTags = list(
    list(
      key = "string",
      value = "string"
    )
  )
)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# 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.
svc$create_resource_group(
  resourceGroupTags = list(
    list(
      key = "Name",
      value = "example"
    )
  )
)

paws.security.identity documentation built on Oct. 30, 2019, 11:26 a.m.