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.136.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccebb90dadf535bb9bd473b4c3c975b76ba19b8561351b1a2ea2e8b63caa36c6 |
|
MD5 | 9cfc4d9681f83f3a260bf2dff02e428d |
|
BLAKE2b-256 | f5a9c1e6b66b1346cd9a3b84d69b8839cd6f0b7bf4827e656de319bb526ac365 |
Close
Hashes for aws_cdk.aws_elasticloadbalancing-1.136.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f8c620a21d412a49a7b8abaedab066b15d07db9b0efb34a8eaaa882804c1eb0 |
|
MD5 | 5112d2383244b6ceb278f10459246cf2 |
|
BLAKE2b-256 | 4899c890119526da7c8a7ecc7545a2122c980017e4f08a374590a6e3ac16f7da |