Class CfnListenerRuleProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • actions

      @Stability(Stable) public CfnListenerRuleProps.Builder actions(IResolvable actions)
      Parameters:
      actions - The actions. This parameter is required. 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.
      Returns:
      this
    • actions

      @Stability(Stable) public CfnListenerRuleProps.Builder actions(List<? extends Object> actions)
      Parameters:
      actions - The actions. This parameter is required. 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.
      Returns:
      this
    • conditions

      @Stability(Stable) public CfnListenerRuleProps.Builder conditions(IResolvable conditions)
      Parameters:
      conditions - The conditions. This parameter is required. 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 .
      Returns:
      this
    • conditions

      @Stability(Stable) public CfnListenerRuleProps.Builder conditions(List<? extends Object> conditions)
      Parameters:
      conditions - The conditions. This parameter is required. 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 .
      Returns:
      this
    • priority

      @Stability(Stable) public CfnListenerRuleProps.Builder priority(Number priority)
      Parameters:
      priority - The rule priority. A listener can't have multiple rules with the same priority. This parameter is required. 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.
      Returns:
      this
    • listenerArn

      @Stability(Stable) public CfnListenerRuleProps.Builder listenerArn(String listenerArn)
      Parameters:
      listenerArn - The Amazon Resource Name (ARN) of the listener.
      Returns:
      this
    • build

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