public static final class CfnGroup.QueryProperty.Builder
extends java.lang.Object
CfnGroup.QueryProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnGroup.QueryProperty |
build()
Builds the configured instance.
|
CfnGroup.QueryProperty.Builder |
resourceTypeFilters(java.util.List<java.lang.String> resourceTypeFilters)
Sets the value of
CfnGroup.QueryProperty.getResourceTypeFilters() |
CfnGroup.QueryProperty.Builder |
stackIdentifier(java.lang.String stackIdentifier)
Sets the value of
CfnGroup.QueryProperty.getStackIdentifier() |
CfnGroup.QueryProperty.Builder |
tagFilters(IResolvable tagFilters)
Sets the value of
CfnGroup.QueryProperty.getTagFilters() |
CfnGroup.QueryProperty.Builder |
tagFilters(java.util.List<? extends java.lang.Object> tagFilters)
Sets the value of
CfnGroup.QueryProperty.getTagFilters() |
public CfnGroup.QueryProperty.Builder resourceTypeFilters(java.util.List<java.lang.String> resourceTypeFilters)
CfnGroup.QueryProperty.getResourceTypeFilters()
resourceTypeFilters
- Specifies limits to the types of resources that can be included in the resource group.
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"]
.this
public CfnGroup.QueryProperty.Builder stackIdentifier(java.lang.String stackIdentifier)
CfnGroup.QueryProperty.getStackIdentifier()
stackIdentifier
- Specifies the ARN of a CloudFormation stack.
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.
this
public CfnGroup.QueryProperty.Builder tagFilters(IResolvable tagFilters)
CfnGroup.QueryProperty.getTagFilters()
tagFilters
- A list of key-value pair objects that limit which resources can be members of the resource group.
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.
this
public CfnGroup.QueryProperty.Builder tagFilters(java.util.List<? extends java.lang.Object> tagFilters)
CfnGroup.QueryProperty.getTagFilters()
tagFilters
- A list of key-value pair objects that limit which resources can be members of the resource group.
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.
this
public CfnGroup.QueryProperty build()
CfnGroup.QueryProperty
java.lang.NullPointerException
- if any required attribute was not provided