elbv2

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package elbv2 provides a client for Elastic Load Balancing.

Index

Examples

Constants

View Source
const (
	// LoadBalancerSchemeEnumInternetFacing is a LoadBalancerSchemeEnum enum value
	LoadBalancerSchemeEnumInternetFacing = "internet-facing"

	// LoadBalancerSchemeEnumInternal is a LoadBalancerSchemeEnum enum value
	LoadBalancerSchemeEnumInternal = "internal"
)
View Source
const (
	// LoadBalancerStateEnumActive is a LoadBalancerStateEnum enum value
	LoadBalancerStateEnumActive = "active"

	// LoadBalancerStateEnumProvisioning is a LoadBalancerStateEnum enum value
	LoadBalancerStateEnumProvisioning = "provisioning"

	// LoadBalancerStateEnumFailed is a LoadBalancerStateEnum enum value
	LoadBalancerStateEnumFailed = "failed"
)
View Source
const (
	// ProtocolEnumHttp is a ProtocolEnum enum value
	ProtocolEnumHttp = "HTTP"

	// ProtocolEnumHttps is a ProtocolEnum enum value
	ProtocolEnumHttps = "HTTPS"
)
View Source
const (
	// TargetHealthReasonEnumElbRegistrationInProgress is a TargetHealthReasonEnum enum value
	TargetHealthReasonEnumElbRegistrationInProgress = "Elb.RegistrationInProgress"

	// TargetHealthReasonEnumElbInitialHealthChecking is a TargetHealthReasonEnum enum value
	TargetHealthReasonEnumElbInitialHealthChecking = "Elb.InitialHealthChecking"

	// TargetHealthReasonEnumTargetResponseCodeMismatch is a TargetHealthReasonEnum enum value
	TargetHealthReasonEnumTargetResponseCodeMismatch = "Target.ResponseCodeMismatch"

	// TargetHealthReasonEnumTargetTimeout is a TargetHealthReasonEnum enum value
	TargetHealthReasonEnumTargetTimeout = "Target.Timeout"

	// TargetHealthReasonEnumTargetFailedHealthChecks is a TargetHealthReasonEnum enum value
	TargetHealthReasonEnumTargetFailedHealthChecks = "Target.FailedHealthChecks"

	// TargetHealthReasonEnumTargetNotRegistered is a TargetHealthReasonEnum enum value
	TargetHealthReasonEnumTargetNotRegistered = "Target.NotRegistered"

	// TargetHealthReasonEnumTargetNotInUse is a TargetHealthReasonEnum enum value
	TargetHealthReasonEnumTargetNotInUse = "Target.NotInUse"

	// TargetHealthReasonEnumTargetDeregistrationInProgress is a TargetHealthReasonEnum enum value
	TargetHealthReasonEnumTargetDeregistrationInProgress = "Target.DeregistrationInProgress"

	// TargetHealthReasonEnumTargetInvalidState is a TargetHealthReasonEnum enum value
	TargetHealthReasonEnumTargetInvalidState = "Target.InvalidState"

	// TargetHealthReasonEnumElbInternalError is a TargetHealthReasonEnum enum value
	TargetHealthReasonEnumElbInternalError = "Elb.InternalError"
)
View Source
const (
	// TargetHealthStateEnumInitial is a TargetHealthStateEnum enum value
	TargetHealthStateEnumInitial = "initial"

	// TargetHealthStateEnumHealthy is a TargetHealthStateEnum enum value
	TargetHealthStateEnumHealthy = "healthy"

	// TargetHealthStateEnumUnhealthy is a TargetHealthStateEnum enum value
	TargetHealthStateEnumUnhealthy = "unhealthy"

	// TargetHealthStateEnumUnused is a TargetHealthStateEnum enum value
	TargetHealthStateEnumUnused = "unused"

	// TargetHealthStateEnumDraining is a TargetHealthStateEnum enum value
	TargetHealthStateEnumDraining = "draining"
)
View Source
const (
	// ActionTypeEnumForward is a ActionTypeEnum enum value
	ActionTypeEnumForward = "forward"
)
View Source
const (
	// LoadBalancerTypeEnumApplication is a LoadBalancerTypeEnum enum value
	LoadBalancerTypeEnumApplication = "application"
)
View Source
const ServiceName = "elasticloadbalancing"

A ServiceName is the name of the service the client will make API calls to.

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 *string `type:"string" required:"true" enum:"ActionTypeEnum"`
	// contains filtered or unexported fields
}

Information about an action.

func (Action) GoString

func (s Action) GoString() string

GoString returns the string representation

func (*Action) SetTargetGroupArn added in v1.5.1

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

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*Action) SetType added in v1.5.1

func (s *Action) SetType(v string) *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 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
}

Contains the parameters for AddTags.

func (AddTagsInput) GoString

func (s AddTagsInput) GoString() string

GoString returns the string representation

func (*AddTagsInput) SetResourceArns added in v1.5.1

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

SetResourceArns sets the ResourceArns field's value.

func (*AddTagsInput) SetTags added in v1.5.1

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
}

Contains the output of AddTags.

func (AddTagsOutput) GoString

func (s AddTagsOutput) GoString() string

GoString returns the string representation

func (AddTagsOutput) String

func (s AddTagsOutput) String() string

String returns the string representation

type AvailabilityZone

type AvailabilityZone struct {

	// 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.

func (AvailabilityZone) GoString

func (s AvailabilityZone) GoString() string

GoString returns the string representation

func (*AvailabilityZone) SetSubnetId added in v1.5.1

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

SetSubnetId sets the SubnetId field's value.

func (*AvailabilityZone) SetZoneName added in v1.5.1

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"`
	// contains filtered or unexported fields
}

Information about an SSL server certificate deployed on a load balancer.

func (Certificate) GoString

func (s Certificate) GoString() string

GoString returns the string representation

func (*Certificate) SetCertificateArn added in v1.5.1

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

SetCertificateArn sets the CertificateArn 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.

func (Cipher) GoString

func (s Cipher) GoString() string

GoString returns the string representation

func (*Cipher) SetName added in v1.5.1

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

SetName sets the Name field's value.

func (*Cipher) SetPriority added in v1.5.1

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 {

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

	// The default action for the listener.
	//
	// 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.
	//
	// Protocol is a required field
	Protocol *string `type:"string" required:"true" enum:"ProtocolEnum"`

	// 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
}

Contains the parameters for CreateListener.

func (CreateListenerInput) GoString

func (s CreateListenerInput) GoString() string

GoString returns the string representation

func (*CreateListenerInput) SetCertificates added in v1.5.1

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

SetCertificates sets the Certificates field's value.

func (*CreateListenerInput) SetDefaultActions added in v1.5.1

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

SetDefaultActions sets the DefaultActions field's value.

func (*CreateListenerInput) SetLoadBalancerArn added in v1.5.1

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*CreateListenerInput) SetPort added in v1.5.1

SetPort sets the Port field's value.

func (*CreateListenerInput) SetProtocol added in v1.5.1

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

SetProtocol sets the Protocol field's value.

func (*CreateListenerInput) SetSslPolicy added in v1.5.1

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
}

Contains the output of CreateListener.

func (CreateListenerOutput) GoString

func (s CreateListenerOutput) GoString() string

GoString returns the string representation

func (*CreateListenerOutput) SetListeners added in v1.5.1

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 CreateLoadBalancerInput

type CreateLoadBalancerInput struct {

	// The name of the load balancer.
	//
	// This name must be unique within your AWS 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 *string `type:"string" enum:"LoadBalancerSchemeEnum"`

	// 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 subnets from at least
	// two Availability Zones.
	//
	// Subnets is a required field
	Subnets []*string `type:"list" required:"true"`

	// One or more tags to assign to the load balancer.
	Tags []*Tag `min:"1" type:"list"`
	// contains filtered or unexported fields
}

Contains the parameters for CreateLoadBalancer.

func (CreateLoadBalancerInput) GoString

func (s CreateLoadBalancerInput) GoString() string

GoString returns the string representation

func (*CreateLoadBalancerInput) SetName added in v1.5.1

SetName sets the Name field's value.

func (*CreateLoadBalancerInput) SetScheme added in v1.5.1

SetScheme sets the Scheme field's value.

func (*CreateLoadBalancerInput) SetSecurityGroups added in v1.5.1

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

SetSecurityGroups sets the SecurityGroups field's value.

func (*CreateLoadBalancerInput) SetSubnets added in v1.5.1

SetSubnets sets the Subnets field's value.

func (*CreateLoadBalancerInput) SetTags added in v1.5.1

SetTags sets the Tags 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
}

Contains the output of CreateLoadBalancer.

func (CreateLoadBalancerOutput) GoString

func (s CreateLoadBalancerOutput) GoString() string

GoString returns the string representation

func (*CreateLoadBalancerOutput) SetLoadBalancers added in v1.5.1

SetLoadBalancers sets the LoadBalancers field's value.

func (CreateLoadBalancerOutput) String

func (s CreateLoadBalancerOutput) String() string

String returns the string representation

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"`

	// A condition. Each condition has the field path-pattern and specifies one
	// path pattern. A path pattern is case sensitive, can be up to 255 characters
	// in length, and can contain any of the following 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
}

Contains the parameters for CreateRule.

func (CreateRuleInput) GoString

func (s CreateRuleInput) GoString() string

GoString returns the string representation

func (*CreateRuleInput) SetActions added in v1.5.1

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

SetActions sets the Actions field's value.

func (*CreateRuleInput) SetConditions added in v1.5.1

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

SetConditions sets the Conditions field's value.

func (*CreateRuleInput) SetListenerArn added in v1.5.1

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

SetListenerArn sets the ListenerArn field's value.

func (*CreateRuleInput) SetPriority added in v1.5.1

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
}

Contains the output of CreateRule.

func (CreateRuleOutput) GoString

func (s CreateRuleOutput) GoString() string

GoString returns the string representation

func (*CreateRuleOutput) SetRules added in v1.5.1

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 CreateTargetGroupInput

