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