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.134.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1911c168a87546dda9ca012a453d15ddf162852d03ce0542854b59b7d2ec474c |
|
MD5 | 55000921c436301584a6630f30f5ad86 |
|
BLAKE2b-256 | 7ae2fbfbcb8f2f13d70e96eae102b3465b44da7da6d46c864f694365a9f77df5 |
Close
Hashes for aws_cdk.aws_elasticloadbalancing-1.134.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21a00f171a1e969aeeeb3ec952529c210b20be0122c6f08253335e4386827ab0 |
|
MD5 | 317376d5dd13b687156df6a4f7271f22 |
|
BLAKE2b-256 | 9a5769c958874bdafab008e14c95bb6f72fa92db0da049c400645e2d2f4dbf37 |