type CreateTargetGroupInput struct {

	// The approximate amount of time, in seconds, between health checks of an individual
	// target. The default is 30 seconds.
	HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"`

	// 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 indicates 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 default is the HTTP protocol.
	HealthCheckProtocol *string `type:"string" enum:"ProtocolEnum"`

	// The amount of time, in seconds, during which no response from a target means
	// a failed health check. The default is 5 seconds.
	HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"`

	// The number of consecutive health checks successes required before considering
	// an unhealthy target healthy. The default is 5.
	HealthyThresholdCount *int64 `min:"2" type:"integer"`

	// The HTTP codes to use when checking for a successful response from a target.
	// The default is 200.
	Matcher *Matcher `type:"structure"`

	// The name of the target group.
	//
	// 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.
	//
	// Protocol is a required field
	Protocol *string `type:"string" required:"true" enum:"ProtocolEnum"`

	// The number of consecutive health check failures required before considering
	// a target unhealthy. The default is 2.
	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
}

Contains the parameters for CreateTargetGroup.

func (CreateTargetGroupInput) GoString

func (s CreateTargetGroupInput) GoString() string

GoString returns the string representation

func (*CreateTargetGroupInput) SetHealthCheckIntervalSeconds added in v1.5.1

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

SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value.

func (*CreateTargetGroupInput) SetHealthCheckPath added in v1.5.1

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

SetHealthCheckPath sets the HealthCheckPath field's value.

func (*CreateTargetGroupInput) SetHealthCheckPort added in v1.5.1

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

SetHealthCheckPort sets the HealthCheckPort field's value.

func (*CreateTargetGroupInput) SetHealthCheckProtocol added in v1.5.1

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

SetHealthCheckProtocol sets the HealthCheckProtocol field's value.

func (*CreateTargetGroupInput) SetHealthCheckTimeoutSeconds added in v1.5.1

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

SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value.

func (*CreateTargetGroupInput) SetHealthyThresholdCount added in v1.5.1

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

SetHealthyThresholdCount sets the HealthyThresholdCount field's value.

func (*CreateTargetGroupInput) SetMatcher added in v1.5.1

SetMatcher sets the Matcher field's value.

func (*CreateTargetGroupInput) SetName added in v1.5.1

SetName sets the Name field's value.

func (*CreateTargetGroupInput) SetPort added in v1.5.1

SetPort sets the Port field's value.

func (*CreateTargetGroupInput) SetProtocol added in v1.5.1

SetProtocol sets the Protocol field's value.

func (*CreateTargetGroupInput) SetUnhealthyThresholdCount added in v1.5.1

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

SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value.

func (*CreateTargetGroupInput) SetVpcId added in v1.5.1

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
}

Contains the output of CreateTargetGroup.

func (CreateTargetGroupOutput) GoString

func (s CreateTargetGroupOutput) GoString() string

GoString returns the string representation

func (*CreateTargetGroupOutput) SetTargetGroups added in v1.5.1

SetTargetGroups sets the TargetGroups field's value.

func (CreateTargetGroupOutput) String

func (s CreateTargetGroupOutput) String() string

String returns the string representation

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
}

Contains the parameters for DeleteListener.

func (DeleteListenerInput) GoString

func (s DeleteListenerInput) GoString() string

GoString returns the string representation

func (*DeleteListenerInput) SetListenerArn added in v1.5.1

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
}

Contains the output of DeleteListener.

func (DeleteListenerOutput) GoString

func (s DeleteListenerOutput) GoString() string

GoString returns the string representation

func (DeleteListenerOutput) String

func (s DeleteListenerOutput) String() string

String returns the string representation

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
}

Contains the parameters for DeleteLoadBalancer.

func (DeleteLoadBalancerInput) GoString

func (s DeleteLoadBalancerInput) GoString() string

GoString returns the string representation

func (*DeleteLoadBalancerInput) SetLoadBalancerArn added in v1.5.1

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
}

Contains the output of DeleteLoadBalancer.

func (DeleteLoadBalancerOutput) GoString

func (s DeleteLoadBalancerOutput) GoString() string

GoString returns the string representation

func (DeleteLoadBalancerOutput) String

func (s DeleteLoadBalancerOutput) String() string

String returns the string representation

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
}

Contains the parameters for DeleteRule.

func (DeleteRuleInput) GoString

func (s DeleteRuleInput) GoString() string

GoString returns the string representation

func (*DeleteRuleInput) SetRuleArn added in v1.5.1

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
}

Contains the output of DeleteRule.

func (DeleteRuleOutput) GoString

func (s DeleteRuleOutput) GoString() string

GoString returns the string representation

func (DeleteRuleOutput) String

func (s DeleteRuleOutput) String() string

String returns the string representation

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
}

Contains the parameters for DeleteTargetGroup.

func (DeleteTargetGroupInput) GoString

func (s DeleteTargetGroupInput) GoString() string

GoString returns the string representation

func (*DeleteTargetGroupInput) SetTargetGroupArn added in v1.5.1

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
}

Contains the output of DeleteTargetGroup.

func (DeleteTargetGroupOutput) GoString

func (s DeleteTargetGroupOutput) GoString() string

GoString returns the string representation

func (DeleteTargetGroupOutput) String

func (s DeleteTargetGroupOutput) String() string

String returns the string representation

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
}

Contains the parameters for DeregisterTargets.

func (DeregisterTargetsInput) GoString

func (s DeregisterTargetsInput) GoString() string

GoString returns the string representation

func (*DeregisterTargetsInput) SetTargetGroupArn added in v1.5.1

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

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*DeregisterTargetsInput) SetTargets added in v1.5.1

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
}

Contains the output of DeregisterTargets.

func (DeregisterTargetsOutput) GoString

func (s DeregisterTargetsOutput) GoString() string

GoString returns the string representation

func (DeregisterTargetsOutput) String

func (s DeregisterTargetsOutput) String() string

String returns the string representation

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
}

Contains the parameters for DescribeListeners.

func (DescribeListenersInput) GoString

func (s DescribeListenersInput) GoString() string

GoString returns the string representation

func (*DescribeListenersInput) SetListenerArns added in v1.5.1

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

SetListenerArns sets the ListenerArns field's value.

func (*DescribeListenersInput) SetLoadBalancerArn added in v1.5.1

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*DescribeListenersInput) SetMarker added in v1.5.1

SetMarker sets the Marker field's value.

func (*DescribeListenersInput) SetPageSize added in v1.5.1

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
}

Contains the output of DescribeListeners.

func (DescribeListenersOutput) GoString

func (s DescribeListenersOutput) GoString() string

GoString returns the string representation

func (*DescribeListenersOutput) SetListeners added in v1.5.1

SetListeners sets the Listeners field's value.

func (*DescribeListenersOutput) SetNextMarker added in v1.5.1

SetNextMarker sets the NextMarker field's value.

func (DescribeListenersOutput) String

func (s DescribeListenersOutput) String() string

String returns the string representation

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
}

Contains the parameters for DescribeLoadBalancerAttributes.

func (DescribeLoadBalancerAttributesInput) GoString

GoString returns the string representation

func (*DescribeLoadBalancerAttributesInput) SetLoadBalancerArn added in v1.5.1

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
}

Contains the output of DescribeLoadBalancerAttributes.

func (DescribeLoadBalancerAttributesOutput) GoString

GoString returns the string representation

func (*DescribeLoadBalancerAttributesOutput) SetAttributes added in v1.5.1

SetAttributes sets the Attributes field's value.

func (DescribeLoadBalancerAttributesOutput) String

String returns the string representation

type DescribeLoadBalancersInput

type DescribeLoadBalancersInput struct {

	// The Amazon Resource Names (ARN) of the load balancers.
	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
}

Contains the parameters for DescribeLoadBalancers.

func (DescribeLoadBalancersInput) GoString

func (s DescribeLoadBalancersInput) GoString() string

GoString returns the string representation

func (*DescribeLoadBalancersInput) SetLoadBalancerArns added in v1.5.1

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

SetLoadBalancerArns sets the LoadBalancerArns field's value.

func (*DescribeLoadBalancersInput) SetMarker added in v1.5.1

SetMarker sets the Marker field's value.

func (*DescribeLoadBalancersInput) SetNames added in v1.5.1

SetNames sets the Names field's value.

func (*DescribeLoadBalancersInput) SetPageSize added in v1.5.1

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
}

Contains the output of DescribeLoadBalancers.

func (DescribeLoadBalancersOutput) GoString

func (s DescribeLoadBalancersOutput) GoString() string

GoString returns the string representation

func (*DescribeLoadBalancersOutput) SetLoadBalancers added in v1.5.1

SetLoadBalancers sets the LoadBalancers field's value.

func (*DescribeLoadBalancersOutput) SetNextMarker added in v1.5.1

SetNextMarker sets the NextMarker field's value.

func (DescribeLoadBalancersOutput) String

String returns the string representation

type DescribeRulesInput

type DescribeRulesInput struct {

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

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

Contains the parameters for DescribeRules.

func (DescribeRulesInput) GoString

func (s DescribeRulesInput) GoString() string

GoString returns the string representation

func (*DescribeRulesInput) SetListenerArn added in v1.5.1

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

SetListenerArn sets the ListenerArn field's value.

func (*DescribeRulesInput) SetRuleArns added in v1.5.1

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

type DescribeRulesOutput

type DescribeRulesOutput struct {

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

Contains the output of DescribeRules.

func (DescribeRulesOutput) GoString

func (s DescribeRulesOutput) GoString() string

GoString returns the string representation

func (*DescribeRulesOutput) SetRules added in v1.5.1

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 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
}

Contains the parameters for DescribeSSLPolicies.

func (DescribeSSLPoliciesInput) GoString

func (s DescribeSSLPoliciesInput) GoString() string

GoString returns the string representation

func (*DescribeSSLPoliciesInput) SetMarker added in v1.5.1

SetMarker sets the Marker field's value.

func (*DescribeSSLPoliciesInput) SetNames added in v1.5.1

SetNames sets the Names field's value.

func (*DescribeSSLPoliciesInput) SetPageSize added in v1.5.1

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
}

Contains the output of DescribeSSLPolicies.

func (DescribeSSLPoliciesOutput) GoString

func (s DescribeSSLPoliciesOutput) GoString() string

GoString returns the string representation

func (*DescribeSSLPoliciesOutput) SetNextMarker added in v1.5.1

SetNextMarker sets the NextMarker field's value.

func (*DescribeSSLPoliciesOutput) SetSslPolicies added in v1.5.1

SetSslPolicies sets the SslPolicies field's value.

func (DescribeSSLPoliciesOutput) String

func (s DescribeSSLPoliciesOutput) String() string

String returns the string representation

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
}

