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.

CreateListenerInput

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

type CreateListenerInput struct { Certificates []*Certificate `type:"list"` DefaultActions []*Action `type:"list" required:"true"` LoadBalancerArn *string `type:"string" required:"true"` Port *int64 `min:"1" type:"integer" required:"true"` Protocol *string `type:"string" required:"true" enum:"ProtocolEnum"` SslPolicy *string `type:"string"` }

Certificates

Information about an SSL server certificate.

DefaultActions

Information about an action.

LoadBalancerArn

Type: *string

The Amazon Resource Name (ARN) of the load balancer.

LoadBalancerArn is a required field

Port

Type: *int64

The port on which the load balancer is listening.

Port is a required field

Protocol

Type: *string

The protocol for connections from clients to the load balancer. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP and TLS.

Protocol is a required field

SslPolicy

Type: *string

[HTTPS and TLS listeners] The security policy that defines which ciphers and protocols are supported. The default is the current predefined security policy.

Method

GoString

func (s CreateListenerInput) GoString() string

GoString returns the string representation

SetCertificates

func (s *CreateListenerInput) SetCertificates(v []*Certificate) *CreateListenerInput

SetCertificates sets the Certificates field's value.

SetDefaultActions

func (s *CreateListenerInput) SetDefaultActions(v []*Action) *CreateListenerInput

SetDefaultActions sets the DefaultActions field's value.

SetLoadBalancerArn

func (s *CreateListenerInput) SetLoadBalancerArn(v string) *CreateListenerInput

SetLoadBalancerArn sets the LoadBalancerArn field's value.

SetPort

func (s *CreateListenerInput) SetPort(v int64) *CreateListenerInput

SetPort sets the Port field's value.

SetProtocol

func (s *CreateListenerInput) SetProtocol(v string) *CreateListenerInput

SetProtocol sets the Protocol field's value.

SetSslPolicy

func (s *CreateListenerInput) SetSslPolicy(v string) *CreateListenerInput

SetSslPolicy sets the SslPolicy field's value.

String

func (s CreateListenerInput) String() string

String returns the string representation

Validate

func (s *CreateListenerInput) Validate() error

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

On this page: