// Creates an Application Load Balancer or a Network Load Balancer. When you create
// a load balancer, you can specify security groups, public subnets, IP address
// type, and tags. Otherwise, you could do so later using SetSecurityGroups,
// SetSubnets, SetIpAddressType, and AddTags. To create listeners for your load
// balancer, use CreateListener. To describe your current load balancers, see
// DescribeLoadBalancers. When you are finished with a load balancer, you can
// delete it using DeleteLoadBalancer. For limit information, see Limits for Your
// Application Load Balancer
// (https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-limits.html)
// in the Application Load Balancers Guide and Limits for Your Network Load
// Balancer
// (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-limits.html)
// in the Network Load Balancers Guide. This operation is idempotent, which means
// that it completes at most one time. If you attempt to create multiple load
// balancers with the same settings, each call succeeds. For more information, see
// Application Load Balancers
// (https://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html)
// in the Application Load Balancers Guide and Network Load Balancers
// (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html)
// in the Network Load Balancers Guide.
Creates an Application Load Balancer or a Network Load Balancer. When you create
a load balancer, you can specify security groups, public subnets, IP address
type, and tags. Otherwise, you could do so later using SetSecurityGroups,
SetSubnets, SetIpAddressType, and AddTags. To create listeners for your load
balancer, use CreateListener. To describe your current load balancers, see
DescribeLoadBalancers. When you are finished with a load balancer, you can
delete it using DeleteLoadBalancer. For limit information, see Limits for Your
Application Load Balancer

in the Application Load Balancers Guide and Limits for Your Network Load
Balancer

in the Network Load Balancers Guide. This operation is idempotent, which means
that it completes at most one time. If you attempt to create multiple load
balancers with the same settings, each call succeeds. For more information, see
Application Load Balancers

in the Application Load Balancers Guide and Network Load Balancers

in the Network Load Balancers Guide.
// Creates an Application Load Balancer or a Network Load Balancer . When you create // a load balancer you can specify security groups public subnets IP address // type and tags . Otherwise you could do so later using SetSecurityGroups // SetSubnets SetIpAddressType and AddTags . To create listeners for your load // balancer use CreateListener . To describe your current load balancers see // DescribeLoadBalancers . When you are finished with a load balancer you can // delete it using DeleteLoadBalancer . For limit information see Limits for Your // Application Load Balancer // ( https : // docs . aws . amazon . com / elasticloadbalancing / latest / application / load - balancer - limits . html ) // in the Application Load Balancers Guide and Limits for Your Network Load // Balancer // ( https : // docs . aws . amazon . com / elasticloadbalancing / latest / network / load - balancer - limits . html ) // in the Network Load Balancers Guide . This operation is idempotent which means // that it completes at most one time . If you attempt to create multiple load // balancers with the same settings each call succeeds . For more information see // Application Load Balancers // ( https : // docs . aws . amazon . com / elasticloadbalancing / latest / application / application - load - balancers . html ) // in the Application Load Balancers Guide and Network Load Balancers // ( https : // docs . aws . amazon . com / elasticloadbalancing / latest / network / network - load - balancers . html ) // in the Network Load Balancers Guide .
func (c *Client) CreateLoadBalancer(ctx context.Context, params *CreateLoadBalancerInput, optFns ...func(*Options)) (*CreateLoadBalancerOutput, error) {
	if params == nil {
		params = &CreateLoadBalancerInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CreateLoadBalancer", params, optFns, addOperationCreateLoadBalancerMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CreateLoadBalancerOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CreateLoadBalancer ( ctx context . Context , params * CreateLoadBalancerInput , optFns ... func ( * Options ) ) ( * CreateLoadBalancerOutput , error ) { if params == nil { params = & CreateLoadBalancerInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCreateLoadBalancerMiddlewares ) if err != nil { return nil , err } out := result . ( * CreateLoadBalancerOutput ) out . ResultMetadata = metadata return out , nil }
Creates an Application Load Balancer or a Network Load Balancer.
Creates an Application Load Balancer or a Network Load Balancer .