Contains the parameters for DescribeTags.

func (DescribeTagsInput) GoString

func (s DescribeTagsInput) GoString() string

GoString returns the string representation

func (*DescribeTagsInput) SetResourceArns added in v1.5.1

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
}

Contains the output of DescribeTags.

func (DescribeTagsOutput) GoString

func (s DescribeTagsOutput) GoString() string

GoString returns the string representation

func (*DescribeTagsOutput) SetTagDescriptions added in v1.5.1

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 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
}

Contains the parameters for DescribeTargetGroupAttributes.

func (DescribeTargetGroupAttributesInput) GoString

GoString returns the string representation

func (*DescribeTargetGroupAttributesInput) SetTargetGroupArn added in v1.5.1

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
}

Contains the output of DescribeTargetGroupAttributes.

func (DescribeTargetGroupAttributesOutput) GoString

GoString returns the string representation

func (*DescribeTargetGroupAttributesOutput) SetAttributes added in v1.5.1

SetAttributes sets the Attributes field's value.

func (DescribeTargetGroupAttributesOutput) String

String returns the string representation

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
}

Contains the parameters for DescribeTargetGroups.

func (DescribeTargetGroupsInput) GoString

func (s DescribeTargetGroupsInput) GoString() string

GoString returns the string representation

func (*DescribeTargetGroupsInput) SetLoadBalancerArn added in v1.5.1

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*DescribeTargetGroupsInput) SetMarker added in v1.5.1

SetMarker sets the Marker field's value.

func (*DescribeTargetGroupsInput) SetNames added in v1.5.1

SetNames sets the Names field's value.

func (*DescribeTargetGroupsInput) SetPageSize added in v1.5.1

SetPageSize sets the PageSize field's value.

func (*DescribeTargetGroupsInput) SetTargetGroupArns added in v1.5.1

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
}

Contains the output of DescribeTargetGroups.

func (DescribeTargetGroupsOutput) GoString

func (s DescribeTargetGroupsOutput) GoString() string

GoString returns the string representation

func (*DescribeTargetGroupsOutput) SetNextMarker added in v1.5.1

SetNextMarker sets the NextMarker field's value.

func (*DescribeTargetGroupsOutput) SetTargetGroups added in v1.5.1

SetTargetGroups sets the TargetGroups field's value.

func (DescribeTargetGroupsOutput) String

String returns the string representation

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
}

Contains the parameters for DescribeTargetHealth.

func (DescribeTargetHealthInput) GoString

func (s DescribeTargetHealthInput) GoString() string

GoString returns the string representation

func (*DescribeTargetHealthInput) SetTargetGroupArn added in v1.5.1

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*DescribeTargetHealthInput) SetTargets added in v1.5.1

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
}

Contains the output of DescribeTargetHealth.

func (DescribeTargetHealthOutput) GoString

func (s DescribeTargetHealthOutput) GoString() string

GoString returns the string representation

func (*DescribeTargetHealthOutput) SetTargetHealthDescriptions added in v1.5.1

SetTargetHealthDescriptions sets the TargetHealthDescriptions field's value.

func (DescribeTargetHealthOutput) String

String returns the string representation

type ELBV2

type ELBV2 struct {
	*client.Client
}

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 two types of load balancers: Classic Load Balancers and Application Load Balancers. 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. An Application Load Balancer makes routing and load balancing decisions at the application layer (HTTP/HTTPS), supports path-based routing, and can route requests to one or more ports on each EC2 instance or container instance in your virtual private cloud (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. The 2012-06-01 API supports Classic Load Balancers.

To get started, complete the following tasks:

Create an Application 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.

(Optional) Create one or more rules for content routing based on URL using CreateRule.

To delete an Application 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. The service client's operations are safe to be used concurrently. It is not safe to mutate any of the client's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *ELBV2

New creates a new instance of the ELBV2 client with a session. 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 session.
svc := elbv2.New(mySession)

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

func (*ELBV2) AddTags

func (c *ELBV2) AddTags(input *AddTagsInput) (*AddTagsOutput, error)

AddTags API operation for Elastic Load Balancing.

Adds the specified tags to the specified resource. You can tag your Application 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation AddTags for usage and error information.

Returned Error Codes:

  • DuplicateTagKeys A tag key was specified more than once.

  • TooManyTags You've reached the limit on the number of tags per load balancer.

  • LoadBalancerNotFound The specified load balancer does not exist.

  • TargetGroupNotFound The specified target group does not exist.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.AddTagsInput{
		ResourceArns: []*string{ // Required
			aws.String("ResourceArn"), // Required
			// More values...
		},
		Tags: []*elbv2.Tag{ // Required
			{ // Required
				Key:   aws.String("TagKey"), // Required
				Value: aws.String("TagValue"),
			},
			// More values...
		},
	}
	resp, err := svc.AddTags(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) AddTagsRequest

func (c *ELBV2) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput)

AddTagsRequest generates a "aws/request.Request" representing the client's request for the AddTags operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See AddTags for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the AddTags method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the AddTagsRequest method.
req, resp := client.AddTagsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) CreateListener

func (c *ELBV2) CreateListener(input *CreateListenerInput) (*CreateListenerOutput, error)

CreateListener API operation for Elastic Load Balancing.

Creates a listener for the specified Application 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation CreateListener for usage and error information.

Returned Error Codes:

  • DuplicateListener A listener with the specified port already exists.

  • TooManyListeners You've reached the limit on the number of listeners per load balancer.

  • TooManyCertificates You've reached the limit on the number of certificates per listener.

  • LoadBalancerNotFound The specified load balancer does not exist.

  • TargetGroupNotFound The specified target group does not exist.

  • TargetGroupAssociationLimit You've reached the limit on the number of load balancers per target group.

  • InvalidConfigurationRequest The requested configuration is not valid.

  • IncompatibleProtocols The specified configuration is not valid with this protocol.

  • SSLPolicyNotFound The specified SSL policy does not exist.

  • CertificateNotFound The specified certificate does not exist.

  • UnsupportedProtocol The specified protocol is not supported.

  • TooManyRegistrationsForTargetId You've reached the limit on the number of times a target can be registered with a load balancer.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.CreateListenerInput{
		DefaultActions: []*elbv2.Action{ // Required
			{ // Required
				TargetGroupArn: aws.String("TargetGroupArn"), // Required
				Type:           aws.String("ActionTypeEnum"), // Required
			},
			// More values...
		},
		LoadBalancerArn: aws.String("LoadBalancerArn"), // Required
		Port:            aws.Int64(1),                  // Required
		Protocol:        aws.String("ProtocolEnum"),    // Required
		Certificates: []*elbv2.Certificate{
			{ // Required
				CertificateArn: aws.String("CertificateArn"),
			},
			// More values...
		},
		SslPolicy: aws.String("SslPolicyName"),
	}
	resp, err := svc.CreateListener(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) CreateListenerRequest

func (c *ELBV2) CreateListenerRequest(input *CreateListenerInput) (req *request.Request, output *CreateListenerOutput)

CreateListenerRequest generates a "aws/request.Request" representing the client's request for the CreateListener operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See CreateListener for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateListener method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the CreateListenerRequest method.
req, resp := client.CreateListenerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) CreateLoadBalancer

func (c *ELBV2) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error)

CreateLoadBalancer API operation for Elastic Load Balancing.

Creates an Application Load Balancer.

To create listeners for your load balancer, use CreateListener. You can add security groups, subnets, and tags when you create your load balancer, or you can add them later using SetSecurityGroups, SetSubnets, and AddTags.

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.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation CreateLoadBalancer for usage and error information.

Returned Error Codes:

  • DuplicateLoadBalancerName A load balancer with the specified name already exists for this account.

  • TooManyLoadBalancers You've reached the limit on the number of load balancers for your AWS account.

  • InvalidConfigurationRequest The requested configuration is not valid.

  • SubnetNotFound The specified subnet does not exist.

  • InvalidSubnet The specified subnet is out of available addresses.

  • InvalidSecurityGroup The specified security group does not exist.

  • InvalidScheme The requested scheme is not valid.

  • TooManyTags You've reached the limit on the number of tags per load balancer.

  • DuplicateTagKeys A tag key was specified more than once.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.CreateLoadBalancerInput{
		Name: aws.String("LoadBalancerName"), // Required
		Subnets: []*string{ // Required
			aws.String("SubnetId"), // Required
			// More values...
		},
		Scheme: aws.String("LoadBalancerSchemeEnum"),
		SecurityGroups: []*string{
			aws.String("SecurityGroupId"), // Required
			// More values...
		},
		Tags: []*elbv2.Tag{
			{ // Required
				Key:   aws.String("TagKey"), // Required
				Value: aws.String("TagValue"),
			},
			// More values...
		},
	}
	resp, err := svc.CreateLoadBalancer(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) CreateLoadBalancerRequest

func (c *ELBV2) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *request.Request, output *CreateLoadBalancerOutput)

CreateLoadBalancerRequest generates a "aws/request.Request" representing the client's request for the CreateLoadBalancer operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See CreateLoadBalancer for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateLoadBalancer method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the CreateLoadBalancerRequest method.
req, resp := client.CreateLoadBalancerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) CreateRule

func (c *ELBV2) CreateRule(input *CreateRuleInput) (*CreateRuleOutput, error)

CreateRule API operation for Elastic Load Balancing.

Creates a rule for the specified listener.

Each rule can have one action and one condition. 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 default 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation CreateRule for usage and error information.

Returned Error Codes:

  • PriorityInUse The specified priority is in use.

  • TooManyTargetGroups You've reached the limit on the number of target groups for your AWS account.

  • TooManyRules You've reached the limit on the number of rules per load balancer.

  • TargetGroupAssociationLimit You've reached the limit on the number of load balancers per target group.

  • ListenerNotFound The specified listener does not exist.

  • TargetGroupNotFound The specified target group does not exist.

  • InvalidConfigurationRequest The requested configuration is not valid.

  • TooManyRegistrationsForTargetId You've reached the limit on the number of times a target can be registered with a load balancer.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.CreateRuleInput{
		Actions: []*elbv2.Action{ // Required
			{ // Required
				TargetGroupArn: aws.String("TargetGroupArn"), // Required
				Type:           aws.String("ActionTypeEnum"), // Required
			},
			// More values...
		},
		Conditions: []*elbv2.RuleCondition{ // Required
			{ // Required
				Field: aws.String("ConditionFieldName"),
				Values: []*string{
					aws.String("StringValue"), // Required
					// More values...
				},
			},
			// More values...
		},
		ListenerArn: aws.String("ListenerArn"), // Required
		Priority:    aws.Int64(1),              // Required
	}
	resp, err := svc.CreateRule(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) CreateRuleRequest

