Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a Classic Load Balancer.
You can add listeners, security groups, subnets, and tags when you create your load balancer, or you can add them later using CreateLoadBalancerListeners, ApplySecurityGroupsToLoadBalancer, AttachLoadBalancerToSubnets, 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 Classic Load Balancer in the Classic Load Balancers Guide.
Synopsis
- data CreateLoadBalancer = CreateLoadBalancer' {}
- newCreateLoadBalancer :: Text -> CreateLoadBalancer
- createLoadBalancer_securityGroups :: Lens' CreateLoadBalancer (Maybe [Text])
- createLoadBalancer_subnets :: Lens' CreateLoadBalancer (Maybe [Text])
- createLoadBalancer_availabilityZones :: Lens' CreateLoadBalancer (Maybe [Text])
- createLoadBalancer_scheme :: Lens' CreateLoadBalancer (Maybe Text)
- createLoadBalancer_tags :: Lens' CreateLoadBalancer (Maybe (NonEmpty Tag))
- createLoadBalancer_loadBalancerName :: Lens' CreateLoadBalancer Text
- createLoadBalancer_listeners :: Lens' CreateLoadBalancer [Listener]
- data CreateLoadBalancerResponse = CreateLoadBalancerResponse' {
- dNSName :: Maybe Text
- httpStatus :: Int
- newCreateLoadBalancerResponse :: Int -> CreateLoadBalancerResponse
- createLoadBalancerResponse_dNSName :: Lens' CreateLoadBalancerResponse (Maybe Text)
- createLoadBalancerResponse_httpStatus :: Lens' CreateLoadBalancerResponse Int
Creating a Request
data CreateLoadBalancer Source #
Contains the parameters for CreateLoadBalancer.
See: newCreateLoadBalancer
smart constructor.
CreateLoadBalancer' | |
|
Instances
newCreateLoadBalancer Source #
Create a value of CreateLoadBalancer
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:securityGroups:CreateLoadBalancer'
, createLoadBalancer_securityGroups
- The IDs of the security groups to assign to the load balancer.
$sel:subnets:CreateLoadBalancer'
, createLoadBalancer_subnets
- The IDs of the subnets in your VPC to attach to the load balancer.
Specify one subnet per Availability Zone specified in
AvailabilityZones
.
$sel:availabilityZones:CreateLoadBalancer'
, createLoadBalancer_availabilityZones
- One or more Availability Zones from the same region as the load
balancer.
You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
$sel:scheme:CreateLoadBalancer'
, createLoadBalancer_scheme
- The type of a load balancer. Valid only for load balancers in a VPC.
By default, Elastic Load Balancing creates an Internet-facing load balancer with a DNS name that resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Load Balancer Scheme in the Elastic Load Balancing User Guide.
Specify internal
to create a load balancer with a DNS name that
resolves to private IP addresses.
$sel:tags:CreateLoadBalancer'
, createLoadBalancer_tags
- A list of tags to assign to the load balancer.
For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.
$sel:loadBalancerName:CreateLoadBalancer'
, createLoadBalancer_loadBalancerName
- The name of the load balancer.
This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
$sel:listeners:CreateLoadBalancer'
, createLoadBalancer_listeners
- The listeners.
For more information, see Listeners for Your Classic Load Balancer in the Classic Load Balancers Guide.
Request Lenses
createLoadBalancer_securityGroups :: Lens' CreateLoadBalancer (Maybe [Text]) Source #
The IDs of the security groups to assign to the load balancer.
createLoadBalancer_subnets :: Lens' CreateLoadBalancer (Maybe [Text]) Source #
The IDs of the subnets in your VPC to attach to the load balancer.
Specify one subnet per Availability Zone specified in
AvailabilityZones
.
createLoadBalancer_availabilityZones :: Lens' CreateLoadBalancer (Maybe [Text]) Source #
One or more Availability Zones from the same region as the load balancer.
You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
createLoadBalancer_scheme :: Lens' CreateLoadBalancer (Maybe Text) Source #
The type of a load balancer. Valid only for load balancers in a VPC.
By default, Elastic Load Balancing creates an Internet-facing load balancer with a DNS name that resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Load Balancer Scheme in the Elastic Load Balancing User Guide.
Specify internal
to create a load balancer with a DNS name that
resolves to private IP addresses.
createLoadBalancer_tags :: Lens' CreateLoadBalancer (Maybe (NonEmpty Tag)) Source #
A list of tags to assign to the load balancer.
For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.
createLoadBalancer_loadBalancerName :: Lens' CreateLoadBalancer Text Source #
The name of the load balancer.
This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
createLoadBalancer_listeners :: Lens' CreateLoadBalancer [Listener] Source #
The listeners.
For more information, see Listeners for Your Classic Load Balancer in the Classic Load Balancers Guide.
Destructuring the Response
data CreateLoadBalancerResponse Source #
Contains the output for CreateLoadBalancer.
See: newCreateLoadBalancerResponse
smart constructor.
CreateLoadBalancerResponse' | |
|
Instances
newCreateLoadBalancerResponse Source #
Create a value of CreateLoadBalancerResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dNSName:CreateLoadBalancerResponse'
, createLoadBalancerResponse_dNSName
- The DNS name of the load balancer.
$sel:httpStatus:CreateLoadBalancerResponse'
, createLoadBalancerResponse_httpStatus
- The response's http status code.
Response Lenses
createLoadBalancerResponse_dNSName :: Lens' CreateLoadBalancerResponse (Maybe Text) Source #
The DNS name of the load balancer.
createLoadBalancerResponse_httpStatus :: Lens' CreateLoadBalancerResponse Int Source #
The response's http status code.