Class CfnGroup.QueryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.resourcegroups.CfnGroup.QueryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGroup.QueryProperty>
- Enclosing interface:
CfnGroup.QueryProperty
@Stability(Stable)
public static final class CfnGroup.QueryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGroup.QueryProperty>
A builder for
CfnGroup.QueryProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.resourceTypeFilters
(List<String> resourceTypeFilters) Sets the value ofCfnGroup.QueryProperty.getResourceTypeFilters()
stackIdentifier
(String stackIdentifier) Sets the value ofCfnGroup.QueryProperty.getStackIdentifier()
tagFilters
(List<? extends Object> tagFilters) Sets the value ofCfnGroup.QueryProperty.getTagFilters()
tagFilters
(IResolvable tagFilters) Sets the value ofCfnGroup.QueryProperty.getTagFilters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceTypeFilters
@Stability(Stable) public CfnGroup.QueryProperty.Builder resourceTypeFilters(List<String> resourceTypeFilters) Sets the value ofCfnGroup.QueryProperty.getResourceTypeFilters()
- Parameters:
resourceTypeFilters
- Specifies limits to the types of resources that can be included in the resource group. For example, ifResourceTypeFilters
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"]
.- Returns:
this
-
stackIdentifier
Sets the value ofCfnGroup.QueryProperty.getStackIdentifier()
- Parameters:
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 theResourceQuery.Type
property isCLOUDFORMATION_STACK_1_0.
- Returns:
this
-
tagFilters
Sets the value ofCfnGroup.QueryProperty.getTagFilters()
- Parameters:
tagFilters
- A list of key-value pair objects that limit which resources can be members of the resource group. This property is required when theResourceQuery.Type
property isTAG_FILTERS_1_0
.A resource must have a tag that matches every filter that is provided in the
TagFilters
list.- Returns:
this
-
tagFilters
@Stability(Stable) public CfnGroup.QueryProperty.Builder tagFilters(List<? extends Object> tagFilters) Sets the value ofCfnGroup.QueryProperty.getTagFilters()
- Parameters:
tagFilters
- A list of key-value pair objects that limit which resources can be members of the resource group. This property is required when theResourceQuery.Type
property isTAG_FILTERS_1_0
.A resource must have a tag that matches every filter that is provided in the
TagFilters
list.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGroup.QueryProperty>
- Returns:
- a new instance of
CfnGroup.QueryProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-