@Stability(value=Stable) public static final class CfnGroupProps.Builder extends Object implements software.amazon.jsii.Builder<CfnGroupProps>
CfnGroupProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnGroupProps.Builder name(String name)
CfnGroupProps.getName()name - The name of a resource group. This parameter is required.
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.this@Stability(value=Stable) public CfnGroupProps.Builder configuration(IResolvable configuration)
CfnGroupProps.getConfiguration()configuration - The service configuration currently associated with the resource group and in effect for the members of the resource group.
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.
this@Stability(value=Stable) public CfnGroupProps.Builder configuration(List<? extends Object> configuration)
CfnGroupProps.getConfiguration()configuration - The service configuration currently associated with the resource group and in effect for the members of the resource group.
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.
this@Stability(value=Stable) public CfnGroupProps.Builder description(String description)
CfnGroupProps.getDescription()description - The description of the resource group.this@Stability(value=Stable) public CfnGroupProps.Builder resourceQuery(CfnGroup.ResourceQueryProperty resourceQuery)
CfnGroupProps.getResourceQuery()resourceQuery - The resource query structure that is used to dynamically determine which AWS resources are members of the associated resource group.
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.
this@Stability(value=Stable) public CfnGroupProps.Builder resourceQuery(IResolvable resourceQuery)
CfnGroupProps.getResourceQuery()resourceQuery - The resource query structure that is used to dynamically determine which AWS resources are members of the associated resource group.
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.
this@Stability(value=Stable) public CfnGroupProps.Builder resources(List<String> resources)
CfnGroupProps.getResources()resources - A list of the Amazon Resource Names (ARNs) of AWS resources that you want to add to the specified group.
- 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.
this@Stability(value=Stable) public CfnGroupProps.Builder tags(List<? extends CfnTag> tags)
CfnGroupProps.getTags()tags - The tag key and value pairs that are attached to the resource group.this@Stability(value=Stable) public CfnGroupProps build()
build in interface software.amazon.jsii.Builder<CfnGroupProps>CfnGroupPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.