elb

package
v0.7.4-0...-be12c43 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package elb provides a client for Elastic Load Balancing.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLog

type AccessLog struct {
	// The interval for publishing the access logs. You can specify an interval
	// of either 5 minutes or 60 minutes.
	//
	// Default: 60 minutes
	EmitInterval *int64 `type:"integer"`

	// Specifies whether access log is enabled for the load balancer.
	Enabled *bool `type:"boolean" required:"true"`

	// The name of the Amazon S3 bucket where the access logs are stored.
	S3BucketName *string `type:"string"`

	// The logical hierarchy you created for your Amazon S3 bucket, for example
	// my-bucket-prefix/prod. If the prefix is not provided, the log is placed at
	// the root level of the bucket.
	S3BucketPrefix *string `type:"string"`
	// contains filtered or unexported fields
}

Information about the AccessLog attribute.

func (AccessLog) GoString

func (s AccessLog) GoString() string

GoString returns the string representation

func (AccessLog) String

func (s AccessLog) String() string

String returns the string representation

type AddTagsInput

type AddTagsInput struct {
	// The name of the load balancer. You can specify one load balancer only.
	LoadBalancerNames []*string `type:"list" required:"true"`

	// The tags.
	Tags []*Tag `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (AddTagsInput) GoString

func (s AddTagsInput) GoString() string

GoString returns the string representation

func (AddTagsInput) String

func (s AddTagsInput) String() string

String returns the string representation

type AddTagsOutput

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

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 AdditionalAttribute

type AdditionalAttribute struct {
	// This parameter is reserved.
	Key *string `type:"string"`

	// This parameter is reserved.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

This data type is reserved.

func (AdditionalAttribute) GoString

func (s AdditionalAttribute) GoString() string

GoString returns the string representation

func (AdditionalAttribute) String

func (s AdditionalAttribute) String() string

String returns the string representation

type AppCookieStickinessPolicy

type AppCookieStickinessPolicy struct {
	// The name of the application cookie used for stickiness.
	CookieName *string `type:"string"`

	// The mnemonic name for the policy being created. The name must be unique within
	// a set of policies for this load balancer.
	PolicyName *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a policy for application-controlled session stickiness.

func (AppCookieStickinessPolicy) GoString

func (s AppCookieStickinessPolicy) GoString() string

GoString returns the string representation

func (AppCookieStickinessPolicy) String

func (s AppCookieStickinessPolicy) String() string

String returns the string representation

type ApplySecurityGroupsToLoadBalancerInput

type ApplySecurityGroupsToLoadBalancerInput struct {
	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`

	// The IDs of the security groups to associate with the load balancer. Note
	// that you cannot specify the name of the security group.
	SecurityGroups []*string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (ApplySecurityGroupsToLoadBalancerInput) GoString

GoString returns the string representation

func (ApplySecurityGroupsToLoadBalancerInput) String

String returns the string representation

type ApplySecurityGroupsToLoadBalancerOutput

type ApplySecurityGroupsToLoadBalancerOutput struct {
	// The IDs of the security groups associated with the load balancer.
	SecurityGroups []*string `type:"list"`
	// contains filtered or unexported fields
}

func (ApplySecurityGroupsToLoadBalancerOutput) GoString

GoString returns the string representation

func (ApplySecurityGroupsToLoadBalancerOutput) String

String returns the string representation

type AttachLoadBalancerToSubnetsInput

type AttachLoadBalancerToSubnetsInput struct {
	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`

	// The IDs of the subnets to add for the load balancer. You can add only one
	// subnet per Availability Zone.
	Subnets []*string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (AttachLoadBalancerToSubnetsInput) GoString

GoString returns the string representation

func (AttachLoadBalancerToSubnetsInput) String

String returns the string representation

type AttachLoadBalancerToSubnetsOutput

type AttachLoadBalancerToSubnetsOutput struct {
	// The IDs of the subnets attached to the load balancer.
	Subnets []*string `type:"list"`
	// contains filtered or unexported fields
}

func (AttachLoadBalancerToSubnetsOutput) GoString

GoString returns the string representation

func (AttachLoadBalancerToSubnetsOutput) String

String returns the string representation

type BackendServerDescription

type BackendServerDescription struct {
	// The port on which the back-end server is listening.
	InstancePort *int64 `type:"integer"`

	// The names of the policies enabled for the back-end server.
	PolicyNames []*string `type:"list"`
	// contains filtered or unexported fields
}

Information about the configuration of a back-end server.

func (BackendServerDescription) GoString

func (s BackendServerDescription) GoString() string

GoString returns the string representation

func (BackendServerDescription) String

func (s BackendServerDescription) String() string

String returns the string representation

type ConfigureHealthCheckInput

type ConfigureHealthCheckInput struct {
	// The configuration information for the new health check.
	HealthCheck *HealthCheck `type:"structure" required:"true"`

	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ConfigureHealthCheckInput) GoString

func (s ConfigureHealthCheckInput) GoString() string

GoString returns the string representation

func (ConfigureHealthCheckInput) String

func (s ConfigureHealthCheckInput) String() string

String returns the string representation

type ConfigureHealthCheckOutput

type ConfigureHealthCheckOutput struct {
	// The updated health check.
	HealthCheck *HealthCheck `type:"structure"`
	// contains filtered or unexported fields
}

func (ConfigureHealthCheckOutput) GoString

func (s ConfigureHealthCheckOutput) GoString() string

GoString returns the string representation

func (ConfigureHealthCheckOutput) String

String returns the string representation

type ConnectionDraining

type ConnectionDraining struct {
	// Specifies whether connection draining is enabled for the load balancer.
	Enabled *bool `type:"boolean" required:"true"`

	// The maximum time, in seconds, to keep the existing connections open before
	// deregistering the instances.
	Timeout *int64 `type:"integer"`
	// contains filtered or unexported fields
}

Information about the ConnectionDraining attribute.

func (ConnectionDraining) GoString

func (s ConnectionDraining) GoString() string

GoString returns the string representation

func (ConnectionDraining) String

func (s ConnectionDraining) String() string

String returns the string representation

type ConnectionSettings

type ConnectionSettings struct {
	// The time, in seconds, that the connection is allowed to be idle (no data
	// has been sent over the connection) before it is closed by the load balancer.
	IdleTimeout *int64 `type:"integer" required:"true"`
	// contains filtered or unexported fields
}

Information about the ConnectionSettings attribute.

func (ConnectionSettings) GoString

func (s ConnectionSettings) GoString() string

GoString returns the string representation

func (ConnectionSettings) String

func (s ConnectionSettings) String() string

String returns the string representation

type CreateAppCookieStickinessPolicyInput

type CreateAppCookieStickinessPolicyInput struct {
	// The name of the application cookie used for stickiness.
	CookieName *string `type:"string" required:"true"`

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

	// The name of the policy being created. This name must be unique within the
	// set of policies for this load balancer.
	PolicyName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateAppCookieStickinessPolicyInput) GoString

GoString returns the string representation

func (CreateAppCookieStickinessPolicyInput) String

String returns the string representation

type CreateAppCookieStickinessPolicyOutput

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

func (CreateAppCookieStickinessPolicyOutput) GoString

GoString returns the string representation

func (CreateAppCookieStickinessPolicyOutput) String

String returns the string representation

type CreateLBCookieStickinessPolicyInput

type CreateLBCookieStickinessPolicyInput struct {
	// The time period, in seconds, after which the cookie should be considered
	// stale. If you do not specify this parameter, the sticky session lasts for
	// the duration of the browser session.
	CookieExpirationPeriod *int64 `type:"long"`

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

	// The name of the policy being created. This name must be unique within the
	// set of policies for this load balancer.
	PolicyName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateLBCookieStickinessPolicyInput) GoString

GoString returns the string representation

func (CreateLBCookieStickinessPolicyInput) String

String returns the string representation

type CreateLBCookieStickinessPolicyOutput

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

func (CreateLBCookieStickinessPolicyOutput) GoString

GoString returns the string representation

func (CreateLBCookieStickinessPolicyOutput) String

String returns the string representation

type CreateLoadBalancerInput

type CreateLoadBalancerInput struct {
	// One or more Availability Zones from the same region as the load balancer.
	// Traffic is equally distributed across all specified Availability Zones.
	//
	// You must specify at least one Availability Zone.
	//
	// You can add more Availability Zones after you create the load balancer using
	// EnableAvailabilityZonesForLoadBalancer.
	AvailabilityZones []*string `type:"list"`

	// The listeners.
	//
	// For more information, see Listeners for Your Load Balancer (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-listener-config.html)
	// in the Elastic Load Balancing Developer Guide.
	Listeners []*Listener `type:"list" required:"true"`

	// The name of the load balancer.
	//
	// This name must be unique within your AWS account, must have a maximum of
	// 32 characters, must contain only alphanumeric characters or hyphens, and
	// cannot begin or end with a hyphen.
	LoadBalancerName *string `type:"string" required:"true"`

	// The type of a load balancer. Valid only for load balancers in a VPC.
	//
	// By default, Elastic Load Balancing creates an Internet-facing load balancer
	// with a publicly resolvable DNS name, which resolves to public IP addresses.
	// For more information about Internet-facing and Internal load balancers, see
	// Internet-facing and Internal Load Balancers (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/vpc-loadbalancer-types.html)
	// in the Elastic Load Balancing Developer Guide.
	//
	// Specify internal to create an internal load balancer with a DNS name that
	// resolves to private IP addresses.
	Scheme *string `type:"string"`

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

	// The IDs of the subnets in your VPC to attach to the load balancer. Specify
	// one subnet per Availability Zone specified in AvailabilityZones.
	Subnets []*string `type:"list"`

	// A list of tags to assign to the load balancer.
	//
	// For more information about tagging your load balancer, see Tagging (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#tagging-elb)
	// in the Elastic Load Balancing Developer Guide.
	Tags []*Tag `type:"list"`
	// contains filtered or unexported fields
}

func (CreateLoadBalancerInput) GoString

func (s CreateLoadBalancerInput) GoString() string

GoString returns the string representation

func (CreateLoadBalancerInput) String

func (s CreateLoadBalancerInput) String() string

String returns the string representation

type CreateLoadBalancerListenersInput

type CreateLoadBalancerListenersInput struct {
	// The listeners.
	Listeners []*Listener `type:"list" required:"true"`

	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateLoadBalancerListenersInput) GoString

GoString returns the string representation

func (CreateLoadBalancerListenersInput) String

String returns the string representation

type CreateLoadBalancerListenersOutput

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

func (CreateLoadBalancerListenersOutput) GoString

GoString returns the string representation

func (CreateLoadBalancerListenersOutput) String

String returns the string representation

type CreateLoadBalancerOutput

type CreateLoadBalancerOutput struct {
	// The DNS name of the load balancer.
	DNSName *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateLoadBalancerOutput) GoString

func (s CreateLoadBalancerOutput) GoString() string

GoString returns the string representation

func (CreateLoadBalancerOutput) String

func (s CreateLoadBalancerOutput) String() string

String returns the string representation

type CreateLoadBalancerPolicyInput

type CreateLoadBalancerPolicyInput struct {
	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`

	// The attributes for the policy.
	PolicyAttributes []*PolicyAttribute `type:"list"`

	// The name of the load balancer policy to be created. This name must be unique
	// within the set of policies for this load balancer.
	PolicyName *string `type:"string" required:"true"`

	// The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
	PolicyTypeName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateLoadBalancerPolicyInput) GoString

GoString returns the string representation

func (CreateLoadBalancerPolicyInput) String

String returns the string representation

type CreateLoadBalancerPolicyOutput

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

func (CreateLoadBalancerPolicyOutput) GoString

GoString returns the string representation

func (CreateLoadBalancerPolicyOutput) String

String returns the string representation

type CrossZoneLoadBalancing

type CrossZoneLoadBalancing struct {
	// Specifies whether cross-zone load balancing is enabled for the load balancer.
	Enabled *bool `type:"boolean" required:"true"`
	// contains filtered or unexported fields
}

Information about the CrossZoneLoadBalancing attribute.

func (CrossZoneLoadBalancing) GoString

func (s CrossZoneLoadBalancing) GoString() string

GoString returns the string representation

func (CrossZoneLoadBalancing) String

func (s CrossZoneLoadBalancing) String() string

String returns the string representation

type DeleteLoadBalancerInput

type DeleteLoadBalancerInput struct {
	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteLoadBalancerInput) GoString

func (s DeleteLoadBalancerInput) GoString() string

GoString returns the string representation

func (DeleteLoadBalancerInput) String

func (s DeleteLoadBalancerInput) String() string

String returns the string representation

type DeleteLoadBalancerListenersInput

type DeleteLoadBalancerListenersInput struct {
	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`

	// The client port numbers of the listeners.
	LoadBalancerPorts []*int64 `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteLoadBalancerListenersInput) GoString

GoString returns the string representation

func (DeleteLoadBalancerListenersInput) String

String returns the string representation

type DeleteLoadBalancerListenersOutput

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

func (DeleteLoadBalancerListenersOutput) GoString

GoString returns the string representation

func (DeleteLoadBalancerListenersOutput) String

String returns the string representation

type DeleteLoadBalancerOutput

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

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 DeleteLoadBalancerPolicyInput

type DeleteLoadBalancerPolicyInput struct {
	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`

	// The name of the policy.
	PolicyName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

=

func (DeleteLoadBalancerPolicyInput) GoString

GoString returns the string representation

func (DeleteLoadBalancerPolicyInput) String

String returns the string representation

type DeleteLoadBalancerPolicyOutput

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

func (DeleteLoadBalancerPolicyOutput) GoString

GoString returns the string representation

func (DeleteLoadBalancerPolicyOutput) String

String returns the string representation

type DeregisterInstancesFromLoadBalancerInput

type DeregisterInstancesFromLoadBalancerInput struct {
	// The IDs of the instances.
	Instances []*Instance `type:"list" required:"true"`

	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeregisterInstancesFromLoadBalancerInput) GoString

GoString returns the string representation

func (DeregisterInstancesFromLoadBalancerInput) String

String returns the string representation

type DeregisterInstancesFromLoadBalancerOutput

type DeregisterInstancesFromLoadBalancerOutput struct {
	// The remaining instances registered with the load balancer.
	Instances []*Instance `type:"list"`
	// contains filtered or unexported fields
}

func (DeregisterInstancesFromLoadBalancerOutput) GoString

GoString returns the string representation

func (DeregisterInstancesFromLoadBalancerOutput) String

String returns the string representation

type DescribeInstanceHealthInput

type DescribeInstanceHealthInput struct {
	// The IDs of the instances.
	Instances []*Instance `type:"list"`

	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeInstanceHealthInput) GoString

func (s DescribeInstanceHealthInput) GoString() string

GoString returns the string representation

func (DescribeInstanceHealthInput) String

String returns the string representation

type DescribeInstanceHealthOutput

type DescribeInstanceHealthOutput struct {
	// Information about the health of the instances.
	InstanceStates []*InstanceState `type:"list"`
	// contains filtered or unexported fields
}

func (DescribeInstanceHealthOutput) GoString

func (s DescribeInstanceHealthOutput) GoString() string

GoString returns the string representation

func (DescribeInstanceHealthOutput) String

String returns the string representation

type DescribeLoadBalancerAttributesInput

type DescribeLoadBalancerAttributesInput struct {
	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeLoadBalancerAttributesInput) GoString

GoString returns the string representation

func (DescribeLoadBalancerAttributesInput) String

String returns the string representation

type DescribeLoadBalancerAttributesOutput

type DescribeLoadBalancerAttributesOutput struct {
	// Information about the load balancer attributes.
	LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeLoadBalancerAttributesOutput) GoString

GoString returns the string representation

func (DescribeLoadBalancerAttributesOutput) String

String returns the string representation

type DescribeLoadBalancerPoliciesInput

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

	// The names of the policies.
	PolicyNames []*string `type:"list"`
	// contains filtered or unexported fields
}

func (DescribeLoadBalancerPoliciesInput) GoString

GoString returns the string representation

func (DescribeLoadBalancerPoliciesInput) String

String returns the string representation

type DescribeLoadBalancerPoliciesOutput

type DescribeLoadBalancerPoliciesOutput struct {
	// Information about the policies.
	PolicyDescriptions []*PolicyDescription `type:"list"`
	// contains filtered or unexported fields
}

func (DescribeLoadBalancerPoliciesOutput) GoString

GoString returns the string representation

func (DescribeLoadBalancerPoliciesOutput) String

String returns the string representation

type DescribeLoadBalancerPolicyTypesInput

type DescribeLoadBalancerPolicyTypesInput struct {
	// The names of the policy types. If no names are specified, describes all policy
	// types defined by Elastic Load Balancing.
	PolicyTypeNames []*string `type:"list"`
	// contains filtered or unexported fields
}

func (DescribeLoadBalancerPolicyTypesInput) GoString

GoString returns the string representation

func (DescribeLoadBalancerPolicyTypesInput) String

String returns the string representation

type DescribeLoadBalancerPolicyTypesOutput

type DescribeLoadBalancerPolicyTypesOutput struct {
	// Information about the policy types.
	PolicyTypeDescriptions []*PolicyTypeDescription `type:"list"`
	// contains filtered or unexported fields
}

func (DescribeLoadBalancerPolicyTypesOutput) GoString

GoString returns the string representation

func (DescribeLoadBalancerPolicyTypesOutput) String

String returns the string representation

type DescribeLoadBalancersInput

type DescribeLoadBalancersInput struct {
	// The names of the load balancers.
	LoadBalancerNames []*string `type:"list"`

	// 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 (a number from 1 to
	// 400). The default is 400.
	PageSize *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (DescribeLoadBalancersInput) GoString

func (s DescribeLoadBalancersInput) GoString() string

GoString returns the string representation

func (DescribeLoadBalancersInput) String

String returns the string representation

type DescribeLoadBalancersOutput

type DescribeLoadBalancersOutput struct {
	// Information about the load balancers.
	LoadBalancerDescriptions []*LoadBalancerDescription `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
}

func (DescribeLoadBalancersOutput) GoString

func (s DescribeLoadBalancersOutput) GoString() string

GoString returns the string representation

func (DescribeLoadBalancersOutput) String

String returns the string representation

type DescribeTagsInput

type DescribeTagsInput struct {
	// The names of the load balancers.
	LoadBalancerNames []*string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeTagsInput) GoString

func (s DescribeTagsInput) GoString() string

GoString returns the string representation

func (DescribeTagsInput) String

func (s DescribeTagsInput) String() string

String returns the string representation

type DescribeTagsOutput

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

func (DescribeTagsOutput) GoString

func (s DescribeTagsOutput) GoString() string

GoString returns the string representation

func (DescribeTagsOutput) String

func (s DescribeTagsOutput) String() string

String returns the string representation

type DetachLoadBalancerFromSubnetsInput

type DetachLoadBalancerFromSubnetsInput struct {
	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`

	// The IDs of the subnets.
	Subnets []*string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (DetachLoadBalancerFromSubnetsInput) GoString

GoString returns the string representation

func (DetachLoadBalancerFromSubnetsInput) String

String returns the string representation

type DetachLoadBalancerFromSubnetsOutput

type DetachLoadBalancerFromSubnetsOutput struct {
	// The IDs of the remaining subnets for the load balancer.
	Subnets []*string `type:"list"`
	// contains filtered or unexported fields
}

func (DetachLoadBalancerFromSubnetsOutput) GoString

GoString returns the string representation

func (DetachLoadBalancerFromSubnetsOutput) String

String returns the string representation

type DisableAvailabilityZonesForLoadBalancerInput

type DisableAvailabilityZonesForLoadBalancerInput struct {
	// The Availability Zones.
	AvailabilityZones []*string `type:"list" required:"true"`

	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DisableAvailabilityZonesForLoadBalancerInput) GoString

GoString returns the string representation

func (DisableAvailabilityZonesForLoadBalancerInput) String

String returns the string representation

type DisableAvailabilityZonesForLoadBalancerOutput

type DisableAvailabilityZonesForLoadBalancerOutput struct {
	// The remaining Availability Zones for the load balancer.
	AvailabilityZones []*string `type:"list"`
	// contains filtered or unexported fields
}

func (DisableAvailabilityZonesForLoadBalancerOutput) GoString

GoString returns the string representation

func (DisableAvailabilityZonesForLoadBalancerOutput) String

String returns the string representation

type ELB

type ELB struct {
	*service.Service
}

Elastic Load Balancing distributes incoming traffic across your EC2 instances.

For information about the features of Elastic Load Balancing, see What Is Elastic Load Balancing? (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elastic-load-balancing.html) in the Elastic Load Balancing Developer Guide.

For information about the AWS regions supported by Elastic Load Balancing, see Regions and Endpoints - Elastic Load Balancing (http://docs.aws.amazon.com/general/latest/gr/rande.html#elb_region) in the Amazon Web Services General Reference.

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

func New

func New(config *aws.Config) *ELB

New returns a new ELB client.

func (*ELB) AddTags

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

Adds the specified tags to the specified load balancer. Each load balancer can have a maximum of 10 tags.

Each tag consists of a key and an optional value. If a tag with the same key is already associated with the load balancer, AddTags updates its value.

For more information, see Tag Your Load Balancer (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/add-remove-tags.html) in the Elastic Load Balancing Developer Guide.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) AddTagsRequest

func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *service.Request, output *AddTagsOutput)

AddTagsRequest generates a request for the AddTags operation.

func (*ELB) ApplySecurityGroupsToLoadBalancer

func (c *ELB) ApplySecurityGroupsToLoadBalancer(input *ApplySecurityGroupsToLoadBalancerInput) (*ApplySecurityGroupsToLoadBalancerOutput, error)

Associates one or more security groups with your load balancer in a virtual private cloud (VPC). The specified security groups override the previously associated security groups.

For more information, see Security Groups for Load Balancers in a VPC (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-security-groups.html#elb-vpc-security-groups) in the Elastic Load Balancing Developer Guide.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.ApplySecurityGroupsToLoadBalancerInput{
		LoadBalancerName: aws.String("AccessPointName"), // Required
		SecurityGroups: []*string{ // Required
			aws.String("SecurityGroupId"), // Required
			// More values...
		},
	}
	resp, err := svc.ApplySecurityGroupsToLoadBalancer(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) ApplySecurityGroupsToLoadBalancerRequest

func (c *ELB) ApplySecurityGroupsToLoadBalancerRequest(input *ApplySecurityGroupsToLoadBalancerInput) (req *service.Request, output *ApplySecurityGroupsToLoadBalancerOutput)

ApplySecurityGroupsToLoadBalancerRequest generates a request for the ApplySecurityGroupsToLoadBalancer operation.

func (*ELB) AttachLoadBalancerToSubnets

func (c *ELB) AttachLoadBalancerToSubnets(input *AttachLoadBalancerToSubnetsInput) (*AttachLoadBalancerToSubnetsOutput, error)

Adds one or more subnets to the set of configured subnets for the specified load balancer.

The load balancer evenly distributes requests across all registered subnets. For more information, see Add or Remove Subnets for Your Load Balancer in a VPC (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-manage-subnets.html) in the Elastic Load Balancing Developer Guide.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.AttachLoadBalancerToSubnetsInput{
		LoadBalancerName: aws.String("AccessPointName"), // Required
		Subnets: []*string{ // Required
			aws.String("SubnetId"), // Required
			// More values...
		},
	}
	resp, err := svc.AttachLoadBalancerToSubnets(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) AttachLoadBalancerToSubnetsRequest

func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubnetsInput) (req *service.Request, output *AttachLoadBalancerToSubnetsOutput)

AttachLoadBalancerToSubnetsRequest generates a request for the AttachLoadBalancerToSubnets operation.

func (*ELB) ConfigureHealthCheck

func (c *ELB) ConfigureHealthCheck(input *ConfigureHealthCheckInput) (*ConfigureHealthCheckOutput, error)

Specifies the health check settings to use when evaluating the health state of your back-end instances.

For more information, see Configure Health Checks (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-healthchecks.html) in the Elastic Load Balancing Developer Guide.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.ConfigureHealthCheckInput{
		HealthCheck: &elb.HealthCheck{ // Required
			HealthyThreshold:   aws.Int64(1),                    // Required
			Interval:           aws.Int64(1),                    // Required
			Target:             aws.String("HealthCheckTarget"), // Required
			Timeout:            aws.Int64(1),                    // Required
			UnhealthyThreshold: aws.Int64(1),                    // Required
		},
		LoadBalancerName: aws.String("AccessPointName"), // Required
	}
	resp, err := svc.ConfigureHealthCheck(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) ConfigureHealthCheckRequest

func (c *ELB) ConfigureHealthCheckRequest(input *ConfigureHealthCheckInput) (req *service.Request, output *ConfigureHealthCheckOutput)

ConfigureHealthCheckRequest generates a request for the ConfigureHealthCheck operation.

func (*ELB) CreateAppCookieStickinessPolicy

func (c *ELB) CreateAppCookieStickinessPolicy(input *CreateAppCookieStickinessPolicyInput) (*CreateAppCookieStickinessPolicyOutput, error)

Generates a stickiness policy with sticky session lifetimes that follow that of an application-generated cookie. This policy can be associated only with HTTP/HTTPS listeners.

This policy is similar to the policy created by CreateLBCookieStickinessPolicy, except that the lifetime of the special Elastic Load Balancing cookie, AWSELB, follows the lifetime of the application-generated cookie specified in the policy configuration. The load balancer only inserts a new stickiness cookie when the application response includes a new application cookie.

If the application cookie is explicitly removed or expires, the session stops being sticky until a new application cookie is issued.

For more information, see Application-Controlled Session Stickiness (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-sticky-sessions.html#enable-sticky-sessions-application) in the Elastic Load Balancing Developer Guide.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.CreateAppCookieStickinessPolicyInput{
		CookieName:       aws.String("CookieName"),      // Required
		LoadBalancerName: aws.String("AccessPointName"), // Required
		PolicyName:       aws.String("PolicyName"),      // Required
	}
	resp, err := svc.CreateAppCookieStickinessPolicy(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) CreateAppCookieStickinessPolicyRequest

func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStickinessPolicyInput) (req *service.Request, output *CreateAppCookieStickinessPolicyOutput)

CreateAppCookieStickinessPolicyRequest generates a request for the CreateAppCookieStickinessPolicy operation.

func (*ELB) CreateLBCookieStickinessPolicy

func (c *ELB) CreateLBCookieStickinessPolicy(input *CreateLBCookieStickinessPolicyInput) (*CreateLBCookieStickinessPolicyOutput, error)

Generates a stickiness policy with sticky session lifetimes controlled by the lifetime of the browser (user-agent) or a specified expiration period. This policy can be associated only with HTTP/HTTPS listeners.

When a load balancer implements this policy, the load balancer uses a special cookie to track the back-end server instance for each request. When the load balancer receives a request, it first checks to see if this cookie is present in the request. If so, the load balancer sends the request to the application server specified in the cookie. If not, the load balancer sends the request to a server that is chosen based on the existing load-balancing algorithm.

A cookie is inserted into the response for binding subsequent requests from the same user to that server. The validity of the cookie is based on the cookie expiration time, which is specified in the policy configuration.

For more information, see Duration-Based Session Stickiness (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-sticky-sessions.html#enable-sticky-sessions-duration) in the Elastic Load Balancing Developer Guide.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.CreateLBCookieStickinessPolicyInput{
		LoadBalancerName:       aws.String("AccessPointName"), // Required
		PolicyName:             aws.String("PolicyName"),      // Required
		CookieExpirationPeriod: aws.Int64(1),
	}
	resp, err := svc.CreateLBCookieStickinessPolicy(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) CreateLBCookieStickinessPolicyRequest

func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickinessPolicyInput) (req *service.Request, output *CreateLBCookieStickinessPolicyOutput)

CreateLBCookieStickinessPolicyRequest generates a request for the CreateLBCookieStickinessPolicy operation.

func (*ELB) CreateLoadBalancer

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

Creates a load balancer.

If the call completes successfully, a new load balancer is created with a unique Domain Name Service (DNS) name. The load balancer receives incoming traffic and routes it to the registered instances. For more information, see How Elastic Load Balancing Works (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/how-elb-works.html) in the Elastic Load Balancing Developer Guide.

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 Elastic Load Balancing Limits (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-limits.html) in the Elastic Load Balancing Developer Guide.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.CreateLoadBalancerInput{
		Listeners: []*elb.Listener{ // Required
			{ // Required
				InstancePort:     aws.Int64(1),           // Required
				LoadBalancerPort: aws.Int64(1),           // Required
				Protocol:         aws.String("Protocol"), // Required
				InstanceProtocol: aws.String("Protocol"),
				SSLCertificateID: aws.String("SSLCertificateId"),
			},
			// More values...
		},
		LoadBalancerName: aws.String("AccessPointName"), // Required
		AvailabilityZones: []*string{
			aws.String("AvailabilityZone"), // Required
			// More values...
		},
		Scheme: aws.String("LoadBalancerScheme"),
		SecurityGroups: []*string{
			aws.String("SecurityGroupId"), // Required
			// More values...
		},
		Subnets: []*string{
			aws.String("SubnetId"), // Required
			// More values...
		},
		Tags: []*elb.Tag{
			{ // Required
				Key:   aws.String("TagKey"), // Required
				Value: aws.String("TagValue"),
			},
			// More values...
		},
	}
	resp, err := svc.CreateLoadBalancer(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) CreateLoadBalancerListeners

func (c *ELB) CreateLoadBalancerListeners(input *CreateLoadBalancerListenersInput) (*CreateLoadBalancerListenersOutput, error)

Creates one or more listeners for the specified load balancer. If a listener with the specified port does not already exist, it is created; otherwise, the properties of the new listener must match the properties of the existing listener.

For more information, see Add a Listener to Your Load Balancer (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/us-add-listener.html) in the Elastic Load Balancing Developer Guide.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.CreateLoadBalancerListenersInput{
		Listeners: []*elb.Listener{ // Required
			{ // Required
				InstancePort:     aws.Int64(1),           // Required
				LoadBalancerPort: aws.Int64(1),           // Required
				Protocol:         aws.String("Protocol"), // Required
				InstanceProtocol: aws.String("Protocol"),
				SSLCertificateID: aws.String("SSLCertificateId"),
			},
			// More values...
		},
		LoadBalancerName: aws.String("AccessPointName"), // Required
	}
	resp, err := svc.CreateLoadBalancerListeners(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) CreateLoadBalancerListenersRequest

func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListenersInput) (req *service.Request, output *CreateLoadBalancerListenersOutput)

CreateLoadBalancerListenersRequest generates a request for the CreateLoadBalancerListeners operation.

func (*ELB) CreateLoadBalancerPolicy

func (c *ELB) CreateLoadBalancerPolicy(input *CreateLoadBalancerPolicyInput) (*CreateLoadBalancerPolicyOutput, error)

Creates a policy with the specified attributes for the specified load balancer.

Policies are settings that are saved for your load balancer and that can be applied to the front-end listener or the back-end application server, depending on the policy type.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.CreateLoadBalancerPolicyInput{
		LoadBalancerName: aws.String("AccessPointName"), // Required
		PolicyName:       aws.String("PolicyName"),      // Required
		PolicyTypeName:   aws.String("PolicyTypeName"),  // Required
		PolicyAttributes: []*elb.PolicyAttribute{
			{ // Required
				AttributeName:  aws.String("AttributeName"),
				AttributeValue: aws.String("AttributeValue"),
			},
			// More values...
		},
	}
	resp, err := svc.CreateLoadBalancerPolicy(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) CreateLoadBalancerPolicyRequest

func (c *ELB) CreateLoadBalancerPolicyRequest(input *CreateLoadBalancerPolicyInput) (req *service.Request, output *CreateLoadBalancerPolicyOutput)

CreateLoadBalancerPolicyRequest generates a request for the CreateLoadBalancerPolicy operation.

func (*ELB) CreateLoadBalancerRequest

func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *service.Request, output *CreateLoadBalancerOutput)

CreateLoadBalancerRequest generates a request for the CreateLoadBalancer operation.

func (*ELB) DeleteLoadBalancer

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

Deletes the specified load balancer.

If you are attempting to recreate a load balancer, you must reconfigure all settings. The DNS name associated with a deleted load balancer are no longer usable. The name and associated DNS record of the deleted load balancer no longer exist and traffic sent to any of its IP addresses is no longer delivered to back-end instances.

If the load balancer does not exist or has already been deleted, the call to DeleteLoadBalancer still succeeds.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) DeleteLoadBalancerListeners

func (c *ELB) DeleteLoadBalancerListeners(input *DeleteLoadBalancerListenersInput) (*DeleteLoadBalancerListenersOutput, error)

Deletes the specified listeners from the specified load balancer.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.DeleteLoadBalancerListenersInput{
		LoadBalancerName: aws.String("AccessPointName"), // Required
		LoadBalancerPorts: []*int64{ // Required
			aws.Int64(1), // Required
			// More values...
		},
	}
	resp, err := svc.DeleteLoadBalancerListeners(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) DeleteLoadBalancerListenersRequest

func (c *ELB) DeleteLoadBalancerListenersRequest(input *DeleteLoadBalancerListenersInput) (req *service.Request, output *DeleteLoadBalancerListenersOutput)

DeleteLoadBalancerListenersRequest generates a request for the DeleteLoadBalancerListeners operation.

func (*ELB) DeleteLoadBalancerPolicy

func (c *ELB) DeleteLoadBalancerPolicy(input *DeleteLoadBalancerPolicyInput) (*DeleteLoadBalancerPolicyOutput, error)

Deletes the specified policy from the specified load balancer. This policy must not be enabled for any listeners.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.DeleteLoadBalancerPolicyInput{
		LoadBalancerName: aws.String("AccessPointName"), // Required
		PolicyName:       aws.String("PolicyName"),      // Required
	}
	resp, err := svc.DeleteLoadBalancerPolicy(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) DeleteLoadBalancerPolicyRequest

func (c *ELB) DeleteLoadBalancerPolicyRequest(input *DeleteLoadBalancerPolicyInput) (req *service.Request, output *DeleteLoadBalancerPolicyOutput)

DeleteLoadBalancerPolicyRequest generates a request for the DeleteLoadBalancerPolicy operation.

func (*ELB) DeleteLoadBalancerRequest

func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *service.Request, output *DeleteLoadBalancerOutput)

DeleteLoadBalancerRequest generates a request for the DeleteLoadBalancer operation.

func (*ELB) DeregisterInstancesFromLoadBalancer

func (c *ELB) DeregisterInstancesFromLoadBalancer(input *DeregisterInstancesFromLoadBalancerInput) (*DeregisterInstancesFromLoadBalancerOutput, error)

Deregisters the specified instances from the specified load balancer. After the instance is deregistered, it no longer receives traffic from the load balancer.

You can use DescribeLoadBalancers to verify that the instance is deregistered from the load balancer.

For more information, see Deregister and Register Amazon EC2 Instances (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_DeReg_Reg_Instances.html) in the Elastic Load Balancing Developer Guide.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.DeregisterInstancesFromLoadBalancerInput{
		Instances: []*elb.Instance{ // Required
			{ // Required
				InstanceID: aws.String("InstanceId"),
			},
			// More values...
		},
		LoadBalancerName: aws.String("AccessPointName"), // Required
	}
	resp, err := svc.DeregisterInstancesFromLoadBalancer(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) DeregisterInstancesFromLoadBalancerRequest

func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstancesFromLoadBalancerInput) (req *service.Request, output *DeregisterInstancesFromLoadBalancerOutput)

DeregisterInstancesFromLoadBalancerRequest generates a request for the DeregisterInstancesFromLoadBalancer operation.

func (*ELB) DescribeInstanceHealth

func (c *ELB) DescribeInstanceHealth(input *DescribeInstanceHealthInput) (*DescribeInstanceHealthOutput, error)

Describes the state of the specified instances registered with the specified load balancer. If no instances are specified, the call describes the state of all instances registered with the load balancer, not including any terminated instances.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.DescribeInstanceHealthInput{
		LoadBalancerName: aws.String("AccessPointName"), // Required
		Instances: []*elb.Instance{
			{ // Required
				InstanceID: aws.String("InstanceId"),
			},
			// More values...
		},
	}
	resp, err := svc.DescribeInstanceHealth(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) DescribeInstanceHealthRequest

func (c *ELB) DescribeInstanceHealthRequest(input *DescribeInstanceHealthInput) (req *service.Request, output *DescribeInstanceHealthOutput)

DescribeInstanceHealthRequest generates a request for the DescribeInstanceHealth operation.

func (*ELB) DescribeLoadBalancerAttributes

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

Describes the attributes for the specified load balancer.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) DescribeLoadBalancerAttributesRequest

func (c *ELB) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerAttributesInput) (req *service.Request, output *DescribeLoadBalancerAttributesOutput)

DescribeLoadBalancerAttributesRequest generates a request for the DescribeLoadBalancerAttributes operation.

func (*ELB) DescribeLoadBalancerPolicies

func (c *ELB) DescribeLoadBalancerPolicies(input *DescribeLoadBalancerPoliciesInput) (*DescribeLoadBalancerPoliciesOutput, error)

Describes the specified policies.

If you specify a load balancer name, the action returns the descriptions of all policies created for the load balancer. If you specify a policy name associated with your load balancer, the action returns the description of that policy. If you don't specify a load balancer name, the action returns descriptions of the specified sample policies, or descriptions of all sample policies. The names of the sample policies have the ELBSample- prefix.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.DescribeLoadBalancerPoliciesInput{
		LoadBalancerName: aws.String("AccessPointName"),
		PolicyNames: []*string{
			aws.String("PolicyName"), // Required
			// More values...
		},
	}
	resp, err := svc.DescribeLoadBalancerPolicies(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) DescribeLoadBalancerPoliciesRequest

func (c *ELB) DescribeLoadBalancerPoliciesRequest(input *DescribeLoadBalancerPoliciesInput) (req *service.Request, output *DescribeLoadBalancerPoliciesOutput)

DescribeLoadBalancerPoliciesRequest generates a request for the DescribeLoadBalancerPolicies operation.

func (*ELB) DescribeLoadBalancerPolicyTypes

func (c *ELB) DescribeLoadBalancerPolicyTypes(input *DescribeLoadBalancerPolicyTypesInput) (*DescribeLoadBalancerPolicyTypesOutput, error)

Describes the specified load balancer policy types.

You can use these policy types with CreateLoadBalancerPolicy to create policy configurations for a load balancer.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.DescribeLoadBalancerPolicyTypesInput{
		PolicyTypeNames: []*string{
			aws.String("PolicyTypeName"), // Required
			// More values...
		},
	}
	resp, err := svc.DescribeLoadBalancerPolicyTypes(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) DescribeLoadBalancerPolicyTypesRequest

func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancerPolicyTypesInput) (req *service.Request, output *DescribeLoadBalancerPolicyTypesOutput)

DescribeLoadBalancerPolicyTypesRequest generates a request for the DescribeLoadBalancerPolicyTypes operation.

func (*ELB) DescribeLoadBalancers

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

Describes the specified the load balancers. If no load balancers are specified, the call describes all of your load balancers.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.DescribeLoadBalancersInput{
		LoadBalancerNames: []*string{
			aws.String("AccessPointName"), // Required
			// More values...
		},
		Marker:   aws.String("Marker"),
		PageSize: aws.Int64(1),
	}
	resp, err := svc.DescribeLoadBalancers(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) DescribeLoadBalancersPages

func (c *ELB) DescribeLoadBalancersPages(input *DescribeLoadBalancersInput, fn func(p *DescribeLoadBalancersOutput, lastPage bool) (shouldContinue bool)) error

func (*ELB) DescribeLoadBalancersRequest

func (c *ELB) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *service.Request, output *DescribeLoadBalancersOutput)

DescribeLoadBalancersRequest generates a request for the DescribeLoadBalancers operation.

func (*ELB) DescribeTags

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

Describes the tags associated with the specified load balancers.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) DescribeTagsRequest

func (c *ELB) DescribeTagsRequest(input *DescribeTagsInput) (req *service.Request, output *DescribeTagsOutput)

DescribeTagsRequest generates a request for the DescribeTags operation.

func (*ELB) DetachLoadBalancerFromSubnets

func (c *ELB) DetachLoadBalancerFromSubnets(input *DetachLoadBalancerFromSubnetsInput) (*DetachLoadBalancerFromSubnetsOutput, error)

Removes the specified subnets from the set of configured subnets for the load balancer.

After a subnet is removed, all EC2 instances registered with the load balancer in the removed subnet go into the OutOfService state. Then, the load balancer balances the traffic among the remaining routable subnets.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.DetachLoadBalancerFromSubnetsInput{
		LoadBalancerName: aws.String("AccessPointName"), // Required
		Subnets: []*string{ // Required
			aws.String("SubnetId"), // Required
			// More values...
		},
	}
	resp, err := svc.DetachLoadBalancerFromSubnets(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) DetachLoadBalancerFromSubnetsRequest

func (c *ELB) DetachLoadBalancerFromSubnetsRequest(input *DetachLoadBalancerFromSubnetsInput) (req *service.Request, output *DetachLoadBalancerFromSubnetsOutput)

DetachLoadBalancerFromSubnetsRequest generates a request for the DetachLoadBalancerFromSubnets operation.

func (*ELB) DisableAvailabilityZonesForLoadBalancer

func (c *ELB) DisableAvailabilityZonesForLoadBalancer(input *DisableAvailabilityZonesForLoadBalancerInput) (*DisableAvailabilityZonesForLoadBalancerOutput, error)

Removes the specified Availability Zones from the set of Availability Zones for the specified load balancer.

There must be at least one Availability Zone registered with a load balancer at all times. After an Availability Zone is removed, all instances registered with the load balancer that are in the removed Availability Zone go into the OutOfService state. Then, the load balancer attempts to equally balance the traffic among its remaining Availability Zones.

For more information, see Disable an Availability Zone from a Load-Balanced Application (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_ShrinkLBApp04.html) in the Elastic Load Balancing Developer Guide.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.DisableAvailabilityZonesForLoadBalancerInput{
		AvailabilityZones: []*string{ // Required
			aws.String("AvailabilityZone"), // Required
			// More values...
		},
		LoadBalancerName: aws.String("AccessPointName"), // Required
	}
	resp, err := svc.DisableAvailabilityZonesForLoadBalancer(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) DisableAvailabilityZonesForLoadBalancerRequest

func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvailabilityZonesForLoadBalancerInput) (req *service.Request, output *DisableAvailabilityZonesForLoadBalancerOutput)

DisableAvailabilityZonesForLoadBalancerRequest generates a request for the DisableAvailabilityZonesForLoadBalancer operation.

func (*ELB) EnableAvailabilityZonesForLoadBalancer

func (c *ELB) EnableAvailabilityZonesForLoadBalancer(input *EnableAvailabilityZonesForLoadBalancerInput) (*EnableAvailabilityZonesForLoadBalancerOutput, error)

Adds the specified Availability Zones to the set of Availability Zones for the specified load balancer.

The load balancer evenly distributes requests across all its registered Availability Zones that contain instances.

For more information, see Add Availability Zone (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_AddLBAvailabilityZone.html) in the Elastic Load Balancing Developer Guide.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.EnableAvailabilityZonesForLoadBalancerInput{
		AvailabilityZones: []*string{ // Required
			aws.String("AvailabilityZone"), // Required
			// More values...
		},
		LoadBalancerName: aws.String("AccessPointName"), // Required
	}
	resp, err := svc.EnableAvailabilityZonesForLoadBalancer(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) EnableAvailabilityZonesForLoadBalancerRequest

func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailabilityZonesForLoadBalancerInput) (req *service.Request, output *EnableAvailabilityZonesForLoadBalancerOutput)

EnableAvailabilityZonesForLoadBalancerRequest generates a request for the EnableAvailabilityZonesForLoadBalancer operation.

func (*ELB) ModifyLoadBalancerAttributes

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

Modifies the attributes of the specified load balancer.

You can modify the load balancer attributes, such as AccessLogs, ConnectionDraining, and CrossZoneLoadBalancing by either enabling or disabling them. Or, you can modify the load balancer attribute ConnectionSettings by specifying an idle connection timeout value for your load balancer.

For more information, see the following in the Elastic Load Balancing Developer Guide:

Cross-Zone Load Balancing (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#request-routing)

Connection Draining (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#conn-drain) Access Logs (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/access-log-collection.html) Idle Connection Timeout (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#idle-timeout)

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.ModifyLoadBalancerAttributesInput{
		LoadBalancerAttributes: &elb.LoadBalancerAttributes{ // Required
			AccessLog: &elb.AccessLog{
				Enabled:        aws.Bool(true), // Required
				EmitInterval:   aws.Int64(1),
				S3BucketName:   aws.String("S3BucketName"),
				S3BucketPrefix: aws.String("AccessLogPrefix"),
			},
			AdditionalAttributes: []*elb.AdditionalAttribute{
				{ // Required
					Key:   aws.String("StringVal"),
					Value: aws.String("StringVal"),
				},
				// More values...
			},
			ConnectionDraining: &elb.ConnectionDraining{
				Enabled: aws.Bool(true), // Required
				Timeout: aws.Int64(1),
			},
			ConnectionSettings: &elb.ConnectionSettings{
				IdleTimeout: aws.Int64(1), // Required
			},
			CrossZoneLoadBalancing: &elb.CrossZoneLoadBalancing{
				Enabled: aws.Bool(true), // Required
			},
		},
		LoadBalancerName: aws.String("AccessPointName"), // Required
	}
	resp, err := svc.ModifyLoadBalancerAttributes(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) ModifyLoadBalancerAttributesRequest

func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) (req *service.Request, output *ModifyLoadBalancerAttributesOutput)

ModifyLoadBalancerAttributesRequest generates a request for the ModifyLoadBalancerAttributes operation.

func (*ELB) RegisterInstancesWithLoadBalancer

func (c *ELB) RegisterInstancesWithLoadBalancer(input *RegisterInstancesWithLoadBalancerInput) (*RegisterInstancesWithLoadBalancerOutput, error)

Adds the specified instances to the specified load balancer.

The instance must be a running instance in the same network as the load balancer (EC2-Classic or the same VPC). If you have EC2-Classic instances and a load balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic instances to that VPC and then register the linked EC2-Classic instances with the load balancer in the VPC.

Note that RegisterInstanceWithLoadBalancer completes when the request has been registered. Instance registration happens shortly afterwards. To check the state of the registered instances, use DescribeLoadBalancers or DescribeInstanceHealth.

After the instance is registered, it starts receiving traffic and requests from the load balancer. Any instance that is not in one of the Availability Zones registered for the load balancer is moved to the OutOfService state. If an Availability Zone is added to the load balancer later, any instances registered with the load balancer move to the InService state.

If you stop an instance registered with a load balancer and then start it, the IP addresses associated with the instance changes. Elastic Load Balancing cannot recognize the new IP address, which prevents it from routing traffic to the instances. We recommend that you use the following sequence: stop the instance, deregister the instance, start the instance, and then register the instance. To deregister instances from a load balancer, use DeregisterInstancesFromLoadBalancer.

For more information, see Deregister and Register EC2 Instances (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_DeReg_Reg_Instances.html) in the Elastic Load Balancing Developer Guide.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.RegisterInstancesWithLoadBalancerInput{
		Instances: []*elb.Instance{ // Required
			{ // Required
				InstanceID: aws.String("InstanceId"),
			},
			// More values...
		},
		LoadBalancerName: aws.String("AccessPointName"), // Required
	}
	resp, err := svc.RegisterInstancesWithLoadBalancer(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) RegisterInstancesWithLoadBalancerRequest

func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesWithLoadBalancerInput) (req *service.Request, output *RegisterInstancesWithLoadBalancerOutput)

RegisterInstancesWithLoadBalancerRequest generates a request for the RegisterInstancesWithLoadBalancer operation.

func (*ELB) RemoveTags

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

Removes one or more tags from the specified load balancer.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.RemoveTagsInput{
		LoadBalancerNames: []*string{ // Required
			aws.String("AccessPointName"), // Required
			// More values...
		},
		Tags: []*elb.TagKeyOnly{ // Required
			{ // Required
				Key: aws.String("TagKey"),
			},
			// More values...
		},
	}
	resp, err := svc.RemoveTags(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) RemoveTagsRequest

func (c *ELB) RemoveTagsRequest(input *RemoveTagsInput) (req *service.Request, output *RemoveTagsOutput)

RemoveTagsRequest generates a request for the RemoveTags operation.

func (*ELB) SetLoadBalancerListenerSSLCertificate

func (c *ELB) SetLoadBalancerListenerSSLCertificate(input *SetLoadBalancerListenerSSLCertificateInput) (*SetLoadBalancerListenerSSLCertificateOutput, error)

Sets the certificate that terminates the specified listener's SSL connections. The specified certificate replaces any prior certificate that was used on the same load balancer and port.

For more information about updating your SSL certificate, see Updating an SSL Certificate for a Load Balancer (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_UpdatingLoadBalancerSSL.html) in the Elastic Load Balancing Developer Guide.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.SetLoadBalancerListenerSSLCertificateInput{
		LoadBalancerName: aws.String("AccessPointName"),  // Required
		LoadBalancerPort: aws.Int64(1),                   // Required
		SSLCertificateID: aws.String("SSLCertificateId"), // Required
	}
	resp, err := svc.SetLoadBalancerListenerSSLCertificate(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) SetLoadBalancerListenerSSLCertificateRequest

func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalancerListenerSSLCertificateInput) (req *service.Request, output *SetLoadBalancerListenerSSLCertificateOutput)

SetLoadBalancerListenerSSLCertificateRequest generates a request for the SetLoadBalancerListenerSSLCertificate operation.

func (*ELB) SetLoadBalancerPoliciesForBackendServer

func (c *ELB) SetLoadBalancerPoliciesForBackendServer(input *SetLoadBalancerPoliciesForBackendServerInput) (*SetLoadBalancerPoliciesForBackendServerOutput, error)

Replaces the set of policies associated with the specified port on which the back-end server is listening with a new set of policies. At this time, only the back-end server authentication policy type can be applied to the back-end ports; this policy type is composed of multiple public key policies.

Each time you use SetLoadBalancerPoliciesForBackendServer to enable the policies, use the PolicyNames parameter to list the policies that you want to enable.

You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify that the policy is associated with the back-end server.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.SetLoadBalancerPoliciesForBackendServerInput{
		InstancePort:     aws.Int64(1),                  // Required
		LoadBalancerName: aws.String("AccessPointName"), // Required
		PolicyNames: []*string{ // Required
			aws.String("PolicyName"), // Required
			// More values...
		},
	}
	resp, err := svc.SetLoadBalancerPoliciesForBackendServer(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) SetLoadBalancerPoliciesForBackendServerRequest

func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalancerPoliciesForBackendServerInput) (req *service.Request, output *SetLoadBalancerPoliciesForBackendServerOutput)

SetLoadBalancerPoliciesForBackendServerRequest generates a request for the SetLoadBalancerPoliciesForBackendServer operation.

func (*ELB) SetLoadBalancerPoliciesOfListener

func (c *ELB) SetLoadBalancerPoliciesOfListener(input *SetLoadBalancerPoliciesOfListenerInput) (*SetLoadBalancerPoliciesOfListenerOutput, error)

Associates, updates, or disables a policy with a listener for the specified load balancer. You can associate multiple policies with a listener.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elb"
)

func main() {
	svc := elb.New(nil)

	params := &elb.SetLoadBalancerPoliciesOfListenerInput{
		LoadBalancerName: aws.String("AccessPointName"), // Required
		LoadBalancerPort: aws.Int64(1),                  // Required
		PolicyNames: []*string{ // Required
			aws.String("PolicyName"), // Required
			// More values...
		},
	}
	resp, err := svc.SetLoadBalancerPoliciesOfListener(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*ELB) SetLoadBalancerPoliciesOfListenerRequest

func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPoliciesOfListenerInput) (req *service.Request, output *SetLoadBalancerPoliciesOfListenerOutput)

SetLoadBalancerPoliciesOfListenerRequest generates a request for the SetLoadBalancerPoliciesOfListener operation.

type EnableAvailabilityZonesForLoadBalancerInput

type EnableAvailabilityZonesForLoadBalancerInput struct {
	// The Availability Zones. These must be in the same region as the load balancer.
	AvailabilityZones []*string `type:"list" required:"true"`

	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (EnableAvailabilityZonesForLoadBalancerInput) GoString

GoString returns the string representation

func (EnableAvailabilityZonesForLoadBalancerInput) String

String returns the string representation

type EnableAvailabilityZonesForLoadBalancerOutput

type EnableAvailabilityZonesForLoadBalancerOutput struct {
	// The updated list of Availability Zones for the load balancer.
	AvailabilityZones []*string `type:"list"`
	// contains filtered or unexported fields
}

func (EnableAvailabilityZonesForLoadBalancerOutput) GoString

GoString returns the string representation

func (EnableAvailabilityZonesForLoadBalancerOutput) String

String returns the string representation

type HealthCheck

type HealthCheck struct {
	// The number of consecutive health checks successes required before moving
	// the instance to the Healthy state.
	HealthyThreshold *int64 `type:"integer" required:"true"`

	// The approximate interval, in seconds, between health checks of an individual
	// instance.
	Interval *int64 `type:"integer" required:"true"`

	// The instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL.
	// The range of valid ports is one (1) through 65535.
	//
	// TCP is the default, specified as a TCP: port pair, for example "TCP:5000".
	// In this case, a health check simply attempts to open a TCP connection to
	// the instance on the specified port. Failure to connect within the configured
	// timeout is considered unhealthy.
	//
	// SSL is also specified as SSL: port pair, for example, SSL:5000.
	//
	// For HTTP/HTTPS, you must include a ping path in the string. HTTP is specified
	// as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle".
	// In this case, a HTTP GET request is issued to the instance on the given port
	// and path. Any answer other than "200 OK" within the timeout period is considered
	// unhealthy.
	//
	// The total length of the HTTP ping target must be 1024 16-bit Unicode characters
	// or less.
	Target *string `type:"string" required:"true"`

	// The amount of time, in seconds, during which no response means a failed health
	// check.
	//
	// This value must be less than the Interval value.
	Timeout *int64 `type:"integer" required:"true"`

	// The number of consecutive health check failures required before moving the
	// instance to the Unhealthy state.
	UnhealthyThreshold *int64 `type:"integer" required:"true"`
	// contains filtered or unexported fields
}

Information about a health check.

func (HealthCheck) GoString

func (s HealthCheck) GoString() string

GoString returns the string representation

func (HealthCheck) String

func (s HealthCheck) String() string

String returns the string representation

type Instance

type Instance struct {
	// The ID of the instance.
	InstanceID *string `locationName:"InstanceId" type:"string"`
	// contains filtered or unexported fields
}

The ID of a back-end instance.

func (Instance) GoString

func (s Instance) GoString() string

GoString returns the string representation

func (Instance) String

func (s Instance) String() string

String returns the string representation

type InstanceState

type InstanceState struct {
	// A description of the instance state. This string can contain one or more
	// of the following messages.
	//
	//   N/A
	//
	//   A transient error occurred. Please try again later.
	//
	//   Instance has failed at least the UnhealthyThreshold number of health checks
	// consecutively.
	//
	//   Instance has not passed the configured HealthyThreshold number of health
	// checks consecutively.
	//
	//   Instance registration is still in progress.
	//
	//   Instance is in the EC2 Availability Zone for which LoadBalancer is not
	// configured to route traffic to.
	//
	//   Instance is not currently registered with the LoadBalancer.
	//
	//   Instance deregistration currently in progress.
	//
	//   Disable Availability Zone is currently in progress.
	//
	//   Instance is in pending state.
	//
	//   Instance is in stopped state.
	//
	//   Instance is in terminated state.
	Description *string `type:"string"`

	// The ID of the instance.
	InstanceID *string `locationName:"InstanceId" type:"string"`

	// Information about the cause of OutOfService instances. Specifically, whether
	// the cause is Elastic Load Balancing or the instance.
	//
	// Valid values: ELB | Instance | N/A
	ReasonCode *string `type:"string"`

	// The current state of the instance.
	//
	// Valid values: InService | OutOfService | Unknown
	State *string `type:"string"`
	// contains filtered or unexported fields
}

Information about the state of a back-end instance.

func (InstanceState) GoString

func (s InstanceState) GoString() string

GoString returns the string representation

func (InstanceState) String

func (s InstanceState) String() string

String returns the string representation

type LBCookieStickinessPolicy

type LBCookieStickinessPolicy struct {
	// The time period, in seconds, after which the cookie should be considered
	// stale. If this parameter is not specified, the stickiness session lasts for
	// the duration of the browser session.
	CookieExpirationPeriod *int64 `type:"long"`

	// The name for the policy being created. The name must be unique within the
	// set of policies for this load balancer.
	PolicyName *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a policy for duration-based session stickiness.

func (LBCookieStickinessPolicy) GoString

func (s LBCookieStickinessPolicy) GoString() string

GoString returns the string representation

func (LBCookieStickinessPolicy) String

func (s LBCookieStickinessPolicy) String() string

String returns the string representation

type Listener

type Listener struct {
	// The port on which the instance is listening.
	InstancePort *int64 `type:"integer" required:"true"`

	// The protocol to use for routing traffic to back-end instances: HTTP, HTTPS,
	// TCP, or SSL.
	//
	// If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol
	// must be at the same protocol.
	//
	// If there is another listener with the same InstancePort whose InstanceProtocol
	// is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure.
	//
	// If there is another listener with the same InstancePort whose InstanceProtocol
	// is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP.
	InstanceProtocol *string `type:"string"`

	// The port on which the load balancer is listening. The supported ports are:
	// 25, 80, 443, 465, 587, and 1024-65535.
	LoadBalancerPort *int64 `type:"integer" required:"true"`

	// The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP,
	// or SSL.
	Protocol *string `type:"string" required:"true"`

	// The Amazon Resource Name (ARN) of the server certificate.
	SSLCertificateID *string `locationName:"SSLCertificateId" type:"string"`
	// contains filtered or unexported fields
}

Information about a listener.

For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-listener-config.html) in the Elastic Load Balancing Developer Guide.

func (Listener) GoString

func (s Listener) GoString() string

GoString returns the string representation

func (Listener) String

func (s Listener) String() string

String returns the string representation

type ListenerDescription

type ListenerDescription struct {
	// Information about a listener.
	//
	// For information about the protocols and the ports supported by Elastic Load
	// Balancing, see Listener Configurations for Elastic Load Balancing (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-listener-config.html)
	// in the Elastic Load Balancing Developer Guide.
	Listener *Listener `type:"structure"`

	// The policies. If there are no policies enabled, the list is empty.
	PolicyNames []*string `type:"list"`
	// contains filtered or unexported fields
}

The policies enabled for a listener.

func (ListenerDescription) GoString

func (s ListenerDescription) GoString() string

GoString returns the string representation

func (ListenerDescription) String

func (s ListenerDescription) String() string

String returns the string representation

type LoadBalancerAttributes

type LoadBalancerAttributes struct {
	// If enabled, the load balancer captures detailed information of all requests
	// and delivers the information to the Amazon S3 bucket that you specify.
	//
	// For more information, see Enable Access Logs (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/enable-access-logs.html)
	// in the Elastic Load Balancing Developer Guide.
	AccessLog *AccessLog `type:"structure"`

	// This parameter is reserved.
	AdditionalAttributes []*AdditionalAttribute `type:"list"`

	// If enabled, the load balancer allows existing requests to complete before
	// the load balancer shifts traffic away from a deregistered or unhealthy back-end
	// instance.
	//
	// For more information, see Enable Connection Draining (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/config-conn-drain.html)
	// in the Elastic Load Balancing Developer Guide.
	ConnectionDraining *ConnectionDraining `type:"structure"`

	// If enabled, the load balancer allows the connections to remain idle (no data
	// is sent over the connection) for the specified duration.
	//
	// By default, Elastic Load Balancing maintains a 60-second idle connection
	// timeout for both front-end and back-end connections of your load balancer.
	// For more information, see Configure Idle Connection Timeout (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/config-idle-timeout.html)
	// in the Elastic Load Balancing Developer Guide.
	ConnectionSettings *ConnectionSettings `type:"structure"`

	// If enabled, the load balancer routes the request traffic evenly across all
	// back-end instances regardless of the Availability Zones.
	//
	// For more information, see Enable Cross-Zone Load Balancing (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/enable-disable-crosszone-lb.html)
	// in the Elastic Load Balancing Developer Guide.
	CrossZoneLoadBalancing *CrossZoneLoadBalancing `type:"structure"`
	// contains filtered or unexported fields
}

The attributes for a load balancer.

func (LoadBalancerAttributes) GoString

func (s LoadBalancerAttributes) GoString() string

GoString returns the string representation

func (LoadBalancerAttributes) String

func (s LoadBalancerAttributes) String() string

String returns the string representation

type LoadBalancerDescription

type LoadBalancerDescription struct {
	// The Availability Zones for the load balancer.
	AvailabilityZones []*string `type:"list"`

	// Information about the back-end servers.
	BackendServerDescriptions []*BackendServerDescription `type:"list"`

	// The Amazon Route 53 hosted zone associated with the load balancer.
	//
	// For more information, see Using Domain Names With Elastic Load Balancing
	// (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/using-domain-names-with-elb.html)
	// in the Elastic Load Balancing Developer Guide.
	CanonicalHostedZoneName *string `type:"string"`

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

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

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

	// Information about the health checks conducted on the load balancer.
	HealthCheck *HealthCheck `type:"structure"`

	// The IDs of the instances for the load balancer.
	Instances []*Instance `type:"list"`

	// The listeners for the load balancer.
	ListenerDescriptions []*ListenerDescription `type:"list"`

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

	// The policies defined for the load balancer.
	Policies *Policies `type:"structure"`

	// The type of load balancer. Valid only for load balancers in a VPC.
	//
	// If Scheme is internet-facing, the load balancer has a public DNS name that
	// resolves to a public IP address.
	//
	// If Scheme is internal, the load balancer has a public DNS name that resolves
	// to a private IP address.
	Scheme *string `type:"string"`

	// The security groups for the load balancer. Valid only for load balancers
	// in a VPC.
	SecurityGroups []*string `type:"list"`

	// The security group that you can use as part of your inbound rules for your
	// load balancer's back-end application instances. To only allow traffic from
	// load balancers, add a security group rule to your back end instance that
	// specifies this source security group as the inbound source.
	SourceSecurityGroup *SourceSecurityGroup `type:"structure"`

	// The IDs of the subnets for the load balancer.
	Subnets []*string `type:"list"`

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

Information about a load balancer.

func (LoadBalancerDescription) GoString

func (s LoadBalancerDescription) GoString() string

GoString returns the string representation

func (LoadBalancerDescription) String

func (s LoadBalancerDescription) String() string

String returns the string representation

type ModifyLoadBalancerAttributesInput

type ModifyLoadBalancerAttributesInput struct {
	// The attributes of the load balancer.
	LoadBalancerAttributes *LoadBalancerAttributes `type:"structure" required:"true"`

	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyLoadBalancerAttributesInput) GoString

GoString returns the string representation

func (ModifyLoadBalancerAttributesInput) String

String returns the string representation

type ModifyLoadBalancerAttributesOutput

type ModifyLoadBalancerAttributesOutput struct {
	// The attributes for a load balancer.
	LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`

	// The name of the load balancer.
	LoadBalancerName *string `type:"string"`
	// contains filtered or unexported fields
}

func (ModifyLoadBalancerAttributesOutput) GoString

GoString returns the string representation

func (ModifyLoadBalancerAttributesOutput) String

String returns the string representation

type Policies

type Policies struct {
	// The stickiness policies created using CreateAppCookieStickinessPolicy.
	AppCookieStickinessPolicies []*AppCookieStickinessPolicy `type:"list"`

	// The stickiness policies created using CreateLBCookieStickinessPolicy.
	LBCookieStickinessPolicies []*LBCookieStickinessPolicy `type:"list"`

	// The policies other than the stickiness policies.
	OtherPolicies []*string `type:"list"`
	// contains filtered or unexported fields
}

The policies for a load balancer.

func (Policies) GoString

func (s Policies) GoString() string

GoString returns the string representation

func (Policies) String

func (s Policies) String() string

String returns the string representation

type PolicyAttribute

type PolicyAttribute struct {
	// The name of the attribute.
	AttributeName *string `type:"string"`

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

Information about a policy attribute.

func (PolicyAttribute) GoString

func (s PolicyAttribute) GoString() string

GoString returns the string representation

func (PolicyAttribute) String

func (s PolicyAttribute) String() string

String returns the string representation

type PolicyAttributeDescription

type PolicyAttributeDescription struct {
	// The name of the attribute.
	AttributeName *string `type:"string"`

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

Information about a policy attribute.

func (PolicyAttributeDescription) GoString

func (s PolicyAttributeDescription) GoString() string

GoString returns the string representation

func (PolicyAttributeDescription) String

String returns the string representation

type PolicyAttributeTypeDescription

type PolicyAttributeTypeDescription struct {
	// The name of the attribute.
	AttributeName *string `type:"string"`

	// The type of the attribute. For example, Boolean or Integer.
	AttributeType *string `type:"string"`

	// The cardinality of the attribute.
	//
	// Valid values:
	//
	//  ONE(1) : Single value required ZERO_OR_ONE(0..1) : Up to one value can
	// be supplied ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed ONE_OR_MORE(1..*0)
	// : Required. Multiple values are allowed
	Cardinality *string `type:"string"`

	// The default value of the attribute, if applicable.
	DefaultValue *string `type:"string"`

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

Information about a policy attribute type.

func (PolicyAttributeTypeDescription) GoString

GoString returns the string representation

func (PolicyAttributeTypeDescription) String

String returns the string representation

type PolicyDescription

type PolicyDescription struct {
	// The policy attributes.
	PolicyAttributeDescriptions []*PolicyAttributeDescription `type:"list"`

	// The name of the policy.
	PolicyName *string `type:"string"`

	// The name of the policy type.
	PolicyTypeName *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a policy.

func (PolicyDescription) GoString

func (s PolicyDescription) GoString() string

GoString returns the string representation

func (PolicyDescription) String

func (s PolicyDescription) String() string

String returns the string representation

type PolicyTypeDescription

type PolicyTypeDescription struct {
	// A description of the policy type.
	Description *string `type:"string"`

	// The description of the policy attributes associated with the policies defined
	// by Elastic Load Balancing.
	PolicyAttributeTypeDescriptions []*PolicyAttributeTypeDescription `type:"list"`

	// The name of the policy type.
	PolicyTypeName *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a policy type.

func (PolicyTypeDescription) GoString

func (s PolicyTypeDescription) GoString() string

GoString returns the string representation

func (PolicyTypeDescription) String

func (s PolicyTypeDescription) String() string

String returns the string representation

type RegisterInstancesWithLoadBalancerInput

type RegisterInstancesWithLoadBalancerInput struct {
	// The IDs of the instances.
	Instances []*Instance `type:"list" required:"true"`

	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RegisterInstancesWithLoadBalancerInput) GoString

GoString returns the string representation

func (RegisterInstancesWithLoadBalancerInput) String

String returns the string representation

type RegisterInstancesWithLoadBalancerOutput

type RegisterInstancesWithLoadBalancerOutput struct {
	// The updated list of instances for the load balancer.
	Instances []*Instance `type:"list"`
	// contains filtered or unexported fields
}

func (RegisterInstancesWithLoadBalancerOutput) GoString

GoString returns the string representation

func (RegisterInstancesWithLoadBalancerOutput) String

String returns the string representation

type RemoveTagsInput

type RemoveTagsInput struct {
	// The name of the load balancer. You can specify a maximum of one load balancer
	// name.
	LoadBalancerNames []*string `type:"list" required:"true"`

	// The list of tag keys to remove.
	Tags []*TagKeyOnly `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (RemoveTagsInput) GoString

func (s RemoveTagsInput) GoString() string

GoString returns the string representation

func (RemoveTagsInput) String

func (s RemoveTagsInput) String() string

String returns the string representation

type RemoveTagsOutput

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

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 SetLoadBalancerListenerSSLCertificateInput

type SetLoadBalancerListenerSSLCertificateInput struct {
	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`

	// The port that uses the specified SSL certificate.
	LoadBalancerPort *int64 `type:"integer" required:"true"`

	// The Amazon Resource Name (ARN) of the SSL certificate.
	SSLCertificateID *string `locationName:"SSLCertificateId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (SetLoadBalancerListenerSSLCertificateInput) GoString

GoString returns the string representation

func (SetLoadBalancerListenerSSLCertificateInput) String

String returns the string representation

type SetLoadBalancerListenerSSLCertificateOutput

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

func (SetLoadBalancerListenerSSLCertificateOutput) GoString

GoString returns the string representation

func (SetLoadBalancerListenerSSLCertificateOutput) String

String returns the string representation

type SetLoadBalancerPoliciesForBackendServerInput

type SetLoadBalancerPoliciesForBackendServerInput struct {
	// The port number associated with the back-end server.
	InstancePort *int64 `type:"integer" required:"true"`

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

	// The names of the policies. If the list is empty, then all current polices
	// are removed from the back-end server.
	PolicyNames []*string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (SetLoadBalancerPoliciesForBackendServerInput) GoString

GoString returns the string representation

func (SetLoadBalancerPoliciesForBackendServerInput) String

String returns the string representation

type SetLoadBalancerPoliciesForBackendServerOutput

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

func (SetLoadBalancerPoliciesForBackendServerOutput) GoString

GoString returns the string representation

func (SetLoadBalancerPoliciesForBackendServerOutput) String

String returns the string representation

type SetLoadBalancerPoliciesOfListenerInput

type SetLoadBalancerPoliciesOfListenerInput struct {
	// The name of the load balancer.
	LoadBalancerName *string `type:"string" required:"true"`

	// The external port of the load balancer for the policy.
	LoadBalancerPort *int64 `type:"integer" required:"true"`

	// The names of the policies. If the list is empty, the current policy is removed
	// from the listener.
	PolicyNames []*string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (SetLoadBalancerPoliciesOfListenerInput) GoString

GoString returns the string representation

func (SetLoadBalancerPoliciesOfListenerInput) String

String returns the string representation

type SetLoadBalancerPoliciesOfListenerOutput

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

func (SetLoadBalancerPoliciesOfListenerOutput) GoString

GoString returns the string representation

func (SetLoadBalancerPoliciesOfListenerOutput) String

String returns the string representation

type SourceSecurityGroup

type SourceSecurityGroup struct {
	// The name of the security group.
	GroupName *string `type:"string"`

	// The owner of the security group.
	OwnerAlias *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a source security group.

func (SourceSecurityGroup) GoString

func (s SourceSecurityGroup) GoString() string

GoString returns the string representation

func (SourceSecurityGroup) String

func (s SourceSecurityGroup) String() string

String returns the string representation

type Tag

type Tag struct {
	// The key of the tag.
	Key *string `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) String

func (s Tag) String() string

String returns the string representation

type TagDescription

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

	// The tags.
	Tags []*Tag `type:"list"`
	// contains filtered or unexported fields
}

The tags associated with a load balancer.

func (TagDescription) GoString

func (s TagDescription) GoString() string

GoString returns the string representation

func (TagDescription) String

func (s TagDescription) String() string

String returns the string representation

type TagKeyOnly

type TagKeyOnly struct {
	// The name of the key.
	Key *string `type:"string"`
	// contains filtered or unexported fields
}

The key of a tag.

func (TagKeyOnly) GoString

func (s TagKeyOnly) GoString() string

GoString returns the string representation

func (TagKeyOnly) String

func (s TagKeyOnly) String() string

String returns the string representation

Directories

Path Synopsis
Package elbiface provides an interface for the Elastic Load Balancing.
Package elbiface provides an interface for the Elastic Load Balancing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL