@Stability(value=Stable)
public static interface CfnGroup.QueryProperty
extends software.amazon.jsii.JsiiSerializable
The contents required in the Query structure are determined by the Type property of the containing ResourceQuery structure.
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.*;
QueryProperty queryProperty = QueryProperty.builder()
.resourceTypeFilters(List.of("resourceTypeFilters"))
.stackIdentifier("stackIdentifier")
.tagFilters(List.of(TagFilterProperty.builder()
.key("key")
.values(List.of("values"))
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnGroup.QueryProperty.Builder
A builder for
CfnGroup.QueryProperty |
static class |
CfnGroup.QueryProperty.Jsii$Proxy
An implementation for
CfnGroup.QueryProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnGroup.QueryProperty.Builder |
builder() |
default List<String> |
getResourceTypeFilters()
Specifies limits to the types of resources that can be included in the resource group.
|
default String |
getStackIdentifier()
Specifies the ARN of a CloudFormation stack.
|
default Object |
getTagFilters()
A list of key-value pair objects that limit which resources can be members of the resource group.
|
@Stability(value=Stable) @Nullable default List<String> getResourceTypeFilters()
For example, if ResourceTypeFilters is ["AWS::EC2::Instance", "AWS::DynamoDB::Table"] , only EC2 instances or DynamoDB tables can be members of this resource group. The default value is ["AWS::AllSupported"] .
@Stability(value=Stable) @Nullable default String getStackIdentifier()
All supported resources of the CloudFormation stack are members of the resource group. If you don't specify an ARN, this parameter defaults to the current stack that you are defining, which means that all the resources of the current stack are grouped.
You can specify a value for StackIdentifier only when the ResourceQuery.Type property is CLOUDFORMATION_STACK_1_0.
@Stability(value=Stable) @Nullable default Object getTagFilters()
This property is required when the ResourceQuery.Type property is TAG_FILTERS_1_0 .
A resource must have a tag that matches every filter that is provided in the TagFilters list.
@Stability(value=Stable) static CfnGroup.QueryProperty.Builder builder()
CfnGroup.QueryProperty.Builder of CfnGroup.QueryPropertyCopyright © 2022. All rights reserved.