elbv2

package
v2.0.0-preview.1+incom... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2017 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package elbv2 provides the client and types for making API requests to Elastic Load Balancing.

A load balancer distributes incoming traffic across targets, such as your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered targets and ensures that it routes traffic only to healthy targets. You configure your load balancer to accept incoming traffic by specifying one or more listeners, which are configured with a protocol and port number for connections from clients to the load balancer. You configure a target group with a protocol and port number for connections from the load balancer to the targets, and with health check settings to be used when checking the health status of the targets.

Elastic Load Balancing supports the following types of load balancers: Application Load Balancers, Network Load Balancers, and Classic Load Balancers.

An Application Load Balancer makes routing and load balancing decisions at the application layer (HTTP/HTTPS). A Network Load Balancer makes routing and load balancing decisions at the transport layer (TCP). Both Application Load Balancers and Network Load Balancers can route requests to one or more ports on each EC2 instance or container instance in your virtual private cloud (VPC).

A Classic Load Balancer makes routing and load balancing decisions either at the transport layer (TCP/SSL) or the application layer (HTTP/HTTPS), and supports either EC2-Classic or a VPC. For more information, see the Elastic Load Balancing User Guide (http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/).

This reference covers the 2015-12-01 API, which supports Application Load Balancers and Network Load Balancers. The 2012-06-01 API supports Classic Load Balancers.

To get started, complete the following tasks:

Create a load balancer using CreateLoadBalancer.

Create a target group using CreateTargetGroup.

Register targets for the target group using RegisterTargets.

Create one or more listeners for your load balancer using CreateListener.

To delete a load balancer and its related resources, complete the following tasks:

Delete the load balancer using DeleteLoadBalancer.

Delete the target group using DeleteTargetGroup.

All Elastic Load Balancing operations are idempotent, which means that they complete at most one time. If you repeat an operation, it succeeds.

See https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01 for more information on this service.

See elbv2 package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/elbv2/

Using the Client

To Elastic Load Balancing with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Elastic Load Balancing client ELBV2 for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/elbv2/#New

Index

Examples

Constants