func (c *ELBV2) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, output *CreateRuleOutput)

CreateRuleRequest generates a "aws/request.Request" representing the client's request for the CreateRule operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See CreateRule for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateRule method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the CreateRuleRequest method.
req, resp := client.CreateRuleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) CreateTargetGroup

func (c *ELBV2) CreateTargetGroup(input *CreateTargetGroupInput) (*CreateTargetGroupOutput, error)

CreateTargetGroup 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation CreateTargetGroup for usage and error information.

Returned Error Codes:

  • DuplicateTargetGroupName A target group with the specified name already exists.

  • TooManyTargetGroups You've reached the limit on the number of target groups for your AWS account.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.CreateTargetGroupInput{
		Name:                       aws.String("TargetGroupName"), // Required
		Port:                       aws.Int64(1),                  // Required
		Protocol:                   aws.String("ProtocolEnum"),    // Required
		VpcId:                      aws.String("VpcId"),           // Required
		HealthCheckIntervalSeconds: aws.Int64(1),
		HealthCheckPath:            aws.String("Path"),
		HealthCheckPort:            aws.String("HealthCheckPort"),
		HealthCheckProtocol:        aws.String("ProtocolEnum"),
		HealthCheckTimeoutSeconds:  aws.Int64(1),
		HealthyThresholdCount:      aws.Int64(1),
		Matcher: &elbv2.Matcher{
			HttpCode: aws.String("HttpCode"), // Required
		},
		UnhealthyThresholdCount: aws.Int64(1),
	}
	resp, err := svc.CreateTargetGroup(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) CreateTargetGroupRequest

func (c *ELBV2) CreateTargetGroupRequest(input *CreateTargetGroupInput) (req *request.Request, output *CreateTargetGroupOutput)

CreateTargetGroupRequest generates a "aws/request.Request" representing the client's request for the CreateTargetGroup operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See CreateTargetGroup for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateTargetGroup method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the CreateTargetGroupRequest method.
req, resp := client.CreateTargetGroupRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) DeleteListener

func (c *ELBV2) DeleteListener(input *DeleteListenerInput) (*DeleteListenerOutput, error)

DeleteListener 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation DeleteListener for usage and error information.

Returned Error Codes:

  • ListenerNotFound The specified listener does not exist.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.DeleteListenerInput{
		ListenerArn: aws.String("ListenerArn"), // Required
	}
	resp, err := svc.DeleteListener(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) DeleteListenerRequest

func (c *ELBV2) DeleteListenerRequest(input *DeleteListenerInput) (req *request.Request, output *DeleteListenerOutput)

DeleteListenerRequest generates a "aws/request.Request" representing the client's request for the DeleteListener operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DeleteListener for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteListener method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeleteListenerRequest method.
req, resp := client.DeleteListenerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) DeleteLoadBalancer

func (c *ELBV2) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error)

DeleteLoadBalancer API operation for Elastic Load Balancing.

Deletes the specified Application 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation DeleteLoadBalancer for usage and error information.

Returned Error Codes:

  • LoadBalancerNotFound The specified load balancer does not exist.

  • OperationNotPermitted This operation is not allowed.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.DeleteLoadBalancerInput{
		LoadBalancerArn: aws.String("LoadBalancerArn"), // Required
	}
	resp, err := svc.DeleteLoadBalancer(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) DeleteLoadBalancerRequest

func (c *ELBV2) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *request.Request, output *DeleteLoadBalancerOutput)

DeleteLoadBalancerRequest generates a "aws/request.Request" representing the client's request for the DeleteLoadBalancer operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DeleteLoadBalancer for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteLoadBalancer method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeleteLoadBalancerRequest method.
req, resp := client.DeleteLoadBalancerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) DeleteRule

func (c *ELBV2) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error)

DeleteRule API operation for Elastic Load Balancing.

Deletes the specified rule.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation DeleteRule for usage and error information.

Returned Error Codes:

  • RuleNotFound The specified rule does not exist.

  • OperationNotPermitted This operation is not allowed.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.DeleteRuleInput{
		RuleArn: aws.String("RuleArn"), // Required
	}
	resp, err := svc.DeleteRule(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) DeleteRuleRequest

func (c *ELBV2) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput)

DeleteRuleRequest generates a "aws/request.Request" representing the client's request for the DeleteRule operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DeleteRule for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteRule method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeleteRuleRequest method.
req, resp := client.DeleteRuleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) DeleteTargetGroup

func (c *ELBV2) DeleteTargetGroup(input *DeleteTargetGroupInput) (*DeleteTargetGroupOutput, error)

DeleteTargetGroup 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation DeleteTargetGroup for usage and error information.

Returned Error Codes:

  • ResourceInUse A specified resource is in use.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.DeleteTargetGroupInput{
		TargetGroupArn: aws.String("TargetGroupArn"), // Required
	}
	resp, err := svc.DeleteTargetGroup(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) DeleteTargetGroupRequest

func (c *ELBV2) DeleteTargetGroupRequest(input *DeleteTargetGroupInput) (req *request.Request, output *DeleteTargetGroupOutput)

DeleteTargetGroupRequest generates a "aws/request.Request" representing the client's request for the DeleteTargetGroup operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DeleteTargetGroup for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteTargetGroup method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeleteTargetGroupRequest method.
req, resp := client.DeleteTargetGroupRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) DeregisterTargets

func (c *ELBV2) DeregisterTargets(input *DeregisterTargetsInput) (*DeregisterTargetsOutput, error)

DeregisterTargets 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation DeregisterTargets for usage and error information.

Returned Error Codes:

  • TargetGroupNotFound The specified target group does not exist.

  • InvalidTarget The specified target does not exist or is not in the same VPC as the target group.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.DeregisterTargetsInput{
		TargetGroupArn: aws.String("TargetGroupArn"), // Required
		Targets: []*elbv2.TargetDescription{ // Required
			{ // Required
				Id:   aws.String("TargetId"), // Required
				Port: aws.Int64(1),
			},
			// More values...
		},
	}
	resp, err := svc.DeregisterTargets(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) DeregisterTargetsRequest

func (c *ELBV2) DeregisterTargetsRequest(input *DeregisterTargetsInput) (req *request.Request, output *DeregisterTargetsOutput)

DeregisterTargetsRequest generates a "aws/request.Request" representing the client's request for the DeregisterTargets operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DeregisterTargets for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeregisterTargets method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeregisterTargetsRequest method.
req, resp := client.DeregisterTargetsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) DescribeListeners

func (c *ELBV2) DescribeListeners(input *DescribeListenersInput) (*DescribeListenersOutput, error)

DescribeListeners API operation for Elastic Load Balancing.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation DescribeListeners for usage and error information.

Returned Error Codes:

  • ListenerNotFound The specified listener does not exist.

  • LoadBalancerNotFound The specified load balancer does not exist.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.DescribeListenersInput{
		ListenerArns: []*string{
			aws.String("ListenerArn"), // Required
			// More values...
		},
		LoadBalancerArn: aws.String("LoadBalancerArn"),
		Marker:          aws.String("Marker"),
		PageSize:        aws.Int64(1),
	}
	resp, err := svc.DescribeListeners(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) DescribeListenersPages

func (c *ELBV2) DescribeListenersPages(input *DescribeListenersInput, fn func(p *DescribeListenersOutput, lastPage bool) (shouldContinue 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) DescribeListenersRequest

func (c *ELBV2) DescribeListenersRequest(input *DescribeListenersInput) (req *request.Request, output *DescribeListenersOutput)

DescribeListenersRequest generates a "aws/request.Request" representing the client's request for the DescribeListeners operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DescribeListeners for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeListeners method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeListenersRequest method.
req, resp := client.DescribeListenersRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) DescribeLoadBalancerAttributes

func (c *ELBV2) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error)

DescribeLoadBalancerAttributes API operation for Elastic Load Balancing.

Describes the attributes for the specified Application Load Balancer.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation DescribeLoadBalancerAttributes for usage and error information.

Returned Error Codes:

  • LoadBalancerNotFound The specified load balancer does not exist.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.DescribeLoadBalancerAttributesInput{
		LoadBalancerArn: aws.String("LoadBalancerArn"), // Required
	}
	resp, err := svc.DescribeLoadBalancerAttributes(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) DescribeLoadBalancerAttributesRequest

func (c *ELBV2) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerAttributesInput) (req *request.Request, output *DescribeLoadBalancerAttributesOutput)

DescribeLoadBalancerAttributesRequest generates a "aws/request.Request" representing the client's request for the DescribeLoadBalancerAttributes operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DescribeLoadBalancerAttributes for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeLoadBalancerAttributes method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeLoadBalancerAttributesRequest method.
req, resp := client.DescribeLoadBalancerAttributesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) DescribeLoadBalancers

func (c *ELBV2) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error)

DescribeLoadBalancers API operation for Elastic Load Balancing.

Describes the specified Application Load Balancers or all of your Application Load Balancers.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation DescribeLoadBalancers for usage and error information.

Returned Error Codes:

  • LoadBalancerNotFound The specified load balancer does not exist.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.DescribeLoadBalancersInput{
		LoadBalancerArns: []*string{
			aws.String("LoadBalancerArn"), // Required
			// More values...
		},
		Marker: aws.String("Marker"),
		Names: []*string{
			aws.String("LoadBalancerName"), // Required
			// More values...
		},
		PageSize: aws.Int64(1),
	}
	resp, err := svc.DescribeLoadBalancers(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) DescribeLoadBalancersPages

func (c *ELBV2) DescribeLoadBalancersPages(input *DescribeLoadBalancersInput, fn func(p *DescribeLoadBalancersOutput, lastPage bool) (shouldContinue 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) DescribeLoadBalancersRequest

func (c *ELBV2) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *request.Request, output *DescribeLoadBalancersOutput)

DescribeLoadBalancersRequest generates a "aws/request.Request" representing the client's request for the DescribeLoadBalancers operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DescribeLoadBalancers for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeLoadBalancers method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeLoadBalancersRequest method.
req, resp := client.DescribeLoadBalancersRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) DescribeRules

