Class CfnRule.Builder

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

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

    • create

      @Stability(Stable) public static CfnRule.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnRule.Builder.
    • action

      @Stability(Stable) public CfnRule.Builder action(IResolvable action)
      Describes the action for a rule.

      Each rule must include exactly one of the following types of actions: forward or fixed-response , and it must be the last action to be performed.

      Parameters:
      action - Describes the action for a rule. This parameter is required.
      Returns:
      this
    • action

      @Stability(Stable) public CfnRule.Builder action(CfnRule.ActionProperty action)
      Describes the action for a rule.

      Each rule must include exactly one of the following types of actions: forward or fixed-response , and it must be the last action to be performed.

      Parameters:
      action - Describes the action for a rule. This parameter is required.
      Returns:
      this
    • match

      @Stability(Stable) public CfnRule.Builder match(IResolvable match)
      The rule match.

      Parameters:
      match - The rule match. This parameter is required.
      Returns:
      this
    • match

      @Stability(Stable) public CfnRule.Builder match(CfnRule.MatchProperty match)
      The rule match.

      Parameters:
      match - The rule match. This parameter is required.
      Returns:
      this
    • priority

      @Stability(Stable) public CfnRule.Builder priority(Number priority)
      The priority assigned to the rule.

      Each rule for a specific listener must have a unique priority. The lower the priority number the higher the priority.

      Parameters:
      priority - The priority assigned to the rule. This parameter is required.
      Returns:
      this
    • listenerIdentifier

      @Stability(Stable) public CfnRule.Builder listenerIdentifier(String listenerIdentifier)
      The ID or Amazon Resource Name (ARN) of the listener.

      Parameters:
      listenerIdentifier - The ID or Amazon Resource Name (ARN) of the listener. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnRule.Builder name(String name)
      The name of the rule.

      The name must be unique within the listener. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.

      If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.

      Parameters:
      name - The name of the rule. This parameter is required.
      Returns:
      this
    • serviceIdentifier

      @Stability(Stable) public CfnRule.Builder serviceIdentifier(String serviceIdentifier)
      The ID or Amazon Resource Name (ARN) of the service.

      Parameters:
      serviceIdentifier - The ID or Amazon Resource Name (ARN) of the service. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnRule.Builder tags(List<? extends CfnTag> tags)
      The tags for the rule.

      Parameters:
      tags - The tags for the rule. This parameter is required.
      Returns:
      this
    • build

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