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/lightsail"

type CreateLoadBalancerInput struct { CertificateAlternativeNames []*string `locationName:"certificateAlternativeNames" type:"list"` CertificateDomainName *string `locationName:"certificateDomainName" type:"string"` CertificateName *string `locationName:"certificateName" type:"string"` HealthCheckPath *string `locationName:"healthCheckPath" type:"string"` InstancePort *int64 `locationName:"instancePort" type:"integer" required:"true"` LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` Tags []*Tag `locationName:"tags" type:"list"` }

CertificateAlternativeNames

Type: []*string

The optional alternative domains and subdomains to use with your SSL/TLS certificate (e.g., www.example.com, example.com, m.example.com, blog.example.com).

CertificateDomainName

Type: *string

The domain name with which your certificate is associated (e.g., example.com).

If you specify certificateDomainName, then certificateName is required (and vice-versa).

CertificateName

Type: *string

The name of the SSL/TLS certificate.

If you specify certificateName, then certificateDomainName is required (and vice-versa).

HealthCheckPath

Type: *string

The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., "/").

You may want to specify a custom health check path other than the root of your application if your home page loads slowly or has a lot of media or scripting on it.

InstancePort

Type: *int64

The instance port where you're creating your load balancer.

InstancePort is a required field

LoadBalancerName

Type: *string

The name of your load balancer.

LoadBalancerName is a required field

Tags

Describes a tag key and optional value assigned to an Amazon Lightsail resource.

For more information about tags in Lightsail, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags).

Method

GoString

func (s CreateLoadBalancerInput) GoString() string

GoString returns the string representation

SetCertificateAlternativeNames

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

SetCertificateAlternativeNames sets the CertificateAlternativeNames field's value.

SetCertificateDomainName

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

SetCertificateDomainName sets the CertificateDomainName field's value.

SetCertificateName

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

SetCertificateName sets the CertificateName field's value.

SetHealthCheckPath

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

SetHealthCheckPath sets the HealthCheckPath field's value.

SetInstancePort

func (s *CreateLoadBalancerInput) SetInstancePort(v int64) *CreateLoadBalancerInput

SetInstancePort sets the InstancePort field's value.

SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName 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: