@Stability(value=Stable)
public static interface CfnLoadBalancer.PoliciesProperty
extends software.amazon.jsii.JsiiSerializable
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() |
Object |
getAttributes()
The policy attributes.
|
default List<String> |
getInstancePorts()
The instance ports for the policy.
|
default List<String> |
getLoadBalancerPorts()
The load balancer ports for the policy.
|
String |
getPolicyName()
The name of the policy.
|
String |
getPolicyType()
The name of the policy type.
|
@Stability(value=Stable) @NotNull Object getAttributes()
@Stability(value=Stable) @NotNull String getPolicyName()
@Stability(value=Stable) @NotNull String getPolicyType()
@Stability(value=Stable) @Nullable default List<String> getInstancePorts()
Required only for some policy types.
@Stability(value=Stable) @Nullable default List<String> getLoadBalancerPorts()
Required only for some policy types.
@Stability(value=Stable) static CfnLoadBalancer.PoliciesProperty.Builder builder()
Copyright © 2022. All rights reserved.