@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.571Z") @Stability(value=Stable) public interface CfnGroupProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.resourcegroups.*;
CfnGroupProps cfnGroupProps = CfnGroupProps.builder()
.name("name")
// the properties below are optional
.configuration(List.of(ConfigurationItemProperty.builder()
.parameters(List.of(ConfigurationParameterProperty.builder()
.name("name")
.values(List.of("values"))
.build()))
.type("type")
.build()))
.description("description")
.resourceQuery(ResourceQueryProperty.builder()
.query(QueryProperty.builder()
.resourceTypeFilters(List.of("resourceTypeFilters"))
.stackIdentifier("stackIdentifier")
.tagFilters(List.of(TagFilterProperty.builder()
.key("key")
.values(List.of("values"))
.build()))
.build())
.type("type")
.build())
.resources(List.of("resources"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnGroupProps.Builder
A builder for
CfnGroupProps |
static class |
CfnGroupProps.Jsii$Proxy
An implementation for
CfnGroupProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnGroupProps.Builder |
builder() |
default Object |
getConfiguration()
The service configuration currently associated with the resource group and in effect for the members of the resource group.
|
default String |
getDescription()
The description of the resource group.
|
String |
getName()
The name of a resource group.
|
default Object |
getResourceQuery()
The resource query structure that is used to dynamically determine which AWS resources are members of the associated resource group.
|
default List<String> |
getResources()
A list of the Amazon Resource Names (ARNs) of AWS resources that you want to add to the specified group.
|
default List<CfnTag> |
getTags()
The tag key and value pairs that are attached to the resource group.
|
@Stability(value=Stable) @NotNull String getName()
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.
@Stability(value=Stable) @Nullable default Object getConfiguration()
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.
@Stability(value=Stable) @Nullable default String getDescription()
@Stability(value=Stable) @Nullable default Object getResourceQuery()
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.
@Stability(value=Stable) @Nullable default List<String> getResources()
- 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.
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) static CfnGroupProps.Builder builder()
CfnGroupProps.Builder of CfnGroupPropsCopyright © 2022. All rights reserved.