func (c *ELBV2) DescribeRules(input *DescribeRulesInput) (*DescribeRulesOutput, error)

DescribeRules 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation DescribeRules for usage and error information.

Returned Error Codes:

  • ListenerNotFound The specified listener does not exist.

  • RuleNotFound The specified rule does not exist.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.DescribeRulesInput{
		ListenerArn: aws.String("ListenerArn"),
		RuleArns: []*string{
			aws.String("RuleArn"), // Required
			// More values...
		},
	}
	resp, err := svc.DescribeRules(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) DescribeRulesRequest

func (c *ELBV2) DescribeRulesRequest(input *DescribeRulesInput) (req *request.Request, output *DescribeRulesOutput)

DescribeRulesRequest generates a "aws/request.Request" representing the client's request for the DescribeRules operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DescribeRules for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeRules method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeRulesRequest method.
req, resp := client.DescribeRulesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) DescribeSSLPolicies

func (c *ELBV2) DescribeSSLPolicies(input *DescribeSSLPoliciesInput) (*DescribeSSLPoliciesOutput, error)

DescribeSSLPolicies API operation for Elastic Load Balancing.

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

Note that the only supported policy at this time is ELBSecurityPolicy-2015-05.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation DescribeSSLPolicies for usage and error information.

Returned Error Codes:

  • SSLPolicyNotFound The specified SSL policy does not exist.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.DescribeSSLPoliciesInput{
		Marker: aws.String("Marker"),
		Names: []*string{
			aws.String("SslPolicyName"), // Required
			// More values...
		},
		PageSize: aws.Int64(1),
	}
	resp, err := svc.DescribeSSLPolicies(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) DescribeSSLPoliciesRequest

func (c *ELBV2) DescribeSSLPoliciesRequest(input *DescribeSSLPoliciesInput) (req *request.Request, output *DescribeSSLPoliciesOutput)

DescribeSSLPoliciesRequest generates a "aws/request.Request" representing the client's request for the DescribeSSLPolicies operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DescribeSSLPolicies for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeSSLPolicies method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeSSLPoliciesRequest method.
req, resp := client.DescribeSSLPoliciesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) DescribeTags

func (c *ELBV2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error)

DescribeTags API operation for Elastic Load Balancing.

Describes the tags for the specified resources.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation DescribeTags for usage and error information.

Returned Error Codes:

  • LoadBalancerNotFound The specified load balancer does not exist.

  • TargetGroupNotFound The specified target group does not exist.

  • ListenerNotFound The specified listener does not exist.

  • RuleNotFound The specified rule does not exist.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.DescribeTagsInput{
		ResourceArns: []*string{ // Required
			aws.String("ResourceArn"), // Required
			// More values...
		},
	}
	resp, err := svc.DescribeTags(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) DescribeTagsRequest

func (c *ELBV2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput)

DescribeTagsRequest generates a "aws/request.Request" representing the client's request for the DescribeTags operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DescribeTags for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeTags method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeTagsRequest method.
req, resp := client.DescribeTagsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) DescribeTargetGroupAttributes

func (c *ELBV2) DescribeTargetGroupAttributes(input *DescribeTargetGroupAttributesInput) (*DescribeTargetGroupAttributesOutput, error)

DescribeTargetGroupAttributes API operation for Elastic Load Balancing.

Describes the attributes for the specified target group.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation DescribeTargetGroupAttributes for usage and error information.

Returned Error Codes:

  • TargetGroupNotFound The specified target group does not exist.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.DescribeTargetGroupAttributesInput{
		TargetGroupArn: aws.String("TargetGroupArn"), // Required
	}
	resp, err := svc.DescribeTargetGroupAttributes(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) DescribeTargetGroupAttributesRequest

func (c *ELBV2) DescribeTargetGroupAttributesRequest(input *DescribeTargetGroupAttributesInput) (req *request.Request, output *DescribeTargetGroupAttributesOutput)

DescribeTargetGroupAttributesRequest generates a "aws/request.Request" representing the client's request for the DescribeTargetGroupAttributes operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DescribeTargetGroupAttributes for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeTargetGroupAttributes method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeTargetGroupAttributesRequest method.
req, resp := client.DescribeTargetGroupAttributesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) DescribeTargetGroups

func (c *ELBV2) DescribeTargetGroups(input *DescribeTargetGroupsInput) (*DescribeTargetGroupsOutput, error)

DescribeTargetGroups 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation DescribeTargetGroups for usage and error information.

Returned Error Codes:

  • LoadBalancerNotFound The specified load balancer does not exist.

  • TargetGroupNotFound The specified target group does not exist.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.DescribeTargetGroupsInput{
		LoadBalancerArn: aws.String("LoadBalancerArn"),
		Marker:          aws.String("Marker"),
		Names: []*string{
			aws.String("TargetGroupName"), // Required
			// More values...
		},
		PageSize: aws.Int64(1),
		TargetGroupArns: []*string{
			aws.String("TargetGroupArn"), // Required
			// More values...
		},
	}
	resp, err := svc.DescribeTargetGroups(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) DescribeTargetGroupsPages

func (c *ELBV2) DescribeTargetGroupsPages(input *DescribeTargetGroupsInput, fn func(p *DescribeTargetGroupsOutput, lastPage bool) (shouldContinue 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) DescribeTargetGroupsRequest

func (c *ELBV2) DescribeTargetGroupsRequest(input *DescribeTargetGroupsInput) (req *request.Request, output *DescribeTargetGroupsOutput)

DescribeTargetGroupsRequest generates a "aws/request.Request" representing the client's request for the DescribeTargetGroups operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DescribeTargetGroups for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeTargetGroups method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeTargetGroupsRequest method.
req, resp := client.DescribeTargetGroupsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) DescribeTargetHealth

func (c *ELBV2) DescribeTargetHealth(input *DescribeTargetHealthInput) (*DescribeTargetHealthOutput, error)

DescribeTargetHealth API operation for Elastic Load Balancing.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation DescribeTargetHealth for usage and error information.

Returned Error Codes:

  • InvalidTarget The specified target does not exist or is not in the same VPC as the target group.

  • TargetGroupNotFound The specified target group does not exist.

  • HealthUnavailable The health of the specified targets could not be retrieved due to an internal error.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.DescribeTargetHealthInput{
		TargetGroupArn: aws.String("TargetGroupArn"), // Required
		Targets: []*elbv2.TargetDescription{
			{ // Required
				Id:   aws.String("TargetId"), // Required
				Port: aws.Int64(1),
			},
			// More values...
		},
	}
	resp, err := svc.DescribeTargetHealth(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) DescribeTargetHealthRequest

func (c *ELBV2) DescribeTargetHealthRequest(input *DescribeTargetHealthInput) (req *request.Request, output *DescribeTargetHealthOutput)

DescribeTargetHealthRequest generates a "aws/request.Request" representing the client's request for the DescribeTargetHealth operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DescribeTargetHealth for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeTargetHealth method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeTargetHealthRequest method.
req, resp := client.DescribeTargetHealthRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) ModifyListener

func (c *ELBV2) ModifyListener(input *ModifyListenerInput) (*ModifyListenerOutput, error)

ModifyListener 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation ModifyListener for usage and error information.

Returned Error Codes:

  • DuplicateListener A listener with the specified port already exists.

  • TooManyListeners You've reached the limit on the number of listeners per load balancer.

  • TooManyCertificates You've reached the limit on the number of certificates per listener.

  • ListenerNotFound The specified listener does not exist.

  • TargetGroupNotFound The specified target group does not exist.

  • TargetGroupAssociationLimit You've reached the limit on the number of load balancers per target group.

  • IncompatibleProtocols The specified configuration is not valid with this protocol.

  • SSLPolicyNotFound The specified SSL policy does not exist.

  • CertificateNotFound The specified certificate does not exist.

  • InvalidConfigurationRequest The requested configuration is not valid.

  • UnsupportedProtocol The specified protocol is not supported.

  • TooManyRegistrationsForTargetId You've reached the limit on the number of times a target can be registered with a load balancer.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.ModifyListenerInput{
		ListenerArn: aws.String("ListenerArn"), // Required
		Certificates: []*elbv2.Certificate{
			{ // Required
				CertificateArn: aws.String("CertificateArn"),
			},
			// More values...
		},
		DefaultActions: []*elbv2.Action{
			{ // Required
				TargetGroupArn: aws.String("TargetGroupArn"), // Required
				Type:           aws.String("ActionTypeEnum"), // Required
			},
			// More values...
		},
		Port:      aws.Int64(1),
		Protocol:  aws.String("ProtocolEnum"),
		SslPolicy: aws.String("SslPolicyName"),
	}
	resp, err := svc.ModifyListener(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) ModifyListenerRequest

func (c *ELBV2) ModifyListenerRequest(input *ModifyListenerInput) (req *request.Request, output *ModifyListenerOutput)

ModifyListenerRequest generates a "aws/request.Request" representing the client's request for the ModifyListener operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See ModifyListener for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ModifyListener method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the ModifyListenerRequest method.
req, resp := client.ModifyListenerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) ModifyLoadBalancerAttributes

func (c *ELBV2) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error)

ModifyLoadBalancerAttributes API operation for Elastic Load Balancing.

Modifies the specified attributes of the specified Application 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation ModifyLoadBalancerAttributes for usage and error information.

Returned Error Codes:

  • LoadBalancerNotFound The specified load balancer does not exist.

  • InvalidConfigurationRequest The requested configuration is not valid.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.ModifyLoadBalancerAttributesInput{
		Attributes: []*elbv2.LoadBalancerAttribute{ // Required
			{ // Required
				Key:   aws.String("LoadBalancerAttributeKey"),
				Value: aws.String("LoadBalancerAttributeValue"),
			},
			// More values...
		},
		LoadBalancerArn: aws.String("LoadBalancerArn"), // Required
	}
	resp, err := svc.ModifyLoadBalancerAttributes(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) ModifyLoadBalancerAttributesRequest

func (c *ELBV2) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) (req *request.Request, output *ModifyLoadBalancerAttributesOutput)

