Interface CfnLoadBalancer.PoliciesProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnLoadBalancer.PoliciesProperty.Jsii$Proxy
Enclosing class:
CfnLoadBalancer

@Stability(Stable) public static interface CfnLoadBalancer.PoliciesProperty extends software.amazon.jsii.JsiiSerializable
Specifies policies for your Classic Load Balancer.

To associate policies with a listener, use the PolicyNames property for the listener.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.elasticloadbalancing.*;
 Object attributes;
 PoliciesProperty policiesProperty = PoliciesProperty.builder()
         .attributes(List.of(attributes))
         .policyName("policyName")
         .policyType("policyType")
         // the properties below are optional
         .instancePorts(List.of("instancePorts"))
         .loadBalancerPorts(List.of("loadBalancerPorts"))
         .build();
 
  • Method Details

    • getAttributes

      @Stability(Stable) @NotNull Object getAttributes()
      The policy attributes.
    • getPolicyName

      @Stability(Stable) @NotNull String getPolicyName()
      The name of the policy.
    • getPolicyType

      @Stability(Stable) @NotNull String getPolicyType()
      The name of the policy type.
    • getInstancePorts

      @Stability(Stable) @Nullable default List<String> getInstancePorts()
      The instance ports for the policy.

      Required only for some policy types.

    • getLoadBalancerPorts

      @Stability(Stable) @Nullable default List<String> getLoadBalancerPorts()
      The load balancer ports for the policy.

      Required only for some policy types.

    • builder

      @Stability(Stable) static CfnLoadBalancer.PoliciesProperty.Builder builder()
      Returns:
      a CfnLoadBalancer.PoliciesProperty.Builder of CfnLoadBalancer.PoliciesProperty