Class Group.Builder

java.lang.Object
software.amazon.awscdk.services.synthetics.Group.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Group>
Enclosing class:
Group

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

    • create

      @Stability(Stable) public static Group.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of Group.Builder.
    • canaries

      @Stability(Stable) public Group.Builder canaries(List<? extends ICanary> canaries)
      List of canaries to associate with this group.

      Each group can contain as many as 10 canaries.

      Default: - No canaries are associated with the group initially

      Parameters:
      canaries - List of canaries to associate with this group. This parameter is required.
      Returns:
      this
    • groupName

      @Stability(Stable) public Group.Builder groupName(String groupName)
      A name for the group. Must contain only lowercase alphanumeric characters, hyphens, or underscores, and be at most 64 characters.

      The names for all groups in your account, across all Regions, must be unique.

      Default: - A unique name will be generated from the construct ID

      Parameters:
      groupName - A name for the group. Must contain only lowercase alphanumeric characters, hyphens, or underscores, and be at most 64 characters. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public Group build()
      Specified by:
      build in interface software.amazon.jsii.Builder<Group>
      Returns:
      a newly built instance of Group.