View Source
const (

	// ErrCodeAllocationIdNotFoundException for service response error code
	// "AllocationIdNotFound".
	//
	// The specified allocation ID does not exist.
	ErrCodeAllocationIdNotFoundException = "AllocationIdNotFound"

	// ErrCodeAvailabilityZoneNotSupportedException for service response error code
	// "AvailabilityZoneNotSupported".
	//
	// The specified Availability Zone is not supported.
	ErrCodeAvailabilityZoneNotSupportedException = "AvailabilityZoneNotSupported"

	// ErrCodeCertificateNotFoundException for service response error code
	// "CertificateNotFound".
	//
	// The specified certificate does not exist.
	ErrCodeCertificateNotFoundException = "CertificateNotFound"

	// ErrCodeDuplicateListenerException for service response error code
	// "DuplicateListener".
	//
	// A listener with the specified port already exists.
	ErrCodeDuplicateListenerException = "DuplicateListener"

	// ErrCodeDuplicateLoadBalancerNameException for service response error code
	// "DuplicateLoadBalancerName".
	//
	// A load balancer with the specified name already exists.
	ErrCodeDuplicateLoadBalancerNameException = "DuplicateLoadBalancerName"

	// ErrCodeDuplicateTagKeysException for service response error code
	// "DuplicateTagKeys".
	//
	// A tag key was specified more than once.
	ErrCodeDuplicateTagKeysException = "DuplicateTagKeys"

	// ErrCodeDuplicateTargetGroupNameException for service response error code
	// "DuplicateTargetGroupName".
	//
	// A target group with the specified name already exists.
	ErrCodeDuplicateTargetGroupNameException = "DuplicateTargetGroupName"

	// ErrCodeHealthUnavailableException for service response error code
	// "HealthUnavailable".
	//
	// The health of the specified targets could not be retrieved due to an internal
	// error.
	ErrCodeHealthUnavailableException = "HealthUnavailable"

	// ErrCodeIncompatibleProtocolsException for service response error code
	// "IncompatibleProtocols".
	//
	// The specified configuration is not valid with this protocol.
	ErrCodeIncompatibleProtocolsException = "IncompatibleProtocols"

	// ErrCodeInvalidConfigurationRequestException for service response error code
	// "InvalidConfigurationRequest".
	//
	// The requested configuration is not valid.
	ErrCodeInvalidConfigurationRequestException = "InvalidConfigurationRequest"

	// ErrCodeInvalidSchemeException for service response error code
	// "InvalidScheme".
	//
	// The requested scheme is not valid.
	ErrCodeInvalidSchemeException = "InvalidScheme"

	// ErrCodeInvalidSecurityGroupException for service response error code
	// "InvalidSecurityGroup".
	//
	// The specified security group does not exist.
	ErrCodeInvalidSecurityGroupException = "InvalidSecurityGroup"

	// ErrCodeInvalidSubnetException for service response error code
	// "InvalidSubnet".
	//
	// The specified subnet is out of available addresses.
	ErrCodeInvalidSubnetException = "InvalidSubnet"

	// ErrCodeInvalidTargetException for service response error code
	// "InvalidTarget".
	//
	// The specified target does not exist or is not in the same VPC as the target
	// group.
	ErrCodeInvalidTargetException = "InvalidTarget"

	// ErrCodeListenerNotFoundException for service response error code
	// "ListenerNotFound".
	//
	// The specified listener does not exist.
	ErrCodeListenerNotFoundException = "ListenerNotFound"

	// ErrCodeLoadBalancerNotFoundException for service response error code
	// "LoadBalancerNotFound".
	//
	// The specified load balancer does not exist.
	ErrCodeLoadBalancerNotFoundException = "LoadBalancerNotFound"

	// ErrCodeOperationNotPermittedException for service response error code
	// "OperationNotPermitted".
	//
	// This operation is not allowed.
	ErrCodeOperationNotPermittedException = "OperationNotPermitted"

	// ErrCodePriorityInUseException for service response error code
	// "PriorityInUse".
	//
	// The specified priority is in use.
	ErrCodePriorityInUseException = "PriorityInUse"

	// ErrCodeResourceInUseException for service response error code
	// "ResourceInUse".
	//
	// A specified resource is in use.
	ErrCodeResourceInUseException = "ResourceInUse"

	// ErrCodeRuleNotFoundException for service response error code
	// "RuleNotFound".
	//
	// The specified rule does not exist.
	ErrCodeRuleNotFoundException = "RuleNotFound"

	// ErrCodeSSLPolicyNotFoundException for service response error code
	// "SSLPolicyNotFound".
	//
	// The specified SSL policy does not exist.
	ErrCodeSSLPolicyNotFoundException = "SSLPolicyNotFound"

	// ErrCodeSubnetNotFoundException for service response error code
	// "SubnetNotFound".
	//
	// The specified subnet does not exist.
	ErrCodeSubnetNotFoundException = "SubnetNotFound"

	// ErrCodeTargetGroupAssociationLimitException for service response error code
	// "TargetGroupAssociationLimit".
	//
	// You've reached the limit on the number of load balancers per target group.
	ErrCodeTargetGroupAssociationLimitException = "TargetGroupAssociationLimit"

	// ErrCodeTargetGroupNotFoundException for service response error code
	// "TargetGroupNotFound".
	//
	// The specified target group does not exist.
	ErrCodeTargetGroupNotFoundException = "TargetGroupNotFound"

	// ErrCodeTooManyCertificatesException for service response error code
	// "TooManyCertificates".
	//
	// You've reached the limit on the number of certificates per load balancer.
	ErrCodeTooManyCertificatesException = "TooManyCertificates"

	// ErrCodeTooManyListenersException for service response error code
	// "TooManyListeners".
	//
	// You've reached the limit on the number of listeners per load balancer.
	ErrCodeTooManyListenersException = "TooManyListeners"

	// ErrCodeTooManyLoadBalancersException for service response error code
	// "TooManyLoadBalancers".
	//
	// You've reached the limit on the number of load balancers for your AWS account.
	ErrCodeTooManyLoadBalancersException = "TooManyLoadBalancers"

	// ErrCodeTooManyRegistrationsForTargetIdException for service response error code
	// "TooManyRegistrationsForTargetId".
	//
	// You've reached the limit on the number of times a target can be registered
	// with a load balancer.
	ErrCodeTooManyRegistrationsForTargetIdException = "TooManyRegistrationsForTargetId"

	// ErrCodeTooManyRulesException for service response error code
	// "TooManyRules".
	//
	// You've reached the limit on the number of rules per load balancer.
	ErrCodeTooManyRulesException = "TooManyRules"

	// ErrCodeTooManyTagsException for service response error code
	// "TooManyTags".
	//
	// You've reached the limit on the number of tags per load balancer.
	ErrCodeTooManyTagsException = "TooManyTags"

	// ErrCodeTooManyTargetGroupsException for service response error code
	// "TooManyTargetGroups".
	//
	// You've reached the limit on the number of target groups for your AWS account.
	ErrCodeTooManyTargetGroupsException = "TooManyTargetGroups"

	// ErrCodeTooManyTargetsException for service response error code
	// "TooManyTargets".
	//
	// You've reached the limit on the number of targets.
	ErrCodeTooManyTargetsException = "TooManyTargets"

	// ErrCodeUnsupportedProtocolException for service response error code
	// "UnsupportedProtocol".
	//
	// The specified protocol is not supported.
	ErrCodeUnsupportedProtocolException = "UnsupportedProtocol"
)
View Source
const (
	ServiceName = "elasticloadbalancing" // Service endpoint prefix API calls made to.
	EndpointsID = ServiceName            // Service ID for Regions and Endpoints metadata.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {

	// The Amazon Resource Name (ARN) of the target group.
	//
	// TargetGroupArn is a required field
	TargetGroupArn *string `type:"string" required:"true"`

	// The type of action.
	//
	// Type is a required field
	Type ActionTypeEnum `type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

Information about an action. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Action

func (Action) GoString

func (s Action) GoString() string

GoString returns the string representation

func (*Action) SetTargetGroupArn

func (s *Action) SetTargetGroupArn(v string) *Action

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*Action) SetType

func (s *Action) SetType(v ActionTypeEnum) *Action

SetType sets the Type field's value.

func (Action) String

func (s Action) String() string

String returns the string representation

func (*Action) Validate

func (s *Action) Validate() error

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

type ActionTypeEnum

type ActionTypeEnum string
const (
	ActionTypeEnumForward ActionTypeEnum = "forward"
)

Enum values for ActionTypeEnum

type AddListenerCertificatesInput

type AddListenerCertificatesInput struct {

	// The certificate to add. You can specify one certificate per call.
	//
	// Certificates is a required field
	Certificates []Certificate `type:"list" required:"true"`

	// The Amazon Resource Name (ARN) of the listener.
	//
	// ListenerArn is a required field
	ListenerArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddListenerCertificatesInput

func (AddListenerCertificatesInput) GoString

func (s AddListenerCertificatesInput) GoString() string

GoString returns the string representation

func (*AddListenerCertificatesInput) SetCertificates

SetCertificates sets the Certificates field's value.

func (*AddListenerCertificatesInput) SetListenerArn

SetListenerArn sets the ListenerArn field's value.

func (AddListenerCertificatesInput) String

String returns the string representation

func (*AddListenerCertificatesInput) Validate

func (s *AddListenerCertificatesInput) Validate() error

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

type AddListenerCertificatesOutput

type AddListenerCertificatesOutput struct {

	// Information about the certificates.
	Certificates []Certificate `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddListenerCertificatesOutput

func (AddListenerCertificatesOutput) GoString

GoString returns the string representation

func (AddListenerCertificatesOutput) SDKResponseMetadata

func (s AddListenerCertificatesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*AddListenerCertificatesOutput) SetCertificates

SetCertificates sets the Certificates field's value.

func (AddListenerCertificatesOutput) String

String returns the string representation

type AddListenerCertificatesRequest

type AddListenerCertificatesRequest struct {
	*aws.Request
	Input *AddListenerCertificatesInput
}

AddListenerCertificatesRequest is a API request type for the AddListenerCertificates API operation.

func (AddListenerCertificatesRequest) Send

Send marshals and sends the AddListenerCertificates API request.

type AddTagsInput

type AddTagsInput struct {

	// The Amazon Resource Name (ARN) of the resource.
	//
	// ResourceArns is a required field
	ResourceArns []string `type:"list" required:"true"`

	// The tags. Each resource can have a maximum of 10 tags.
	//
	// Tags is a required field
	Tags []Tag `min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTagsInput

func (AddTagsInput) GoString

func (s AddTagsInput) GoString() string

GoString returns the string representation

func (*AddTagsInput) SetResourceArns

func (s *AddTagsInput) SetResourceArns(v []string) *AddTagsInput

SetResourceArns sets the ResourceArns field's value.

func (*AddTagsInput) SetTags

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

SetTags sets the Tags field's value.

func (AddTagsInput) String

func (s AddTagsInput) String() string

String returns the string representation

func (*AddTagsInput) Validate

func (s *AddTagsInput) Validate() error

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

type AddTagsOutput

type AddTagsOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTagsOutput

func (AddTagsOutput) GoString

func (s AddTagsOutput) GoString() string

GoString returns the string representation

func (AddTagsOutput) SDKResponseMetadata

func (s AddTagsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (AddTagsOutput) String

func (s AddTagsOutput) String() string

String returns the string representation

type AddTagsRequest

type AddTagsRequest struct {
	*aws.Request
	Input *AddTagsInput
}

AddTagsRequest is a API request type for the AddTags API operation.

func (AddTagsRequest) Send

func (r AddTagsRequest) Send() (*AddTagsOutput, error)

Send marshals and sends the AddTags API request.

type AvailabilityZone

type AvailabilityZone struct {

	// [Network Load Balancers] The static IP address.
	LoadBalancerAddresses []LoadBalancerAddress `type:"list"`

	// The ID of the subnet.
	SubnetId *string `type:"string"`

	// The name of the Availability Zone.
	ZoneName *string `type:"string"`
	// contains filtered or unexported fields
}

Information about an Availability Zone. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AvailabilityZone

func (AvailabilityZone) GoString

func (s AvailabilityZone) GoString() string

GoString returns the string representation

func (*AvailabilityZone) SetLoadBalancerAddresses

func (s *AvailabilityZone) SetLoadBalancerAddresses(v []LoadBalancerAddress) *AvailabilityZone

SetLoadBalancerAddresses sets the LoadBalancerAddresses field's value.

func (*AvailabilityZone) SetSubnetId

func (s *AvailabilityZone) SetSubnetId(v string) *AvailabilityZone

SetSubnetId sets the SubnetId field's value.

func (*AvailabilityZone) SetZoneName

func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone

SetZoneName sets the ZoneName field's value.

func (AvailabilityZone) String

func (s AvailabilityZone) String() string

String returns the string representation

type Certificate

type Certificate struct {

	// The Amazon Resource Name (ARN) of the certificate.
	CertificateArn *string `type:"string"`

	// Indicates whether the certificate is the default certificate.
	IsDefault *bool `type:"boolean"`
	// contains filtered or unexported fields
}

Information about an SSL server certificate. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Certificate

func (Certificate) GoString

func (s Certificate) GoString() string

GoString returns the string representation

func (*Certificate) SetCertificateArn

func (s *Certificate) SetCertificateArn(v string) *Certificate

SetCertificateArn sets the CertificateArn field's value.

func (*Certificate) SetIsDefault

func (s *Certificate) SetIsDefault(v bool) *Certificate

SetIsDefault sets the IsDefault field's value.

func (Certificate) String

func (s Certificate) String() string

String returns the string representation

type Cipher

type Cipher struct {

	// The name of the cipher.
	Name *string `type:"string"`

	// The priority of the cipher.
	Priority *int64 `type:"integer"`
	// contains filtered or unexported fields
}

Information about a cipher used in a policy. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Cipher

func (Cipher) GoString

func (s Cipher) GoString() string

GoString returns the string representation

func (*Cipher) SetName

func (s *Cipher) SetName(v string) *Cipher

SetName sets the Name field's value.

func (*Cipher) SetPriority

func (s *Cipher) SetPriority(v int64) *Cipher

SetPriority sets the Priority field's value.

func (Cipher) String

func (s Cipher) String() string

String returns the string representation

type CreateListenerInput

type CreateListenerInput struct {

	// [HTTPS listeners] The SSL server certificate. You must provide exactly one
	// certificate.
	Certificates []Certificate `type:"list"`

	// The default action for the listener. For Application Load Balancers, the
	// protocol of the specified target group must be HTTP or HTTPS. For Network
	// Load Balancers, the protocol of the specified target group must be TCP.
	//
	// DefaultActions is a required field
	DefaultActions []Action `type:"list" required:"true"`

	// The Amazon Resource Name (ARN) of the load balancer.
	//
	// LoadBalancerArn is a required field
	LoadBalancerArn *string `type:"string" required:"true"`

	// The port on which the load balancer is listening.
	//
	// Port is a required field
	Port *int64 `min:"1" type:"integer" required:"true"`

	// 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 protocol is TCP.
	//
	// Protocol is a required field
	Protocol ProtocolEnum `type:"string" required:"true" enum:"true"`

	// [HTTPS listeners] The security policy that defines which ciphers and protocols
	// are supported. The default is the current predefined security policy.
	SslPolicy *string `type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListenerInput

func (CreateListenerInput) GoString

func (s CreateListenerInput) GoString() string

GoString returns the string representation

func (*CreateListenerInput) SetCertificates

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

SetCertificates sets the Certificates field's value.

func (*CreateListenerInput) SetDefaultActions

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

SetDefaultActions sets the DefaultActions field's value.

func (*CreateListenerInput) SetLoadBalancerArn

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*CreateListenerInput) SetPort

SetPort sets the Port field's value.

func (*CreateListenerInput) SetProtocol

SetProtocol sets the Protocol field's value.

func (*CreateListenerInput) SetSslPolicy

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

SetSslPolicy sets the SslPolicy field's value.

func (CreateListenerInput) String

func (s CreateListenerInput) String() string

String returns the string representation

func (*CreateListenerInput) Validate

func (s *CreateListenerInput) Validate() error

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

type CreateListenerOutput

type CreateListenerOutput struct {

	// Information about the listener.
	Listeners []Listener `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListenerOutput

func (CreateListenerOutput) GoString

func (s CreateListenerOutput) GoString() string

GoString returns the string representation

func (CreateListenerOutput) SDKResponseMetadata

func (s CreateListenerOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*CreateListenerOutput) SetListeners

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

SetListeners sets the Listeners field's value.

func (CreateListenerOutput) String

func (s CreateListenerOutput) String() string

String returns the string representation

type CreateListenerRequest

type CreateListenerRequest struct {
	*aws.Request
	Input *CreateListenerInput
}

CreateListenerRequest is a API request type for the CreateListener API operation.

func (CreateListenerRequest) Send

Send marshals and sends the CreateListener API request.

type CreateLoadBalancerInput

type CreateLoadBalancerInput struct {

	// [Application Load Balancers] The type of IP addresses used by the subnets
	// for your load balancer. The possible values are ipv4 (for IPv4 addresses)
	// and dualstack (for IPv4 and IPv6 addresses). Internal load balancers must
	// use ipv4.
	IpAddressType IpAddressType `type:"string" enum:"true"`

	// The name of the load balancer.
	//
	// This name must be unique per region per account, can have a maximum of 32
	// characters, must contain only alphanumeric characters or hyphens, and must
	// not begin or end with a hyphen.
	//
	// Name is a required field
	Name *string `type:"string" required:"true"`

	// The nodes of an Internet-facing load balancer have public IP addresses. The
	// DNS name of an Internet-facing load balancer is publicly resolvable to the
	// public IP addresses of the nodes. Therefore, Internet-facing load balancers
	// can route requests from clients over the Internet.
	//
	// The nodes of an internal load balancer have only private IP addresses. The
	// DNS name of an internal load balancer is publicly resolvable to the private
	// IP addresses of the nodes. Therefore, internal load balancers can only route
	// requests from clients with access to the VPC for the load balancer.
	//
	// The default is an Internet-facing load balancer.
	Scheme LoadBalancerSchemeEnum `type:"string" enum:"true"`

	// [Application Load Balancers] The IDs of the security groups to assign to
	// the load balancer.
	SecurityGroups []string `type:"list"`

	// The IDs of the subnets to attach to the load balancer. You can specify only
	// one subnet per Availability Zone. You must specify either subnets or subnet
	// mappings.
	//
	// [Network Load Balancers] You can specify one Elastic IP address per subnet.
	//
	// [Application Load Balancers] You cannot specify Elastic IP addresses for
	// your subnets.
	SubnetMappings []SubnetMapping `type:"list"`

	// The IDs of the subnets to attach to the load balancer. You can specify only
	// one subnet per Availability Zone. You must specify either subnets or subnet
	// mappings.
	//
	// [Application Load Balancers] You must specify subnets from at least two Availability
	// Zones.
	Subnets []string `type:"list"`

	// One or more tags to assign to the load balancer.
	Tags []Tag `min:"1" type:"list"`

	// The type of load balancer to create. The default is application.
	Type LoadBalancerTypeEnum `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateLoadBalancerInput

func (CreateLoadBalancerInput) GoString

func (s CreateLoadBalancerInput) GoString() string

GoString returns the string representation

func (*CreateLoadBalancerInput) SetIpAddressType

SetIpAddressType sets the IpAddressType field's value.

func (*CreateLoadBalancerInput) SetName

SetName sets the Name field's value.

func (*CreateLoadBalancerInput) SetScheme

SetScheme sets the Scheme field's value.

func (*CreateLoadBalancerInput) SetSecurityGroups

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

SetSecurityGroups sets the SecurityGroups field's value.

func (*CreateLoadBalancerInput) SetSubnetMappings

SetSubnetMappings sets the SubnetMappings field's value.

func (*CreateLoadBalancerInput) SetSubnets

SetSubnets sets the Subnets field's value.

func (*CreateLoadBalancerInput) SetTags

SetTags sets the Tags field's value.

func (*CreateLoadBalancerInput) SetType

SetType sets the Type field's value.

func (CreateLoadBalancerInput) String

func (s CreateLoadBalancerInput) String() string

String returns the string representation

func (*CreateLoadBalancerInput) Validate

func (s *CreateLoadBalancerInput) Validate() error

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

type CreateLoadBalancerOutput

type CreateLoadBalancerOutput struct {

	// Information about the load balancer.
	LoadBalancers []LoadBalancer `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateLoadBalancerOutput

func (CreateLoadBalancerOutput) GoString

func (s CreateLoadBalancerOutput) GoString() string

GoString returns the string representation

func (CreateLoadBalancerOutput) SDKResponseMetadata

func (s CreateLoadBalancerOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*CreateLoadBalancerOutput) SetLoadBalancers

SetLoadBalancers sets the LoadBalancers field's value.

func (CreateLoadBalancerOutput) String

func (s CreateLoadBalancerOutput) String() string

String returns the string representation

type CreateLoadBalancerRequest

type CreateLoadBalancerRequest struct {
	*aws.Request
	Input *CreateLoadBalancerInput
}

CreateLoadBalancerRequest is a API request type for the CreateLoadBalancer API operation.

func (CreateLoadBalancerRequest) Send

Send marshals and sends the CreateLoadBalancer API request.

type CreateRuleInput

type CreateRuleInput struct {

	// An action. Each action has the type forward and specifies a target group.
	//
	// Actions is a required field
	Actions []Action `type:"list" required:"true"`

	// The conditions. Each condition specifies a field name and a single value.
	//
	// If the field name is host-header, you can specify a single host name (for
	// example, my.example.com). A host name is case insensitive, can be up to 128
	// characters in length, and can contain any of the following characters. Note
	// that you can include up to three wildcard characters.
	//
	//    * A-Z, a-z, 0-9
	//
	//    * - .
	//
	//    * * (matches 0 or more characters)
	//
	//    * ? (matches exactly 1 character)
	//
	// If the field name is path-pattern, you can specify a single path pattern.
	// A path pattern is case sensitive, can be up to 128 characters in length,
	// and can contain any of the following characters. Note that you can include
	// up to three wildcard characters.
	//
	//    * A-Z, a-z, 0-9
	//
	//    * _ - . $ / ~ " ' @ : +
	//
	//    * & (using &)
	//
	//    * * (matches 0 or more characters)
	//
	//    * ? (matches exactly 1 character)
	//
	// Conditions is a required field
	Conditions []RuleCondition `type:"list" required:"true"`

	// The Amazon Resource Name (ARN) of the listener.
	//
	// ListenerArn is a required field
	ListenerArn *string `type:"string" required:"true"`

	// The priority for the rule. A listener can't have multiple rules with the
	// same priority.
	//
	// Priority is a required field
	Priority *int64 `min:"1" type:"integer" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateRuleInput

func (CreateRuleInput) GoString

func (s CreateRuleInput) GoString() string

GoString returns the string representation

func (*CreateRuleInput) SetActions

func (s *CreateRuleInput) SetActions(v []Action) *CreateRuleInput

SetActions sets the Actions field's value.

func (*CreateRuleInput) SetConditions

func (s *CreateRuleInput) SetConditions(v []RuleCondition) *CreateRuleInput

SetConditions sets the Conditions field's value.

func (*CreateRuleInput) SetListenerArn

func (s *CreateRuleInput) SetListenerArn(v string) *CreateRuleInput

SetListenerArn sets the ListenerArn field's value.

func (*CreateRuleInput) SetPriority

func (s *CreateRuleInput) SetPriority(v int64) *CreateRuleInput

SetPriority sets the Priority field's value.

func (CreateRuleInput) String

func (s CreateRuleInput) String() string

String returns the string representation

func (*CreateRuleInput) Validate

func (s *CreateRuleInput) Validate() error

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

type CreateRuleOutput

type CreateRuleOutput struct {

	// Information about the rule.
	Rules []Rule `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateRuleOutput

func (CreateRuleOutput) GoString

func (s CreateRuleOutput) GoString() string

GoString returns the string representation

func (CreateRuleOutput) SDKResponseMetadata

func (s CreateRuleOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*CreateRuleOutput) SetRules

func (s *CreateRuleOutput) SetRules(v []Rule) *CreateRuleOutput

SetRules sets the Rules field's value.

func (CreateRuleOutput) String

func (s CreateRuleOutput) String() string

String returns the string representation

type CreateRuleRequest

type CreateRuleRequest struct {
	*aws.Request
	Input *CreateRuleInput
}

CreateRuleRequest is a API request type for the CreateRule API operation.

func (CreateRuleRequest) Send

Send marshals and sends the CreateRule API request.

type CreateTargetGroupInput

type CreateTargetGroupInput struct {

	// The approximate amount of time, in seconds, between health checks of an individual
	// target. For Application Load Balancers, the range is 5 to 300 seconds. For
	// Network Load Balancers, the supported values are 10 or 30 seconds. The default
	// is 30 seconds.
	HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"`

	// [HTTP/HTTPS health checks] The ping path that is the destination on the targets
	// for health checks. The default is /.
	HealthCheckPath *string `min:"1" type:"string"`

	// The port the load balancer uses when performing health checks on targets.
	// The default is traffic-port, which is the port on which each target receives
	// traffic from the load balancer.
	HealthCheckPort *string `type:"string"`

	// The protocol the load balancer uses when performing health checks on targets.
	// The TCP protocol is supported only if the protocol of the target group is
	// TCP. For Application Load Balancers, the default is HTTP. For Network Load
	// Balancers, the default is TCP.
	HealthCheckProtocol ProtocolEnum `type:"string" enum:"true"`

	// The amount of time, in seconds, during which no response from a target means
	// a failed health check. For Application Load Balancers, the range is 2 to
	// 60 seconds and the default is 5 seconds. For Network Load Balancers, this
	// is 10 seconds for TCP and HTTPS health checks and 6 seconds for HTTP health
	// checks.
	HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"`

	// The number of consecutive health checks successes required before considering
	// an unhealthy target healthy. For Application Load Balancers, the default
	// is 5. For Network Load Balancers, the default is 3.
	HealthyThresholdCount *int64 `min:"2" type:"integer"`

	// [HTTP/HTTPS health checks] The HTTP codes to use when checking for a successful
	// response from a target.
	Matcher *Matcher `type:"structure"`

	// The name of the target group.
	//
	// This name must be unique per region per account, can have a maximum of 32
	// characters, must contain only alphanumeric characters or hyphens, and must
	// not begin or end with a hyphen.
	//
	// Name is a required field
	Name *string `type:"string" required:"true"`

	// The port on which the targets receive traffic. This port is used unless you
	// specify a port override when registering the target.
	//
	// Port is a required field
	Port *int64 `min:"1" type:"integer" required:"true"`

	// The protocol to use for routing traffic to the targets. For Application Load
	// Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers,
	// the supported protocol is TCP.
	//
	// Protocol is a required field
	Protocol ProtocolEnum `type:"string" required:"true" enum:"true"`

	// The type of target that you must specify when registering targets with this
	// target group. The possible values are instance (targets are specified by
	// instance ID) or ip (targets are specified by IP address). The default is
	// instance. Note that you can't specify targets for a target group using both
	// instance IDs and IP addresses.
	//
	// If the target type is ip, specify IP addresses from the subnets of the virtual
	// private cloud (VPC) for the target group, the RFC 1918 range (10.0.0.0/8,
	// 172.16.0.0/12, and 192.168.0.0/16), and the RFC 6598 range (100.64.0.0/10).
	// You can't specify publicly routable IP addresses.
	TargetType TargetTypeEnum `type:"string" enum:"true"`

	// The number of consecutive health check failures required before considering
	// a target unhealthy. For Application Load Balancers, the default is 2. For
	// Network Load Balancers, this value must be the same as the healthy threshold
	// count.
	UnhealthyThresholdCount *int64 `min:"2" type:"integer"`

	// The identifier of the virtual private cloud (VPC).
	//
	// VpcId is a required field
	VpcId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTargetGroupInput

func (CreateTargetGroupInput) GoString

func (s CreateTargetGroupInput) GoString() string

GoString returns the string representation

func (*CreateTargetGroupInput) SetHealthCheckIntervalSeconds

func (s *CreateTargetGroupInput) SetHealthCheckIntervalSeconds(v int64) *CreateTargetGroupInput

SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value.

func (*CreateTargetGroupInput) SetHealthCheckPath

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

SetHealthCheckPath sets the HealthCheckPath field's value.

func (*CreateTargetGroupInput) SetHealthCheckPort

func (s *CreateTargetGroupInput) SetHealthCheckPort(v string) *CreateTargetGroupInput

SetHealthCheckPort sets the HealthCheckPort field's value.

func (*CreateTargetGroupInput) SetHealthCheckProtocol

func (s *CreateTargetGroupInput) SetHealthCheckProtocol(v ProtocolEnum) *CreateTargetGroupInput

SetHealthCheckProtocol sets the HealthCheckProtocol field's value.

func (*CreateTargetGroupInput) SetHealthCheckTimeoutSeconds

func (s *CreateTargetGroupInput) SetHealthCheckTimeoutSeconds(v int64) *CreateTargetGroupInput

SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value.

func (*CreateTargetGroupInput) SetHealthyThresholdCount

func (s *CreateTargetGroupInput) SetHealthyThresholdCount(v int64) *CreateTargetGroupInput

SetHealthyThresholdCount sets the HealthyThresholdCount field's value.

func (*CreateTargetGroupInput) SetMatcher

SetMatcher sets the Matcher field's value.

func (*CreateTargetGroupInput) SetName

SetName sets the Name field's value.

func (*CreateTargetGroupInput) SetPort

SetPort sets the Port field's value.

func (*CreateTargetGroupInput) SetProtocol

SetProtocol sets the Protocol field's value.

func (*CreateTargetGroupInput) SetTargetType

SetTargetType sets the TargetType field's value.

func (*CreateTargetGroupInput) SetUnhealthyThresholdCount

func (s *CreateTargetGroupInput) SetUnhealthyThresholdCount(v int64) *CreateTargetGroupInput

SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value.

func (*CreateTargetGroupInput) SetVpcId

SetVpcId sets the VpcId field's value.

func (CreateTargetGroupInput) String

func (s CreateTargetGroupInput) String() string

String returns the string representation

func (*CreateTargetGroupInput) Validate

func (s *CreateTargetGroupInput) Validate() error

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

type CreateTargetGroupOutput

type CreateTargetGroupOutput struct {

	// Information about the target group.
	TargetGroups []TargetGroup `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTargetGroupOutput

func (CreateTargetGroupOutput) GoString

func (s CreateTargetGroupOutput) GoString() string

GoString returns the string representation

func (CreateTargetGroupOutput) SDKResponseMetadata

func (s CreateTargetGroupOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*CreateTargetGroupOutput) SetTargetGroups

SetTargetGroups sets the TargetGroups field's value.

func (CreateTargetGroupOutput) String

func (s CreateTargetGroupOutput) String() string

String returns the string representation

type CreateTargetGroupRequest

type CreateTargetGroupRequest struct {
	*aws.Request
	Input *CreateTargetGroupInput
}

CreateTargetGroupRequest is a API request type for the CreateTargetGroup API operation.

func (CreateTargetGroupRequest) Send

Send marshals and sends the CreateTargetGroup API request.

type DeleteListenerInput

type DeleteListenerInput struct {

	// The Amazon Resource Name (ARN) of the listener.
	//
	// ListenerArn is a required field
	ListenerArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteListenerInput

func (DeleteListenerInput) GoString

func (s DeleteListenerInput) GoString() string

GoString returns the string representation

func (*DeleteListenerInput) SetListenerArn

func (s *DeleteListenerInput) SetListenerArn(v string) *DeleteListenerInput

SetListenerArn sets the ListenerArn field's value.

func (DeleteListenerInput) String

func (s DeleteListenerInput) String() string

String returns the string representation

func (*DeleteListenerInput) Validate

func (s *DeleteListenerInput) Validate() error

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

type DeleteListenerOutput

type DeleteListenerOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteListenerOutput

func (DeleteListenerOutput) GoString

func (s DeleteListenerOutput) GoString() string

GoString returns the string representation

func (DeleteListenerOutput) SDKResponseMetadata

func (s DeleteListenerOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteListenerOutput) String

func (s DeleteListenerOutput) String() string

String returns the string representation

type DeleteListenerRequest

type DeleteListenerRequest struct {
	*aws.Request
	Input *DeleteListenerInput
}

DeleteListenerRequest is a API request type for the DeleteListener API operation.

func (DeleteListenerRequest) Send

Send marshals and sends the DeleteListener API request.

type DeleteLoadBalancerInput

type DeleteLoadBalancerInput struct {

	// The Amazon Resource Name (ARN) of the load balancer.
	//
	// LoadBalancerArn is a required field
	LoadBalancerArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteLoadBalancerInput

func (DeleteLoadBalancerInput) GoString

func (s DeleteLoadBalancerInput) GoString() string

GoString returns the string representation

func (*DeleteLoadBalancerInput) SetLoadBalancerArn

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (DeleteLoadBalancerInput) String

func (s DeleteLoadBalancerInput) String() string

String returns the string representation

func (*DeleteLoadBalancerInput) Validate

func (s *DeleteLoadBalancerInput) Validate() error

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

type DeleteLoadBalancerOutput

type DeleteLoadBalancerOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteLoadBalancerOutput

func (DeleteLoadBalancerOutput) GoString

func (s DeleteLoadBalancerOutput) GoString() string

GoString returns the string representation

func (DeleteLoadBalancerOutput) SDKResponseMetadata

func (s DeleteLoadBalancerOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteLoadBalancerOutput) String

func (s DeleteLoadBalancerOutput) String() string

String returns the string representation

type DeleteLoadBalancerRequest

type DeleteLoadBalancerRequest struct {
	*aws.Request
	Input *DeleteLoadBalancerInput
}

DeleteLoadBalancerRequest is a API request type for the DeleteLoadBalancer API operation.

func (DeleteLoadBalancerRequest) Send

Send marshals and sends the DeleteLoadBalancer API request.

type DeleteRuleInput

type DeleteRuleInput struct {

	// The Amazon Resource Name (ARN) of the rule.
	//
	// RuleArn is a required field
	RuleArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteRuleInput

func (DeleteRuleInput) GoString

func (s DeleteRuleInput) GoString() string

GoString returns the string representation

func (*DeleteRuleInput) SetRuleArn

func (s *DeleteRuleInput) SetRuleArn(v string) *DeleteRuleInput

SetRuleArn sets the RuleArn field's value.

func (DeleteRuleInput) String

func (s DeleteRuleInput) String() string

String returns the string representation

func (*DeleteRuleInput) Validate

func (s *DeleteRuleInput) Validate() error

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

type DeleteRuleOutput

type DeleteRuleOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteRuleOutput

func (DeleteRuleOutput) GoString

func (s DeleteRuleOutput) GoString() string

GoString returns the string representation

func (DeleteRuleOutput) SDKResponseMetadata

func (s DeleteRuleOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteRuleOutput) String

func (s DeleteRuleOutput) String() string

String returns the string representation

type DeleteRuleRequest

type DeleteRuleRequest struct {
	*aws.Request
	Input *DeleteRuleInput
}

DeleteRuleRequest is a API request type for the DeleteRule API operation.

func (DeleteRuleRequest) Send

Send marshals and sends the DeleteRule API request.

type DeleteTargetGroupInput

type DeleteTargetGroupInput struct {

	// The Amazon Resource Name (ARN) of the target group.
	//
	// TargetGroupArn is a required field
	TargetGroupArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTargetGroupInput

func (DeleteTargetGroupInput) GoString

func (s DeleteTargetGroupInput) GoString() string

GoString returns the string representation

func (*DeleteTargetGroupInput) SetTargetGroupArn

func (s *DeleteTargetGroupInput) SetTargetGroupArn(v string) *DeleteTargetGroupInput

SetTargetGroupArn sets the TargetGroupArn field's value.

func (DeleteTargetGroupInput) String

func (s DeleteTargetGroupInput) String() string

String returns the string representation

func (*DeleteTargetGroupInput) Validate

func (s *DeleteTargetGroupInput) Validate() error

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

type DeleteTargetGroupOutput

type DeleteTargetGroupOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTargetGroupOutput

func (DeleteTargetGroupOutput) GoString

func (s DeleteTargetGroupOutput) GoString() string

GoString returns the string representation

func (DeleteTargetGroupOutput) SDKResponseMetadata

func (s DeleteTargetGroupOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteTargetGroupOutput) String

func (s DeleteTargetGroupOutput) String() string

String returns the string representation

type DeleteTargetGroupRequest

type DeleteTargetGroupRequest struct {
	*aws.Request
	Input *DeleteTargetGroupInput
}

DeleteTargetGroupRequest is a API request type for the DeleteTargetGroup API operation.

func (DeleteTargetGroupRequest) Send

Send marshals and sends the DeleteTargetGroup API request.

type DeregisterTargetsInput

type DeregisterTargetsInput struct {

	// The Amazon Resource Name (ARN) of the target group.
	//
	// TargetGroupArn is a required field
	TargetGroupArn *string `type:"string" required:"true"`

	// The targets. If you specified a port override when you registered a target,
	// you must specify both the target ID and the port when you deregister it.
	//
	// Targets is a required field
	Targets []TargetDescription `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeregisterTargetsInput

func (DeregisterTargetsInput) GoString

func (s DeregisterTargetsInput) GoString() string

GoString returns the string representation

func (*DeregisterTargetsInput) SetTargetGroupArn

func (s *DeregisterTargetsInput) SetTargetGroupArn(v string) *DeregisterTargetsInput

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*DeregisterTargetsInput) SetTargets

SetTargets sets the Targets field's value.

func (DeregisterTargetsInput) String

func (s DeregisterTargetsInput) String() string

String returns the string representation

func (*DeregisterTargetsInput) Validate

func (s *DeregisterTargetsInput) Validate() error

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

type DeregisterTargetsOutput

type DeregisterTargetsOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeregisterTargetsOutput

func (DeregisterTargetsOutput) GoString

func (s DeregisterTargetsOutput) GoString() string

GoString returns the string representation

func (DeregisterTargetsOutput) SDKResponseMetadata

func (s DeregisterTargetsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeregisterTargetsOutput) String

func (s DeregisterTargetsOutput) String() string

String returns the string representation

type DeregisterTargetsRequest

type DeregisterTargetsRequest struct {
	*aws.Request
	Input *DeregisterTargetsInput
}

DeregisterTargetsRequest is a API request type for the DeregisterTargets API operation.

func (DeregisterTargetsRequest) Send

Send marshals and sends the DeregisterTargets API request.

type DescribeAccountLimitsInput

type DescribeAccountLimitsInput struct {

	// The marker for the next set of results. (You received this marker from a
	// previous call.)
	Marker *string `type:"string"`

	// The maximum number of results to return with this call.
	PageSize *int64 `min:"1" type:"integer"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeAccountLimitsInput

func (DescribeAccountLimitsInput) GoString

func (s DescribeAccountLimitsInput) GoString() string

GoString returns the string representation

func (*DescribeAccountLimitsInput) SetMarker

SetMarker sets the Marker field's value.

func (*DescribeAccountLimitsInput) SetPageSize

SetPageSize sets the PageSize field's value.

func (DescribeAccountLimitsInput) String

String returns the string representation

func (*DescribeAccountLimitsInput) Validate

func (s *DescribeAccountLimitsInput) Validate() error

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

type DescribeAccountLimitsOutput

type DescribeAccountLimitsOutput struct {

	// Information about the limits.
	Limits []Limit `type:"list"`

	// The marker to use when requesting the next set of results. If there are no
	// additional results, the string is empty.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeAccountLimitsOutput

func (DescribeAccountLimitsOutput) GoString

func (s DescribeAccountLimitsOutput) GoString() string

GoString returns the string representation

func (DescribeAccountLimitsOutput) SDKResponseMetadata

func (s DescribeAccountLimitsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeAccountLimitsOutput) SetLimits

SetLimits sets the Limits field's value.

func (*DescribeAccountLimitsOutput) SetNextMarker

SetNextMarker sets the NextMarker field's value.

func (DescribeAccountLimitsOutput) String

String returns the string representation

type DescribeAccountLimitsRequest

type DescribeAccountLimitsRequest struct {
	*aws.Request
	Input *DescribeAccountLimitsInput
}

DescribeAccountLimitsRequest is a API request type for the DescribeAccountLimits API operation.

func (DescribeAccountLimitsRequest) Send

Send marshals and sends the DescribeAccountLimits API request.

type DescribeListenerCertificatesInput

type DescribeListenerCertificatesInput struct {

	// The Amazon Resource Names (ARN) of the listener.
	//
	// ListenerArn is a required field
	ListenerArn *string `type:"string" required:"true"`

	// The marker for the next set of results. (You received this marker from a
	// previous call.)
	Marker *string `type:"string"`

	// The maximum number of results to return with this call.
	PageSize *int64 `min:"1" type:"integer"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListenerCertificatesInput

func (DescribeListenerCertificatesInput) GoString

GoString returns the string representation

func (*DescribeListenerCertificatesInput) SetListenerArn

SetListenerArn sets the ListenerArn field's value.

func (*DescribeListenerCertificatesInput) SetMarker

SetMarker sets the Marker field's value.

func (*DescribeListenerCertificatesInput) SetPageSize

SetPageSize sets the PageSize field's value.

func (DescribeListenerCertificatesInput) String

String returns the string representation

func (*DescribeListenerCertificatesInput) Validate

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

type DescribeListenerCertificatesOutput

type DescribeListenerCertificatesOutput struct {

	// Information about the certificates.
	Certificates []Certificate `type:"list"`

	// The marker to use when requesting the next set of results. If there are no
	// additional results, the string is empty.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListenerCertificatesOutput

func (DescribeListenerCertificatesOutput) GoString

GoString returns the string representation

func (DescribeListenerCertificatesOutput) SDKResponseMetadata

func (s DescribeListenerCertificatesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeListenerCertificatesOutput) SetCertificates

SetCertificates sets the Certificates field's value.

func (*DescribeListenerCertificatesOutput) SetNextMarker

SetNextMarker sets the NextMarker field's value.

func (DescribeListenerCertificatesOutput) String

String returns the string representation

type DescribeListenerCertificatesRequest

type DescribeListenerCertificatesRequest struct {
	*aws.Request
	Input *DescribeListenerCertificatesInput
}

DescribeListenerCertificatesRequest is a API request type for the DescribeListenerCertificates API operation.

func (DescribeListenerCertificatesRequest) Send

Send marshals and sends the DescribeListenerCertificates API request.

type DescribeListenersInput

type DescribeListenersInput struct {

	// The Amazon Resource Names (ARN) of the listeners.
	ListenerArns []string `type:"list"`

	// The Amazon Resource Name (ARN) of the load balancer.
	LoadBalancerArn *string `type:"string"`

	// The marker for the next set of results. (You received this marker from a
	// previous call.)
	Marker *string `type:"string"`

	// The maximum number of results to return with this call.
	PageSize *int64 `min:"1" type:"integer"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListenersInput

func (DescribeListenersInput) GoString

func (s DescribeListenersInput) GoString() string

GoString returns the string representation

func (*DescribeListenersInput) SetListenerArns

func (s *DescribeListenersInput) SetListenerArns(v []string) *DescribeListenersInput

SetListenerArns sets the ListenerArns field's value.

func (*DescribeListenersInput) SetLoadBalancerArn

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*DescribeListenersInput) SetMarker

SetMarker sets the Marker field's value.

func (*DescribeListenersInput) SetPageSize

SetPageSize sets the PageSize field's value.

func (DescribeListenersInput) String

func (s DescribeListenersInput) String() string

String returns the string representation

func (*DescribeListenersInput) Validate

func (s *DescribeListenersInput) Validate() error

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

type DescribeListenersOutput

type DescribeListenersOutput struct {

	// Information about the listeners.
	Listeners []Listener `type:"list"`

	// The marker to use when requesting the next set of results. If there are no
	// additional results, the string is empty.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListenersOutput

func (DescribeListenersOutput) GoString

func (s DescribeListenersOutput) GoString() string

GoString returns the string representation

func (DescribeListenersOutput) SDKResponseMetadata

func (s DescribeListenersOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeListenersOutput) SetListeners

SetListeners sets the Listeners field's value.

func (*DescribeListenersOutput) SetNextMarker

SetNextMarker sets the NextMarker field's value.

func (DescribeListenersOutput) String

func (s DescribeListenersOutput) String() string

String returns the string representation

type DescribeListenersRequest

type DescribeListenersRequest struct {
	*aws.Request
	Input *DescribeListenersInput
}

DescribeListenersRequest is a API request type for the DescribeListeners API operation.

func (DescribeListenersRequest) Send

Send marshals and sends the DescribeListeners API request.

type DescribeLoadBalancerAttributesInput

type DescribeLoadBalancerAttributesInput struct {

	// The Amazon Resource Name (ARN) of the load balancer.
	//
	// LoadBalancerArn is a required field
	LoadBalancerArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancerAttributesInput

func (DescribeLoadBalancerAttributesInput) GoString

GoString returns the string representation

func (*DescribeLoadBalancerAttributesInput) SetLoadBalancerArn

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (DescribeLoadBalancerAttributesInput) String

String returns the string representation

func (*DescribeLoadBalancerAttributesInput) Validate

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

type DescribeLoadBalancerAttributesOutput

type DescribeLoadBalancerAttributesOutput struct {

	// Information about the load balancer attributes.
	Attributes []LoadBalancerAttribute `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancerAttributesOutput

func (DescribeLoadBalancerAttributesOutput) GoString

GoString returns the string representation

func (DescribeLoadBalancerAttributesOutput) SDKResponseMetadata

func (s DescribeLoadBalancerAttributesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeLoadBalancerAttributesOutput) SetAttributes

SetAttributes sets the Attributes field's value.

func (DescribeLoadBalancerAttributesOutput) String

String returns the string representation

type DescribeLoadBalancerAttributesRequest

type DescribeLoadBalancerAttributesRequest struct {
	*aws.Request
	Input *DescribeLoadBalancerAttributesInput
}

DescribeLoadBalancerAttributesRequest is a API request type for the DescribeLoadBalancerAttributes API operation.

func (DescribeLoadBalancerAttributesRequest) Send

Send marshals and sends the DescribeLoadBalancerAttributes API request.

type DescribeLoadBalancersInput

type DescribeLoadBalancersInput struct {

	// The Amazon Resource Names (ARN) of the load balancers. You can specify up
	// to 20 load balancers in a single call.
	LoadBalancerArns []string `type:"list"`

	// The marker for the next set of results. (You received this marker from a
	// previous call.)
	Marker *string `type:"string"`

	// The names of the load balancers.
	Names []string `type:"list"`

	// The maximum number of results to return with this call.
	PageSize *int64 `min:"1" type:"integer"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancersInput

func (DescribeLoadBalancersInput) GoString

func (s DescribeLoadBalancersInput) GoString() string

GoString returns the string representation

func (*DescribeLoadBalancersInput) SetLoadBalancerArns

func (s *DescribeLoadBalancersInput) SetLoadBalancerArns(v []string) *DescribeLoadBalancersInput

SetLoadBalancerArns sets the LoadBalancerArns field's value.

func (*DescribeLoadBalancersInput) SetMarker

SetMarker sets the Marker field's value.

func (*DescribeLoadBalancersInput) SetNames

SetNames sets the Names field's value.

func (*DescribeLoadBalancersInput) SetPageSize

SetPageSize sets the PageSize field's value.

func (DescribeLoadBalancersInput) String

String returns the string representation

func (*DescribeLoadBalancersInput) Validate

func (s *DescribeLoadBalancersInput) Validate() error

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

type DescribeLoadBalancersOutput

type DescribeLoadBalancersOutput struct {

	// Information about the load balancers.
	LoadBalancers []LoadBalancer `type:"list"`

	// The marker to use when requesting the next set of results. If there are no
	// additional results, the string is empty.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancersOutput

func (DescribeLoadBalancersOutput) GoString

func (s DescribeLoadBalancersOutput) GoString() string

GoString returns the string representation

func (DescribeLoadBalancersOutput) SDKResponseMetadata

func (s DescribeLoadBalancersOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeLoadBalancersOutput) SetLoadBalancers

SetLoadBalancers sets the LoadBalancers field's value.

func (*DescribeLoadBalancersOutput) SetNextMarker

SetNextMarker sets the NextMarker field's value.

func (DescribeLoadBalancersOutput) String

String returns the string representation

type DescribeLoadBalancersRequest

type DescribeLoadBalancersRequest struct {
	*aws.Request
	Input *DescribeLoadBalancersInput
}

DescribeLoadBalancersRequest is a API request type for the DescribeLoadBalancers API operation.

func (DescribeLoadBalancersRequest) Send

Send marshals and sends the DescribeLoadBalancers API request.

type DescribeRulesInput

type DescribeRulesInput struct {

	// The Amazon Resource Name (ARN) of the listener.
	ListenerArn *string `type:"string"`

	// The marker for the next set of results. (You received this marker from a
	// previous call.)
	Marker *string `type:"string"`

	// The maximum number of results to return with this call.
	PageSize *int64 `min:"1" type:"integer"`

	// The Amazon Resource Names (ARN) of the rules.
	RuleArns []string `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeRulesInput

func (DescribeRulesInput) GoString

func (s DescribeRulesInput) GoString() string

GoString returns the string representation

func (*DescribeRulesInput) SetListenerArn

func (s *DescribeRulesInput) SetListenerArn(v string) *DescribeRulesInput

SetListenerArn sets the ListenerArn field's value.

func (*DescribeRulesInput) SetMarker

func (s *DescribeRulesInput) SetMarker(v string) *DescribeRulesInput

SetMarker sets the Marker field's value.

func (*DescribeRulesInput) SetPageSize

func (s *DescribeRulesInput) SetPageSize(v int64) *DescribeRulesInput

SetPageSize sets the PageSize field's value.

func (*DescribeRulesInput) SetRuleArns

func (s *DescribeRulesInput) SetRuleArns(v []string) *DescribeRulesInput

SetRuleArns sets the RuleArns field's value.

func (DescribeRulesInput) String

func (s DescribeRulesInput) String() string

String returns the string representation

func (*DescribeRulesInput) Validate

func (s *DescribeRulesInput) Validate() error

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

type DescribeRulesOutput

type DescribeRulesOutput struct {

	// The marker to use when requesting the next set of results. If there are no
	// additional results, the string is empty.
	NextMarker *string `type:"string"`

	// Information about the rules.
	Rules []Rule `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeRulesOutput

func (DescribeRulesOutput) GoString

func (s DescribeRulesOutput) GoString() string

GoString returns the string representation

func (DescribeRulesOutput) SDKResponseMetadata

func (s DescribeRulesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeRulesOutput) SetNextMarker

func (s *DescribeRulesOutput) SetNextMarker(v string) *DescribeRulesOutput

SetNextMarker sets the NextMarker field's value.

func (*DescribeRulesOutput) SetRules

func (s *DescribeRulesOutput) SetRules(v []Rule) *DescribeRulesOutput

SetRules sets the Rules field's value.

func (DescribeRulesOutput) String

func (s DescribeRulesOutput) String() string

String returns the string representation

type DescribeRulesRequest

type DescribeRulesRequest struct {
	*aws.Request
	Input *DescribeRulesInput
}

DescribeRulesRequest is a API request type for the DescribeRules API operation.

func (DescribeRulesRequest) Send

Send marshals and sends the DescribeRules API request.

type DescribeSSLPoliciesInput

type DescribeSSLPoliciesInput struct {

	// The marker for the next set of results. (You received this marker from a
	// previous call.)
	Marker *string `type:"string"`

	// The names of the policies.
	Names []string `type:"list"`

	// The maximum number of results to return with this call.
	PageSize *int64 `min:"1" type:"integer"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeSSLPoliciesInput

func (DescribeSSLPoliciesInput) GoString

func (s DescribeSSLPoliciesInput) GoString() string

GoString returns the string representation

func (*DescribeSSLPoliciesInput) SetMarker

SetMarker sets the Marker field's value.

func (*DescribeSSLPoliciesInput) SetNames

SetNames sets the Names field's value.

func (*DescribeSSLPoliciesInput) SetPageSize

SetPageSize sets the PageSize field's value.

func (DescribeSSLPoliciesInput) String

func (s DescribeSSLPoliciesInput) String() string

String returns the string representation

func (*DescribeSSLPoliciesInput) Validate

func (s *DescribeSSLPoliciesInput) Validate() error

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

type DescribeSSLPoliciesOutput

type DescribeSSLPoliciesOutput struct {

	// The marker to use when requesting the next set of results. If there are no
	// additional results, the string is empty.
	NextMarker *string `type:"string"`

	// Information about the policies.
	SslPolicies []SslPolicy `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeSSLPoliciesOutput

func (DescribeSSLPoliciesOutput) GoString

func (s DescribeSSLPoliciesOutput) GoString() string

GoString returns the string representation

func (DescribeSSLPoliciesOutput) SDKResponseMetadata

func (s DescribeSSLPoliciesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeSSLPoliciesOutput) SetNextMarker

SetNextMarker sets the NextMarker field's value.

func (*DescribeSSLPoliciesOutput) SetSslPolicies

SetSslPolicies sets the SslPolicies field's value.

func (DescribeSSLPoliciesOutput) String

func (s DescribeSSLPoliciesOutput) String() string

String returns the string representation

type DescribeSSLPoliciesRequest

type DescribeSSLPoliciesRequest struct {
	*aws.Request
	Input *DescribeSSLPoliciesInput
}

DescribeSSLPoliciesRequest is a API request type for the DescribeSSLPolicies API operation.

func (DescribeSSLPoliciesRequest) Send

Send marshals and sends the DescribeSSLPolicies API request.

type DescribeTagsInput

type DescribeTagsInput struct {

	// The Amazon Resource Names (ARN) of the resources.
	//
	// ResourceArns is a required field
	ResourceArns []string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTagsInput

func (DescribeTagsInput) GoString

func (s DescribeTagsInput) GoString() string

GoString returns the string representation

func (*DescribeTagsInput) SetResourceArns

func (s *DescribeTagsInput) SetResourceArns(v []string) *DescribeTagsInput

SetResourceArns sets the ResourceArns field's value.

func (DescribeTagsInput) String

func (s DescribeTagsInput) String() string

String returns the string representation

func (*DescribeTagsInput) Validate

func (s *DescribeTagsInput) Validate() error

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

type DescribeTagsOutput

type DescribeTagsOutput struct {

	// Information about the tags.
	TagDescriptions []TagDescription `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTagsOutput

func (DescribeTagsOutput) GoString

func (s DescribeTagsOutput) GoString() string

GoString returns the string representation

func (DescribeTagsOutput) SDKResponseMetadata

func (s DescribeTagsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeTagsOutput) SetTagDescriptions

func (s *DescribeTagsOutput) SetTagDescriptions(v []TagDescription) *DescribeTagsOutput

SetTagDescriptions sets the TagDescriptions field's value.

func (DescribeTagsOutput) String

func (s DescribeTagsOutput) String() string

String returns the string representation

type DescribeTagsRequest

type DescribeTagsRequest struct {
	*aws.Request
	Input *DescribeTagsInput
}

DescribeTagsRequest is a API request type for the DescribeTags API operation.

func (DescribeTagsRequest) Send

Send marshals and sends the DescribeTags API request.

type DescribeTargetGroupAttributesInput

type DescribeTargetGroupAttributesInput struct {

	// The Amazon Resource Name (ARN) of the target group.
	//
	// TargetGroupArn is a required field
	TargetGroupArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupAttributesInput

func (DescribeTargetGroupAttributesInput) GoString

GoString returns the string representation

func (*DescribeTargetGroupAttributesInput) SetTargetGroupArn

SetTargetGroupArn sets the TargetGroupArn field's value.

func (DescribeTargetGroupAttributesInput) String

String returns the string representation

func (*DescribeTargetGroupAttributesInput) Validate

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

type DescribeTargetGroupAttributesOutput

type DescribeTargetGroupAttributesOutput struct {

	// Information about the target group attributes
	Attributes []TargetGroupAttribute `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupAttributesOutput

func (DescribeTargetGroupAttributesOutput) GoString

GoString returns the string representation

func (DescribeTargetGroupAttributesOutput) SDKResponseMetadata

func (s DescribeTargetGroupAttributesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeTargetGroupAttributesOutput) SetAttributes

SetAttributes sets the Attributes field's value.

func (DescribeTargetGroupAttributesOutput) String

String returns the string representation

type DescribeTargetGroupAttributesRequest

type DescribeTargetGroupAttributesRequest struct {
	*aws.Request
	Input *DescribeTargetGroupAttributesInput
}

DescribeTargetGroupAttributesRequest is a API request type for the DescribeTargetGroupAttributes API operation.

func (DescribeTargetGroupAttributesRequest) Send

Send marshals and sends the DescribeTargetGroupAttributes API request.

type DescribeTargetGroupsInput

type DescribeTargetGroupsInput struct {

	// The Amazon Resource Name (ARN) of the load balancer.
	LoadBalancerArn *string `type:"string"`

	// The marker for the next set of results. (You received this marker from a
	// previous call.)
	Marker *string `type:"string"`

	// The names of the target groups.
	Names []string `type:"list"`

	// The maximum number of results to return with this call.
	PageSize *int64 `min:"1" type:"integer"`

	// The Amazon Resource Names (ARN) of the target groups.
	TargetGroupArns []string `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupsInput

func (DescribeTargetGroupsInput) GoString

func (s DescribeTargetGroupsInput) GoString() string

GoString returns the string representation

func (*DescribeTargetGroupsInput) SetLoadBalancerArn

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*DescribeTargetGroupsInput) SetMarker

SetMarker sets the Marker field's value.

func (*DescribeTargetGroupsInput) SetNames

SetNames sets the Names field's value.

func (*DescribeTargetGroupsInput) SetPageSize

SetPageSize sets the PageSize field's value.

func (*DescribeTargetGroupsInput) SetTargetGroupArns

func (s *DescribeTargetGroupsInput) SetTargetGroupArns(v []string) *DescribeTargetGroupsInput

SetTargetGroupArns sets the TargetGroupArns field's value.

func (DescribeTargetGroupsInput) String

func (s DescribeTargetGroupsInput) String() string

String returns the string representation

func (*DescribeTargetGroupsInput) Validate

func (s *DescribeTargetGroupsInput) Validate() error

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

type DescribeTargetGroupsOutput

type DescribeTargetGroupsOutput struct {

	// The marker to use when requesting the next set of results. If there are no
	// additional results, the string is empty.
	NextMarker *string `type:"string"`

	// Information about the target groups.
	TargetGroups []TargetGroup `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupsOutput

func (DescribeTargetGroupsOutput) GoString

func (s DescribeTargetGroupsOutput) GoString() string

GoString returns the string representation

func (DescribeTargetGroupsOutput) SDKResponseMetadata

func (s DescribeTargetGroupsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeTargetGroupsOutput) SetNextMarker

SetNextMarker sets the NextMarker field's value.

func (*DescribeTargetGroupsOutput) SetTargetGroups

SetTargetGroups sets the TargetGroups field's value.

func (DescribeTargetGroupsOutput) String

String returns the string representation

type DescribeTargetGroupsRequest

type DescribeTargetGroupsRequest struct {
	*aws.Request
	Input *DescribeTargetGroupsInput
}

DescribeTargetGroupsRequest is a API request type for the DescribeTargetGroups API operation.

func (DescribeTargetGroupsRequest) Send

Send marshals and sends the DescribeTargetGroups API request.

type DescribeTargetHealthInput

type DescribeTargetHealthInput struct {

	// The Amazon Resource Name (ARN) of the target group.
	//
	// TargetGroupArn is a required field
	TargetGroupArn *string `type:"string" required:"true"`

	// The targets.
	Targets []TargetDescription `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetHealthInput

func (DescribeTargetHealthInput) GoString

func (s DescribeTargetHealthInput) GoString() string

GoString returns the string representation

func (*DescribeTargetHealthInput) SetTargetGroupArn

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*DescribeTargetHealthInput) SetTargets

SetTargets sets the Targets field's value.

func (DescribeTargetHealthInput) String

func (s DescribeTargetHealthInput) String() string

String returns the string representation

func (*DescribeTargetHealthInput) Validate

func (s *DescribeTargetHealthInput) Validate() error

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

type DescribeTargetHealthOutput

type DescribeTargetHealthOutput struct {

	// Information about the health of the targets.
	TargetHealthDescriptions []TargetHealthDescription `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetHealthOutput

func (DescribeTargetHealthOutput) GoString

func (s DescribeTargetHealthOutput) GoString() string

GoString returns the string representation

func (DescribeTargetHealthOutput) SDKResponseMetadata

func (s DescribeTargetHealthOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeTargetHealthOutput) SetTargetHealthDescriptions

SetTargetHealthDescriptions sets the TargetHealthDescriptions field's value.

func (DescribeTargetHealthOutput) String

String returns the string representation

type DescribeTargetHealthRequest

type DescribeTargetHealthRequest struct {
	*aws.Request
	Input *DescribeTargetHealthInput
}

DescribeTargetHealthRequest is a API request type for the DescribeTargetHealth API operation.

func (DescribeTargetHealthRequest) Send

Send marshals and sends the DescribeTargetHealth API request.

type ELBV2

type ELBV2 struct {
	*aws.Client
}

ELBV2 provides the API operation methods for making requests to Elastic Load Balancing. See this package's package overview docs for details on the service.

ELBV2 methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(config aws.Config) *ELBV2

New creates a new instance of the ELBV2 client with a config. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

// Create a ELBV2 client from just a config.
svc := elbv2.New(myConfig)

// Create a ELBV2 client with additional configuration
svc := elbv2.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))

func (*ELBV2) AddListenerCertificatesRequest

func (c *ELBV2) AddListenerCertificatesRequest(input *AddListenerCertificatesInput) AddListenerCertificatesRequest

AddListenerCertificatesRequest returns a request value for making API operation for Elastic Load Balancing.

Adds the specified certificate to the specified secure listener.

If the certificate was already added, the call is successful but the certificate is not added again.

To list the certificates for your listener, use DescribeListenerCertificates. To remove certificates from your listener, use RemoveListenerCertificates.

// Example sending a request using the AddListenerCertificatesRequest method.
req := client.AddListenerCertificatesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddListenerCertificates

func (*ELBV2) AddTagsRequest

func (c *ELBV2) AddTagsRequest(input *AddTagsInput) AddTagsRequest

AddTagsRequest returns a request value for making API operation for Elastic Load Balancing.

Adds the specified tags to the specified Elastic Load Balancing resource. You can tag your Application Load Balancers, Network Load Balancers, and your target groups.

Each tag consists of a key and an optional value. If a resource already has a tag with the same key, AddTags updates its value.

To list the current tags for your resources, use DescribeTags. To remove tags from your resources, use RemoveTags.

// Example sending a request using the AddTagsRequest method.
req := client.AddTagsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTags

Example (Shared00)

To add tags to a load balancer

This example adds the specified tags to the specified load balancer.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.AddTagsInput{
		ResourceArns: []string{
			"arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
		},
		Tags: []elbv2.Tag{
			{
				Key:   aws.String("project"),
				Value: aws.String("lima"),
			},
			{
				Key:   aws.String("department"),
				Value: aws.String("digital-media"),
			},
		},
	}

	req := svc.AddTagsRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeDuplicateTagKeysException:
				fmt.Println(elbv2.ErrCodeDuplicateTagKeysException, aerr.Error())
			case elbv2.ErrCodeTooManyTagsException:
				fmt.Println(elbv2.ErrCodeTooManyTagsException, aerr.Error())
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) CreateListenerRequest

func (c *ELBV2) CreateListenerRequest(input *CreateListenerInput) CreateListenerRequest

CreateListenerRequest returns a request value for making API operation for Elastic Load Balancing.

Creates a listener for the specified Application Load Balancer or Network Load Balancer.

You can create up to 10 listeners per load balancer.

To update a listener, use ModifyListener. When you are finished with a listener, you can delete it using DeleteListener. If you are finished with both the listener and the load balancer, you can delete them both using DeleteLoadBalancer.

For more information, see Listeners for Your Application Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html) in the Application Load Balancers Guide and Listeners for Your Network Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-listeners.html) in the Network Load Balancers Guide.

// Example sending a request using the CreateListenerRequest method.
req := client.CreateListenerRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListener

Example (Shared00)

To create an HTTP listener

This example creates an HTTP listener for the specified load balancer that forwards requests to the specified target group.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.CreateListenerInput{
		DefaultActions: []elbv2.Action{
			{
				TargetGroupArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"),
				Type:           elbv2.ActionTypeEnumForward,
			},
		},
		LoadBalancerArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"),
		Port:            aws.Int64(80),
		Protocol:        elbv2.ProtocolEnumHttp,
	}

	req := svc.CreateListenerRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeDuplicateListenerException:
				fmt.Println(elbv2.ErrCodeDuplicateListenerException, aerr.Error())
			case elbv2.ErrCodeTooManyListenersException:
				fmt.Println(elbv2.ErrCodeTooManyListenersException, aerr.Error())
			case elbv2.ErrCodeTooManyCertificatesException:
				fmt.Println(elbv2.ErrCodeTooManyCertificatesException, aerr.Error())
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			case elbv2.ErrCodeTargetGroupAssociationLimitException:
				fmt.Println(elbv2.ErrCodeTargetGroupAssociationLimitException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			case elbv2.ErrCodeIncompatibleProtocolsException:
				fmt.Println(elbv2.ErrCodeIncompatibleProtocolsException, aerr.Error())
			case elbv2.ErrCodeSSLPolicyNotFoundException:
				fmt.Println(elbv2.ErrCodeSSLPolicyNotFoundException, aerr.Error())
			case elbv2.ErrCodeCertificateNotFoundException:
				fmt.Println(elbv2.ErrCodeCertificateNotFoundException, aerr.Error())
			case elbv2.ErrCodeUnsupportedProtocolException:
				fmt.Println(elbv2.ErrCodeUnsupportedProtocolException, aerr.Error())
			case elbv2.ErrCodeTooManyRegistrationsForTargetIdException:
				fmt.Println(elbv2.ErrCodeTooManyRegistrationsForTargetIdException, aerr.Error())
			case elbv2.ErrCodeTooManyTargetsException:
				fmt.Println(elbv2.ErrCodeTooManyTargetsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To create an HTTPS listener

This example creates an HTTPS listener for the specified load balancer that forwards requests to the specified target group. Note that you must specify an SSL certificate for an HTTPS listener. You can create and manage certificates using AWS Certificate Manager (ACM). Alternatively, you can create a certificate using SSL/TLS tools, get the certificate signed by a certificate authority (CA), and upload the certificate to AWS Identity and Access Management (IAM).

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.CreateListenerInput{
		Certificates: []elbv2.Certificate{
			{
				CertificateArn: aws.String("arn:aws:iam::123456789012:server-certificate/my-server-cert"),
			},
		},
		DefaultActions: []elbv2.Action{
			{
				TargetGroupArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"),
				Type:           elbv2.ActionTypeEnumForward,
			},
		},
		LoadBalancerArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"),
		Port:            aws.Int64(443),
		Protocol:        elbv2.ProtocolEnumHttps,
		SslPolicy:       aws.String("ELBSecurityPolicy-2015-05"),
	}

	req := svc.CreateListenerRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeDuplicateListenerException:
				fmt.Println(elbv2.ErrCodeDuplicateListenerException, aerr.Error())
			case elbv2.ErrCodeTooManyListenersException:
				fmt.Println(elbv2.ErrCodeTooManyListenersException, aerr.Error())
			case elbv2.ErrCodeTooManyCertificatesException:
				fmt.Println(elbv2.ErrCodeTooManyCertificatesException, aerr.Error())
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			case elbv2.ErrCodeTargetGroupAssociationLimitException:
				fmt.Println(elbv2.ErrCodeTargetGroupAssociationLimitException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			case elbv2.ErrCodeIncompatibleProtocolsException:
				fmt.Println(elbv2.ErrCodeIncompatibleProtocolsException, aerr.Error())
			case elbv2.ErrCodeSSLPolicyNotFoundException:
				fmt.Println(elbv2.ErrCodeSSLPolicyNotFoundException, aerr.Error())
			case elbv2.ErrCodeCertificateNotFoundException:
				fmt.Println(elbv2.ErrCodeCertificateNotFoundException, aerr.Error())
			case elbv2.ErrCodeUnsupportedProtocolException:
				fmt.Println(elbv2.ErrCodeUnsupportedProtocolException, aerr.Error())
			case elbv2.ErrCodeTooManyRegistrationsForTargetIdException:
				fmt.Println(elbv2.ErrCodeTooManyRegistrationsForTargetIdException, aerr.Error())
			case elbv2.ErrCodeTooManyTargetsException:
				fmt.Println(elbv2.ErrCodeTooManyTargetsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) CreateLoadBalancerRequest

func (c *ELBV2) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) CreateLoadBalancerRequest

CreateLoadBalancerRequest returns a request value for making API operation for Elastic Load Balancing.

Creates an Application Load Balancer or a Network Load Balancer.

When you create a load balancer, you can specify security groups, 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.

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 Application Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-limits.html) in the Application Load Balancers Guide and Limits for Your Network Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-limits.html) in the Network Load Balancers Guide.

For more information, see Application Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html) in the Application Load Balancers Guide and Network Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html) in the Network Load Balancers Guide.

// Example sending a request using the CreateLoadBalancerRequest method.
req := client.CreateLoadBalancerRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateLoadBalancer

Example (Shared00)

To create an Internet-facing load balancer

This example creates an Internet-facing load balancer and enables the Availability Zones for the specified subnets.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.CreateLoadBalancerInput{
		Name: aws.String("my-load-balancer"),
		Subnets: []string{
			"subnet-b7d581c0",
			"subnet-8360a9e7",
		},
	}

	req := svc.CreateLoadBalancerRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeDuplicateLoadBalancerNameException:
				fmt.Println(elbv2.ErrCodeDuplicateLoadBalancerNameException, aerr.Error())
			case elbv2.ErrCodeTooManyLoadBalancersException:
				fmt.Println(elbv2.ErrCodeTooManyLoadBalancersException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			case elbv2.ErrCodeSubnetNotFoundException:
				fmt.Println(elbv2.ErrCodeSubnetNotFoundException, aerr.Error())
			case elbv2.ErrCodeInvalidSubnetException:
				fmt.Println(elbv2.ErrCodeInvalidSubnetException, aerr.Error())
			case elbv2.ErrCodeInvalidSecurityGroupException:
				fmt.Println(elbv2.ErrCodeInvalidSecurityGroupException, aerr.Error())
			case elbv2.ErrCodeInvalidSchemeException:
				fmt.Println(elbv2.ErrCodeInvalidSchemeException, aerr.Error())
			case elbv2.ErrCodeTooManyTagsException:
				fmt.Println(elbv2.ErrCodeTooManyTagsException, aerr.Error())
			case elbv2.ErrCodeDuplicateTagKeysException:
				fmt.Println(elbv2.ErrCodeDuplicateTagKeysException, aerr.Error())
			case elbv2.ErrCodeResourceInUseException:
				fmt.Println(elbv2.ErrCodeResourceInUseException, aerr.Error())
			case elbv2.ErrCodeAllocationIdNotFoundException:
				fmt.Println(elbv2.ErrCodeAllocationIdNotFoundException, aerr.Error())
			case elbv2.ErrCodeAvailabilityZoneNotSupportedException:
				fmt.Println(elbv2.ErrCodeAvailabilityZoneNotSupportedException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To create an internal load balancer

This example creates an internal load balancer and enables the Availability Zones for the specified subnets.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.CreateLoadBalancerInput{
		Name:   aws.String("my-internal-load-balancer"),
		Scheme: elbv2.LoadBalancerSchemeEnumInternal,
		Subnets: []string{
			"subnet-b7d581c0",
			"subnet-8360a9e7",
		},
	}

	req := svc.CreateLoadBalancerRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeDuplicateLoadBalancerNameException:
				fmt.Println(elbv2.ErrCodeDuplicateLoadBalancerNameException, aerr.Error())
			case elbv2.ErrCodeTooManyLoadBalancersException:
				fmt.Println(elbv2.ErrCodeTooManyLoadBalancersException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			case elbv2.ErrCodeSubnetNotFoundException:
				fmt.Println(elbv2.ErrCodeSubnetNotFoundException, aerr.Error())
			case elbv2.ErrCodeInvalidSubnetException:
				fmt.Println(elbv2.ErrCodeInvalidSubnetException, aerr.Error())
			case elbv2.ErrCodeInvalidSecurityGroupException:
				fmt.Println(elbv2.ErrCodeInvalidSecurityGroupException, aerr.Error())
			case elbv2.ErrCodeInvalidSchemeException:
				fmt.Println(elbv2.ErrCodeInvalidSchemeException, aerr.Error())
			case elbv2.ErrCodeTooManyTagsException:
				fmt.Println(elbv2.ErrCodeTooManyTagsException, aerr.Error())
			case elbv2.ErrCodeDuplicateTagKeysException:
				fmt.Println(elbv2.ErrCodeDuplicateTagKeysException, aerr.Error())
			case elbv2.ErrCodeResourceInUseException:
				fmt.Println(elbv2.ErrCodeResourceInUseException, aerr.Error())
			case elbv2.ErrCodeAllocationIdNotFoundException:
				fmt.Println(elbv2.ErrCodeAllocationIdNotFoundException, aerr.Error())
			case elbv2.ErrCodeAvailabilityZoneNotSupportedException:
				fmt.Println(elbv2.ErrCodeAvailabilityZoneNotSupportedException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) CreateRuleRequest

func (c *ELBV2) CreateRuleRequest(input *CreateRuleInput) CreateRuleRequest

CreateRuleRequest returns a request value for making API operation for Elastic Load Balancing.

Creates a rule for the specified listener. The listener must be associated with an Application Load Balancer.

Rules are evaluated in priority order, from the lowest value to the highest value. When the condition for a rule is met, the specified action is taken. If no conditions are met, the action for the default rule is taken. For more information, see Listener Rules (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#listener-rules) in the Application Load Balancers Guide.

To view your current rules, use DescribeRules. To update a rule, use ModifyRule. To set the priorities of your rules, use SetRulePriorities. To delete a rule, use DeleteRule.

// Example sending a request using the CreateRuleRequest method.
req := client.CreateRuleRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateRule

Example (Shared00)

To create a rule

This example creates a rule that forwards requests to the specified target group if the URL contains the specified pattern (for example, /img/*).

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.CreateRuleInput{
		Actions: []elbv2.Action{
			{
				TargetGroupArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"),
				Type:           elbv2.ActionTypeEnumForward,
			},
		},
		Conditions: []elbv2.RuleCondition{
			{
				Field: aws.String("path-pattern"),
				Values: []string{
					"/img/*",
				},
			},
		},
		ListenerArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2"),
		Priority:    aws.Int64(10),
	}

	req := svc.CreateRuleRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodePriorityInUseException:
				fmt.Println(elbv2.ErrCodePriorityInUseException, aerr.Error())
			case elbv2.ErrCodeTooManyTargetGroupsException:
				fmt.Println(elbv2.ErrCodeTooManyTargetGroupsException, aerr.Error())
			case elbv2.ErrCodeTooManyRulesException:
				fmt.Println(elbv2.ErrCodeTooManyRulesException, aerr.Error())
			case elbv2.ErrCodeTargetGroupAssociationLimitException:
				fmt.Println(elbv2.ErrCodeTargetGroupAssociationLimitException, aerr.Error())
			case elbv2.ErrCodeIncompatibleProtocolsException:
				fmt.Println(elbv2.ErrCodeIncompatibleProtocolsException, aerr.Error())
			case elbv2.ErrCodeListenerNotFoundException:
				fmt.Println(elbv2.ErrCodeListenerNotFoundException, aerr.Error())
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			case elbv2.ErrCodeTooManyRegistrationsForTargetIdException:
				fmt.Println(elbv2.ErrCodeTooManyRegistrationsForTargetIdException, aerr.Error())
			case elbv2.ErrCodeTooManyTargetsException:
				fmt.Println(elbv2.ErrCodeTooManyTargetsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) CreateTargetGroupRequest

func (c *ELBV2) CreateTargetGroupRequest(input *CreateTargetGroupInput) CreateTargetGroupRequest

CreateTargetGroupRequest returns a request value for making API operation for Elastic Load Balancing.

Creates a target group.

To register targets with the target group, use RegisterTargets. To update the health check settings for the target group, use ModifyTargetGroup. To monitor the health of targets in the target group, use DescribeTargetHealth.

To route traffic to the targets in a target group, specify the target group in an action using CreateListener or CreateRule.

To delete a target group, use DeleteTargetGroup.

For more information, see Target Groups for Your Application Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html) in the Application Load Balancers Guide or Target Groups for Your Network Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html) in the Network Load Balancers Guide.

// Example sending a request using the CreateTargetGroupRequest method.
req := client.CreateTargetGroupRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTargetGroup

Example (Shared00)

To create a target group

This example creates a target group that you can use to route traffic to targets using HTTP on port 80. This target group uses the default health check configuration.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.CreateTargetGroupInput{
		Name:     aws.String("my-targets"),
		Port:     aws.Int64(80),
		Protocol: elbv2.ProtocolEnumHttp,
		VpcId:    aws.String("vpc-3ac0fb5f"),
	}

	req := svc.CreateTargetGroupRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeDuplicateTargetGroupNameException:
				fmt.Println(elbv2.ErrCodeDuplicateTargetGroupNameException, aerr.Error())
			case elbv2.ErrCodeTooManyTargetGroupsException:
				fmt.Println(elbv2.ErrCodeTooManyTargetGroupsException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) DeleteListenerRequest

func (c *ELBV2) DeleteListenerRequest(input *DeleteListenerInput) DeleteListenerRequest

DeleteListenerRequest returns a request value for making API operation for Elastic Load Balancing.

Deletes the specified listener.

Alternatively, your listener is deleted when you delete the load balancer it is attached to using DeleteLoadBalancer.

// Example sending a request using the DeleteListenerRequest method.
req := client.DeleteListenerRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteListener

Example (Shared00)

To delete a listener

This example deletes the specified listener.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DeleteListenerInput{
		ListenerArn: aws.String("arn:aws:elasticloadbalancing:ua-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2"),
	}

	req := svc.DeleteListenerRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeListenerNotFoundException:
				fmt.Println(elbv2.ErrCodeListenerNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) DeleteLoadBalancerRequest

func (c *ELBV2) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) DeleteLoadBalancerRequest

DeleteLoadBalancerRequest returns a request value for making API operation for Elastic Load Balancing.

Deletes the specified Application Load Balancer or Network Load Balancer and its attached listeners.

You can't delete a load balancer if deletion protection is enabled. If the load balancer does not exist or has already been deleted, the call succeeds.

Deleting a load balancer does not affect its registered targets. For example, your EC2 instances continue to run and are still registered to their target groups. If you no longer need these EC2 instances, you can stop or terminate them.

// Example sending a request using the DeleteLoadBalancerRequest method.
req := client.DeleteLoadBalancerRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteLoadBalancer

Example (Shared00)

To delete a load balancer

This example deletes the specified load balancer.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DeleteLoadBalancerInput{
		LoadBalancerArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"),
	}

	req := svc.DeleteLoadBalancerRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			case elbv2.ErrCodeOperationNotPermittedException:
				fmt.Println(elbv2.ErrCodeOperationNotPermittedException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) DeleteRuleRequest

func (c *ELBV2) DeleteRuleRequest(input *DeleteRuleInput) DeleteRuleRequest

DeleteRuleRequest returns a request value for making API operation for Elastic Load Balancing.

Deletes the specified rule.

// Example sending a request using the DeleteRuleRequest method.
req := client.DeleteRuleRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteRule

Example (Shared00)

To delete a rule

This example deletes the specified rule.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DeleteRuleInput{
		RuleArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/1291d13826f405c3"),
	}

	req := svc.DeleteRuleRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeRuleNotFoundException:
				fmt.Println(elbv2.ErrCodeRuleNotFoundException, aerr.Error())
			case elbv2.ErrCodeOperationNotPermittedException:
				fmt.Println(elbv2.ErrCodeOperationNotPermittedException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) DeleteTargetGroupRequest

func (c *ELBV2) DeleteTargetGroupRequest(input *DeleteTargetGroupInput) DeleteTargetGroupRequest

DeleteTargetGroupRequest returns a request value for making API operation for Elastic Load Balancing.

Deletes the specified target group.

You can delete a target group if it is not referenced by any actions. Deleting a target group also deletes any associated health checks.

// Example sending a request using the DeleteTargetGroupRequest method.
req := client.DeleteTargetGroupRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTargetGroup

Example (Shared00)

To delete a target group

This example deletes the specified target group.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DeleteTargetGroupInput{
		TargetGroupArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"),
	}

	req := svc.DeleteTargetGroupRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeResourceInUseException:
				fmt.Println(elbv2.ErrCodeResourceInUseException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) DeregisterTargetsRequest

func (c *ELBV2) DeregisterTargetsRequest(input *DeregisterTargetsInput) DeregisterTargetsRequest

DeregisterTargetsRequest returns a request value for making API operation for Elastic Load Balancing.

Deregisters the specified targets from the specified target group. After the targets are deregistered, they no longer receive traffic from the load balancer.

// Example sending a request using the DeregisterTargetsRequest method.
req := client.DeregisterTargetsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeregisterTargets

Example (Shared00)

To deregister a target from a target group

This example deregisters the specified instance from the specified target group.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DeregisterTargetsInput{
		TargetGroupArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"),
		Targets: []elbv2.TargetDescription{
			{
				Id: aws.String("i-0f76fade"),
			},
		},
	}

	req := svc.DeregisterTargetsRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			case elbv2.ErrCodeInvalidTargetException:
				fmt.Println(elbv2.ErrCodeInvalidTargetException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) DescribeAccountLimitsRequest

func (c *ELBV2) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) DescribeAccountLimitsRequest

DescribeAccountLimitsRequest returns a request value for making API operation for Elastic Load Balancing.

Describes the current Elastic Load Balancing resource limits for your AWS account.

For more information, see Limits for Your Application Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-limits.html) in the Application Load Balancer Guide or Limits for Your Network Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-limits.html) in the Network Load Balancers Guide.

// Example sending a request using the DescribeAccountLimitsRequest method.
req := client.DescribeAccountLimitsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeAccountLimits

func (*ELBV2) DescribeListenerCertificatesRequest

func (c *ELBV2) DescribeListenerCertificatesRequest(input *DescribeListenerCertificatesInput) DescribeListenerCertificatesRequest

DescribeListenerCertificatesRequest returns a request value for making API operation for Elastic Load Balancing.

Describes the certificates for the specified secure listener.

// Example sending a request using the DescribeListenerCertificatesRequest method.
req := client.DescribeListenerCertificatesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListenerCertificates

func (*ELBV2) DescribeListenersPages

func (c *ELBV2) DescribeListenersPages(input *DescribeListenersInput, fn func(*DescribeListenersOutput, bool) bool) error

DescribeListenersPages iterates over the pages of a DescribeListeners operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeListeners method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeListeners operation.
pageNum := 0
err := client.DescribeListenersPages(params,
    func(page *DescribeListenersOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*ELBV2) DescribeListenersPagesWithContext

func (c *ELBV2) DescribeListenersPagesWithContext(ctx aws.Context, input *DescribeListenersInput, fn func(*DescribeListenersOutput, bool) bool, opts ...aws.Option) error

DescribeListenersPagesWithContext same as DescribeListenersPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ELBV2) DescribeListenersRequest

func (c *ELBV2) DescribeListenersRequest(input *DescribeListenersInput) DescribeListenersRequest

DescribeListenersRequest returns a request value for making API operation for Elastic Load Balancing.

Describes the specified listeners or the listeners for the specified Application Load Balancer or Network Load Balancer. You must specify either a load balancer or one or more listeners.

// Example sending a request using the DescribeListenersRequest method.
req := client.DescribeListenersRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListeners

Example (Shared00)

To describe a listener

This example describes the specified listener.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DescribeListenersInput{
		ListenerArns: []string{
			"arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2",
		},
	}

	req := svc.DescribeListenersRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeListenerNotFoundException:
				fmt.Println(elbv2.ErrCodeListenerNotFoundException, aerr.Error())
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) DescribeLoadBalancerAttributesRequest

func (c *ELBV2) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerAttributesInput) DescribeLoadBalancerAttributesRequest

DescribeLoadBalancerAttributesRequest returns a request value for making API operation for Elastic Load Balancing.

Describes the attributes for the specified Application Load Balancer or Network Load Balancer.

// Example sending a request using the DescribeLoadBalancerAttributesRequest method.
req := client.DescribeLoadBalancerAttributesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancerAttributes

Example (Shared00)

To describe load balancer attributes

This example describes the attributes of the specified load balancer.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DescribeLoadBalancerAttributesInput{
		LoadBalancerArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"),
	}

	req := svc.DescribeLoadBalancerAttributesRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) DescribeLoadBalancersPages

func (c *ELBV2) DescribeLoadBalancersPages(input *DescribeLoadBalancersInput, fn func(*DescribeLoadBalancersOutput, bool) bool) error

DescribeLoadBalancersPages iterates over the pages of a DescribeLoadBalancers operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeLoadBalancers method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeLoadBalancers operation.
pageNum := 0
err := client.DescribeLoadBalancersPages(params,
    func(page *DescribeLoadBalancersOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*ELBV2) DescribeLoadBalancersPagesWithContext

func (c *ELBV2) DescribeLoadBalancersPagesWithContext(ctx aws.Context, input *DescribeLoadBalancersInput, fn func(*DescribeLoadBalancersOutput, bool) bool, opts ...aws.Option) error

DescribeLoadBalancersPagesWithContext same as DescribeLoadBalancersPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ELBV2) DescribeLoadBalancersRequest

func (c *ELBV2) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) DescribeLoadBalancersRequest

DescribeLoadBalancersRequest returns a request value for making API operation for Elastic Load Balancing.

Describes the specified load balancers or all of your load balancers.

To describe the listeners for a load balancer, use DescribeListeners. To describe the attributes for a load balancer, use DescribeLoadBalancerAttributes.

// Example sending a request using the DescribeLoadBalancersRequest method.
req := client.DescribeLoadBalancersRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancers

Example (Shared00)

To describe a load balancer

This example describes the specified load balancer.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DescribeLoadBalancersInput{
		LoadBalancerArns: []string{
			"arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
		},
	}

	req := svc.DescribeLoadBalancersRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) DescribeRulesRequest

func (c *ELBV2) DescribeRulesRequest(input *DescribeRulesInput) DescribeRulesRequest

DescribeRulesRequest returns a request value for making API operation for Elastic Load Balancing.

Describes the specified rules or the rules for the specified listener. You must specify either a listener or one or more rules.

// Example sending a request using the DescribeRulesRequest method.
req := client.DescribeRulesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeRules

Example (Shared00)

To describe a rule

This example describes the specified rule.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DescribeRulesInput{
		RuleArns: []string{
			"arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee",
		},
	}

	req := svc.DescribeRulesRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeListenerNotFoundException:
				fmt.Println(elbv2.ErrCodeListenerNotFoundException, aerr.Error())
			case elbv2.ErrCodeRuleNotFoundException:
				fmt.Println(elbv2.ErrCodeRuleNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) DescribeSSLPoliciesRequest

func (c *ELBV2) DescribeSSLPoliciesRequest(input *DescribeSSLPoliciesInput) DescribeSSLPoliciesRequest

DescribeSSLPoliciesRequest returns a request value for making API operation for Elastic Load Balancing.

Describes the specified policies or all policies used for SSL negotiation.

For more information, see Security Policies (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html#describe-ssl-policies) in the Application Load Balancers Guide.

// Example sending a request using the DescribeSSLPoliciesRequest method.
req := client.DescribeSSLPoliciesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeSSLPolicies

Example (Shared00)

To describe a policy used for SSL negotiation

This example describes the specified policy used for SSL negotiation.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DescribeSSLPoliciesInput{
		Names: []string{
			"ELBSecurityPolicy-2015-05",
		},
	}

	req := svc.DescribeSSLPoliciesRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeSSLPolicyNotFoundException:
				fmt.Println(elbv2.ErrCodeSSLPolicyNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) DescribeTagsRequest

func (c *ELBV2) DescribeTagsRequest(input *DescribeTagsInput) DescribeTagsRequest

DescribeTagsRequest returns a request value for making API operation for Elastic Load Balancing.

Describes the tags for the specified resources. You can describe the tags for one or more Application Load Balancers, Network Load Balancers, and target groups.

// Example sending a request using the DescribeTagsRequest method.
req := client.DescribeTagsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTags

Example (Shared00)

To describe the tags assigned to a load balancer

This example describes the tags assigned to the specified load balancer.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DescribeTagsInput{
		ResourceArns: []string{
			"arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
		},
	}

	req := svc.DescribeTagsRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			case elbv2.ErrCodeListenerNotFoundException:
				fmt.Println(elbv2.ErrCodeListenerNotFoundException, aerr.Error())
			case elbv2.ErrCodeRuleNotFoundException:
				fmt.Println(elbv2.ErrCodeRuleNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) DescribeTargetGroupAttributesRequest

func (c *ELBV2) DescribeTargetGroupAttributesRequest(input *DescribeTargetGroupAttributesInput) DescribeTargetGroupAttributesRequest

DescribeTargetGroupAttributesRequest returns a request value for making API operation for Elastic Load Balancing.

Describes the attributes for the specified target group.

// Example sending a request using the DescribeTargetGroupAttributesRequest method.
req := client.DescribeTargetGroupAttributesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupAttributes

Example (Shared00)

To describe target group attributes

This example describes the attributes of the specified target group.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DescribeTargetGroupAttributesInput{
		TargetGroupArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"),
	}

	req := svc.DescribeTargetGroupAttributesRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) DescribeTargetGroupsPages

func (c *ELBV2) DescribeTargetGroupsPages(input *DescribeTargetGroupsInput, fn func(*DescribeTargetGroupsOutput, bool) bool) error

DescribeTargetGroupsPages iterates over the pages of a DescribeTargetGroups operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeTargetGroups method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeTargetGroups operation.
pageNum := 0
err := client.DescribeTargetGroupsPages(params,
    func(page *DescribeTargetGroupsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*ELBV2) DescribeTargetGroupsPagesWithContext

func (c *ELBV2) DescribeTargetGroupsPagesWithContext(ctx aws.Context, input *DescribeTargetGroupsInput, fn func(*DescribeTargetGroupsOutput, bool) bool, opts ...aws.Option) error

DescribeTargetGroupsPagesWithContext same as DescribeTargetGroupsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ELBV2) DescribeTargetGroupsRequest

func (c *ELBV2) DescribeTargetGroupsRequest(input *DescribeTargetGroupsInput) DescribeTargetGroupsRequest

DescribeTargetGroupsRequest returns a request value for making API operation for Elastic Load Balancing.

Describes the specified target groups or all of your target groups. By default, all target groups are described. Alternatively, you can specify one of the following to filter the results: the ARN of the load balancer, the names of one or more target groups, or the ARNs of one or more target groups.

To describe the targets for a target group, use DescribeTargetHealth. To describe the attributes of a target group, use DescribeTargetGroupAttributes.

// Example sending a request using the DescribeTargetGroupsRequest method.
req := client.DescribeTargetGroupsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroups

Example (Shared00)

To describe a target group

This example describes the specified target group.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DescribeTargetGroupsInput{
		TargetGroupArns: []string{
			"arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
		},
	}

	req := svc.DescribeTargetGroupsRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) DescribeTargetHealthRequest

func (c *ELBV2) DescribeTargetHealthRequest(input *DescribeTargetHealthInput) DescribeTargetHealthRequest

DescribeTargetHealthRequest returns a request value for making API operation for Elastic Load Balancing.

Describes the health of the specified targets or all of your targets.

// Example sending a request using the DescribeTargetHealthRequest method.
req := client.DescribeTargetHealthRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetHealth

Example (Shared00)

To describe the health of the targets for a target group

This example describes the health of the targets for the specified target group. One target is healthy but the other is not specified in an action, so it can't receive traffic from the load balancer.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DescribeTargetHealthInput{
		TargetGroupArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"),
	}

	req := svc.DescribeTargetHealthRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeInvalidTargetException:
				fmt.Println(elbv2.ErrCodeInvalidTargetException, aerr.Error())
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			case elbv2.ErrCodeHealthUnavailableException:
				fmt.Println(elbv2.ErrCodeHealthUnavailableException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To describe the health of a target

This example describes the health of the specified target. This target is healthy.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.DescribeTargetHealthInput{
		TargetGroupArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"),
		Targets: []elbv2.TargetDescription{
			{
				Id:   aws.String("i-0f76fade"),
				Port: aws.Int64(80),
			},
		},
	}

	req := svc.DescribeTargetHealthRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeInvalidTargetException:
				fmt.Println(elbv2.ErrCodeInvalidTargetException, aerr.Error())
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			case elbv2.ErrCodeHealthUnavailableException:
				fmt.Println(elbv2.ErrCodeHealthUnavailableException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) ModifyListenerRequest

func (c *ELBV2) ModifyListenerRequest(input *ModifyListenerInput) ModifyListenerRequest

ModifyListenerRequest returns a request value for making API operation for Elastic Load Balancing.

Modifies the specified properties of the specified listener.

Any properties that you do not specify retain their current values. However, changing the protocol from HTTPS to HTTP removes the security policy and SSL certificate properties. If you change the protocol from HTTP to HTTPS, you must add the security policy and server certificate.

// Example sending a request using the ModifyListenerRequest method.
req := client.ModifyListenerRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListener

Example (Shared00)

To change the default action for a listener

This example changes the default action for the specified listener.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.ModifyListenerInput{
		DefaultActions: []elbv2.Action{
			{
				TargetGroupArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-targets/2453ed029918f21f"),
				Type:           elbv2.ActionTypeEnumForward,
			},
		},
		ListenerArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2"),
	}

	req := svc.ModifyListenerRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeDuplicateListenerException:
				fmt.Println(elbv2.ErrCodeDuplicateListenerException, aerr.Error())
			case elbv2.ErrCodeTooManyListenersException:
				fmt.Println(elbv2.ErrCodeTooManyListenersException, aerr.Error())
			case elbv2.ErrCodeTooManyCertificatesException:
				fmt.Println(elbv2.ErrCodeTooManyCertificatesException, aerr.Error())
			case elbv2.ErrCodeListenerNotFoundException:
				fmt.Println(elbv2.ErrCodeListenerNotFoundException, aerr.Error())
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			case elbv2.ErrCodeTargetGroupAssociationLimitException:
				fmt.Println(elbv2.ErrCodeTargetGroupAssociationLimitException, aerr.Error())
			case elbv2.ErrCodeIncompatibleProtocolsException:
				fmt.Println(elbv2.ErrCodeIncompatibleProtocolsException, aerr.Error())
			case elbv2.ErrCodeSSLPolicyNotFoundException:
				fmt.Println(elbv2.ErrCodeSSLPolicyNotFoundException, aerr.Error())
			case elbv2.ErrCodeCertificateNotFoundException:
				fmt.Println(elbv2.ErrCodeCertificateNotFoundException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			case elbv2.ErrCodeUnsupportedProtocolException:
				fmt.Println(elbv2.ErrCodeUnsupportedProtocolException, aerr.Error())
			case elbv2.ErrCodeTooManyRegistrationsForTargetIdException:
				fmt.Println(elbv2.ErrCodeTooManyRegistrationsForTargetIdException, aerr.Error())
			case elbv2.ErrCodeTooManyTargetsException:
				fmt.Println(elbv2.ErrCodeTooManyTargetsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To change the server certificate

This example changes the server certificate for the specified HTTPS listener.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.ModifyListenerInput{
		Certificates: []elbv2.Certificate{
			{
				CertificateArn: aws.String("arn:aws:iam::123456789012:server-certificate/my-new-server-cert"),
			},
		},
		ListenerArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/0467ef3c8400ae65"),
	}

	req := svc.ModifyListenerRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeDuplicateListenerException:
				fmt.Println(elbv2.ErrCodeDuplicateListenerException, aerr.Error())
			case elbv2.ErrCodeTooManyListenersException:
				fmt.Println(elbv2.ErrCodeTooManyListenersException, aerr.Error())
			case elbv2.ErrCodeTooManyCertificatesException:
				fmt.Println(elbv2.ErrCodeTooManyCertificatesException, aerr.Error())
			case elbv2.ErrCodeListenerNotFoundException:
				fmt.Println(elbv2.ErrCodeListenerNotFoundException, aerr.Error())
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			case elbv2.ErrCodeTargetGroupAssociationLimitException:
				fmt.Println(elbv2.ErrCodeTargetGroupAssociationLimitException, aerr.Error())
			case elbv2.ErrCodeIncompatibleProtocolsException:
				fmt.Println(elbv2.ErrCodeIncompatibleProtocolsException, aerr.Error())
			case elbv2.ErrCodeSSLPolicyNotFoundException:
				fmt.Println(elbv2.ErrCodeSSLPolicyNotFoundException, aerr.Error())
			case elbv2.ErrCodeCertificateNotFoundException:
				fmt.Println(elbv2.ErrCodeCertificateNotFoundException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			case elbv2.ErrCodeUnsupportedProtocolException:
				fmt.Println(elbv2.ErrCodeUnsupportedProtocolException, aerr.Error())
			case elbv2.ErrCodeTooManyRegistrationsForTargetIdException:
				fmt.Println(elbv2.ErrCodeTooManyRegistrationsForTargetIdException, aerr.Error())
			case elbv2.ErrCodeTooManyTargetsException:
				fmt.Println(elbv2.ErrCodeTooManyTargetsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) ModifyLoadBalancerAttributesRequest

func (c *ELBV2) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) ModifyLoadBalancerAttributesRequest

ModifyLoadBalancerAttributesRequest returns a request value for making API operation for Elastic Load Balancing.

Modifies the specified attributes of the specified Application Load Balancer or Network Load Balancer.

If any of the specified attributes can't be modified as requested, the call fails. Any existing attributes that you do not modify retain their current values.

// Example sending a request using the ModifyLoadBalancerAttributesRequest method.
req := client.ModifyLoadBalancerAttributesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyLoadBalancerAttributes

Example (Shared00)

To enable deletion protection

This example enables deletion protection for the specified load balancer.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.ModifyLoadBalancerAttributesInput{
		Attributes: []elbv2.LoadBalancerAttribute{
			{
				Key:   aws.String("deletion_protection.enabled"),
				Value: aws.String("true"),
			},
		},
		LoadBalancerArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"),
	}

	req := svc.ModifyLoadBalancerAttributesRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To change the idle timeout

This example changes the idle timeout value for the specified load balancer.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.ModifyLoadBalancerAttributesInput{
		Attributes: []elbv2.LoadBalancerAttribute{
			{
				Key:   aws.String("idle_timeout.timeout_seconds"),
				Value: aws.String("30"),
			},
		},
		LoadBalancerArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"),
	}

	req := svc.ModifyLoadBalancerAttributesRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared02)

To enable access logs

This example enables access logs for the specified load balancer. Note that the S3 bucket must exist in the same region as the load balancer and must have a policy attached that grants access to the Elastic Load Balancing service.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.ModifyLoadBalancerAttributesInput{
		Attributes: []elbv2.LoadBalancerAttribute{
			{
				Key:   aws.String("access_logs.s3.enabled"),
				Value: aws.String("true"),
			},
			{
				Key:   aws.String("access_logs.s3.bucket"),
				Value: aws.String("my-loadbalancer-logs"),
			},
			{
				Key:   aws.String("access_logs.s3.prefix"),
				Value: aws.String("myapp"),
			},
		},
		LoadBalancerArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"),
	}

	req := svc.ModifyLoadBalancerAttributesRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) ModifyRuleRequest

func (c *ELBV2) ModifyRuleRequest(input *ModifyRuleInput) ModifyRuleRequest

ModifyRuleRequest returns a request value for making API operation for Elastic Load Balancing.

Modifies the specified rule.

Any existing properties that you do not modify retain their current values.

To modify the default action, use ModifyListener.

// Example sending a request using the ModifyRuleRequest method.
req := client.ModifyRuleRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyRule

Example (Shared00)

To modify a rule

This example modifies the condition for the specified rule.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.ModifyRuleInput{
		Conditions: []elbv2.RuleCondition{
			{
				Field: aws.String("path-pattern"),
				Values: []string{
					"/images/*",
				},
			},
		},
		RuleArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee"),
	}

	req := svc.ModifyRuleRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeTargetGroupAssociationLimitException:
				fmt.Println(elbv2.ErrCodeTargetGroupAssociationLimitException, aerr.Error())
			case elbv2.ErrCodeIncompatibleProtocolsException:
				fmt.Println(elbv2.ErrCodeIncompatibleProtocolsException, aerr.Error())
			case elbv2.ErrCodeRuleNotFoundException:
				fmt.Println(elbv2.ErrCodeRuleNotFoundException, aerr.Error())
			case elbv2.ErrCodeOperationNotPermittedException:
				fmt.Println(elbv2.ErrCodeOperationNotPermittedException, aerr.Error())
			case elbv2.ErrCodeTooManyRegistrationsForTargetIdException:
				fmt.Println(elbv2.ErrCodeTooManyRegistrationsForTargetIdException, aerr.Error())
			case elbv2.ErrCodeTooManyTargetsException:
				fmt.Println(elbv2.ErrCodeTooManyTargetsException, aerr.Error())
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) ModifyTargetGroupAttributesRequest

func (c *ELBV2) ModifyTargetGroupAttributesRequest(input *ModifyTargetGroupAttributesInput) ModifyTargetGroupAttributesRequest

ModifyTargetGroupAttributesRequest returns a request value for making API operation for Elastic Load Balancing.

Modifies the specified attributes of the specified target group.

// Example sending a request using the ModifyTargetGroupAttributesRequest method.
req := client.ModifyTargetGroupAttributesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupAttributes

Example (Shared00)

To modify the deregistration delay timeout

This example sets the deregistration delay timeout to the specified value for the specified target group.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.ModifyTargetGroupAttributesInput{
		Attributes: []elbv2.TargetGroupAttribute{
			{
				Key:   aws.String("deregistration_delay.timeout_seconds"),
				Value: aws.String("600"),
			},
		},
		TargetGroupArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"),
	}

	req := svc.ModifyTargetGroupAttributesRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) ModifyTargetGroupRequest

func (c *ELBV2) ModifyTargetGroupRequest(input *ModifyTargetGroupInput) ModifyTargetGroupRequest

ModifyTargetGroupRequest returns a request value for making API operation for Elastic Load Balancing.

Modifies the health checks used when evaluating the health state of the targets in the specified target group.

To monitor the health of the targets, use DescribeTargetHealth.

// Example sending a request using the ModifyTargetGroupRequest method.
req := client.ModifyTargetGroupRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroup

Example (Shared00)

To modify the health check configuration for a target group

This example changes the configuration of the health checks used to evaluate the health of the targets for the specified target group.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.ModifyTargetGroupInput{
		HealthCheckPort:     aws.String("443"),
		HealthCheckProtocol: elbv2.ProtocolEnumHttps,
		TargetGroupArn:      aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-https-targets/2453ed029918f21f"),
	}

	req := svc.ModifyTargetGroupRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) RegisterTargetsRequest

func (c *ELBV2) RegisterTargetsRequest(input *RegisterTargetsInput) RegisterTargetsRequest

RegisterTargetsRequest returns a request value for making API operation for Elastic Load Balancing.

Registers the specified targets with the specified target group.

You can register targets by instance ID or by IP address. If the target is an EC2 instance, it must be in the running state when you register it.

By default, the load balancer routes requests to registered targets using the protocol and port for the target group. Alternatively, you can override the port for a target when you register it. You can register each EC2 instance or IP address with the same target group multiple times using different ports.

With a Network Load Balancer, you cannot register instances by instance ID if they have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1. You can register instances of these types by IP address.

To remove a target from a target group, use DeregisterTargets.

// Example sending a request using the RegisterTargetsRequest method.
req := client.RegisterTargetsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RegisterTargets

Example (Shared00)

To register targets with a target group

This example registers the specified instances with the specified target group.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.RegisterTargetsInput{
		TargetGroupArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"),
		Targets: []elbv2.TargetDescription{
			{
				Id: aws.String("i-80c8dd94"),
			},
			{
				Id: aws.String("i-ceddcd4d"),
			},
		},
	}

	req := svc.RegisterTargetsRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			case elbv2.ErrCodeTooManyTargetsException:
				fmt.Println(elbv2.ErrCodeTooManyTargetsException, aerr.Error())
			case elbv2.ErrCodeInvalidTargetException:
				fmt.Println(elbv2.ErrCodeInvalidTargetException, aerr.Error())
			case elbv2.ErrCodeTooManyRegistrationsForTargetIdException:
				fmt.Println(elbv2.ErrCodeTooManyRegistrationsForTargetIdException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To register targets with a target group using port overrides

This example registers the specified instance with the specified target group using multiple ports. This enables you to register ECS containers on the same instance as targets in the target group.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.RegisterTargetsInput{
		TargetGroupArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-targets/3bb63f11dfb0faf9"),
		Targets: []elbv2.TargetDescription{
			{
				Id:   aws.String("i-80c8dd94"),
				Port: aws.Int64(80),
			},
			{
				Id:   aws.String("i-80c8dd94"),
				Port: aws.Int64(766),
			},
		},
	}

	req := svc.RegisterTargetsRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			case elbv2.ErrCodeTooManyTargetsException:
				fmt.Println(elbv2.ErrCodeTooManyTargetsException, aerr.Error())
			case elbv2.ErrCodeInvalidTargetException:
				fmt.Println(elbv2.ErrCodeInvalidTargetException, aerr.Error())
			case elbv2.ErrCodeTooManyRegistrationsForTargetIdException:
				fmt.Println(elbv2.ErrCodeTooManyRegistrationsForTargetIdException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) RemoveListenerCertificatesRequest

func (c *ELBV2) RemoveListenerCertificatesRequest(input *RemoveListenerCertificatesInput) RemoveListenerCertificatesRequest

RemoveListenerCertificatesRequest returns a request value for making API operation for Elastic Load Balancing.

Removes the specified certificate from the specified secure listener.

You can't remove the default certificate for a listener. To replace the default certificate, call ModifyListener.

To list the certificates for your listener, use DescribeListenerCertificates.

// Example sending a request using the RemoveListenerCertificatesRequest method.
req := client.RemoveListenerCertificatesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveListenerCertificates

func (*ELBV2) RemoveTagsRequest

func (c *ELBV2) RemoveTagsRequest(input *RemoveTagsInput) RemoveTagsRequest

RemoveTagsRequest returns a request value for making API operation for Elastic Load Balancing.

Removes the specified tags from the specified Elastic Load Balancing resource.

To list the current tags for your resources, use DescribeTags.

// Example sending a request using the RemoveTagsRequest method.
req := client.RemoveTagsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTags

Example (Shared00)

To remove tags from a load balancer

This example removes the specified tags from the specified load balancer.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.RemoveTagsInput{
		ResourceArns: []string{
			"arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
		},
		TagKeys: []string{
			"project",
			"department",
		},
	}

	req := svc.RemoveTagsRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			case elbv2.ErrCodeTargetGroupNotFoundException:
				fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
			case elbv2.ErrCodeListenerNotFoundException:
				fmt.Println(elbv2.ErrCodeListenerNotFoundException, aerr.Error())
			case elbv2.ErrCodeRuleNotFoundException:
				fmt.Println(elbv2.ErrCodeRuleNotFoundException, aerr.Error())
			case elbv2.ErrCodeTooManyTagsException:
				fmt.Println(elbv2.ErrCodeTooManyTagsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) SetIpAddressTypeRequest

func (c *ELBV2) SetIpAddressTypeRequest(input *SetIpAddressTypeInput) SetIpAddressTypeRequest

SetIpAddressTypeRequest returns a request value for making API operation for Elastic Load Balancing.

Sets the type of IP addresses used by the subnets of the specified Application Load Balancer or Network Load Balancer.

Note that Network Load Balancers must use ipv4.

// Example sending a request using the SetIpAddressTypeRequest method.
req := client.SetIpAddressTypeRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetIpAddressType

func (*ELBV2) SetRulePrioritiesRequest

func (c *ELBV2) SetRulePrioritiesRequest(input *SetRulePrioritiesInput) SetRulePrioritiesRequest

SetRulePrioritiesRequest returns a request value for making API operation for Elastic Load Balancing.

Sets the priorities of the specified rules.

You can reorder the rules as long as there are no priority conflicts in the new order. Any existing rules that you do not specify retain their current priority.

// Example sending a request using the SetRulePrioritiesRequest method.
req := client.SetRulePrioritiesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetRulePriorities

Example (Shared00)

To set the rule priority

This example sets the priority of the specified rule.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.SetRulePrioritiesInput{
		RulePriorities: []elbv2.RulePriorityPair{
			{
				Priority: aws.Int64(5),
				RuleArn:  aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/1291d13826f405c3"),
			},
		},
	}

	req := svc.SetRulePrioritiesRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeRuleNotFoundException:
				fmt.Println(elbv2.ErrCodeRuleNotFoundException, aerr.Error())
			case elbv2.ErrCodePriorityInUseException:
				fmt.Println(elbv2.ErrCodePriorityInUseException, aerr.Error())
			case elbv2.ErrCodeOperationNotPermittedException:
				fmt.Println(elbv2.ErrCodeOperationNotPermittedException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) SetSecurityGroupsRequest

func (c *ELBV2) SetSecurityGroupsRequest(input *SetSecurityGroupsInput) SetSecurityGroupsRequest

SetSecurityGroupsRequest returns a request value for making API operation for Elastic Load Balancing.

Associates the specified security groups with the specified Application Load Balancer. The specified security groups override the previously associated security groups.

Note that you can't specify a security group for a Network Load Balancer.

// Example sending a request using the SetSecurityGroupsRequest method.
req := client.SetSecurityGroupsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroups

Example (Shared00)

To associate a security group with a load balancer

This example associates the specified security group with the specified load balancer.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.SetSecurityGroupsInput{
		LoadBalancerArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"),
		SecurityGroups: []string{
			"sg-5943793c",
		},
	}

	req := svc.SetSecurityGroupsRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			case elbv2.ErrCodeInvalidSecurityGroupException:
				fmt.Println(elbv2.ErrCodeInvalidSecurityGroupException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) SetSubnetsRequest

func (c *ELBV2) SetSubnetsRequest(input *SetSubnetsInput) SetSubnetsRequest

SetSubnetsRequest returns a request value for making API operation for Elastic Load Balancing.

Enables the Availability Zone for the specified subnets for the specified Application Load Balancer. The specified subnets replace the previously enabled subnets.

Note that you can't change the subnets for a Network Load Balancer.

// Example sending a request using the SetSubnetsRequest method.
req := client.SetSubnetsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnets

Example (Shared00)

To enable Availability Zones for a load balancer

This example enables the Availability Zones for the specified subnets for the specified load balancer.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/elbv2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := elbv2.New(cfg)
	input := &elbv2.SetSubnetsInput{
		LoadBalancerArn: aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"),
		Subnets: []string{
			"subnet-8360a9e7",
			"subnet-b7d581c0",
		},
	}

	req := svc.SetSubnetsRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elbv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			case elbv2.ErrCodeInvalidConfigurationRequestException:
				fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
			case elbv2.ErrCodeSubnetNotFoundException:
				fmt.Println(elbv2.ErrCodeSubnetNotFoundException, aerr.Error())
			case elbv2.ErrCodeInvalidSubnetException:
				fmt.Println(elbv2.ErrCodeInvalidSubnetException, aerr.Error())
			case elbv2.ErrCodeAllocationIdNotFoundException:
				fmt.Println(elbv2.ErrCodeAllocationIdNotFoundException, aerr.Error())
			case elbv2.ErrCodeAvailabilityZoneNotSupportedException:
				fmt.Println(elbv2.ErrCodeAvailabilityZoneNotSupportedException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*ELBV2) WaitUntilLoadBalancerAvailable

func (c *ELBV2) WaitUntilLoadBalancerAvailable(input *DescribeLoadBalancersInput) error

WaitUntilLoadBalancerAvailable uses the Elastic Load Balancing v2 API operation DescribeLoadBalancers to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*ELBV2) WaitUntilLoadBalancerAvailableWithContext

func (c *ELBV2) WaitUntilLoadBalancerAvailableWithContext(ctx aws.Context, input *DescribeLoadBalancersInput, opts ...aws.WaiterOption) error

WaitUntilLoadBalancerAvailableWithContext is an extended version of WaitUntilLoadBalancerAvailable. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ELBV2) WaitUntilLoadBalancerExists

func (c *ELBV2) WaitUntilLoadBalancerExists(input *DescribeLoadBalancersInput) error

WaitUntilLoadBalancerExists uses the Elastic Load Balancing v2 API operation DescribeLoadBalancers to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*ELBV2) WaitUntilLoadBalancerExistsWithContext

func (c *ELBV2) WaitUntilLoadBalancerExistsWithContext(ctx aws.Context, input *DescribeLoadBalancersInput, opts ...aws.WaiterOption) error

WaitUntilLoadBalancerExistsWithContext is an extended version of WaitUntilLoadBalancerExists. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ELBV2) WaitUntilLoadBalancersDeleted

func (c *ELBV2) WaitUntilLoadBalancersDeleted(input *DescribeLoadBalancersInput) error

WaitUntilLoadBalancersDeleted uses the Elastic Load Balancing v2 API operation DescribeLoadBalancers to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*ELBV2) WaitUntilLoadBalancersDeletedWithContext

func (c *ELBV2) WaitUntilLoadBalancersDeletedWithContext(ctx aws.Context, input *DescribeLoadBalancersInput, opts ...aws.WaiterOption) error

WaitUntilLoadBalancersDeletedWithContext is an extended version of WaitUntilLoadBalancersDeleted. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ELBV2) WaitUntilTargetDeregistered

func (c *ELBV2) WaitUntilTargetDeregistered(input *DescribeTargetHealthInput) error

WaitUntilTargetDeregistered uses the Elastic Load Balancing v2 API operation DescribeTargetHealth to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*ELBV2) WaitUntilTargetDeregisteredWithContext

func (c *ELBV2) WaitUntilTargetDeregisteredWithContext(ctx aws.Context, input *DescribeTargetHealthInput, opts ...aws.WaiterOption) error

WaitUntilTargetDeregisteredWithContext is an extended version of WaitUntilTargetDeregistered. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ELBV2) WaitUntilTargetInService

func (c *ELBV2) WaitUntilTargetInService(input *DescribeTargetHealthInput) error

WaitUntilTargetInService uses the Elastic Load Balancing v2 API operation DescribeTargetHealth to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*ELBV2) WaitUntilTargetInServiceWithContext

func (c *ELBV2) WaitUntilTargetInServiceWithContext(ctx aws.Context, input *DescribeTargetHealthInput, opts ...aws.WaiterOption) error

WaitUntilTargetInServiceWithContext is an extended version of WaitUntilTargetInService. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type IpAddressType

type IpAddressType string
const (
	IpAddressTypeIpv4      IpAddressType = "ipv4"
	IpAddressTypeDualstack IpAddressType = "dualstack"
)

Enum values for IpAddressType

type Limit

type Limit struct {

	// The maximum value of the limit.
	Max *string `type:"string"`

	// The name of the limit. The possible values are:
	//
	//    * application-load-balancers
	//
	//    * listeners-per-application-load-balancer
	//
	//    * listeners-per-network-load-balancer
	//
	//    * network-load-balancers
	//
	//    * rules-per-application-load-balancer
	//
	//    * target-groups
	//
	//    * targets-per-application-load-balancer
	Name *string `type:"string"`
	// contains filtered or unexported fields
}

Information about an Elastic Load Balancing resource limit for your AWS account. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Limit

func (Limit) GoString

func (s Limit) GoString() string

GoString returns the string representation

func (*Limit) SetMax

func (s *Limit) SetMax(v string) *Limit

SetMax sets the Max field's value.

func (*Limit) SetName

func (s *Limit) SetName(v string) *Limit

SetName sets the Name field's value.

func (Limit) String

func (s Limit) String() string

String returns the string representation

type Listener

type Listener struct {

	// The SSL server certificate. You must provide a certificate if the protocol
	// is HTTPS.
	Certificates []Certificate `type:"list"`

	// The default actions for the listener.
	DefaultActions []Action `type:"list"`

	// The Amazon Resource Name (ARN) of the listener.
	ListenerArn *string `type:"string"`

	// The Amazon Resource Name (ARN) of the load balancer.
	LoadBalancerArn *string `type:"string"`

	// The port on which the load balancer is listening.
	Port *int64 `min:"1" type:"integer"`

	// The protocol for connections from clients to the load balancer.
	Protocol ProtocolEnum `type:"string" enum:"true"`

	// The security policy that defines which ciphers and protocols are supported.
	// The default is the current predefined security policy.
	SslPolicy *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a listener. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Listener

func (Listener) GoString

func (s Listener) GoString() string

GoString returns the string representation

func (*Listener) SetCertificates

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

SetCertificates sets the Certificates field's value.

func (*Listener) SetDefaultActions

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

SetDefaultActions sets the DefaultActions field's value.

func (*Listener) SetListenerArn

func (s *Listener) SetListenerArn(v string) *Listener

SetListenerArn sets the ListenerArn field's value.

func (*Listener) SetLoadBalancerArn

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*Listener) SetPort

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

SetPort sets the Port field's value.

func (*Listener) SetProtocol

func (s *Listener) SetProtocol(v ProtocolEnum) *Listener

SetProtocol sets the Protocol field's value.

func (*Listener) SetSslPolicy

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

SetSslPolicy sets the SslPolicy field's value.

func (Listener) String

func (s Listener) String() string

String returns the string representation

type LoadBalancer

type LoadBalancer struct {

	// The Availability Zones for the load balancer.
	AvailabilityZones []AvailabilityZone `type:"list"`

	// The ID of the Amazon Route 53 hosted zone associated with the load balancer.
	CanonicalHostedZoneId *string `type:"string"`

	// The date and time the load balancer was created.
	CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// The public DNS name of the load balancer.
	DNSName *string `type:"string"`

	// The type of IP addresses used by the subnets for your load balancer. The
	// possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and
	// IPv6 addresses).
	IpAddressType IpAddressType `type:"string" enum:"true"`

	// The Amazon Resource Name (ARN) of the load balancer.
	LoadBalancerArn *string `type:"string"`

	// The name of the load balancer.
	LoadBalancerName *string `type:"string"`

	// The nodes of an Internet-facing load balancer have public IP addresses. The
	// DNS name of an Internet-facing load balancer is publicly resolvable to the
	// public IP addresses of the nodes. Therefore, Internet-facing load balancers
	// can route requests from clients over the Internet.
	//
	// The nodes of an internal load balancer have only private IP addresses. The
	// DNS name of an internal load balancer is publicly resolvable to the private
	// IP addresses of the nodes. Therefore, internal load balancers can only route
	// requests from clients with access to the VPC for the load balancer.
	Scheme LoadBalancerSchemeEnum `type:"string" enum:"true"`

	// The IDs of the security groups for the load balancer.
	SecurityGroups []string `type:"list"`

	// The state of the load balancer.
	State *LoadBalancerState `type:"structure"`

	// The type of load balancer.
	Type LoadBalancerTypeEnum `type:"string" enum:"true"`

	// The ID of the VPC for the load balancer.
	VpcId *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a load balancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/LoadBalancer

func (LoadBalancer) GoString

func (s LoadBalancer) GoString() string

GoString returns the string representation

func (*LoadBalancer) SetAvailabilityZones

func (s *LoadBalancer) SetAvailabilityZones(v []AvailabilityZone) *LoadBalancer

SetAvailabilityZones sets the AvailabilityZones field's value.

func (*LoadBalancer) SetCanonicalHostedZoneId

func (s *LoadBalancer) SetCanonicalHostedZoneId(v string) *LoadBalancer

SetCanonicalHostedZoneId sets the CanonicalHostedZoneId field's value.

func (*LoadBalancer) SetCreatedTime

func (s *LoadBalancer) SetCreatedTime(v time.Time) *LoadBalancer

SetCreatedTime sets the CreatedTime field's value.

func (*LoadBalancer) SetDNSName

func (s *LoadBalancer) SetDNSName(v string) *LoadBalancer

SetDNSName sets the DNSName field's value.

func (*LoadBalancer) SetIpAddressType

func (s *LoadBalancer) SetIpAddressType(v IpAddressType) *LoadBalancer

SetIpAddressType sets the IpAddressType field's value.

func (*LoadBalancer) SetLoadBalancerArn

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*LoadBalancer) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*LoadBalancer) SetScheme

SetScheme sets the Scheme field's value.

func (*LoadBalancer) SetSecurityGroups

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

SetSecurityGroups sets the SecurityGroups field's value.

func (*LoadBalancer) SetState

func (s *LoadBalancer) SetState(v *LoadBalancerState) *LoadBalancer

SetState sets the State field's value.

func (*LoadBalancer) SetType

SetType sets the Type field's value.

func (*LoadBalancer) SetVpcId

func (s *LoadBalancer) SetVpcId(v string) *LoadBalancer

SetVpcId sets the VpcId field's value.

func (LoadBalancer) String

func (s LoadBalancer) String() string

String returns the string representation

type LoadBalancerAddress

type LoadBalancerAddress struct {

	// [Network Load Balancers] The allocation ID of the Elastic IP address.
	AllocationId *string `type:"string"`

	// The static IP address.
	IpAddress *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a static IP address for a load balancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/LoadBalancerAddress

func (LoadBalancerAddress) GoString

func (s LoadBalancerAddress) GoString() string

GoString returns the string representation

func (*LoadBalancerAddress) SetAllocationId

func (s *LoadBalancerAddress) SetAllocationId(v string) *LoadBalancerAddress

SetAllocationId sets the AllocationId field's value.

func (*LoadBalancerAddress) SetIpAddress

func (s *LoadBalancerAddress) SetIpAddress(v string) *LoadBalancerAddress

SetIpAddress sets the IpAddress field's value.

func (LoadBalancerAddress) String

func (s LoadBalancerAddress) String() string

String returns the string representation

type LoadBalancerAttribute

type LoadBalancerAttribute struct {

	// The name of the attribute.
	//
	//    * access_logs.s3.enabled - [Application Load Balancers] Indicates whether
	//    access logs stored in Amazon S3 are enabled. The value is true or false.
	//
	//    * access_logs.s3.bucket - [Application Load Balancers] The name of the
	//    S3 bucket for the access logs. This attribute is required if access logs
	//    in Amazon S3 are enabled. The bucket must exist in the same region as
	//    the load balancer and have a bucket policy that grants Elastic Load Balancing
	//    permission to write to the bucket.
	//
	//    * access_logs.s3.prefix - [Application Load Balancers] The prefix for
	//    the location in the S3 bucket. If you don't specify a prefix, the access
	//    logs are stored in the root of the bucket.
	//
	//    * deletion_protection.enabled - Indicates whether deletion protection
	//    is enabled. The value is true or false.
	//
	//    * idle_timeout.timeout_seconds - [Application Load Balancers] The idle
	//    timeout value, in seconds. The valid range is 1-4000. The default is 60
	//    seconds.
	Key *string `type:"string"`

	// The value of the attribute.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a load balancer attribute. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/LoadBalancerAttribute

func (LoadBalancerAttribute) GoString

func (s LoadBalancerAttribute) GoString() string

GoString returns the string representation

func (*LoadBalancerAttribute) SetKey

SetKey sets the Key field's value.

func (*LoadBalancerAttribute) SetValue

SetValue sets the Value field's value.

func (LoadBalancerAttribute) String

func (s LoadBalancerAttribute) String() string

String returns the string representation

type LoadBalancerSchemeEnum

type LoadBalancerSchemeEnum string
const (
	LoadBalancerSchemeEnumInternetFacing LoadBalancerSchemeEnum = "internet-facing"
	LoadBalancerSchemeEnumInternal       LoadBalancerSchemeEnum = "internal"
)

Enum values for LoadBalancerSchemeEnum

type LoadBalancerState

type LoadBalancerState struct {

	// The state code. The initial state of the load balancer is provisioning. After
	// the load balancer is fully set up and ready to route traffic, its state is
	// active. If the load balancer could not be set up, its state is failed.
	Code LoadBalancerStateEnum `type:"string" enum:"true"`

	// A description of the state.
	Reason *string `type:"string"`
	// contains filtered or unexported fields
}

Information about the state of the load balancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/LoadBalancerState

func (LoadBalancerState) GoString

func (s LoadBalancerState) GoString() string

GoString returns the string representation

func (*LoadBalancerState) SetCode

SetCode sets the Code field's value.

func (*LoadBalancerState) SetReason

func (s *LoadBalancerState) SetReason(v string) *LoadBalancerState

SetReason sets the Reason field's value.

func (LoadBalancerState) String

func (s LoadBalancerState) String() string

String returns the string representation

type LoadBalancerStateEnum

type LoadBalancerStateEnum string
const (
	LoadBalancerStateEnumActive         LoadBalancerStateEnum = "active"
	LoadBalancerStateEnumProvisioning   LoadBalancerStateEnum = "provisioning"
	LoadBalancerStateEnumActiveImpaired LoadBalancerStateEnum = "active_impaired"
	LoadBalancerStateEnumFailed         LoadBalancerStateEnum = "failed"
)

Enum values for LoadBalancerStateEnum

type LoadBalancerTypeEnum

type LoadBalancerTypeEnum string
const (
	LoadBalancerTypeEnumApplication LoadBalancerTypeEnum = "application"
	LoadBalancerTypeEnumNetwork     LoadBalancerTypeEnum = "network"
)

Enum values for LoadBalancerTypeEnum

type Matcher

type Matcher struct {

	// The HTTP codes.
	//
	// For Application Load Balancers, you can specify values between 200 and 499,
	// and the default value is 200. You can specify multiple values (for example,
	// "200,202") or a range of values (for example, "200-299").
	//
	// For Network Load Balancers, this is 200 to 399.
	//
	// HttpCode is a required field
	HttpCode *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Information to use when checking for a successful response from a target. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Matcher

func (Matcher) GoString

func (s Matcher) GoString() string

GoString returns the string representation

func (*Matcher) SetHttpCode

func (s *Matcher) SetHttpCode(v string) *Matcher

SetHttpCode sets the HttpCode field's value.

func (Matcher) String

func (s Matcher) String() string

String returns the string representation

func (*Matcher) Validate

func (s *Matcher) Validate() error

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

type ModifyListenerInput

type ModifyListenerInput struct {

	// The default SSL server certificate.
	Certificates []Certificate `type:"list"`

	// The default action. For Application Load Balancers, the protocol of the specified
	// target group must be HTTP or HTTPS. For Network Load Balancers, the protocol
	// of the specified target group must be TCP.
	DefaultActions []Action `type:"list"`

	// The Amazon Resource Name (ARN) of the listener.
	//
	// ListenerArn is a required field
	ListenerArn *string `type:"string" required:"true"`

	// The port for connections from clients to the load balancer.
	Port *int64 `min:"1" type:"integer"`

	// The protocol for connections from clients to the load balancer. Application
	// Load Balancers support HTTP and HTTPS and Network Load Balancers support
	// TCP.
	Protocol ProtocolEnum `type:"string" enum:"true"`

	// The security policy that defines which protocols and ciphers are supported.
	// For more information, see Security Policies (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html#describe-ssl-policies)
	// in the Application Load Balancers Guide.
	SslPolicy *string `type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListenerInput

func (ModifyListenerInput) GoString

func (s ModifyListenerInput) GoString() string

GoString returns the string representation

func (*ModifyListenerInput) SetCertificates

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

SetCertificates sets the Certificates field's value.

func (*ModifyListenerInput) SetDefaultActions

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

SetDefaultActions sets the DefaultActions field's value.

func (*ModifyListenerInput) SetListenerArn

func (s *ModifyListenerInput) SetListenerArn(v string) *ModifyListenerInput

SetListenerArn sets the ListenerArn field's value.

func (*ModifyListenerInput) SetPort

SetPort sets the Port field's value.

func (*ModifyListenerInput) SetProtocol

SetProtocol sets the Protocol field's value.

func (*ModifyListenerInput) SetSslPolicy

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

SetSslPolicy sets the SslPolicy field's value.

func (ModifyListenerInput) String

func (s ModifyListenerInput) String() string

String returns the string representation

func (*ModifyListenerInput) Validate

func (s *ModifyListenerInput) Validate() error

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

type ModifyListenerOutput

type ModifyListenerOutput struct {

	// Information about the modified listeners.
	Listeners []Listener `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListenerOutput

func (ModifyListenerOutput) GoString

func (s ModifyListenerOutput) GoString() string

GoString returns the string representation

func (ModifyListenerOutput) SDKResponseMetadata

func (s ModifyListenerOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*ModifyListenerOutput) SetListeners

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

SetListeners sets the Listeners field's value.

func (ModifyListenerOutput) String

func (s ModifyListenerOutput) String() string

String returns the string representation

type ModifyListenerRequest

type ModifyListenerRequest struct {
	*aws.Request
	Input *ModifyListenerInput
}

ModifyListenerRequest is a API request type for the ModifyListener API operation.

func (ModifyListenerRequest) Send

Send marshals and sends the ModifyListener API request.

type ModifyLoadBalancerAttributesInput

type ModifyLoadBalancerAttributesInput struct {

	// The load balancer attributes.
	//
	// Attributes is a required field
	Attributes []LoadBalancerAttribute `type:"list" required:"true"`

	// The Amazon Resource Name (ARN) of the load balancer.
	//
	// LoadBalancerArn is a required field
	LoadBalancerArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyLoadBalancerAttributesInput

func (ModifyLoadBalancerAttributesInput) GoString

GoString returns the string representation

func (*ModifyLoadBalancerAttributesInput) SetAttributes

SetAttributes sets the Attributes field's value.

func (*ModifyLoadBalancerAttributesInput) SetLoadBalancerArn

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (ModifyLoadBalancerAttributesInput) String

String returns the string representation

func (*ModifyLoadBalancerAttributesInput) Validate

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

type ModifyLoadBalancerAttributesOutput

type ModifyLoadBalancerAttributesOutput struct {

	// Information about the load balancer attributes.
	Attributes []LoadBalancerAttribute `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyLoadBalancerAttributesOutput

func (ModifyLoadBalancerAttributesOutput) GoString

GoString returns the string representation

func (ModifyLoadBalancerAttributesOutput) SDKResponseMetadata

func (s ModifyLoadBalancerAttributesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*ModifyLoadBalancerAttributesOutput) SetAttributes

SetAttributes sets the Attributes field's value.

func (ModifyLoadBalancerAttributesOutput) String

String returns the string representation

type ModifyLoadBalancerAttributesRequest

type ModifyLoadBalancerAttributesRequest struct {
	*aws.Request
	Input *ModifyLoadBalancerAttributesInput
}

ModifyLoadBalancerAttributesRequest is a API request type for the ModifyLoadBalancerAttributes API operation.

func (ModifyLoadBalancerAttributesRequest) Send

Send marshals and sends the ModifyLoadBalancerAttributes API request.

type ModifyRuleInput

type ModifyRuleInput struct {

	// The actions. The target group must use the HTTP or HTTPS protocol.
	Actions []Action `type:"list"`

	// The conditions.
	Conditions []RuleCondition `type:"list"`

	// The Amazon Resource Name (ARN) of the rule.
	//
	// RuleArn is a required field
	RuleArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyRuleInput

func (ModifyRuleInput) GoString

func (s ModifyRuleInput) GoString() string

GoString returns the string representation

func (*ModifyRuleInput) SetActions

func (s *ModifyRuleInput) SetActions(v []Action) *ModifyRuleInput

SetActions sets the Actions field's value.

func (*ModifyRuleInput) SetConditions

func (s *ModifyRuleInput) SetConditions(v []RuleCondition) *ModifyRuleInput

SetConditions sets the Conditions field's value.

func (*ModifyRuleInput) SetRuleArn

func (s *ModifyRuleInput) SetRuleArn(v string) *ModifyRuleInput

SetRuleArn sets the RuleArn field's value.

func (ModifyRuleInput) String

func (s ModifyRuleInput) String() string

String returns the string representation

func (*ModifyRuleInput) Validate

func (s *ModifyRuleInput) Validate() error

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

type ModifyRuleOutput

type ModifyRuleOutput struct {

	// Information about the rule.
	Rules []Rule `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyRuleOutput

func (ModifyRuleOutput) GoString

func (s ModifyRuleOutput) GoString() string

GoString returns the string representation

func (ModifyRuleOutput) SDKResponseMetadata

func (s ModifyRuleOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*ModifyRuleOutput) SetRules

func (s *ModifyRuleOutput) SetRules(v []Rule) *ModifyRuleOutput

SetRules sets the Rules field's value.

func (ModifyRuleOutput) String

func (s ModifyRuleOutput) String() string

String returns the string representation

type ModifyRuleRequest

type ModifyRuleRequest struct {
	*aws.Request
	Input *ModifyRuleInput
}

ModifyRuleRequest is a API request type for the ModifyRule API operation.

func (ModifyRuleRequest) Send

Send marshals and sends the ModifyRule API request.

type ModifyTargetGroupAttributesInput

type ModifyTargetGroupAttributesInput struct {

	// The attributes.
	//
	// Attributes is a required field
	Attributes []TargetGroupAttribute `type:"list" required:"true"`

	// The Amazon Resource Name (ARN) of the target group.
	//
	// TargetGroupArn is a required field
	TargetGroupArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupAttributesInput

func (ModifyTargetGroupAttributesInput) GoString

GoString returns the string representation

func (*ModifyTargetGroupAttributesInput) SetAttributes

SetAttributes sets the Attributes field's value.

func (*ModifyTargetGroupAttributesInput) SetTargetGroupArn

SetTargetGroupArn sets the TargetGroupArn field's value.

func (ModifyTargetGroupAttributesInput) String

String returns the string representation

func (*ModifyTargetGroupAttributesInput) Validate

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

type ModifyTargetGroupAttributesOutput

type ModifyTargetGroupAttributesOutput struct {

	// Information about the attributes.
	Attributes []TargetGroupAttribute `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupAttributesOutput

func (ModifyTargetGroupAttributesOutput) GoString

GoString returns the string representation

func (ModifyTargetGroupAttributesOutput) SDKResponseMetadata

func (s ModifyTargetGroupAttributesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*ModifyTargetGroupAttributesOutput) SetAttributes

SetAttributes sets the Attributes field's value.

func (ModifyTargetGroupAttributesOutput) String

String returns the string representation

type ModifyTargetGroupAttributesRequest

type ModifyTargetGroupAttributesRequest struct {
	*aws.Request
	Input *ModifyTargetGroupAttributesInput
}

ModifyTargetGroupAttributesRequest is a API request type for the ModifyTargetGroupAttributes API operation.

func (ModifyTargetGroupAttributesRequest) Send

Send marshals and sends the ModifyTargetGroupAttributes API request.

type ModifyTargetGroupInput

type ModifyTargetGroupInput struct {

	// The approximate amount of time, in seconds, between health checks of an individual
	// target. For Application Load Balancers, the range is 5 to 300 seconds. For
	// Network Load Balancers, the supported values are 10 or 30 seconds.
	HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"`

	// [HTTP/HTTPS health checks] The ping path that is the destination for the
	// health check request.
	HealthCheckPath *string `min:"1" type:"string"`

	// The port the load balancer uses when performing health checks on targets.
	HealthCheckPort *string `type:"string"`

	// The protocol the load balancer uses when performing health checks on targets.
	// The TCP protocol is supported only if the protocol of the target group is
	// TCP.
	HealthCheckProtocol ProtocolEnum `type:"string" enum:"true"`

	// [HTTP/HTTPS health checks] The amount of time, in seconds, during which no
	// response means a failed health check.
	HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"`

	// The number of consecutive health checks successes required before considering
	// an unhealthy target healthy.
	HealthyThresholdCount *int64 `min:"2" type:"integer"`

	// [HTTP/HTTPS health checks] The HTTP codes to use when checking for a successful
	// response from a target.
	Matcher *Matcher `type:"structure"`

	// The Amazon Resource Name (ARN) of the target group.
	//
	// TargetGroupArn is a required field
	TargetGroupArn *string `type:"string" required:"true"`

	// The number of consecutive health check failures required before considering
	// the target unhealthy. For Network Load Balancers, this value must be the
	// same as the healthy threshold count.
	UnhealthyThresholdCount *int64 `min:"2" type:"integer"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupInput

func (ModifyTargetGroupInput) GoString

func (s ModifyTargetGroupInput) GoString() string

GoString returns the string representation

func (*ModifyTargetGroupInput) SetHealthCheckIntervalSeconds

func (s *ModifyTargetGroupInput) SetHealthCheckIntervalSeconds(v int64) *ModifyTargetGroupInput

SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value.

func (*ModifyTargetGroupInput) SetHealthCheckPath

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

SetHealthCheckPath sets the HealthCheckPath field's value.

func (*ModifyTargetGroupInput) SetHealthCheckPort

func (s *ModifyTargetGroupInput) SetHealthCheckPort(v string) *ModifyTargetGroupInput

SetHealthCheckPort sets the HealthCheckPort field's value.

func (*ModifyTargetGroupInput) SetHealthCheckProtocol

func (s *ModifyTargetGroupInput) SetHealthCheckProtocol(v ProtocolEnum) *ModifyTargetGroupInput

SetHealthCheckProtocol sets the HealthCheckProtocol field's value.

func (*ModifyTargetGroupInput) SetHealthCheckTimeoutSeconds

func (s *ModifyTargetGroupInput) SetHealthCheckTimeoutSeconds(v int64) *ModifyTargetGroupInput

SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value.

func (*ModifyTargetGroupInput) SetHealthyThresholdCount

func (s *ModifyTargetGroupInput) SetHealthyThresholdCount(v int64) *ModifyTargetGroupInput

SetHealthyThresholdCount sets the HealthyThresholdCount field's value.

func (*ModifyTargetGroupInput) SetMatcher

SetMatcher sets the Matcher field's value.

func (*ModifyTargetGroupInput) SetTargetGroupArn

func (s *ModifyTargetGroupInput) SetTargetGroupArn(v string) *ModifyTargetGroupInput

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*ModifyTargetGroupInput) SetUnhealthyThresholdCount

func (s *ModifyTargetGroupInput) SetUnhealthyThresholdCount(v int64) *ModifyTargetGroupInput

SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value.

func (ModifyTargetGroupInput) String

func (s ModifyTargetGroupInput) String() string

String returns the string representation

func (*ModifyTargetGroupInput) Validate

func (s *ModifyTargetGroupInput) Validate() error

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

type ModifyTargetGroupOutput

type ModifyTargetGroupOutput struct {

	// Information about the target group.
	TargetGroups []TargetGroup `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupOutput

func (ModifyTargetGroupOutput) GoString

func (s ModifyTargetGroupOutput) GoString() string

GoString returns the string representation

func (ModifyTargetGroupOutput) SDKResponseMetadata

func (s ModifyTargetGroupOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*ModifyTargetGroupOutput) SetTargetGroups

SetTargetGroups sets the TargetGroups field's value.

func (ModifyTargetGroupOutput) String

func (s ModifyTargetGroupOutput) String() string

String returns the string representation

type ModifyTargetGroupRequest

type ModifyTargetGroupRequest struct {
	*aws.Request
	Input *ModifyTargetGroupInput
}

ModifyTargetGroupRequest is a API request type for the ModifyTargetGroup API operation.

func (ModifyTargetGroupRequest) Send

Send marshals and sends the ModifyTargetGroup API request.

type ProtocolEnum

type ProtocolEnum string
const (
	ProtocolEnumHttp  ProtocolEnum = "HTTP"
	ProtocolEnumHttps ProtocolEnum = "HTTPS"
	ProtocolEnumTcp   ProtocolEnum = "TCP"
)

Enum values for ProtocolEnum

type RegisterTargetsInput

type RegisterTargetsInput struct {

	// The Amazon Resource Name (ARN) of the target group.
	//
	// TargetGroupArn is a required field
	TargetGroupArn *string `type:"string" required:"true"`

	// The targets.
	//
	// Targets is a required field
	Targets []TargetDescription `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RegisterTargetsInput

func (RegisterTargetsInput) GoString

func (s RegisterTargetsInput) GoString() string

GoString returns the string representation

func (*RegisterTargetsInput) SetTargetGroupArn

func (s *RegisterTargetsInput) SetTargetGroupArn(v string) *RegisterTargetsInput

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*RegisterTargetsInput) SetTargets

SetTargets sets the Targets field's value.

func (RegisterTargetsInput) String

func (s RegisterTargetsInput) String() string

String returns the string representation

func (*RegisterTargetsInput) Validate

func (s *RegisterTargetsInput) Validate() error

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

type RegisterTargetsOutput

type RegisterTargetsOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RegisterTargetsOutput

func (RegisterTargetsOutput) GoString

func (s RegisterTargetsOutput) GoString() string

GoString returns the string representation

func (RegisterTargetsOutput) SDKResponseMetadata

func (s RegisterTargetsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (RegisterTargetsOutput) String

func (s RegisterTargetsOutput) String() string

String returns the string representation

type RegisterTargetsRequest

type RegisterTargetsRequest struct {
	*aws.Request
	Input *RegisterTargetsInput
}

RegisterTargetsRequest is a API request type for the RegisterTargets API operation.

func (RegisterTargetsRequest) Send

Send marshals and sends the RegisterTargets API request.

type RemoveListenerCertificatesInput

type RemoveListenerCertificatesInput struct {

	// The certificate to remove. You can specify one certificate per call.
	//
	// Certificates is a required field
	Certificates []Certificate `type:"list" required:"true"`

	// The Amazon Resource Name (ARN) of the listener.
	//
	// ListenerArn is a required field
	ListenerArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveListenerCertificatesInput

func (RemoveListenerCertificatesInput) GoString

GoString returns the string representation

func (*RemoveListenerCertificatesInput) SetCertificates

SetCertificates sets the Certificates field's value.

func (*RemoveListenerCertificatesInput) SetListenerArn

SetListenerArn sets the ListenerArn field's value.

func (RemoveListenerCertificatesInput) String

String returns the string representation

func (*RemoveListenerCertificatesInput) Validate

func (s *RemoveListenerCertificatesInput) Validate() error

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

type RemoveListenerCertificatesOutput

type RemoveListenerCertificatesOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveListenerCertificatesOutput

func (RemoveListenerCertificatesOutput) GoString

GoString returns the string representation

func (RemoveListenerCertificatesOutput) SDKResponseMetadata

func (s RemoveListenerCertificatesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (RemoveListenerCertificatesOutput) String

String returns the string representation

type RemoveListenerCertificatesRequest

type RemoveListenerCertificatesRequest struct {
	*aws.Request
	Input *RemoveListenerCertificatesInput
}

RemoveListenerCertificatesRequest is a API request type for the RemoveListenerCertificates API operation.

func (RemoveListenerCertificatesRequest) Send

Send marshals and sends the RemoveListenerCertificates API request.

type RemoveTagsInput

type RemoveTagsInput struct {

	// The Amazon Resource Name (ARN) of the resource.
	//
	// ResourceArns is a required field
	ResourceArns []string `type:"list" required:"true"`

	// The tag keys for the tags to remove.
	//
	// TagKeys is a required field
	TagKeys []string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTagsInput

func (RemoveTagsInput) GoString

func (s RemoveTagsInput) GoString() string

GoString returns the string representation

func (*RemoveTagsInput) SetResourceArns

func (s *RemoveTagsInput) SetResourceArns(v []string) *RemoveTagsInput

SetResourceArns sets the ResourceArns field's value.

func (*RemoveTagsInput) SetTagKeys

func (s *RemoveTagsInput) SetTagKeys(v []string) *RemoveTagsInput

SetTagKeys sets the TagKeys field's value.

func (RemoveTagsInput) String

func (s RemoveTagsInput) String() string

String returns the string representation

func (*RemoveTagsInput) Validate

func (s *RemoveTagsInput) Validate() error

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

type RemoveTagsOutput

type RemoveTagsOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTagsOutput

func (RemoveTagsOutput) GoString

func (s RemoveTagsOutput) GoString() string

GoString returns the string representation

func (RemoveTagsOutput) SDKResponseMetadata

func (s RemoveTagsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (RemoveTagsOutput) String

func (s RemoveTagsOutput) String() string

String returns the string representation

type RemoveTagsRequest

type RemoveTagsRequest struct {
	*aws.Request
	Input *RemoveTagsInput
}

RemoveTagsRequest is a API request type for the RemoveTags API operation.

func (RemoveTagsRequest) Send

Send marshals and sends the RemoveTags API request.

type Rule

type Rule struct {

	// The actions.
	Actions []Action `type:"list"`

	// The conditions.
	Conditions []RuleCondition `type:"list"`

	// Indicates whether this is the default rule.
	IsDefault *bool `type:"boolean"`

	// The priority.
	Priority *string `type:"string"`

	// The Amazon Resource Name (ARN) of the rule.
	RuleArn *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a rule. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Rule

func (Rule) GoString

func (s Rule) GoString() string

GoString returns the string representation

func (*Rule) SetActions

func (s *Rule) SetActions(v []Action) *Rule

SetActions sets the Actions field's value.

func (*Rule) SetConditions

func (s *Rule) SetConditions(v []RuleCondition) *Rule

SetConditions sets the Conditions field's value.

func (*Rule) SetIsDefault

func (s *Rule) SetIsDefault(v bool) *Rule

SetIsDefault sets the IsDefault field's value.

func (*Rule) SetPriority

func (s *Rule) SetPriority(v string) *Rule

SetPriority sets the Priority field's value.

func (*Rule) SetRuleArn

func (s *Rule) SetRuleArn(v string) *Rule

SetRuleArn sets the RuleArn field's value.

func (Rule) String

func (s Rule) String() string

String returns the string representation

type RuleCondition

type RuleCondition struct {

	// The name of the field. The possible values are host-header and path-pattern.
	Field *string `type:"string"`

	// The condition value.
	//
	// If the field name is host-header, you can specify a single host name (for
	// example, my.example.com). A host name is case insensitive, can be up to 128
	// characters in length, and can contain any of the following characters. Note
	// that you can include up to three wildcard characters.
	//
	//    * A-Z, a-z, 0-9
	//
	//    * - .
	//
	//    * * (matches 0 or more characters)
	//
	//    * ? (matches exactly 1 character)
	//
	// If the field name is path-pattern, you can specify a single path pattern
	// (for example, /img/*). A path pattern is case sensitive, can be up to 128
	// characters in length, and can contain any of the following characters. Note
	// that you can include up to three wildcard characters.
	//
	//    * A-Z, a-z, 0-9
	//
	//    * _ - . $ / ~ " ' @ : +
	//
	//    * & (using &)
	//
	//    * * (matches 0 or more characters)
	//
	//    * ? (matches exactly 1 character)
	Values []string `type:"list"`
	// contains filtered or unexported fields
}

Information about a condition for a rule. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RuleCondition

func (RuleCondition) GoString

func (s RuleCondition) GoString() string

GoString returns the string representation

func (*RuleCondition) SetField

func (s *RuleCondition) SetField(v string) *RuleCondition

SetField sets the Field field's value.

func (*RuleCondition) SetValues

func (s *RuleCondition) SetValues(v []string) *RuleCondition

SetValues sets the Values field's value.

func (RuleCondition) String

func (s RuleCondition) String() string

String returns the string representation

type RulePriorityPair

type RulePriorityPair struct {

	// The rule priority.
	Priority *int64 `min:"1" type:"integer"`

	// The Amazon Resource Name (ARN) of the rule.
	RuleArn *string `type:"string"`
	// contains filtered or unexported fields
}

Information about the priorities for the rules for a listener. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RulePriorityPair

func (RulePriorityPair) GoString

func (s RulePriorityPair) GoString() string

GoString returns the string representation

func (*RulePriorityPair) SetPriority

func (s *RulePriorityPair) SetPriority(v int64) *RulePriorityPair

SetPriority sets the Priority field's value.

func (*RulePriorityPair) SetRuleArn

func (s *RulePriorityPair) SetRuleArn(v string) *RulePriorityPair

SetRuleArn sets the RuleArn field's value.

func (RulePriorityPair) String

func (s RulePriorityPair) String() string

String returns the string representation

func (*RulePriorityPair) Validate

func (s *RulePriorityPair) Validate() error

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

type SetIpAddressTypeInput

type SetIpAddressTypeInput struct {

	// The IP address type. The possible values are ipv4 (for IPv4 addresses) and
	// dualstack (for IPv4 and IPv6 addresses). Internal load balancers must use
	// ipv4.
	//
	// IpAddressType is a required field
	IpAddressType IpAddressType `type:"string" required:"true" enum:"true"`

	// The Amazon Resource Name (ARN) of the load balancer.
	//
	// LoadBalancerArn is a required field
	LoadBalancerArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetIpAddressTypeInput

func (SetIpAddressTypeInput) GoString

func (s SetIpAddressTypeInput) GoString() string

GoString returns the string representation

func (*SetIpAddressTypeInput) SetIpAddressType

SetIpAddressType sets the IpAddressType field's value.

func (*SetIpAddressTypeInput) SetLoadBalancerArn

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (SetIpAddressTypeInput) String

func (s SetIpAddressTypeInput) String() string

String returns the string representation

func (*SetIpAddressTypeInput) Validate

func (s *SetIpAddressTypeInput) Validate() error

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

type SetIpAddressTypeOutput

type SetIpAddressTypeOutput struct {

	// The IP address type.
	IpAddressType IpAddressType `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetIpAddressTypeOutput

func (SetIpAddressTypeOutput) GoString

func (s SetIpAddressTypeOutput) GoString() string

GoString returns the string representation

func (SetIpAddressTypeOutput) SDKResponseMetadata

func (s SetIpAddressTypeOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*SetIpAddressTypeOutput) SetIpAddressType

SetIpAddressType sets the IpAddressType field's value.

func (SetIpAddressTypeOutput) String

func (s SetIpAddressTypeOutput) String() string

String returns the string representation

type SetIpAddressTypeRequest

type SetIpAddressTypeRequest struct {
	*aws.Request
	Input *SetIpAddressTypeInput
}

SetIpAddressTypeRequest is a API request type for the SetIpAddressType API operation.

func (SetIpAddressTypeRequest) Send

Send marshals and sends the SetIpAddressType API request.

type SetRulePrioritiesInput

type SetRulePrioritiesInput struct {

	// The rule priorities.
	//
	// RulePriorities is a required field
	RulePriorities []RulePriorityPair `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetRulePrioritiesInput

func (SetRulePrioritiesInput) GoString

func (s SetRulePrioritiesInput) GoString() string

GoString returns the string representation

func (*SetRulePrioritiesInput) SetRulePriorities

SetRulePriorities sets the RulePriorities field's value.

func (SetRulePrioritiesInput) String

func (s SetRulePrioritiesInput) String() string

String returns the string representation

func (*SetRulePrioritiesInput) Validate

func (s *SetRulePrioritiesInput) Validate() error

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

type SetRulePrioritiesOutput

type SetRulePrioritiesOutput struct {

	// Information about the rules.
	Rules []Rule `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetRulePrioritiesOutput

func (SetRulePrioritiesOutput) GoString

func (s SetRulePrioritiesOutput) GoString() string

GoString returns the string representation

func (SetRulePrioritiesOutput) SDKResponseMetadata

func (s SetRulePrioritiesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*SetRulePrioritiesOutput) SetRules

SetRules sets the Rules field's value.

func (SetRulePrioritiesOutput) String

func (s SetRulePrioritiesOutput) String() string

String returns the string representation

type SetRulePrioritiesRequest

type SetRulePrioritiesRequest struct {
	*aws.Request
	Input *SetRulePrioritiesInput
}

SetRulePrioritiesRequest is a API request type for the SetRulePriorities API operation.

func (SetRulePrioritiesRequest) Send

Send marshals and sends the SetRulePriorities API request.

type SetSecurityGroupsInput

type SetSecurityGroupsInput struct {

	// The Amazon Resource Name (ARN) of the load balancer.
	//
	// LoadBalancerArn is a required field
	LoadBalancerArn *string `type:"string" required:"true"`

	// The IDs of the security groups.
	//
	// SecurityGroups is a required field
	SecurityGroups []string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroupsInput

func (SetSecurityGroupsInput) GoString

func (s SetSecurityGroupsInput) GoString() string

GoString returns the string representation

func (*SetSecurityGroupsInput) SetLoadBalancerArn

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*SetSecurityGroupsInput) SetSecurityGroups

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

SetSecurityGroups sets the SecurityGroups field's value.

func (SetSecurityGroupsInput) String

func (s SetSecurityGroupsInput) String() string

String returns the string representation

func (*SetSecurityGroupsInput) Validate

func (s *SetSecurityGroupsInput) Validate() error

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

type SetSecurityGroupsOutput

type SetSecurityGroupsOutput struct {

	// The IDs of the security groups associated with the load balancer.
	SecurityGroupIds []string `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroupsOutput

func (SetSecurityGroupsOutput) GoString

func (s SetSecurityGroupsOutput) GoString() string

GoString returns the string representation

func (SetSecurityGroupsOutput) SDKResponseMetadata

func (s SetSecurityGroupsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*SetSecurityGroupsOutput) SetSecurityGroupIds

func (s *SetSecurityGroupsOutput) SetSecurityGroupIds(v []string) *SetSecurityGroupsOutput

SetSecurityGroupIds sets the SecurityGroupIds field's value.

func (SetSecurityGroupsOutput) String

func (s SetSecurityGroupsOutput) String() string

String returns the string representation

type SetSecurityGroupsRequest

type SetSecurityGroupsRequest struct {
	*aws.Request
	Input *SetSecurityGroupsInput
}

SetSecurityGroupsRequest is a API request type for the SetSecurityGroups API operation.

func (SetSecurityGroupsRequest) Send

Send marshals and sends the SetSecurityGroups API request.

type SetSubnetsInput

type SetSubnetsInput struct {

	// The Amazon Resource Name (ARN) of the load balancer.
	//
	// LoadBalancerArn is a required field
	LoadBalancerArn *string `type:"string" required:"true"`

	// The IDs of the subnets. You must specify subnets from at least two Availability
	// Zones. You can specify only one subnet per Availability Zone. You must specify
	// either subnets or subnet mappings.
	//
	// The load balancer is allocated one static IP address per subnet. You cannot
	// specify your own Elastic IP addresses.
	SubnetMappings []SubnetMapping `type:"list"`

	// The IDs of the subnets. You must specify subnets from at least two Availability
	// Zones. You can specify only one subnet per Availability Zone. You must specify
	// either subnets or subnet mappings.
	//
	// Subnets is a required field
	Subnets []string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnetsInput

func (SetSubnetsInput) GoString

func (s SetSubnetsInput) GoString() string

GoString returns the string representation

func (*SetSubnetsInput) SetLoadBalancerArn

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*SetSubnetsInput) SetSubnetMappings

func (s *SetSubnetsInput) SetSubnetMappings(v []SubnetMapping) *SetSubnetsInput

SetSubnetMappings sets the SubnetMappings field's value.

func (*SetSubnetsInput) SetSubnets

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

SetSubnets sets the Subnets field's value.

func (SetSubnetsInput) String

func (s SetSubnetsInput) String() string

String returns the string representation

func (*SetSubnetsInput) Validate

func (s *SetSubnetsInput) Validate() error

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

type SetSubnetsOutput

type SetSubnetsOutput struct {

	// Information about the subnet and Availability Zone.
	AvailabilityZones []AvailabilityZone `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnetsOutput

func (SetSubnetsOutput) GoString

func (s SetSubnetsOutput) GoString() string

GoString returns the string representation

func (SetSubnetsOutput) SDKResponseMetadata

func (s SetSubnetsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*SetSubnetsOutput) SetAvailabilityZones

func (s *SetSubnetsOutput) SetAvailabilityZones(v []AvailabilityZone) *SetSubnetsOutput

SetAvailabilityZones sets the AvailabilityZones field's value.

func (SetSubnetsOutput) String

func (s SetSubnetsOutput) String() string

String returns the string representation

type SetSubnetsRequest

type SetSubnetsRequest struct {
	*aws.Request
	Input *SetSubnetsInput
}

SetSubnetsRequest is a API request type for the SetSubnets API operation.

func (SetSubnetsRequest) Send

Send marshals and sends the SetSubnets API request.

type SslPolicy

type SslPolicy struct {

	// The ciphers.
	Ciphers []Cipher `type:"list"`

	// The name of the policy.
	Name *string `type:"string"`

	// The protocols.
	SslProtocols []string `type:"list"`
	// contains filtered or unexported fields
}

Information about a policy used for SSL negotiation. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SslPolicy

func (SslPolicy) GoString

func (s SslPolicy) GoString() string

GoString returns the string representation

func (*SslPolicy) SetCiphers

func (s *SslPolicy) SetCiphers(v []Cipher) *SslPolicy

SetCiphers sets the Ciphers field's value.

func (*SslPolicy) SetName

func (s *SslPolicy) SetName(v string) *SslPolicy

SetName sets the Name field's value.

func (*SslPolicy) SetSslProtocols

func (s *SslPolicy) SetSslProtocols(v []string) *SslPolicy

SetSslProtocols sets the SslProtocols field's value.

func (SslPolicy) String

func (s SslPolicy) String() string

String returns the string representation

type SubnetMapping

type SubnetMapping struct {

	// [Network Load Balancers] The allocation ID of the Elastic IP address.
	AllocationId *string `type:"string"`

	// The ID of the subnet.
	SubnetId *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a subnet mapping. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SubnetMapping

func (SubnetMapping) GoString

func (s SubnetMapping) GoString() string

GoString returns the string representation

func (*SubnetMapping) SetAllocationId

func (s *SubnetMapping) SetAllocationId(v string) *SubnetMapping

SetAllocationId sets the AllocationId field's value.

func (*SubnetMapping) SetSubnetId

func (s *SubnetMapping) SetSubnetId(v string) *SubnetMapping

SetSubnetId sets the SubnetId field's value.

func (SubnetMapping) String

func (s SubnetMapping) String() string

String returns the string representation

type Tag

type Tag struct {

	// The key of the tag.
	//
	// Key is a required field
	Key *string `min:"1" type:"string" required:"true"`

	// The value of the tag.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a tag. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Tag

func (Tag) GoString

func (s Tag) GoString() string

GoString returns the string representation

func (*Tag) SetKey

func (s *Tag) SetKey(v string) *Tag

SetKey sets the Key field's value.

func (*Tag) SetValue

func (s *Tag) SetValue(v string) *Tag

SetValue sets the Value field's value.

func (Tag) String

func (s Tag) String() string

String returns the string representation

func (*Tag) Validate

func (s *Tag) Validate() error

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

type TagDescription

type TagDescription struct {

	// The Amazon Resource Name (ARN) of the resource.
	ResourceArn *string `type:"string"`

	// Information about the tags.
	Tags []Tag `min:"1" type:"list"`
	// contains filtered or unexported fields
}

The tags associated with a resource. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TagDescription

func (TagDescription) GoString

func (s TagDescription) GoString() string

GoString returns the string representation

func (*TagDescription) SetResourceArn

func (s *TagDescription) SetResourceArn(v string) *TagDescription

SetResourceArn sets the ResourceArn field's value.

func (*TagDescription) SetTags

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

SetTags sets the Tags field's value.

func (TagDescription) String

func (s TagDescription) String() string

String returns the string representation

type TargetDescription

type TargetDescription struct {

	// An Availability Zone or all. This determines whether the target receives
	// traffic from the load balancer nodes in the specified Availability Zone or
	// from all enabled Availability Zones for the load balancer.
	//
	// This parameter is not supported if the target type of the target group is
	// instance. If the IP address is in a subnet of the VPC for the target group,
	// the Availability Zone is automatically detected and this parameter is optional.
	// If the IP address is outside the VPC, this parameter is required.
	//
	// With an Application Load Balancer, if the IP address is outside the VPC for
	// the target group, the only supported value is all.
	AvailabilityZone *string `type:"string"`

	// The ID of the target. If the target type of the target group is instance,
	// specify an instance ID. If the target type is ip, specify an IP address.
	//
	// Id is a required field
	Id *string `type:"string" required:"true"`

	// The port on which the target is listening.
	Port *int64 `min:"1" type:"integer"`
	// contains filtered or unexported fields
}

Information about a target. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetDescription

func (TargetDescription) GoString

func (s TargetDescription) GoString() string

GoString returns the string representation

func (*TargetDescription) SetAvailabilityZone

func (s *TargetDescription) SetAvailabilityZone(v string) *TargetDescription

SetAvailabilityZone sets the AvailabilityZone field's value.

func (*TargetDescription) SetId

SetId sets the Id field's value.

func (*TargetDescription) SetPort

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

SetPort sets the Port field's value.

func (TargetDescription) String

func (s TargetDescription) String() string

String returns the string representation

func (*TargetDescription) Validate

func (s *TargetDescription) Validate() error

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

type TargetGroup

type TargetGroup struct {

	// The approximate amount of time, in seconds, between health checks of an individual
	// target.
	HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"`

	// The destination for the health check request.
	HealthCheckPath *string `min:"1" type:"string"`

	// The port to use to connect with the target.
	HealthCheckPort *string `type:"string"`

	// The protocol to use to connect with the target.
	HealthCheckProtocol ProtocolEnum `type:"string" enum:"true"`

	// The amount of time, in seconds, during which no response means a failed health
	// check.
	HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"`

	// The number of consecutive health checks successes required before considering
	// an unhealthy target healthy.
	HealthyThresholdCount *int64 `min:"2" type:"integer"`

	// The Amazon Resource Names (ARN) of the load balancers that route traffic
	// to this target group.
	LoadBalancerArns []string `type:"list"`

	// The HTTP codes to use when checking for a successful response from a target.
	Matcher *Matcher `type:"structure"`

	// The port on which the targets are listening.
	Port *int64 `min:"1" type:"integer"`

	// The protocol to use for routing traffic to the targets.
	Protocol ProtocolEnum `type:"string" enum:"true"`

	// The Amazon Resource Name (ARN) of the target group.
	TargetGroupArn *string `type:"string"`

	// The name of the target group.
	TargetGroupName *string `type:"string"`

	// The type of target that you must specify when registering targets with this
	// target group. The possible values are instance (targets are specified by
	// instance ID) or ip (targets are specified by IP address).
	TargetType TargetTypeEnum `type:"string" enum:"true"`

	// The number of consecutive health check failures required before considering
	// the target unhealthy.
	UnhealthyThresholdCount *int64 `min:"2" type:"integer"`

	// The ID of the VPC for the targets.
	VpcId *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a target group. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetGroup

func (TargetGroup) GoString

func (s TargetGroup) GoString() string

GoString returns the string representation

func (*TargetGroup) SetHealthCheckIntervalSeconds

func (s *TargetGroup) SetHealthCheckIntervalSeconds(v int64) *TargetGroup

SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value.

func (*TargetGroup) SetHealthCheckPath

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

SetHealthCheckPath sets the HealthCheckPath field's value.

func (*TargetGroup) SetHealthCheckPort

func (s *TargetGroup) SetHealthCheckPort(v string) *TargetGroup

SetHealthCheckPort sets the HealthCheckPort field's value.

func (*TargetGroup) SetHealthCheckProtocol

func (s *TargetGroup) SetHealthCheckProtocol(v ProtocolEnum) *TargetGroup

SetHealthCheckProtocol sets the HealthCheckProtocol field's value.

func (*TargetGroup) SetHealthCheckTimeoutSeconds

func (s *TargetGroup) SetHealthCheckTimeoutSeconds(v int64) *TargetGroup

SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value.

func (*TargetGroup) SetHealthyThresholdCount

func (s *TargetGroup) SetHealthyThresholdCount(v int64) *TargetGroup

SetHealthyThresholdCount sets the HealthyThresholdCount field's value.

func (*TargetGroup) SetLoadBalancerArns

func (s *TargetGroup) SetLoadBalancerArns(v []string) *TargetGroup

SetLoadBalancerArns sets the LoadBalancerArns field's value.

func (*TargetGroup) SetMatcher

func (s *TargetGroup) SetMatcher(v *Matcher) *TargetGroup

SetMatcher sets the Matcher field's value.

func (*TargetGroup) SetPort

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

SetPort sets the Port field's value.

func (*TargetGroup) SetProtocol

func (s *TargetGroup) SetProtocol(v ProtocolEnum) *TargetGroup

SetProtocol sets the Protocol field's value.

func (*TargetGroup) SetTargetGroupArn

func (s *TargetGroup) SetTargetGroupArn(v string) *TargetGroup

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*TargetGroup) SetTargetGroupName

func (s *TargetGroup) SetTargetGroupName(v string) *TargetGroup

SetTargetGroupName sets the TargetGroupName field's value.

func (*TargetGroup) SetTargetType

func (s *TargetGroup) SetTargetType(v TargetTypeEnum) *TargetGroup

SetTargetType sets the TargetType field's value.

func (*TargetGroup) SetUnhealthyThresholdCount

func (s *TargetGroup) SetUnhealthyThresholdCount(v int64) *TargetGroup

SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value.

func (*TargetGroup) SetVpcId

func (s *TargetGroup) SetVpcId(v string) *TargetGroup

SetVpcId sets the VpcId field's value.

func (TargetGroup) String

func (s TargetGroup) String() string

String returns the string representation

type TargetGroupAttribute

type TargetGroupAttribute struct {

	// The name of the attribute.
	//
	//    * deregistration_delay.timeout_seconds - The amount time for Elastic Load
	//    Balancing to wait before changing the state of a deregistering target
	//    from draining to unused. The range is 0-3600 seconds. The default value
	//    is 300 seconds.
	//
	//    * stickiness.enabled - [Application Load Balancers] Indicates whether
	//    sticky sessions are enabled. The value is true or false.
	//
	//    * stickiness.type - [Application Load Balancers] The type of sticky sessions.
	//    The possible value is lb_cookie.
	//
	//    * stickiness.lb_cookie.duration_seconds - [Application Load Balancers]
	//    The time period, in seconds, during which requests from a client should
	//    be routed to the same target. After this time period expires, the load
	//    balancer-generated cookie is considered stale. The range is 1 second to
	//    1 week (604800 seconds). The default value is 1 day (86400 seconds).
	Key *string `type:"string"`

	// The value of the attribute.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a target group attribute. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetGroupAttribute

func (TargetGroupAttribute) GoString

func (s TargetGroupAttribute) GoString() string

GoString returns the string representation

func (*TargetGroupAttribute) SetKey

SetKey sets the Key field's value.

func (*TargetGroupAttribute) SetValue

SetValue sets the Value field's value.

func (TargetGroupAttribute) String

func (s TargetGroupAttribute) String() string

String returns the string representation

type TargetHealth

type TargetHealth struct {

	// A description of the target health that provides additional details. If the
	// state is healthy, a description is not provided.
	Description *string `type:"string"`

	// The reason code. If the target state is healthy, a reason code is not provided.
	//
	// If the target state is initial, the reason code can be one of the following
	// values:
	//
	//    * Elb.RegistrationInProgress - The target is in the process of being registered
	//    with the load balancer.
	//
	//    * Elb.InitialHealthChecking - The load balancer is still sending the target
	//    the minimum number of health checks required to determine its health status.
	//
	// If the target state is unhealthy, the reason code can be one of the following
	// values:
	//
	//    * Target.ResponseCodeMismatch - The health checks did not return an expected
	//    HTTP code.
	//
	//    * Target.Timeout - The health check requests timed out.
	//
	//    * Target.FailedHealthChecks - The health checks failed because the connection
	//    to the target timed out, the target response was malformed, or the target
	//    failed the health check for an unknown reason.
	//
	//    * Elb.InternalError - The health checks failed due to an internal error.
	//
	// If the target state is unused, the reason code can be one of the following
	// values:
	//
	//    * Target.NotRegistered - The target is not registered with the target
	//    group.
	//
	//    * Target.NotInUse - The target group is not used by any load balancer
	//    or the target is in an Availability Zone that is not enabled for its load
	//    balancer.
	//
	//    * Target.IpUnusable - The target IP address is reserved for use by a load
	//    balancer.
	//
	//    * Target.InvalidState - The target is in the stopped or terminated state.
	//
	// If the target state is draining, the reason code can be the following value:
	//
	//    * Target.DeregistrationInProgress - The target is in the process of being
	//    deregistered and the deregistration delay period has not expired.
	Reason TargetHealthReasonEnum `type:"string" enum:"true"`

	// The state of the target.
	State TargetHealthStateEnum `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Information about the current health of a target. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetHealth

func (TargetHealth) GoString

func (s TargetHealth) GoString() string

GoString returns the string representation

func (*TargetHealth) SetDescription

func (s *TargetHealth) SetDescription(v string) *TargetHealth

SetDescription sets the Description field's value.

func (*TargetHealth) SetReason

SetReason sets the Reason field's value.

func (*TargetHealth) SetState

SetState sets the State field's value.

func (TargetHealth) String

func (s TargetHealth) String() string

String returns the string representation

type TargetHealthDescription

type TargetHealthDescription struct {

	// The port to use to connect with the target.
	HealthCheckPort *string `type:"string"`

	// The description of the target.
	Target *TargetDescription `type:"structure"`

	// The health information for the target.
	TargetHealth *TargetHealth `type:"structure"`
	// contains filtered or unexported fields
}

Information about the health of a target. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetHealthDescription

func (TargetHealthDescription) GoString

func (s TargetHealthDescription) GoString() string

GoString returns the string representation

func (*TargetHealthDescription) SetHealthCheckPort

func (s *TargetHealthDescription) SetHealthCheckPort(v string) *TargetHealthDescription

SetHealthCheckPort sets the HealthCheckPort field's value.

func (*TargetHealthDescription) SetTarget

SetTarget sets the Target field's value.

func (*TargetHealthDescription) SetTargetHealth

SetTargetHealth sets the TargetHealth field's value.

func (TargetHealthDescription) String

func (s TargetHealthDescription) String() string

String returns the string representation

type TargetHealthReasonEnum

type TargetHealthReasonEnum string
const (
	TargetHealthReasonEnumElbRegistrationInProgress      TargetHealthReasonEnum = "Elb.RegistrationInProgress"
	TargetHealthReasonEnumElbInitialHealthChecking       TargetHealthReasonEnum = "Elb.InitialHealthChecking"
	TargetHealthReasonEnumTargetResponseCodeMismatch     TargetHealthReasonEnum = "Target.ResponseCodeMismatch"
	TargetHealthReasonEnumTargetTimeout                  TargetHealthReasonEnum = "Target.Timeout"
	TargetHealthReasonEnumTargetFailedHealthChecks       TargetHealthReasonEnum = "Target.FailedHealthChecks"
	TargetHealthReasonEnumTargetNotRegistered            TargetHealthReasonEnum = "Target.NotRegistered"
	TargetHealthReasonEnumTargetNotInUse                 TargetHealthReasonEnum = "Target.NotInUse"
	TargetHealthReasonEnumTargetDeregistrationInProgress TargetHealthReasonEnum = "Target.DeregistrationInProgress"
	TargetHealthReasonEnumTargetInvalidState             TargetHealthReasonEnum = "Target.InvalidState"
	TargetHealthReasonEnumTargetIpUnusable               TargetHealthReasonEnum = "Target.IpUnusable"
	TargetHealthReasonEnumElbInternalError               TargetHealthReasonEnum = "Elb.InternalError"
)

Enum values for TargetHealthReasonEnum

type TargetHealthStateEnum

type TargetHealthStateEnum string
const (
	TargetHealthStateEnumInitial     TargetHealthStateEnum = "initial"
	TargetHealthStateEnumHealthy     TargetHealthStateEnum = "healthy"
	TargetHealthStateEnumUnhealthy   TargetHealthStateEnum = "unhealthy"
	TargetHealthStateEnumUnused      TargetHealthStateEnum = "unused"
	TargetHealthStateEnumDraining    TargetHealthStateEnum = "draining"
	TargetHealthStateEnumUnavailable TargetHealthStateEnum = "unavailable"
)

Enum values for TargetHealthStateEnum

type TargetTypeEnum

type TargetTypeEnum string
const (
	TargetTypeEnumInstance TargetTypeEnum = "instance"
	TargetTypeEnumIp       TargetTypeEnum = "ip"
)

Enum values for TargetTypeEnum

Directories

Path Synopsis
Package elbv2iface provides an interface to enable mocking the Elastic Load Balancing service client for testing your code.
Package elbv2iface provides an interface to enable mocking the Elastic Load Balancing service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL