Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates an Application Load Balancer.
To create listeners for your load balancer, use CreateListener
. You can add security groups, subnets, and tags when you create your load balancer, or you can add them later using SetSecurityGroups
, SetSubnets
, and AddTags
.
To describe your current load balancers, see DescribeLoadBalancers
. When you are finished with a load balancer, you can delete it using DeleteLoadBalancer
.
You can create up to 20 load balancers per region per account. You can request an increase for the number of load balancers for your account. For more information, see Limits for Your Application Load Balancer in the Application Load Balancers Guide .
For more information, see Application Load Balancers in the Application Load Balancers Guide .
- createLoadBalancer :: Text -> CreateLoadBalancer
- data CreateLoadBalancer
- clbSecurityGroups :: Lens' CreateLoadBalancer [Text]
- clbScheme :: Lens' CreateLoadBalancer (Maybe LoadBalancerSchemeEnum)
- clbTags :: Lens' CreateLoadBalancer (Maybe (NonEmpty Tag))
- clbName :: Lens' CreateLoadBalancer Text
- clbSubnets :: Lens' CreateLoadBalancer [Text]
- createLoadBalancerResponse :: Int -> CreateLoadBalancerResponse
- data CreateLoadBalancerResponse
- clbrsLoadBalancers :: Lens' CreateLoadBalancerResponse [LoadBalancer]
- clbrsResponseStatus :: Lens' CreateLoadBalancerResponse Int
Creating a Request
Creates a value of CreateLoadBalancer
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
clbSecurityGroups
- The IDs of the security groups to assign to the load balancer.clbScheme
- The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the Internet. The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer. The default is an Internet-facing load balancer.clbTags
- One or more tags to assign to the load balancer.clbName
- The name of the load balancer. This name must be unique within your AWS account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.clbSubnets
- The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify subnets from at least two Availability Zones.
data CreateLoadBalancer Source #
Contains the parameters for CreateLoadBalancer.
See: createLoadBalancer
smart constructor.
Request Lenses
clbSecurityGroups :: Lens' CreateLoadBalancer [Text] Source #
The IDs of the security groups to assign to the load balancer.
clbScheme :: Lens' CreateLoadBalancer (Maybe LoadBalancerSchemeEnum) Source #
The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the Internet. The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer. The default is an Internet-facing load balancer.
clbTags :: Lens' CreateLoadBalancer (Maybe (NonEmpty Tag)) Source #
One or more tags to assign to the load balancer.
clbName :: Lens' CreateLoadBalancer Text Source #
The name of the load balancer. This name must be unique within your AWS account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
clbSubnets :: Lens' CreateLoadBalancer [Text] Source #
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify subnets from at least two Availability Zones.
Destructuring the Response
createLoadBalancerResponse Source #
Creates a value of CreateLoadBalancerResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
clbrsLoadBalancers
- Information about the load balancer.clbrsResponseStatus
- -- | The response status code.
data CreateLoadBalancerResponse Source #
Contains the output of CreateLoadBalancer.
See: createLoadBalancerResponse
smart constructor.
Response Lenses
clbrsLoadBalancers :: Lens' CreateLoadBalancerResponse [LoadBalancer] Source #
Information about the load balancer.
clbrsResponseStatus :: Lens' CreateLoadBalancerResponse Int Source #
- - | The response status code.