LoadBalancerOptionsProperty Struct
Describes the load balancer options when creating an AWS Verified Access endpoint using the load-balancer type.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const loadBalancerOptionsProperty: ec2.CfnVerifiedAccessEndpoint.LoadBalancerOptionsProperty = {
loadBalancerArn: 'loadBalancerArn',
port: 123,
portRanges: [{
fromPort: 123,
toPort: 123,
}],
protocol: 'protocol',
subnetIds: ['subnetIds'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
load_balancer_options_property = ec2.CfnVerifiedAccessEndpoint.LoadBalancerOptionsProperty(
load_balancer_arn="loadBalancerArn",
port=123,
port_ranges=[ec2.CfnVerifiedAccessEndpoint.PortRangeProperty(
from_port=123,
to_port=123
)],
protocol="protocol",
subnet_ids=["subnetIds"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
LoadBalancerOptionsProperty loadBalancerOptionsProperty = LoadBalancerOptionsProperty.builder()
.loadBalancerArn("loadBalancerArn")
.port(123)
.portRanges(List.of(PortRangeProperty.builder()
.fromPort(123)
.toPort(123)
.build()))
.protocol("protocol")
.subnetIds(List.of("subnetIds"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var loadBalancerOptionsProperty = new LoadBalancerOptionsProperty {
LoadBalancerArn = "loadBalancerArn",
Port = 123,
PortRanges = new [] { new PortRangeProperty {
FromPort = 123,
ToPort = 123
} },
Protocol = "protocol",
SubnetIds = new [] { "subnetIds" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
loadBalancerOptionsProperty := &LoadBalancerOptionsProperty{
LoadBalancerArn: jsii.String("loadBalancerArn"),
Port: jsii.Number(123),
PortRanges: []interface{}{
&PortRangeProperty{
FromPort: jsii.Number(123),
ToPort: jsii.Number(123),
},
},
Protocol: jsii.String("protocol"),
SubnetIds: []*string{
jsii.String("subnetIds"),
},
}
Properties
loadBalancerArnoptionalstringload_balancer_arnoptionalstrloadBalancerArnoptionalStringLoadBalancerArnoptionalstringLoadBalancerArnoptional*string #The ARN of the load balancer.
The IP port number.
portRangesoptionalIResolvable | IResolvable | CfnVerifiedAccessEndpoint.port_rangesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PortRangeProperty]]]portRangesoptionalIResolvablePortRangesoptionalIResolvablePortRangesoptionalinterface{} #The port ranges.
protocoloptionalstringprotocoloptionalstrprotocoloptionalStringProtocoloptionalstringProtocoloptional*string #The IP protocol.
subnetIdsoptionalstring[]subnet_idsoptionaltyping.List[str]subnetIdsoptionalList<String>SubnetIdsoptionalstring[]SubnetIdsoptional*[]*string #The IDs of the subnets.
You can specify only one subnet per Availability Zone.