ModifyLoadBalancerAttributesRequest generates a "aws/request.Request" representing the client's request for the ModifyLoadBalancerAttributes operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See ModifyLoadBalancerAttributes for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ModifyLoadBalancerAttributes method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the ModifyLoadBalancerAttributesRequest method.
req, resp := client.ModifyLoadBalancerAttributesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) ModifyRule

func (c *ELBV2) ModifyRule(input *ModifyRuleInput) (*ModifyRuleOutput, error)

ModifyRule 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation ModifyRule for usage and error information.

Returned Error Codes:

  • TargetGroupAssociationLimit You've reached the limit on the number of load balancers per target group.

  • RuleNotFound The specified rule does not exist.

  • OperationNotPermitted This operation is not allowed.

  • TooManyRegistrationsForTargetId You've reached the limit on the number of times a target can be registered with a load balancer.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.ModifyRuleInput{
		RuleArn: aws.String("RuleArn"), // Required
		Actions: []*elbv2.Action{
			{ // Required
				TargetGroupArn: aws.String("TargetGroupArn"), // Required
				Type:           aws.String("ActionTypeEnum"), // Required
			},
			// More values...
		},
		Conditions: []*elbv2.RuleCondition{
			{ // Required
				Field: aws.String("ConditionFieldName"),
				Values: []*string{
					aws.String("StringValue"), // Required
					// More values...
				},
			},
			// More values...
		},
	}
	resp, err := svc.ModifyRule(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) ModifyRuleRequest

func (c *ELBV2) ModifyRuleRequest(input *ModifyRuleInput) (req *request.Request, output *ModifyRuleOutput)

ModifyRuleRequest generates a "aws/request.Request" representing the client's request for the ModifyRule operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See ModifyRule for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ModifyRule method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the ModifyRuleRequest method.
req, resp := client.ModifyRuleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) ModifyTargetGroup

func (c *ELBV2) ModifyTargetGroup(input *ModifyTargetGroupInput) (*ModifyTargetGroupOutput, error)

ModifyTargetGroup 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation ModifyTargetGroup for usage and error information.

Returned Error Codes:

  • TargetGroupNotFound The specified target group does not exist.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.ModifyTargetGroupInput{
		TargetGroupArn:             aws.String("TargetGroupArn"), // Required
		HealthCheckIntervalSeconds: aws.Int64(1),
		HealthCheckPath:            aws.String("Path"),
		HealthCheckPort:            aws.String("HealthCheckPort"),
		HealthCheckProtocol:        aws.String("ProtocolEnum"),
		HealthCheckTimeoutSeconds:  aws.Int64(1),
		HealthyThresholdCount:      aws.Int64(1),
		Matcher: &elbv2.Matcher{
			HttpCode: aws.String("HttpCode"), // Required
		},
		UnhealthyThresholdCount: aws.Int64(1),
	}
	resp, err := svc.ModifyTargetGroup(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) ModifyTargetGroupAttributes

func (c *ELBV2) ModifyTargetGroupAttributes(input *ModifyTargetGroupAttributesInput) (*ModifyTargetGroupAttributesOutput, error)

ModifyTargetGroupAttributes API operation for Elastic Load Balancing.

Modifies the specified attributes of the specified target group.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation ModifyTargetGroupAttributes for usage and error information.

Returned Error Codes:

  • TargetGroupNotFound The specified target group does not exist.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.ModifyTargetGroupAttributesInput{
		Attributes: []*elbv2.TargetGroupAttribute{ // Required
			{ // Required
				Key:   aws.String("TargetGroupAttributeKey"),
				Value: aws.String("TargetGroupAttributeValue"),
			},
			// More values...
		},
		TargetGroupArn: aws.String("TargetGroupArn"), // Required
	}
	resp, err := svc.ModifyTargetGroupAttributes(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) ModifyTargetGroupAttributesRequest

func (c *ELBV2) ModifyTargetGroupAttributesRequest(input *ModifyTargetGroupAttributesInput) (req *request.Request, output *ModifyTargetGroupAttributesOutput)

ModifyTargetGroupAttributesRequest generates a "aws/request.Request" representing the client's request for the ModifyTargetGroupAttributes operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See ModifyTargetGroupAttributes for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ModifyTargetGroupAttributes method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the ModifyTargetGroupAttributesRequest method.
req, resp := client.ModifyTargetGroupAttributesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) ModifyTargetGroupRequest

func (c *ELBV2) ModifyTargetGroupRequest(input *ModifyTargetGroupInput) (req *request.Request, output *ModifyTargetGroupOutput)

ModifyTargetGroupRequest generates a "aws/request.Request" representing the client's request for the ModifyTargetGroup operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See ModifyTargetGroup for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ModifyTargetGroup method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the ModifyTargetGroupRequest method.
req, resp := client.ModifyTargetGroupRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) RegisterTargets

func (c *ELBV2) RegisterTargets(input *RegisterTargetsInput) (*RegisterTargetsOutput, error)

RegisterTargets API operation for Elastic Load Balancing.

Registers the specified targets with the specified target group.

By default, the load balancer routes requests to registered targets using the protocol and port number for the target group. Alternatively, you can override the port for a target when you register it.

The target must be in the virtual private cloud (VPC) that you specified for the target group. If the target is an EC2 instance, it can't be in the stopped or running state when you register it.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation RegisterTargets for usage and error information.

Returned Error Codes:

  • TargetGroupNotFound The specified target group does not exist.

  • TooManyTargets You've reached the limit on the number of targets.

  • InvalidTarget The specified target does not exist or is not in the same VPC as the target group.

  • TooManyRegistrationsForTargetId You've reached the limit on the number of times a target can be registered with a load balancer.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.RegisterTargetsInput{
		TargetGroupArn: aws.String("TargetGroupArn"), // Required
		Targets: []*elbv2.TargetDescription{ // Required
			{ // Required
				Id:   aws.String("TargetId"), // Required
				Port: aws.Int64(1),
			},
			// More values...
		},
	}
	resp, err := svc.RegisterTargets(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) RegisterTargetsRequest

func (c *ELBV2) RegisterTargetsRequest(input *RegisterTargetsInput) (req *request.Request, output *RegisterTargetsOutput)

RegisterTargetsRequest generates a "aws/request.Request" representing the client's request for the RegisterTargets operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See RegisterTargets for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the RegisterTargets method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the RegisterTargetsRequest method.
req, resp := client.RegisterTargetsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) RemoveTags

func (c *ELBV2) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error)

RemoveTags API operation for Elastic Load Balancing.

Removes the specified tags from the specified resource.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation RemoveTags for usage and error information.

Returned Error Codes:

  • LoadBalancerNotFound The specified load balancer does not exist.

  • TargetGroupNotFound The specified target group does not exist.

  • ListenerNotFound The specified listener does not exist.

  • RuleNotFound The specified rule does not exist.

  • TooManyTags You've reached the limit on the number of tags per load balancer.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.RemoveTagsInput{
		ResourceArns: []*string{ // Required
			aws.String("ResourceArn"), // Required
			// More values...
		},
		TagKeys: []*string{ // Required
			aws.String("TagKey"), // Required
			// More values...
		},
	}
	resp, err := svc.RemoveTags(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) RemoveTagsRequest

func (c *ELBV2) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput)

RemoveTagsRequest generates a "aws/request.Request" representing the client's request for the RemoveTags operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See RemoveTags for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the RemoveTags method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the RemoveTagsRequest method.
req, resp := client.RemoveTagsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) SetRulePriorities

func (c *ELBV2) SetRulePriorities(input *SetRulePrioritiesInput) (*SetRulePrioritiesOutput, error)

SetRulePriorities 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation SetRulePriorities for usage and error information.

Returned Error Codes:

  • RuleNotFound The specified rule does not exist.

  • PriorityInUse The specified priority is in use.

  • OperationNotPermitted This operation is not allowed.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.SetRulePrioritiesInput{
		RulePriorities: []*elbv2.RulePriorityPair{ // Required
			{ // Required
				Priority: aws.Int64(1),
				RuleArn:  aws.String("RuleArn"),
			},
			// More values...
		},
	}
	resp, err := svc.SetRulePriorities(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) SetRulePrioritiesRequest

func (c *ELBV2) SetRulePrioritiesRequest(input *SetRulePrioritiesInput) (req *request.Request, output *SetRulePrioritiesOutput)

SetRulePrioritiesRequest generates a "aws/request.Request" representing the client's request for the SetRulePriorities operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See SetRulePriorities for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the SetRulePriorities method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the SetRulePrioritiesRequest method.
req, resp := client.SetRulePrioritiesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) SetSecurityGroups

func (c *ELBV2) SetSecurityGroups(input *SetSecurityGroupsInput) (*SetSecurityGroupsOutput, error)

SetSecurityGroups API operation for Elastic Load Balancing.

Associates the specified security groups with the specified load balancer. The specified security groups override the previously associated security groups.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation SetSecurityGroups for usage and error information.

Returned Error Codes:

  • LoadBalancerNotFound The specified load balancer does not exist.

  • InvalidConfigurationRequest The requested configuration is not valid.

  • InvalidSecurityGroup The specified security group does not exist.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.SetSecurityGroupsInput{
		LoadBalancerArn: aws.String("LoadBalancerArn"), // Required
		SecurityGroups: []*string{ // Required
			aws.String("SecurityGroupId"), // Required
			// More values...
		},
	}
	resp, err := svc.SetSecurityGroups(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) SetSecurityGroupsRequest

func (c *ELBV2) SetSecurityGroupsRequest(input *SetSecurityGroupsInput) (req *request.Request, output *SetSecurityGroupsOutput)

SetSecurityGroupsRequest generates a "aws/request.Request" representing the client's request for the SetSecurityGroups operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See SetSecurityGroups for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the SetSecurityGroups method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the SetSecurityGroupsRequest method.
req, resp := client.SetSecurityGroupsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ELBV2) SetSubnets

func (c *ELBV2) SetSubnets(input *SetSubnetsInput) (*SetSubnetsOutput, error)

SetSubnets API operation for Elastic Load Balancing.

Enables the Availability Zone for the specified subnets for the specified load balancer. The specified subnets replace the previously enabled subnets.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Elastic Load Balancing's API operation SetSubnets for usage and error information.

