Class CfnListenerRule.Builder

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

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

    • create

      @Stability(Stable) public static CfnListenerRule.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 CfnListenerRule.Builder.
    • actions

      @Stability(Stable) public CfnListenerRule.Builder actions(IResolvable actions)
      The actions.

      The rule must include exactly one of the following types of actions: forward , fixed-response , or redirect , and it must be the last action to be performed. If the rule is for an HTTPS listener, it can also optionally include an authentication action.

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

      @Stability(Stable) public CfnListenerRule.Builder actions(List<? extends Object> actions)
      The actions.

      The rule must include exactly one of the following types of actions: forward , fixed-response , or redirect , and it must be the last action to be performed. If the rule is for an HTTPS listener, it can also optionally include an authentication action.

      Parameters:
      actions - The actions. This parameter is required.
      Returns:
      this
    • conditions

      @Stability(Stable) public CfnListenerRule.Builder conditions(IResolvable conditions)
      The conditions.

      The rule can optionally include up to one of each of the following conditions: http-request-method , host-header , path-pattern , and source-ip . A rule can also optionally include one or more of each of the following conditions: http-header and query-string .

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

      @Stability(Stable) public CfnListenerRule.Builder conditions(List<? extends Object> conditions)
      The conditions.

      The rule can optionally include up to one of each of the following conditions: http-request-method , host-header , path-pattern , and source-ip . A rule can also optionally include one or more of each of the following conditions: http-header and query-string .

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

      @Stability(Stable) public CfnListenerRule.Builder priority(Number priority)
      The rule priority. A listener can't have multiple rules with the same priority.

      If you try to reorder rules by updating their priorities, do not specify a new priority if an existing rule already uses this priority, as this can cause an error. If you need to reuse a priority with a different rule, you must remove it as a priority first, and then specify it in a subsequent update.

      Parameters:
      priority - The rule priority. A listener can't have multiple rules with the same priority. This parameter is required.
      Returns:
      this
    • listenerArn

      @Stability(Stable) public CfnListenerRule.Builder listenerArn(String listenerArn)
      The Amazon Resource Name (ARN) of the listener.

      Parameters:
      listenerArn - The Amazon Resource Name (ARN) of the listener. This parameter is required.
      Returns:
      this
    • build

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