java.lang.Object
software.amazon.awscdk.mixins.preview.services.resourcegroups.mixins.CfnGroupMixinProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGroupMixinProps>
Enclosing interface:
CfnGroupMixinProps

@Stability(Stable) public static final class CfnGroupMixinProps.Builder extends Object implements software.amazon.jsii.Builder<CfnGroupMixinProps>
A builder for CfnGroupMixinProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • configuration

      @Stability(Stable) public CfnGroupMixinProps.Builder configuration(IResolvable configuration)
      Parameters:
      configuration - The service configuration currently associated with the resource group and in effect for the members of the resource group. A Configuration consists of one or more ConfigurationItem entries. For information about service configurations for resource groups and how to construct them, see Service configurations for resource groups in the Resource Groups User Guide .

      You can include either a Configuration or a ResourceQuery , but not both.

      Returns:
      this
    • configuration

      @Stability(Stable) public CfnGroupMixinProps.Builder configuration(List<? extends Object> configuration)
      Parameters:
      configuration - The service configuration currently associated with the resource group and in effect for the members of the resource group. A Configuration consists of one or more ConfigurationItem entries. For information about service configurations for resource groups and how to construct them, see Service configurations for resource groups in the Resource Groups User Guide .

      You can include either a Configuration or a ResourceQuery , but not both.

      Returns:
      this
    • description

      @Stability(Stable) public CfnGroupMixinProps.Builder description(String description)
      Parameters:
      description - The description of the resource group.
      Returns:
      this
    • name

      @Stability(Stable) public CfnGroupMixinProps.Builder name(String name)
      Parameters:
      name - The name of a resource group. The name must be unique within the AWS Region in which you create the resource. To create multiple resource groups based on the same CloudFormation stack, you must generate unique names for each.
      Returns:
      this
    • resourceQuery

      @Stability(Stable) public CfnGroupMixinProps.Builder resourceQuery(IResolvable resourceQuery)
      Parameters:
      resourceQuery - The resource query structure that is used to dynamically determine which AWS resources are members of the associated resource group. For more information about queries and how to construct them, see Build queries and groups in Resource Groups in the Resource Groups User Guide

      • You can include either a ResourceQuery or a Configuration , but not both.
      • You can specify the group's membership either by using a ResourceQuery or by using a list of Resources , but not both.

      Returns:
      this
    • resourceQuery

      @Stability(Stable) public CfnGroupMixinProps.Builder resourceQuery(CfnGroupPropsMixin.ResourceQueryProperty resourceQuery)
      Parameters:
      resourceQuery - The resource query structure that is used to dynamically determine which AWS resources are members of the associated resource group. For more information about queries and how to construct them, see Build queries and groups in Resource Groups in the Resource Groups User Guide

      • You can include either a ResourceQuery or a Configuration , but not both.
      • You can specify the group's membership either by using a ResourceQuery or by using a list of Resources , but not both.

      Returns:
      this
    • resources

      @Stability(Stable) public CfnGroupMixinProps.Builder resources(List<String> resources)
      Parameters:
      resources - A list of the Amazon Resource Names (ARNs) of AWS resources that you want to add to the specified group.

      • You can specify the group membership either by using a list of Resources or by using a ResourceQuery , but not both.
      • You can include a Resources property only if you also specify a Configuration property.

      Returns:
      this
    • tags

      @Stability(Stable) public CfnGroupMixinProps.Builder tags(List<? extends CfnTag> tags)
      Parameters:
      tags - The tag key and value pairs that are attached to the resource group.
      Returns:
      this
    • build

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