Returned Error Codes:

  • LoadBalancerNotFound The specified load balancer does not exist.

  • InvalidConfigurationRequest The requested configuration is not valid.

  • SubnetNotFound The specified subnet does not exist.

  • InvalidSubnet The specified subnet is out of available addresses.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/elbv2"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := elbv2.New(sess)

	params := &elbv2.SetSubnetsInput{
		LoadBalancerArn: aws.String("LoadBalancerArn"), // Required
		Subnets: []*string{ // Required
			aws.String("SubnetId"), // Required
			// More values...
		},
	}
	resp, err := svc.SetSubnets(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*ELBV2) SetSubnetsRequest

func (c *ELBV2) SetSubnetsRequest(input *SetSubnetsInput) (req *request.Request, output *SetSubnetsOutput)

SetSubnetsRequest generates a "aws/request.Request" representing the client's request for the SetSubnets operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See SetSubnets for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the SetSubnets method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the SetSubnetsRequest method.
req, resp := client.SetSubnetsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

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 *string `type:"string" enum:"ProtocolEnum"`

	// 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.

func (Listener) GoString

func (s Listener) GoString() string

GoString returns the string representation

func (*Listener) SetCertificates added in v1.5.1

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

SetCertificates sets the Certificates field's value.

func (*Listener) SetDefaultActions added in v1.5.1

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

SetDefaultActions sets the DefaultActions field's value.

func (*Listener) SetListenerArn added in v1.5.1

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

SetListenerArn sets the ListenerArn field's value.

func (*Listener) SetLoadBalancerArn added in v1.5.1

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*Listener) SetPort added in v1.5.1

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

SetPort sets the Port field's value.

func (*Listener) SetProtocol added in v1.5.1

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

SetProtocol sets the Protocol field's value.

func (*Listener) SetSslPolicy added in v1.5.1

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 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 *string `type:"string" enum:"LoadBalancerSchemeEnum"`

	// 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 *string `type:"string" enum:"LoadBalancerTypeEnum"`

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

Information about a load balancer.

func (LoadBalancer) GoString

func (s LoadBalancer) GoString() string

GoString returns the string representation

func (*LoadBalancer) SetAvailabilityZones added in v1.5.1

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

SetAvailabilityZones sets the AvailabilityZones field's value.

func (*LoadBalancer) SetCanonicalHostedZoneId added in v1.5.1

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

SetCanonicalHostedZoneId sets the CanonicalHostedZoneId field's value.

func (*LoadBalancer) SetCreatedTime added in v1.5.1

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

SetCreatedTime sets the CreatedTime field's value.

func (*LoadBalancer) SetDNSName added in v1.5.1

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

SetDNSName sets the DNSName field's value.

func (*LoadBalancer) SetLoadBalancerArn added in v1.5.1

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*LoadBalancer) SetLoadBalancerName added in v1.5.1

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*LoadBalancer) SetScheme added in v1.5.1

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

SetScheme sets the Scheme field's value.

func (*LoadBalancer) SetSecurityGroups added in v1.5.1

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

SetSecurityGroups sets the SecurityGroups field's value.

func (*LoadBalancer) SetState added in v1.5.1

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

SetState sets the State field's value.

func (*LoadBalancer) SetType added in v1.5.1

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

SetType sets the Type field's value.

func (*LoadBalancer) SetVpcId added in v1.5.1

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 LoadBalancerAttribute

type LoadBalancerAttribute struct {

	// The name of the attribute.
	//
	//    * access_logs.s3.enabled - Indicates whether access logs stored in Amazon
	//    S3 are enabled. The value is true or false.
	//
	//    * access_logs.s3.bucket - 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 - 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 - The idle timeout value, in seconds. The
	//    valid range is 1-3600. 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.

func (LoadBalancerAttribute) GoString

func (s LoadBalancerAttribute) GoString() string

GoString returns the string representation

func (*LoadBalancerAttribute) SetKey added in v1.5.1

SetKey sets the Key field's value.

func (*LoadBalancerAttribute) SetValue added in v1.5.1

SetValue sets the Value field's value.

func (LoadBalancerAttribute) String

func (s LoadBalancerAttribute) String() string

String returns the string representation

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 *string `type:"string" enum:"LoadBalancerStateEnum"`

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

Information about the state of the load balancer.

func (LoadBalancerState) GoString

func (s LoadBalancerState) GoString() string

GoString returns the string representation

func (*LoadBalancerState) SetCode added in v1.5.1

SetCode sets the Code field's value.

func (*LoadBalancerState) SetReason added in v1.5.1

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 Matcher

type Matcher struct {

	// The HTTP codes. The default value is 200. You can specify multiple values
	// (for example, "200,202") or a range of values (for example, "200-299").
	//
	// 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.

func (Matcher) GoString

func (s Matcher) GoString() string

GoString returns the string representation

func (*Matcher) SetHttpCode added in v1.5.1

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 SSL server certificate.
	Certificates []*Certificate `type:"list"`

	// The default actions.
	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.
	Protocol *string `type:"string" enum:"ProtocolEnum"`

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

Contains the parameters for ModifyListener.

func (ModifyListenerInput) GoString

func (s ModifyListenerInput) GoString() string

GoString returns the string representation

func (*ModifyListenerInput) SetCertificates added in v1.5.1

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

SetCertificates sets the Certificates field's value.

func (*ModifyListenerInput) SetDefaultActions added in v1.5.1

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

SetDefaultActions sets the DefaultActions field's value.

func (*ModifyListenerInput) SetListenerArn added in v1.5.1

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

SetListenerArn sets the ListenerArn field's value.

func (*ModifyListenerInput) SetPort added in v1.5.1

SetPort sets the Port field's value.

func (*ModifyListenerInput) SetProtocol added in v1.5.1

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

SetProtocol sets the Protocol field's value.

func (*ModifyListenerInput) SetSslPolicy added in v1.5.1

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
}

Contains the output of ModifyListener.

func (ModifyListenerOutput) GoString

func (s ModifyListenerOutput) GoString() string

GoString returns the string representation

func (*ModifyListenerOutput) SetListeners added in v1.5.1

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 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
}

Contains the parameters for ModifyLoadBalancerAttributes.

func (ModifyLoadBalancerAttributesInput) GoString

GoString returns the string representation

func (*ModifyLoadBalancerAttributesInput) SetAttributes added in v1.5.1

SetAttributes sets the Attributes field's value.

func (*ModifyLoadBalancerAttributesInput) SetLoadBalancerArn added in v1.5.1

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
}

Contains the output of ModifyLoadBalancerAttributes.

func (ModifyLoadBalancerAttributesOutput) GoString

GoString returns the string representation

func (*ModifyLoadBalancerAttributesOutput) SetAttributes added in v1.5.1

SetAttributes sets the Attributes field's value.

func (ModifyLoadBalancerAttributesOutput) String

String returns the string representation

type ModifyRuleInput

type ModifyRuleInput struct {

	// The actions.
	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
}

Contains the parameters for ModifyRules.

func (ModifyRuleInput) GoString

func (s ModifyRuleInput) GoString() string

GoString returns the string representation

func (*ModifyRuleInput) SetActions added in v1.5.1

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

SetActions sets the Actions field's value.

func (*ModifyRuleInput) SetConditions added in v1.5.1

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

SetConditions sets the Conditions field's value.

func (*ModifyRuleInput) SetRuleArn added in v1.5.1

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
}

Contains the output of ModifyRules.

func (ModifyRuleOutput) GoString

func (s ModifyRuleOutput) GoString() string

GoString returns the string representation

func (*ModifyRuleOutput) SetRules added in v1.5.1

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 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
}

Contains the parameters for ModifyTargetGroupAttributes.

func (ModifyTargetGroupAttributesInput) GoString

GoString returns the string representation

func (*ModifyTargetGroupAttributesInput) SetAttributes added in v1.5.1

SetAttributes sets the Attributes field's value.

func (*ModifyTargetGroupAttributesInput) SetTargetGroupArn added in v1.5.1

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
}

Contains the output of ModifyTargetGroupAttributes.

func (ModifyTargetGroupAttributesOutput) GoString

GoString returns the string representation

func (*ModifyTargetGroupAttributesOutput) SetAttributes added in v1.5.1

SetAttributes sets the Attributes field's value.

func (ModifyTargetGroupAttributesOutput) String

String returns the string representation

type ModifyTargetGroupInput

type ModifyTargetGroupInput struct {

	// The approximate amount of time, in seconds, between health checks of an individual
	// target.
	HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"`

	// The ping path that is 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 *string `type:"string" enum:"ProtocolEnum"`

	// 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 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.
	UnhealthyThresholdCount *int64 `min:"2" type:"integer"`
	// contains filtered or unexported fields
}

Contains the parameters for ModifyTargetGroup.

func (ModifyTargetGroupInput) GoString

func (s ModifyTargetGroupInput) GoString() string

GoString returns the string representation

func (*ModifyTargetGroupInput) SetHealthCheckIntervalSeconds added in v1.5.1

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

SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value.

func (*ModifyTargetGroupInput) SetHealthCheckPath added in v1.5.1

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

SetHealthCheckPath sets the HealthCheckPath field's value.

func (*ModifyTargetGroupInput) SetHealthCheckPort added in v1.5.1

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

SetHealthCheckPort sets the HealthCheckPort field's value.

func (*ModifyTargetGroupInput) SetHealthCheckProtocol added in v1.5.1

func (s *ModifyTargetGroupInput) SetHealthCheckProtocol(v string) *ModifyTargetGroupInput

SetHealthCheckProtocol sets the HealthCheckProtocol field's value.

func (*ModifyTargetGroupInput) SetHealthCheckTimeoutSeconds added in v1.5.1

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

SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value.

func (*ModifyTargetGroupInput) SetHealthyThresholdCount added in v1.5.1

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

SetHealthyThresholdCount sets the HealthyThresholdCount field's value.

func (*ModifyTargetGroupInput) SetMatcher added in v1.5.1

SetMatcher sets the Matcher field's value.

func (*ModifyTargetGroupInput) SetTargetGroupArn added in v1.5.1

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

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*ModifyTargetGroupInput) SetUnhealthyThresholdCount added in v1.5.1

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
}

Contains the output of ModifyTargetGroup.

func (ModifyTargetGroupOutput) GoString

func (s ModifyTargetGroupOutput) GoString() string

GoString returns the string representation

func (*ModifyTargetGroupOutput) SetTargetGroups added in v1.5.1

SetTargetGroups sets the TargetGroups field's value.

func (ModifyTargetGroupOutput) String

func (s ModifyTargetGroupOutput) String() string

