The CDK Construct Library for AWS::ElasticLoadBalancing
Project description
Amazon Elastic Load Balancing Construct Library
---The @aws-cdk/aws-elasticloadbalancing
package provides constructs for configuring
classic load balancers.
Configuring a Load Balancer
Load balancers send traffic to one or more AutoScalingGroups. Create a load
balancer, set up listeners and a health check, and supply the fleet(s) you want
to load balance to in the targets
property.
# Example automatically generated from non-compiling source. May contain errors.
lb = elb.LoadBalancer(self, "LB",
vpc=vpc,
internet_facing=True,
health_check={
"port": 80
}
)
lb.add_target(my_auto_scaling_group)
lb.add_listener(
external_port=80
)
The load balancer allows all connections by default. If you want to change that,
pass the allowConnectionsFrom
property while setting up the listener:
# Example automatically generated from non-compiling source. May contain errors.
lb.add_listener(
external_port=80,
allow_connections_from=[my_security_group]
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aws-cdk.aws-elasticloadbalancing-1.141.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcd65660b185d7de51007d36827077281913e3a5bd8d7a26a30964bb3f311538 |
|
MD5 | 1e50ca61590f0a84f3c3232e37bfa345 |
|
BLAKE2b-256 | 9d7591c449a11f17f7de4e9837d145079d05bcf52ea320b9b40224e2b8ea6aca |
Close
Hashes for aws_cdk.aws_elasticloadbalancing-1.141.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5f812f37f8c3d25b3bdf1875836ea1ace47e353bbb4c649e08d01dce56f8b71 |
|
MD5 | 9451d0b42f8b17c77ab4101ee5acbc15 |
|
BLAKE2b-256 | 1ad0f40cf7957ae6a5bd4566f37a89d744e79f0806e905c94735a558ad1e8dc5 |