public static interface CfnLoadBalancer.PoliciesProperty
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();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnLoadBalancer.PoliciesProperty.Builder
A builder for
CfnLoadBalancer.PoliciesProperty |
static class |
CfnLoadBalancer.PoliciesProperty.Jsii$Proxy
An implementation for
CfnLoadBalancer.PoliciesProperty |
Modifier and Type | Method and Description |
---|---|
static CfnLoadBalancer.PoliciesProperty.Builder |
builder() |
java.lang.Object |
getAttributes()
The policy attributes.
|
default java.util.List<java.lang.String> |
getInstancePorts()
The instance ports for the policy.
|
default java.util.List<java.lang.String> |
getLoadBalancerPorts()
The load balancer ports for the policy.
|
java.lang.String |
getPolicyName()
The name of the policy.
|
java.lang.String |
getPolicyType()
The name of the policy type.
|
java.lang.Object getAttributes()
java.lang.String getPolicyName()
java.lang.String getPolicyType()
default java.util.List<java.lang.String> getInstancePorts()
Required only for some policy types.
default java.util.List<java.lang.String> getLoadBalancerPorts()
Required only for some policy types.
static CfnLoadBalancer.PoliciesProperty.Builder builder()