String returns the string representation

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. The default port for a target is the port for the target group.
	// You can specify a port override. If a target is already registered, you can
	// register it again using a different port.
	//
	// Targets is a required field
	Targets []*TargetDescription `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for RegisterTargets.

func (RegisterTargetsInput) GoString

func (s RegisterTargetsInput) GoString() string

GoString returns the string representation

func (*RegisterTargetsInput) SetTargetGroupArn added in v1.5.1

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

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*RegisterTargetsInput) SetTargets added in v1.5.1

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
}

Contains the output of RegisterTargets.

func (RegisterTargetsOutput) GoString

func (s RegisterTargetsOutput) GoString() string

GoString returns the string representation

func (RegisterTargetsOutput) String

func (s RegisterTargetsOutput) String() string

String returns the string representation

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
}

Contains the parameters for RemoveTags.

func (RemoveTagsInput) GoString

func (s RemoveTagsInput) GoString() string

GoString returns the string representation

func (*RemoveTagsInput) SetResourceArns added in v1.5.1

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

SetResourceArns sets the ResourceArns field's value.

func (*RemoveTagsInput) SetTagKeys added in v1.5.1

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
}

Contains the output of RemoveTags.

func (RemoveTagsOutput) GoString

func (s RemoveTagsOutput) GoString() string

GoString returns the string representation

func (RemoveTagsOutput) String

func (s RemoveTagsOutput) String() string

String returns the string representation

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.

func (Rule) GoString

func (s Rule) GoString() string

GoString returns the string representation

func (*Rule) SetActions added in v1.5.1

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

SetActions sets the Actions field's value.

func (*Rule) SetConditions added in v1.5.1

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

SetConditions sets the Conditions field's value.

func (*Rule) SetIsDefault added in v1.5.1

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

SetIsDefault sets the IsDefault field's value.

func (*Rule) SetPriority added in v1.5.1

func (s *Rule) SetPriority(v string) *Rule

SetPriority sets the Priority field's value.

func (*Rule) SetRuleArn added in v1.5.1

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 only possible value is path-pattern.
	Field *string `type:"string"`

	// The path pattern. You can specify a single path pattern.
	//
	// A path pattern is case sensitive, can be up to 255 characters in length,
	// and can contain any of the following 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.

func (RuleCondition) GoString

func (s RuleCondition) GoString() string

GoString returns the string representation

func (*RuleCondition) SetField added in v1.5.1

func (s *RuleCondition) SetField(v string) *RuleCondition

SetField sets the Field field's value.

func (*RuleCondition) SetValues added in v1.5.1

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.

func (RulePriorityPair) GoString

func (s RulePriorityPair) GoString() string

GoString returns the string representation

func (*RulePriorityPair) SetPriority added in v1.5.1

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

SetPriority sets the Priority field's value.

func (*RulePriorityPair) SetRuleArn added in v1.5.1

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 SetRulePrioritiesInput

type SetRulePrioritiesInput struct {

	// The rule priorities.
	//
	// RulePriorities is a required field
	RulePriorities []*RulePriorityPair `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for SetRulePriorities.

func (SetRulePrioritiesInput) GoString

func (s SetRulePrioritiesInput) GoString() string

GoString returns the string representation

func (*SetRulePrioritiesInput) SetRulePriorities added in v1.5.1

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
}

Contains the output of SetRulePriorities.

func (SetRulePrioritiesOutput) GoString

func (s SetRulePrioritiesOutput) GoString() string

GoString returns the string representation

func (*SetRulePrioritiesOutput) SetRules added in v1.5.1

SetRules sets the Rules field's value.

func (SetRulePrioritiesOutput) String

func (s SetRulePrioritiesOutput) String() string

String returns the string representation

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
}

Contains the parameters for SetSecurityGroups.

func (SetSecurityGroupsInput) GoString

func (s SetSecurityGroupsInput) GoString() string

GoString returns the string representation

func (*SetSecurityGroupsInput) SetLoadBalancerArn added in v1.5.1

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*SetSecurityGroupsInput) SetSecurityGroups added in v1.5.1

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
}

Contains the output of SetSecurityGroups.

func (SetSecurityGroupsOutput) GoString

func (s SetSecurityGroupsOutput) GoString() string

GoString returns the string representation

func (*SetSecurityGroupsOutput) SetSecurityGroupIds added in v1.5.1

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 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 at least two subnets. You can add
	// only one subnet per Availability Zone.
	//
	// Subnets is a required field
	Subnets []*string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for SetSubnets.

func (SetSubnetsInput) GoString

func (s SetSubnetsInput) GoString() string

GoString returns the string representation

func (*SetSubnetsInput) SetLoadBalancerArn added in v1.5.1

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*SetSubnetsInput) SetSubnets added in v1.5.1

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
}

Contains the output of SetSubnets.

func (SetSubnetsOutput) GoString

func (s SetSubnetsOutput) GoString() string

GoString returns the string representation

func (*SetSubnetsOutput) SetAvailabilityZones added in v1.5.1

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 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.

func (SslPolicy) GoString

func (s SslPolicy) GoString() string

GoString returns the string representation

func (*SslPolicy) SetCiphers added in v1.5.1

func (s *SslPolicy) SetCiphers(v []*Cipher) *SslPolicy

SetCiphers sets the Ciphers field's value.

func (*SslPolicy) SetName added in v1.5.1

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

SetName sets the Name field's value.

func (*SslPolicy) SetSslProtocols added in v1.5.1

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 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.

func (Tag) GoString

func (s Tag) GoString() string

GoString returns the string representation

func (*Tag) SetKey added in v1.5.1

func (s *Tag) SetKey(v string) *Tag

SetKey sets the Key field's value.

func (*Tag) SetValue added in v1.5.1

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.

func (TagDescription) GoString

func (s TagDescription) GoString() string

GoString returns the string representation

func (*TagDescription) SetResourceArn added in v1.5.1

func (s *TagDescription) SetResourceArn(v string) *TagDescription

SetResourceArn sets the ResourceArn field's value.

func (*TagDescription) SetTags added in v1.5.1

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 {

	// The ID of the target.
	//
	// 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.

func (TargetDescription) GoString

func (s TargetDescription) GoString() string

GoString returns the string representation

func (*TargetDescription) SetId added in v1.5.1

SetId sets the Id field's value.

func (*TargetDescription) SetPort added in v1.5.1

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 *string `type:"string" enum:"ProtocolEnum"`

	// 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 *string `type:"string" enum:"ProtocolEnum"`

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

	// The name of the target group.
	TargetGroupName *string `type:"string"`

	// 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.

func (TargetGroup) GoString

func (s TargetGroup) GoString() string

GoString returns the string representation

func (*TargetGroup) SetHealthCheckIntervalSeconds added in v1.5.1

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

SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value.

func (*TargetGroup) SetHealthCheckPath added in v1.5.1

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

SetHealthCheckPath sets the HealthCheckPath field's value.

func (*TargetGroup) SetHealthCheckPort added in v1.5.1

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

SetHealthCheckPort sets the HealthCheckPort field's value.

func (*TargetGroup) SetHealthCheckProtocol added in v1.5.1

func (s *TargetGroup) SetHealthCheckProtocol(v string) *TargetGroup

SetHealthCheckProtocol sets the HealthCheckProtocol field's value.

func (*TargetGroup) SetHealthCheckTimeoutSeconds added in v1.5.1

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

SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value.

func (*TargetGroup) SetHealthyThresholdCount added in v1.5.1

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

SetHealthyThresholdCount sets the HealthyThresholdCount field's value.

func (*TargetGroup) SetLoadBalancerArns added in v1.5.1

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

SetLoadBalancerArns sets the LoadBalancerArns field's value.

func (*TargetGroup) SetMatcher added in v1.5.1

func (s *TargetGroup) SetMatcher(v *Matcher) *TargetGroup

SetMatcher sets the Matcher field's value.

func (*TargetGroup) SetPort added in v1.5.1

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

SetPort sets the Port field's value.

func (*TargetGroup) SetProtocol added in v1.5.1

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

SetProtocol sets the Protocol field's value.

func (*TargetGroup) SetTargetGroupArn added in v1.5.1

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

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*TargetGroup) SetTargetGroupName added in v1.5.1

func (s *TargetGroup) SetTargetGroupName(v string) *TargetGroup

SetTargetGroupName sets the TargetGroupName field's value.

func (*TargetGroup) SetUnhealthyThresholdCount added in v1.5.1

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

SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value.

func (*TargetGroup) SetVpcId added in v1.5.1

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 - Indicates whether sticky sessions are enabled.
	//    The value is true or false.
	//
	//    * stickiness.type - The type of sticky sessions. The possible value is
	//    lb_cookie.
	//
	//    * stickiness.lb_cookie.duration_seconds - 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.

func (TargetGroupAttribute) GoString

func (s TargetGroupAttribute) GoString() string

GoString returns the string representation

func (*TargetGroupAttribute) SetKey added in v1.5.1

SetKey sets the Key field's value.

func (*TargetGroupAttribute) SetValue added in v1.5.1

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.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 *string `type:"string" enum:"TargetHealthReasonEnum"`

	// The state of the target.
	State *string `type:"string" enum:"TargetHealthStateEnum"`
	// contains filtered or unexported fields
}

Information about the current health of a target.

func (TargetHealth) GoString

func (s TargetHealth) GoString() string

GoString returns the string representation

func (*TargetHealth) SetDescription added in v1.5.1

func (s *TargetHealth) SetDescription(v string) *TargetHealth

SetDescription sets the Description field's value.

func (*TargetHealth) SetReason added in v1.5.1

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

SetReason sets the Reason field's value.

func (*TargetHealth) SetState added in v1.5.1

func (s *TargetHealth) SetState(v string) *TargetHealth

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.

func (TargetHealthDescription) GoString

func (s TargetHealthDescription) GoString() string

GoString returns the string representation

func (*TargetHealthDescription) SetHealthCheckPort added in v1.5.1

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

SetHealthCheckPort sets the HealthCheckPort field's value.

func (*TargetHealthDescription) SetTarget added in v1.5.1

SetTarget sets the Target field's value.

func (*TargetHealthDescription) SetTargetHealth added in v1.5.1

SetTargetHealth sets the TargetHealth field's value.

func (TargetHealthDescription) String

func (s TargetHealthDescription) String() string

String returns the string representation

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