| Modifier and Type | Method and Description |
|---|---|
CfnGroup |
build() |
CfnGroup.Builder |
configuration(IResolvable configuration)
The service configuration currently associated with the resource group and in effect for the members of the resource group.
|
CfnGroup.Builder |
configuration(List<? extends Object> configuration)
The service configuration currently associated with the resource group and in effect for the members of the resource group.
|
static CfnGroup.Builder |
create(software.constructs.Construct scope,
String id) |
CfnGroup.Builder |
description(String description)
The description of the resource group.
|
CfnGroup.Builder |
name(String name)
The name of a resource group.
|
CfnGroup.Builder |
resourceQuery(CfnGroup.ResourceQueryProperty resourceQuery)
The resource query structure that is used to dynamically determine which AWS resources are members of the associated resource group.
|
CfnGroup.Builder |
resourceQuery(IResolvable resourceQuery)
The resource query structure that is used to dynamically determine which AWS resources are members of the associated resource group.
|
CfnGroup.Builder |
resources(List<String> resources)
A list of the Amazon Resource Names (ARNs) of AWS resources that you want to add to the specified group.
|
CfnGroup.Builder |
tags(List<? extends CfnTag> tags)
The tag key and value pairs that are attached to the resource group.
|
@Stability(value=Stable) public static CfnGroup.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnGroup.ConfigurationItemProperty.Builder.@Stability(value=Stable) public CfnGroup.Builder name(String name)
The name must be unique within the AWS Region in which you create the resource. To create multiple resource groups based on the same CloudFormation stack, you must generate unique names for each.
name - The name of a resource group. This parameter is required.this@Stability(value=Stable) public CfnGroup.Builder configuration(IResolvable configuration)
A Configuration consists of one or more ConfigurationItem entries. For information about service configurations for resource groups and how to construct them, see Service configurations for resource groups in the AWS Resource Groups User Guide .
You can include either a
Configurationor aResourceQuery, but not both.
configuration - The service configuration currently associated with the resource group and in effect for the members of the resource group. This parameter is required.this@Stability(value=Stable) public CfnGroup.Builder configuration(List<? extends Object> configuration)
A Configuration consists of one or more ConfigurationItem entries. For information about service configurations for resource groups and how to construct them, see Service configurations for resource groups in the AWS Resource Groups User Guide .
You can include either a
Configurationor aResourceQuery, but not both.
configuration - The service configuration currently associated with the resource group and in effect for the members of the resource group. This parameter is required.this@Stability(value=Stable) public CfnGroup.Builder description(String description)
description - The description of the resource group. This parameter is required.this@Stability(value=Stable) public CfnGroup.Builder resourceQuery(CfnGroup.ResourceQueryProperty resourceQuery)
For more information about queries and how to construct them, see Build queries and groups in AWS Resource Groups in the AWS Resource Groups User Guide
- You can include either a
ResourceQueryor aConfiguration, but not both.- You can specify the group's membership either by using a
ResourceQueryor by using a list ofResources, but not both.
resourceQuery - The resource query structure that is used to dynamically determine which AWS resources are members of the associated resource group. This parameter is required.this@Stability(value=Stable) public CfnGroup.Builder resourceQuery(IResolvable resourceQuery)
For more information about queries and how to construct them, see Build queries and groups in AWS Resource Groups in the AWS Resource Groups User Guide
- You can include either a
ResourceQueryor aConfiguration, but not both.- You can specify the group's membership either by using a
ResourceQueryor by using a list ofResources, but not both.
resourceQuery - The resource query structure that is used to dynamically determine which AWS resources are members of the associated resource group. This parameter is required.this@Stability(value=Stable) public CfnGroup.Builder resources(List<String> resources)
- You can specify the group membership either by using a list of
Resourcesor by using aResourceQuery, but not both.- You can include a
Resourcesproperty only if you also specify aConfigurationproperty.
resources - A list of the Amazon Resource Names (ARNs) of AWS resources that you want to add to the specified group. This parameter is required.this@Stability(value=Stable) public CfnGroup.Builder tags(List<? extends CfnTag> tags)
tags - The tag key and value pairs that are attached to the resource group. This parameter is required.thisCopyright © 2022. All rights reserved.