AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateLoadBalancerInput

import "github.com/aws/aws-sdk-go/service/elb"

type CreateLoadBalancerInput struct { AvailabilityZones []*string `type:"list"` Listeners []*Listener `type:"list" required:"true"` LoadBalancerName *string `type:"string" required:"true"` Scheme *string `type:"string"` SecurityGroups []*string `type:"list"` Subnets []*string `type:"list"` Tags []*Tag `min:"1" type:"list"` }

Contains the parameters for CreateLoadBalancer.

AvailabilityZones

Type: []*string

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.

Listeners

Information about a listener.

For information about the protocols and the ports supported by Elastic Load Balancing, see Listeners for Your Classic Load Balancer (https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html) in the Classic Load Balancers Guide.

LoadBalancerName

Type: *string

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.

LoadBalancerName is a required field

Scheme

Type: *string

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 (https://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/how-elastic-load-balancing-works.html#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.

SecurityGroups

Type: []*string

The IDs of the security groups to assign to the load balancer.

Subnets

Type: []*string

The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in AvailabilityZones.

Tags

Information about a tag.

Method

GoString

func (s CreateLoadBalancerInput) GoString() string

GoString returns the string representation

SetAvailabilityZones

func (s *CreateLoadBalancerInput) SetAvailabilityZones(v []*string) *CreateLoadBalancerInput

SetAvailabilityZones sets the AvailabilityZones field's value.

SetListeners

func (s *CreateLoadBalancerInput) SetListeners(v []*Listener) *CreateLoadBalancerInput

SetListeners sets the Listeners field's value.

SetLoadBalancerName

func (s *CreateLoadBalancerInput) SetLoadBalancerName(v string) *CreateLoadBalancerInput

SetLoadBalancerName sets the LoadBalancerName field's value.

SetScheme

func (s *CreateLoadBalancerInput) SetScheme(v string) *CreateLoadBalancerInput

SetScheme sets the Scheme field's value.

SetSecurityGroups

func (s *CreateLoadBalancerInput) SetSecurityGroups(v []*string) *CreateLoadBalancerInput

SetSecurityGroups sets the SecurityGroups field's value.

SetSubnets

func (s *CreateLoadBalancerInput) SetSubnets(v []*string) *CreateLoadBalancerInput

SetSubnets sets the Subnets field's value.

SetTags

func (s *CreateLoadBalancerInput) SetTags(v []*Tag) *CreateLoadBalancerInput

SetTags sets the Tags field's value.

String

func (s CreateLoadBalancerInput) String() string

String returns the string representation

Validate

func (s *CreateLoadBalancerInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: