Interface CfnLoadBalancer.PoliciesProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

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

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


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 Object attributes;
 PoliciesProperty policiesProperty = PoliciesProperty.builder()
         // the properties below are optional
  • 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()
      a CfnLoadBalancer.PoliciesProperty.Builder of CfnLoadBalancer.PoliciesProperty