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>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • resourceTypeFilters

      @Stability(Stable) public CfnGroup.QueryProperty.Builder resourceTypeFilters(List<String> resourceTypeFilters)
      Parameters:
      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"] .
      Returns:
      this
    • stackIdentifier

      @Stability(Stable) public CfnGroup.QueryProperty.Builder stackIdentifier(String stackIdentifier)
      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 the ResourceQuery.Type property is CLOUDFORMATION_STACK_1_0.

      Returns:
      this
    • tagFilters

      @Stability(Stable) public CfnGroup.QueryProperty.Builder tagFilters(IResolvable tagFilters)
      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 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.

      Returns:
      this
    • tagFilters

      @Stability(Stable) public CfnGroup.QueryProperty.Builder tagFilters(List<? extends Object> tagFilters)
      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 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.

      Returns:
      this
    • build

      @Stability(Stable) public CfnGroup.QueryProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnGroup.QueryProperty>
      Returns:
      a new instance of CfnGroup.QueryProperty
      Throws:
      NullPointerException - if any required attribute was not provided