elb - ActiveState ActiveGo 1.8
...

Package elb

import "github.com/aws/aws-sdk-go/service/elb"
Overview
Index
Examples
Subdirectories

Overview ▾

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

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

Elastic Load Balancing supports two types of load balancers: Classic Load Balancers and Application Load Balancers (new). A Classic Load Balancer makes routing and load balancing decisions either at the transport layer (TCP/SSL) or the application layer (HTTP/HTTPS), and supports either EC2-Classic or a VPC. An Application Load Balancer makes routing and load balancing decisions at the application layer (HTTP/HTTPS), supports path-based routing, and can route requests to one or more ports on each EC2 instance or container instance in your virtual private cloud (VPC). For more information, see the Elastic Load Balancing User Guide (http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/what-is-load-balancing.html).

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

To get started, create a load balancer with one or more listeners using CreateLoadBalancer. Register your instances with the load balancer using RegisterInstancesWithLoadBalancer.

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.

See https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01 for more information on this service.

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

Using the Client

To use the client for Elastic Load Balancing you will first need to create a new instance of it.

When creating a client for an AWS service you'll first need to have a Session already created. The Session provides configuration that can be shared between multiple service clients. Additional configuration can be applied to the Session and service's client when they are constructed. The aws package's Config type contains several fields such as Region for the AWS Region the client should make API requests too. The optional Config value can be provided as the variadic argument for Sessions and client creation.

Once the service's client is created you can use it to make API requests the AWS service. These clients are safe to use concurrently.

// Create a session to share configuration, and load external configuration.
sess := session.Must(session.NewSession())

// Create the service's client with the session.
svc := elb.New(sess)

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

See aws package's Config type for more information on configuration options. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Elastic Load Balancing client ELB for more information on creating the service's client. https://docs.aws.amazon.com/sdk-for-go/api/service/elb/#New

Once the client is created you can make an API request to the service. Each API method takes a input parameter, and returns the service response and an error.

The API method will document which error codes the service can be returned by the operation if the service models the API operation's errors. These errors will also be available as const strings prefixed with "ErrCode".

result, err := svc.AddTags(params)
if err != nil {
    // Cast err to awserr.Error to handle specific error codes.
    aerr, ok := err.(awserr.Error)
    if ok && aerr.Code() == <error code to check for> {
        // Specific error code handling
    }
    return err
}

fmt.Println("AddTags result:")
fmt.Println(result)

Using the Client with Context

The service's client also provides methods to make API requests with a Context value. This allows you to control the timeout, and cancellation of pending requests. These methods also take request Option as variadic parameter to apply additional configuration to the API request.

ctx := context.Background()

result, err := svc.AddTagsWithContext(ctx, params)

See the request package documentation for more information on using Context pattern with the SDK. https://docs.aws.amazon.com/sdk-for-go/api/aws/request/

Index ▾

Constants
type AccessLog
    func (s AccessLog) GoString() string
    func (s *AccessLog) SetEmitInterval(v int64) *AccessLog
    func (s *AccessLog) SetEnabled(v bool) *AccessLog
    func (s *AccessLog) SetS3BucketName(v string) *AccessLog
    func (s *AccessLog) SetS3BucketPrefix(v string) *AccessLog
    func (s AccessLog) String() string
    func (s *AccessLog) Validate() error
type AddTagsInput
    func (s AddTagsInput) GoString() string
    func (s *AddTagsInput) SetLoadBalancerNames(v []*string) *AddTagsInput
    func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput
    func (s AddTagsInput) String() string
    func (s *AddTagsInput) Validate() error
type AddTagsOutput
    func (s AddTagsOutput) GoString() string
    func (s AddTagsOutput) String() string
type AdditionalAttribute
    func (s AdditionalAttribute) GoString() string
    func (s *AdditionalAttribute) SetKey(v string) *AdditionalAttribute
    func (s *AdditionalAttribute) SetValue(v string) *AdditionalAttribute
    func (s AdditionalAttribute) String() string
type AppCookieStickinessPolicy
    func (s AppCookieStickinessPolicy) GoString() string
    func (s *AppCookieStickinessPolicy) SetCookieName(v string) *AppCookieStickinessPolicy
    func (s *AppCookieStickinessPolicy) SetPolicyName(v string) *AppCookieStickinessPolicy
    func (s AppCookieStickinessPolicy) String() string
type ApplySecurityGroupsToLoadBalancerInput
    func (s ApplySecurityGroupsToLoadBalancerInput) GoString() string
    func (s *ApplySecurityGroupsToLoadBalancerInput) SetLoadBalancerName(v string) *ApplySecurityGroupsToLoadBalancerInput
    func (s *ApplySecurityGroupsToLoadBalancerInput) SetSecurityGroups(v []*string) *ApplySecurityGroupsToLoadBalancerInput
    func (s ApplySecurityGroupsToLoadBalancerInput) String() string
    func (s *ApplySecurityGroupsToLoadBalancerInput) Validate() error
type ApplySecurityGroupsToLoadBalancerOutput
    func (s ApplySecurityGroupsToLoadBalancerOutput) GoString() string
    func (s *ApplySecurityGroupsToLoadBalancerOutput) SetSecurityGroups(v []*string) *ApplySecurityGroupsToLoadBalancerOutput
    func (s ApplySecurityGroupsToLoadBalancerOutput) String() string
type AttachLoadBalancerToSubnetsInput
    func (s AttachLoadBalancerToSubnetsInput) GoString() string
    func (s *AttachLoadBalancerToSubnetsInput) SetLoadBalancerName(v string) *AttachLoadBalancerToSubnetsInput
    func (s *AttachLoadBalancerToSubnetsInput) SetSubnets(v []*string) *AttachLoadBalancerToSubnetsInput
    func (s AttachLoadBalancerToSubnetsInput) String() string
    func (s *AttachLoadBalancerToSubnetsInput) Validate() error
type AttachLoadBalancerToSubnetsOutput
    func (s AttachLoadBalancerToSubnetsOutput) GoString() string
    func (s *AttachLoadBalancerToSubnetsOutput) SetSubnets(v []*string) *AttachLoadBalancerToSubnetsOutput
    func (s AttachLoadBalancerToSubnetsOutput) String() string
type BackendServerDescription
    func (s BackendServerDescription) GoString() string
    func (s *BackendServerDescription) SetInstancePort(v int64) *BackendServerDescription
    func (s *BackendServerDescription) SetPolicyNames(v []*string) *BackendServerDescription
    func (s BackendServerDescription) String() string
type ConfigureHealthCheckInput
    func (s ConfigureHealthCheckInput) GoString() string
    func (s *ConfigureHealthCheckInput) SetHealthCheck(v *HealthCheck) *ConfigureHealthCheckInput
    func (s *ConfigureHealthCheckInput) SetLoadBalancerName(v string) *ConfigureHealthCheckInput
    func (s ConfigureHealthCheckInput) String() string
    func (s *ConfigureHealthCheckInput) Validate() error
type ConfigureHealthCheckOutput
    func (s ConfigureHealthCheckOutput) GoString() string
    func (s *ConfigureHealthCheckOutput) SetHealthCheck(v *HealthCheck) *ConfigureHealthCheckOutput
    func (s ConfigureHealthCheckOutput) String() string
type ConnectionDraining
    func (s ConnectionDraining) GoString() string
    func (s *ConnectionDraining) SetEnabled(v bool) *ConnectionDraining
    func (s *ConnectionDraining) SetTimeout(v int64) *ConnectionDraining
    func (s ConnectionDraining) String() string
    func (s *ConnectionDraining) Validate() error
type ConnectionSettings
    func (s ConnectionSettings) GoString() string
    func (s *ConnectionSettings) SetIdleTimeout(v int64) *ConnectionSettings
    func (s ConnectionSettings) String() string
    func (s *ConnectionSettings) Validate() error
type CreateAppCookieStickinessPolicyInput
    func (s CreateAppCookieStickinessPolicyInput) GoString() string
    func (s *CreateAppCookieStickinessPolicyInput) SetCookieName(v string) *CreateAppCookieStickinessPolicyInput
    func (s *CreateAppCookieStickinessPolicyInput) SetLoadBalancerName(v string) *CreateAppCookieStickinessPolicyInput
    func (s *CreateAppCookieStickinessPolicyInput) SetPolicyName(v string) *CreateAppCookieStickinessPolicyInput
    func (s CreateAppCookieStickinessPolicyInput) String() string
    func (s *CreateAppCookieStickinessPolicyInput) Validate() error
type CreateAppCookieStickinessPolicyOutput
    func (s CreateAppCookieStickinessPolicyOutput) GoString() string
    func (s CreateAppCookieStickinessPolicyOutput) String() string
type CreateLBCookieStickinessPolicyInput
    func (s CreateLBCookieStickinessPolicyInput) GoString() string
    func (s *CreateLBCookieStickinessPolicyInput) SetCookieExpirationPeriod(v int64) *CreateLBCookieStickinessPolicyInput
    func (s *CreateLBCookieStickinessPolicyInput) SetLoadBalancerName(v string) *CreateLBCookieStickinessPolicyInput
    func (s *CreateLBCookieStickinessPolicyInput) SetPolicyName(v string) *CreateLBCookieStickinessPolicyInput
    func (s CreateLBCookieStickinessPolicyInput) String() string
    func (s *CreateLBCookieStickinessPolicyInput) Validate() error
type CreateLBCookieStickinessPolicyOutput
    func (s CreateLBCookieStickinessPolicyOutput) GoString() string
    func (s CreateLBCookieStickinessPolicyOutput) String() string
type CreateLoadBalancerInput
    func (s CreateLoadBalancerInput) GoString() string
    func (s *CreateLoadBalancerInput) SetAvailabilityZones(v []*string) *CreateLoadBalancerInput
    func (s *CreateLoadBalancerInput) SetListeners(v []*Listener) *CreateLoadBalancerInput
    func (s *CreateLoadBalancerInput) SetLoadBalancerName(v string) *CreateLoadBalancerInput
    func (s *CreateLoadBalancerInput) SetScheme(v string) *CreateLoadBalancerInput
    func (s *CreateLoadBalancerInput) SetSecurityGroups(v []*string) *CreateLoadBalancerInput
    func (s *CreateLoadBalancerInput) SetSubnets(v []*string) *CreateLoadBalancerInput
    func (s *CreateLoadBalancerInput) SetTags(v []*Tag) *CreateLoadBalancerInput
    func (s CreateLoadBalancerInput) String() string
    func (s *CreateLoadBalancerInput) Validate() error
type CreateLoadBalancerListenersInput
    func (s CreateLoadBalancerListenersInput) GoString() string
    func (s *CreateLoadBalancerListenersInput) SetListeners(v []*Listener) *CreateLoadBalancerListenersInput
    func (s *CreateLoadBalancerListenersInput) SetLoadBalancerName(v string) *CreateLoadBalancerListenersInput
    func (s CreateLoadBalancerListenersInput) String() string
    func (s *CreateLoadBalancerListenersInput) Validate() error
type CreateLoadBalancerListenersOutput
    func (s CreateLoadBalancerListenersOutput) GoString() string
    func (s CreateLoadBalancerListenersOutput) String() string
type CreateLoadBalancerOutput
    func (s CreateLoadBalancerOutput) GoString() string
    func (s *CreateLoadBalancerOutput) SetDNSName(v string) *CreateLoadBalancerOutput
    func (s CreateLoadBalancerOutput) String() string
type CreateLoadBalancerPolicyInput
    func (s CreateLoadBalancerPolicyInput) GoString() string
    func (s *CreateLoadBalancerPolicyInput) SetLoadBalancerName(v string) *CreateLoadBalancerPolicyInput
    func (s *CreateLoadBalancerPolicyInput) SetPolicyAttributes(v []*PolicyAttribute) *CreateLoadBalancerPolicyInput
    func (s *CreateLoadBalancerPolicyInput) SetPolicyName(v string) *CreateLoadBalancerPolicyInput
    func (s *CreateLoadBalancerPolicyInput) SetPolicyTypeName(v string) *CreateLoadBalancerPolicyInput
    func (s CreateLoadBalancerPolicyInput) String() string
    func (s *CreateLoadBalancerPolicyInput) Validate() error
type CreateLoadBalancerPolicyOutput
    func (s CreateLoadBalancerPolicyOutput) GoString() string
    func (s CreateLoadBalancerPolicyOutput) String() string
type CrossZoneLoadBalancing
    func (s CrossZoneLoadBalancing) GoString() string
    func (s *CrossZoneLoadBalancing) SetEnabled(v bool) *CrossZoneLoadBalancing
    func (s CrossZoneLoadBalancing) String() string
    func (s *CrossZoneLoadBalancing) Validate() error
type DeleteLoadBalancerInput
    func (s DeleteLoadBalancerInput) GoString() string
    func (s *DeleteLoadBalancerInput) SetLoadBalancerName(v string) *DeleteLoadBalancerInput
    func (s DeleteLoadBalancerInput) String() string
    func (s *DeleteLoadBalancerInput) Validate() error
type DeleteLoadBalancerListenersInput
    func (s DeleteLoadBalancerListenersInput) GoString() string
    func (s *DeleteLoadBalancerListenersInput) SetLoadBalancerName(v string) *DeleteLoadBalancerListenersInput
    func (s *DeleteLoadBalancerListenersInput) SetLoadBalancerPorts(v []*int64) *DeleteLoadBalancerListenersInput
    func (s DeleteLoadBalancerListenersInput) String() string
    func (s *DeleteLoadBalancerListenersInput) Validate() error
type DeleteLoadBalancerListenersOutput
    func (s DeleteLoadBalancerListenersOutput) GoString() string
    func (s DeleteLoadBalancerListenersOutput) String() string
type DeleteLoadBalancerOutput
    func (s DeleteLoadBalancerOutput) GoString() string
    func (s DeleteLoadBalancerOutput) String() string
type DeleteLoadBalancerPolicyInput
    func (s DeleteLoadBalancerPolicyInput) GoString() string
    func (s *DeleteLoadBalancerPolicyInput) SetLoadBalancerName(v string) *DeleteLoadBalancerPolicyInput
    func (s *DeleteLoadBalancerPolicyInput) SetPolicyName(v string) *DeleteLoadBalancerPolicyInput
    func (s DeleteLoadBalancerPolicyInput) String() string
    func (s *DeleteLoadBalancerPolicyInput) Validate() error
type DeleteLoadBalancerPolicyOutput
    func (s DeleteLoadBalancerPolicyOutput) GoString() string
    func (s DeleteLoadBalancerPolicyOutput) String() string
type DeregisterInstancesFromLoadBalancerInput
    func (s DeregisterInstancesFromLoadBalancerInput) GoString() string
    func (s *DeregisterInstancesFromLoadBalancerInput) SetInstances(v []*Instance) *DeregisterInstancesFromLoadBalancerInput
    func (s *DeregisterInstancesFromLoadBalancerInput) SetLoadBalancerName(v string) *DeregisterInstancesFromLoadBalancerInput
    func (s DeregisterInstancesFromLoadBalancerInput) String() string
    func (s *DeregisterInstancesFromLoadBalancerInput) Validate() error
type DeregisterInstancesFromLoadBalancerOutput
    func (s DeregisterInstancesFromLoadBalancerOutput) GoString() string
    func (s *DeregisterInstancesFromLoadBalancerOutput) SetInstances(v []*Instance) *DeregisterInstancesFromLoadBalancerOutput
    func (s DeregisterInstancesFromLoadBalancerOutput) String() string
type DescribeAccountLimitsInput
    func (s DescribeAccountLimitsInput) GoString() string
    func (s *DescribeAccountLimitsInput) SetMarker(v string) *DescribeAccountLimitsInput
    func (s *DescribeAccountLimitsInput) SetPageSize(v int64) *DescribeAccountLimitsInput
    func (s DescribeAccountLimitsInput) String() string
    func (s *DescribeAccountLimitsInput) Validate() error
type DescribeAccountLimitsOutput
    func (s DescribeAccountLimitsOutput) GoString() string
    func (s *DescribeAccountLimitsOutput) SetLimits(v []*Limit) *DescribeAccountLimitsOutput
    func (s *DescribeAccountLimitsOutput) SetNextMarker(v string) *DescribeAccountLimitsOutput
    func (s DescribeAccountLimitsOutput) String() string
type DescribeInstanceHealthInput
    func (s DescribeInstanceHealthInput) GoString() string
    func (s *DescribeInstanceHealthInput) SetInstances(v []*Instance) *DescribeInstanceHealthInput
    func (s *DescribeInstanceHealthInput) SetLoadBalancerName(v string) *DescribeInstanceHealthInput
    func (s DescribeInstanceHealthInput) String() string
    func (s *DescribeInstanceHealthInput) Validate() error
type DescribeInstanceHealthOutput
    func (s DescribeInstanceHealthOutput) GoString() string
    func (s *DescribeInstanceHealthOutput) SetInstanceStates(v []*InstanceState) *DescribeInstanceHealthOutput
    func (s DescribeInstanceHealthOutput) String() string
type DescribeLoadBalancerAttributesInput
    func (s DescribeLoadBalancerAttributesInput) GoString() string
    func (s *DescribeLoadBalancerAttributesInput) SetLoadBalancerName(v string) *DescribeLoadBalancerAttributesInput
    func (s DescribeLoadBalancerAttributesInput) String() string
    func (s *DescribeLoadBalancerAttributesInput) Validate() error
type DescribeLoadBalancerAttributesOutput
    func (s DescribeLoadBalancerAttributesOutput) GoString() string
    func (s *DescribeLoadBalancerAttributesOutput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *DescribeLoadBalancerAttributesOutput
    func (s DescribeLoadBalancerAttributesOutput) String() string
type DescribeLoadBalancerPoliciesInput
    func (s DescribeLoadBalancerPoliciesInput) GoString() string
    func (s *DescribeLoadBalancerPoliciesInput) SetLoadBalancerName(v string) *DescribeLoadBalancerPoliciesInput
    func (s *DescribeLoadBalancerPoliciesInput) SetPolicyNames(v []*string) *DescribeLoadBalancerPoliciesInput
    func (s DescribeLoadBalancerPoliciesInput) String() string
type DescribeLoadBalancerPoliciesOutput
    func (s DescribeLoadBalancerPoliciesOutput) GoString() string
    func (s *DescribeLoadBalancerPoliciesOutput) SetPolicyDescriptions(v []*PolicyDescription) *DescribeLoadBalancerPoliciesOutput
    func (s DescribeLoadBalancerPoliciesOutput) String() string
type DescribeLoadBalancerPolicyTypesInput
    func (s DescribeLoadBalancerPolicyTypesInput) GoString() string
    func (s *DescribeLoadBalancerPolicyTypesInput) SetPolicyTypeNames(v []*string) *DescribeLoadBalancerPolicyTypesInput
    func (s DescribeLoadBalancerPolicyTypesInput) String() string
type DescribeLoadBalancerPolicyTypesOutput
    func (s DescribeLoadBalancerPolicyTypesOutput) GoString() string
    func (s *DescribeLoadBalancerPolicyTypesOutput) SetPolicyTypeDescriptions(v []*PolicyTypeDescription) *DescribeLoadBalancerPolicyTypesOutput
    func (s DescribeLoadBalancerPolicyTypesOutput) String() string
type DescribeLoadBalancersInput
    func (s DescribeLoadBalancersInput) GoString() string
    func (s *DescribeLoadBalancersInput) SetLoadBalancerNames(v []*string) *DescribeLoadBalancersInput
    func (s *DescribeLoadBalancersInput) SetMarker(v string) *DescribeLoadBalancersInput
    func (s *DescribeLoadBalancersInput) SetPageSize(v int64) *DescribeLoadBalancersInput
    func (s DescribeLoadBalancersInput) String() string
    func (s *DescribeLoadBalancersInput) Validate() error
type DescribeLoadBalancersOutput
    func (s DescribeLoadBalancersOutput) GoString() string
    func (s *DescribeLoadBalancersOutput) SetLoadBalancerDescriptions(v []*LoadBalancerDescription) *DescribeLoadBalancersOutput
    func (s *DescribeLoadBalancersOutput) SetNextMarker(v string) *DescribeLoadBalancersOutput
    func (s DescribeLoadBalancersOutput) String() string
type DescribeTagsInput
    func (s DescribeTagsInput) GoString() string
    func (s *DescribeTagsInput) SetLoadBalancerNames(v []*string) *DescribeTagsInput
    func (s DescribeTagsInput) String() string
    func (s *DescribeTagsInput) Validate() error
type DescribeTagsOutput
    func (s DescribeTagsOutput) GoString() string
    func (s *DescribeTagsOutput) SetTagDescriptions(v []*TagDescription) *DescribeTagsOutput
    func (s DescribeTagsOutput) String() string
type DetachLoadBalancerFromSubnetsInput
    func (s DetachLoadBalancerFromSubnetsInput) GoString() string
    func (s *DetachLoadBalancerFromSubnetsInput) SetLoadBalancerName(v string) *DetachLoadBalancerFromSubnetsInput
    func (s *DetachLoadBalancerFromSubnetsInput) SetSubnets(v []*string) *DetachLoadBalancerFromSubnetsInput
    func (s DetachLoadBalancerFromSubnetsInput) String() string
    func (s *DetachLoadBalancerFromSubnetsInput) Validate() error
type DetachLoadBalancerFromSubnetsOutput
    func (s DetachLoadBalancerFromSubnetsOutput) GoString() string
    func (s *DetachLoadBalancerFromSubnetsOutput) SetSubnets(v []*string) *DetachLoadBalancerFromSubnetsOutput
    func (s DetachLoadBalancerFromSubnetsOutput) String() string
type DisableAvailabilityZonesForLoadBalancerInput
    func (s DisableAvailabilityZonesForLoadBalancerInput) GoString() string
    func (s *DisableAvailabilityZonesForLoadBalancerInput) SetAvailabilityZones(v []*string) *DisableAvailabilityZonesForLoadBalancerInput
    func (s *DisableAvailabilityZonesForLoadBalancerInput) SetLoadBalancerName(v string) *DisableAvailabilityZonesForLoadBalancerInput
    func (s DisableAvailabilityZonesForLoadBalancerInput) String() string
    func (s *DisableAvailabilityZonesForLoadBalancerInput) Validate() error
type DisableAvailabilityZonesForLoadBalancerOutput
    func (s DisableAvailabilityZonesForLoadBalancerOutput) GoString() string
    func (s *DisableAvailabilityZonesForLoadBalancerOutput) SetAvailabilityZones(v []*string) *DisableAvailabilityZonesForLoadBalancerOutput
    func (s DisableAvailabilityZonesForLoadBalancerOutput) String() string
type ELB
    func New(p client.ConfigProvider, cfgs ...*aws.Config) *ELB
    func (c *ELB) AddTags(input *AddTagsInput) (*AddTagsOutput, error)
    func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput)
    func (c *ELB) AddTagsWithContext(ctx aws.Context, input *AddTagsInput, opts ...request.Option) (*AddTagsOutput, error)
    func (c *ELB) ApplySecurityGroupsToLoadBalancer(input *ApplySecurityGroupsToLoadBalancerInput) (*ApplySecurityGroupsToLoadBalancerOutput, error)
    func (c *ELB) ApplySecurityGroupsToLoadBalancerRequest(input *ApplySecurityGroupsToLoadBalancerInput) (req *request.Request, output *ApplySecurityGroupsToLoadBalancerOutput)
    func (c *ELB) ApplySecurityGroupsToLoadBalancerWithContext(ctx aws.Context, input *ApplySecurityGroupsToLoadBalancerInput, opts ...request.Option) (*ApplySecurityGroupsToLoadBalancerOutput, error)
    func (c *ELB) AttachLoadBalancerToSubnets(input *AttachLoadBalancerToSubnetsInput) (*AttachLoadBalancerToSubnetsOutput, error)
    func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubnetsInput) (req *request.Request, output *AttachLoadBalancerToSubnetsOutput)
    func (c *ELB) AttachLoadBalancerToSubnetsWithContext(ctx aws.Context, input *AttachLoadBalancerToSubnetsInput, opts ...request.Option) (*AttachLoadBalancerToSubnetsOutput, error)
    func (c *ELB) ConfigureHealthCheck(input *ConfigureHealthCheckInput) (*ConfigureHealthCheckOutput, error)
    func (c *ELB) ConfigureHealthCheckRequest(input *ConfigureHealthCheckInput) (req *request.Request, output *ConfigureHealthCheckOutput)
    func (c *ELB) ConfigureHealthCheckWithContext(ctx aws.Context, input *ConfigureHealthCheckInput, opts ...request.Option) (*ConfigureHealthCheckOutput, error)
    func (c *ELB) CreateAppCookieStickinessPolicy(input *CreateAppCookieStickinessPolicyInput) (*CreateAppCookieStickinessPolicyOutput, error)
    func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStickinessPolicyInput) (req *request.Request, output *CreateAppCookieStickinessPolicyOutput)
    func (c *ELB) CreateAppCookieStickinessPolicyWithContext(ctx aws.Context, input *CreateAppCookieStickinessPolicyInput, opts ...request.Option) (*CreateAppCookieStickinessPolicyOutput, error)
    func (c *ELB) CreateLBCookieStickinessPolicy(input *CreateLBCookieStickinessPolicyInput) (*CreateLBCookieStickinessPolicyOutput, error)
    func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickinessPolicyInput) (req *request.Request, output *CreateLBCookieStickinessPolicyOutput)
    func (c *ELB) CreateLBCookieStickinessPolicyWithContext(ctx aws.Context, input *CreateLBCookieStickinessPolicyInput, opts ...request.Option) (*CreateLBCookieStickinessPolicyOutput, error)
    func (c *ELB) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error)
    func (c *ELB) CreateLoadBalancerListeners(input *CreateLoadBalancerListenersInput) (*CreateLoadBalancerListenersOutput, error)
    func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListenersInput) (req *request.Request, output *CreateLoadBalancerListenersOutput)
    func (c *ELB) CreateLoadBalancerListenersWithContext(ctx aws.Context, input *CreateLoadBalancerListenersInput, opts ...request.Option) (*CreateLoadBalancerListenersOutput, error)
    func (c *ELB) CreateLoadBalancerPolicy(input *CreateLoadBalancerPolicyInput) (*CreateLoadBalancerPolicyOutput, error)
    func (c *ELB) CreateLoadBalancerPolicyRequest(input *CreateLoadBalancerPolicyInput) (req *request.Request, output *CreateLoadBalancerPolicyOutput)
    func (c *ELB) CreateLoadBalancerPolicyWithContext(ctx aws.Context, input *CreateLoadBalancerPolicyInput, opts ...request.Option) (*CreateLoadBalancerPolicyOutput, error)
    func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *request.Request, output *CreateLoadBalancerOutput)
    func (c *ELB) CreateLoadBalancerWithContext(ctx aws.Context, input *CreateLoadBalancerInput, opts ...request.Option) (*CreateLoadBalancerOutput, error)
    func (c *ELB) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error)
    func (c *ELB) DeleteLoadBalancerListeners(input *DeleteLoadBalancerListenersInput) (*DeleteLoadBalancerListenersOutput, error)
    func (c *ELB) DeleteLoadBalancerListenersRequest(input *DeleteLoadBalancerListenersInput) (req *request.Request, output *DeleteLoadBalancerListenersOutput)
    func (c *ELB) DeleteLoadBalancerListenersWithContext(ctx aws.Context, input *DeleteLoadBalancerListenersInput, opts ...request.Option) (*DeleteLoadBalancerListenersOutput, error)
    func (c *ELB) DeleteLoadBalancerPolicy(input *DeleteLoadBalancerPolicyInput) (*DeleteLoadBalancerPolicyOutput, error)
    func (c *ELB) DeleteLoadBalancerPolicyRequest(input *DeleteLoadBalancerPolicyInput) (req *request.Request, output *DeleteLoadBalancerPolicyOutput)
    func (c *ELB) DeleteLoadBalancerPolicyWithContext(ctx aws.Context, input *DeleteLoadBalancerPolicyInput, opts ...request.Option) (*DeleteLoadBalancerPolicyOutput, error)
    func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *request.Request, output *DeleteLoadBalancerOutput)
    func (c *ELB) DeleteLoadBalancerWithContext(ctx aws.Context, input *DeleteLoadBalancerInput, opts ...request.Option) (*DeleteLoadBalancerOutput, error)
    func (c *ELB) DeregisterInstancesFromLoadBalancer(input *DeregisterInstancesFromLoadBalancerInput) (*DeregisterInstancesFromLoadBalancerOutput, error)
    func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstancesFromLoadBalancerInput) (req *request.Request, output *DeregisterInstancesFromLoadBalancerOutput)
    func (c *ELB) DeregisterInstancesFromLoadBalancerWithContext(ctx aws.Context, input *DeregisterInstancesFromLoadBalancerInput, opts ...request.Option) (*DeregisterInstancesFromLoadBalancerOutput, error)
    func (c *ELB) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error)
    func (c *ELB) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) (req *request.Request, output *DescribeAccountLimitsOutput)
    func (c *ELB) DescribeAccountLimitsWithContext(ctx aws.Context, input *DescribeAccountLimitsInput, opts ...request.Option) (*DescribeAccountLimitsOutput, error)
    func (c *ELB) DescribeInstanceHealth(input *DescribeInstanceHealthInput) (*DescribeInstanceHealthOutput, error)
    func (c *ELB) DescribeInstanceHealthRequest(input *DescribeInstanceHealthInput) (req *request.Request, output *DescribeInstanceHealthOutput)
    func (c *ELB) DescribeInstanceHealthWithContext(ctx aws.Context, input *DescribeInstanceHealthInput, opts ...request.Option) (*DescribeInstanceHealthOutput, error)
    func (c *ELB) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error)
    func (c *ELB) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerAttributesInput) (req *request.Request, output *DescribeLoadBalancerAttributesOutput)
    func (c *ELB) DescribeLoadBalancerAttributesWithContext(ctx aws.Context, input *DescribeLoadBalancerAttributesInput, opts ...request.Option) (*DescribeLoadBalancerAttributesOutput, error)
    func (c *ELB) DescribeLoadBalancerPolicies(input *DescribeLoadBalancerPoliciesInput) (*DescribeLoadBalancerPoliciesOutput, error)
    func (c *ELB) DescribeLoadBalancerPoliciesRequest(input *DescribeLoadBalancerPoliciesInput) (req *request.Request, output *DescribeLoadBalancerPoliciesOutput)
    func (c *ELB) DescribeLoadBalancerPoliciesWithContext(ctx aws.Context, input *DescribeLoadBalancerPoliciesInput, opts ...request.Option) (*DescribeLoadBalancerPoliciesOutput, error)
    func (c *ELB) DescribeLoadBalancerPolicyTypes(input *DescribeLoadBalancerPolicyTypesInput) (*DescribeLoadBalancerPolicyTypesOutput, error)
    func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancerPolicyTypesInput) (req *request.Request, output *DescribeLoadBalancerPolicyTypesOutput)
    func (c *ELB) DescribeLoadBalancerPolicyTypesWithContext(ctx aws.Context, input *DescribeLoadBalancerPolicyTypesInput, opts ...request.Option) (*DescribeLoadBalancerPolicyTypesOutput, error)
    func (c *ELB) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error)
    func (c *ELB) DescribeLoadBalancersPages(input *DescribeLoadBalancersInput, fn func(*DescribeLoadBalancersOutput, bool) bool) error
    func (c *ELB) DescribeLoadBalancersPagesWithContext(ctx aws.Context, input *DescribeLoadBalancersInput, fn func(*DescribeLoadBalancersOutput, bool) bool, opts ...request.Option) error
    func (c *ELB) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *request.Request, output *DescribeLoadBalancersOutput)
    func (c *ELB) DescribeLoadBalancersWithContext(ctx aws.Context, input *DescribeLoadBalancersInput, opts ...request.Option) (*DescribeLoadBalancersOutput, error)
    func (c *ELB) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error)
    func (c *ELB) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput)
    func (c *ELB) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error)
    func (c *ELB) DetachLoadBalancerFromSubnets(input *DetachLoadBalancerFromSubnetsInput) (*DetachLoadBalancerFromSubnetsOutput, error)
    func (c *ELB) DetachLoadBalancerFromSubnetsRequest(input *DetachLoadBalancerFromSubnetsInput) (req *request.Request, output *DetachLoadBalancerFromSubnetsOutput)
    func (c *ELB) DetachLoadBalancerFromSubnetsWithContext(ctx aws.Context, input *DetachLoadBalancerFromSubnetsInput, opts ...request.Option) (*DetachLoadBalancerFromSubnetsOutput, error)
    func (c *ELB) DisableAvailabilityZonesForLoadBalancer(input *DisableAvailabilityZonesForLoadBalancerInput) (*DisableAvailabilityZonesForLoadBalancerOutput, error)
    func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *DisableAvailabilityZonesForLoadBalancerOutput)
    func (c *ELB) DisableAvailabilityZonesForLoadBalancerWithContext(ctx aws.Context, input *DisableAvailabilityZonesForLoadBalancerInput, opts ...request.Option) (*DisableAvailabilityZonesForLoadBalancerOutput, error)
    func (c *ELB) EnableAvailabilityZonesForLoadBalancer(input *EnableAvailabilityZonesForLoadBalancerInput) (*EnableAvailabilityZonesForLoadBalancerOutput, error)
    func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *EnableAvailabilityZonesForLoadBalancerOutput)
    func (c *ELB) EnableAvailabilityZonesForLoadBalancerWithContext(ctx aws.Context, input *EnableAvailabilityZonesForLoadBalancerInput, opts ...request.Option) (*EnableAvailabilityZonesForLoadBalancerOutput, error)
    func (c *ELB) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error)
    func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) (req *request.Request, output *ModifyLoadBalancerAttributesOutput)
    func (c *ELB) ModifyLoadBalancerAttributesWithContext(ctx aws.Context, input *ModifyLoadBalancerAttributesInput, opts ...request.Option) (*ModifyLoadBalancerAttributesOutput, error)
    func (c *ELB) RegisterInstancesWithLoadBalancer(input *RegisterInstancesWithLoadBalancerInput) (*RegisterInstancesWithLoadBalancerOutput, error)
    func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesWithLoadBalancerInput) (req *request.Request, output *RegisterInstancesWithLoadBalancerOutput)
    func (c *ELB) RegisterInstancesWithLoadBalancerWithContext(ctx aws.Context, input *RegisterInstancesWithLoadBalancerInput, opts ...request.Option) (*RegisterInstancesWithLoadBalancerOutput, error)
    func (c *ELB) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error)
    func (c *ELB) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput)
    func (c *ELB) RemoveTagsWithContext(ctx aws.Context, input *RemoveTagsInput, opts ...request.Option) (*RemoveTagsOutput, error)
    func (c *ELB) SetLoadBalancerListenerSSLCertificate(input *SetLoadBalancerListenerSSLCertificateInput) (*SetLoadBalancerListenerSSLCertificateOutput, error)
    func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalancerListenerSSLCertificateInput) (req *request.Request, output *SetLoadBalancerListenerSSLCertificateOutput)
    func (c *ELB) SetLoadBalancerListenerSSLCertificateWithContext(ctx aws.Context, input *SetLoadBalancerListenerSSLCertificateInput, opts ...request.Option) (*SetLoadBalancerListenerSSLCertificateOutput, error)
    func (c *ELB) SetLoadBalancerPoliciesForBackendServer(input *SetLoadBalancerPoliciesForBackendServerInput) (*SetLoadBalancerPoliciesForBackendServerOutput, error)
    func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalancerPoliciesForBackendServerInput) (req *request.Request, output *SetLoadBalancerPoliciesForBackendServerOutput)
    func (c *ELB) SetLoadBalancerPoliciesForBackendServerWithContext(ctx aws.Context, input *SetLoadBalancerPoliciesForBackendServerInput, opts ...request.Option) (*SetLoadBalancerPoliciesForBackendServerOutput, error)
    func (c *ELB) SetLoadBalancerPoliciesOfListener(input *SetLoadBalancerPoliciesOfListenerInput) (*SetLoadBalancerPoliciesOfListenerOutput, error)
    func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPoliciesOfListenerInput) (req *request.Request, output *SetLoadBalancerPoliciesOfListenerOutput)
    func (c *ELB) SetLoadBalancerPoliciesOfListenerWithContext(ctx aws.Context, input *SetLoadBalancerPoliciesOfListenerInput, opts ...request.Option) (*SetLoadBalancerPoliciesOfListenerOutput, error)
    func (c *ELB) WaitUntilAnyInstanceInService(input *DescribeInstanceHealthInput) error
    func (c *ELB) WaitUntilAnyInstanceInServiceWithContext(ctx aws.Context, input *DescribeInstanceHealthInput, opts ...request.WaiterOption) error
    func (c *ELB) WaitUntilInstanceDeregistered(input *DescribeInstanceHealthInput) error
    func (c *ELB) WaitUntilInstanceDeregisteredWithContext(ctx aws.Context, input *DescribeInstanceHealthInput, opts ...request.WaiterOption) error
    func (c *ELB) WaitUntilInstanceInService(input *DescribeInstanceHealthInput) error
    func (c *ELB) WaitUntilInstanceInServiceWithContext(ctx aws.Context, input *DescribeInstanceHealthInput, opts ...request.WaiterOption) error
type EnableAvailabilityZonesForLoadBalancerInput
    func (s EnableAvailabilityZonesForLoadBalancerInput) GoString() string
    func (s *EnableAvailabilityZonesForLoadBalancerInput) SetAvailabilityZones(v []*string) *EnableAvailabilityZonesForLoadBalancerInput
    func (s *EnableAvailabilityZonesForLoadBalancerInput) SetLoadBalancerName(v string) *EnableAvailabilityZonesForLoadBalancerInput
    func (s EnableAvailabilityZonesForLoadBalancerInput) String() string
    func (s *EnableAvailabilityZonesForLoadBalancerInput) Validate() error
type EnableAvailabilityZonesForLoadBalancerOutput
    func (s EnableAvailabilityZonesForLoadBalancerOutput) GoString() string
    func (s *EnableAvailabilityZonesForLoadBalancerOutput) SetAvailabilityZones(v []*string) *EnableAvailabilityZonesForLoadBalancerOutput
    func (s EnableAvailabilityZonesForLoadBalancerOutput) String() string
type HealthCheck
    func (s HealthCheck) GoString() string
    func (s *HealthCheck) SetHealthyThreshold(v int64) *HealthCheck
    func (s *HealthCheck) SetInterval(v int64) *HealthCheck
    func (s *HealthCheck) SetTarget(v string) *HealthCheck
    func (s *HealthCheck) SetTimeout(v int64) *HealthCheck
    func (s *HealthCheck) SetUnhealthyThreshold(v int64) *HealthCheck
    func (s HealthCheck) String() string
    func (s *HealthCheck) Validate() error
type Instance
    func (s Instance) GoString() string
    func (s *Instance) SetInstanceId(v string) *Instance
    func (s Instance) String() string
type InstanceState
    func (s InstanceState) GoString() string
    func (s *InstanceState) SetDescription(v string) *InstanceState
    func (s *InstanceState) SetInstanceId(v string) *InstanceState
    func (s *InstanceState) SetReasonCode(v string) *InstanceState
    func (s *InstanceState) SetState(v string) *InstanceState
    func (s InstanceState) String() string
type LBCookieStickinessPolicy
    func (s LBCookieStickinessPolicy) GoString() string
    func (s *LBCookieStickinessPolicy) SetCookieExpirationPeriod(v int64) *LBCookieStickinessPolicy
    func (s *LBCookieStickinessPolicy) SetPolicyName(v string) *LBCookieStickinessPolicy
    func (s LBCookieStickinessPolicy) String() string
type Limit
    func (s Limit) GoString() string
    func (s *Limit) SetMax(v string) *Limit
    func (s *Limit) SetName(v string) *Limit
    func (s Limit) String() string
type Listener
    func (s Listener) GoString() string
    func (s *Listener) SetInstancePort(v int64) *Listener
    func (s *Listener) SetInstanceProtocol(v string) *Listener
    func (s *Listener) SetLoadBalancerPort(v int64) *Listener
    func (s *Listener) SetProtocol(v string) *Listener
    func (s *Listener) SetSSLCertificateId(v string) *Listener
    func (s Listener) String() string
    func (s *Listener) Validate() error
type ListenerDescription
    func (s ListenerDescription) GoString() string
    func (s *ListenerDescription) SetListener(v *Listener) *ListenerDescription
    func (s *ListenerDescription) SetPolicyNames(v []*string) *ListenerDescription
    func (s ListenerDescription) String() string
type LoadBalancerAttributes
    func (s LoadBalancerAttributes) GoString() string
    func (s *LoadBalancerAttributes) SetAccessLog(v *AccessLog) *LoadBalancerAttributes
    func (s *LoadBalancerAttributes) SetAdditionalAttributes(v []*AdditionalAttribute) *LoadBalancerAttributes
    func (s *LoadBalancerAttributes) SetConnectionDraining(v *ConnectionDraining) *LoadBalancerAttributes
    func (s *LoadBalancerAttributes) SetConnectionSettings(v *ConnectionSettings) *LoadBalancerAttributes
    func (s *LoadBalancerAttributes) SetCrossZoneLoadBalancing(v *CrossZoneLoadBalancing) *LoadBalancerAttributes
    func (s LoadBalancerAttributes) String() string
    func (s *LoadBalancerAttributes) Validate() error
type LoadBalancerDescription
    func (s LoadBalancerDescription) GoString() string
    func (s *LoadBalancerDescription) SetAvailabilityZones(v []*string) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetBackendServerDescriptions(v []*BackendServerDescription) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetCanonicalHostedZoneName(v string) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetCanonicalHostedZoneNameID(v string) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetCreatedTime(v time.Time) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetDNSName(v string) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetHealthCheck(v *HealthCheck) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetInstances(v []*Instance) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetListenerDescriptions(v []*ListenerDescription) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetLoadBalancerName(v string) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetPolicies(v *Policies) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetScheme(v string) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetSecurityGroups(v []*string) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetSourceSecurityGroup(v *SourceSecurityGroup) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetSubnets(v []*string) *LoadBalancerDescription
    func (s *LoadBalancerDescription) SetVPCId(v string) *LoadBalancerDescription
    func (s LoadBalancerDescription) String() string
type ModifyLoadBalancerAttributesInput
    func (s ModifyLoadBalancerAttributesInput) GoString() string
    func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *ModifyLoadBalancerAttributesInput
    func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerName(v string) *ModifyLoadBalancerAttributesInput
    func (s ModifyLoadBalancerAttributesInput) String() string
    func (s *ModifyLoadBalancerAttributesInput) Validate() error
type ModifyLoadBalancerAttributesOutput
    func (s ModifyLoadBalancerAttributesOutput) GoString() string
    func (s *ModifyLoadBalancerAttributesOutput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *ModifyLoadBalancerAttributesOutput
    func (s *ModifyLoadBalancerAttributesOutput) SetLoadBalancerName(v string) *ModifyLoadBalancerAttributesOutput
    func (s ModifyLoadBalancerAttributesOutput) String() string
type Policies
    func (s Policies) GoString() string
    func (s *Policies) SetAppCookieStickinessPolicies(v []*AppCookieStickinessPolicy) *Policies
    func (s *Policies) SetLBCookieStickinessPolicies(v []*LBCookieStickinessPolicy) *Policies
    func (s *Policies) SetOtherPolicies(v []*string) *Policies
    func (s Policies) String() string
type PolicyAttribute
    func (s PolicyAttribute) GoString() string
    func (s *PolicyAttribute) SetAttributeName(v string) *PolicyAttribute
    func (s *PolicyAttribute) SetAttributeValue(v string) *PolicyAttribute
    func (s PolicyAttribute) String() string
type PolicyAttributeDescription
    func (s PolicyAttributeDescription) GoString() string
    func (s *PolicyAttributeDescription) SetAttributeName(v string) *PolicyAttributeDescription
    func (s *PolicyAttributeDescription) SetAttributeValue(v string) *PolicyAttributeDescription
    func (s PolicyAttributeDescription) String() string
type PolicyAttributeTypeDescription
    func (s PolicyAttributeTypeDescription) GoString() string
    func (s *PolicyAttributeTypeDescription) SetAttributeName(v string) *PolicyAttributeTypeDescription
    func (s *PolicyAttributeTypeDescription) SetAttributeType(v string) *PolicyAttributeTypeDescription
    func (s *PolicyAttributeTypeDescription) SetCardinality(v string) *PolicyAttributeTypeDescription
    func (s *PolicyAttributeTypeDescription) SetDefaultValue(v string) *PolicyAttributeTypeDescription
    func (s *PolicyAttributeTypeDescription) SetDescription(v string) *PolicyAttributeTypeDescription
    func (s PolicyAttributeTypeDescription) String() string
type PolicyDescription
    func (s PolicyDescription) GoString() string
    func (s *PolicyDescription) SetPolicyAttributeDescriptions(v []*PolicyAttributeDescription) *PolicyDescription
    func (s *PolicyDescription) SetPolicyName(v string) *PolicyDescription
    func (s *PolicyDescription) SetPolicyTypeName(v string) *PolicyDescription
    func (s PolicyDescription) String() string
type PolicyTypeDescription
    func (s PolicyTypeDescription) GoString() string
    func (s *PolicyTypeDescription) SetDescription(v string) *PolicyTypeDescription
    func (s *PolicyTypeDescription) SetPolicyAttributeTypeDescriptions(v []*PolicyAttributeTypeDescription) *PolicyTypeDescription
    func (s *PolicyTypeDescription) SetPolicyTypeName(v string) *PolicyTypeDescription
    func (s PolicyTypeDescription) String() string
type RegisterInstancesWithLoadBalancerInput
    func (s RegisterInstancesWithLoadBalancerInput) GoString() string
    func (s *RegisterInstancesWithLoadBalancerInput) SetInstances(v []*Instance) *RegisterInstancesWithLoadBalancerInput
    func (s *RegisterInstancesWithLoadBalancerInput) SetLoadBalancerName(v string) *RegisterInstancesWithLoadBalancerInput
    func (s RegisterInstancesWithLoadBalancerInput) String() string
    func (s *RegisterInstancesWithLoadBalancerInput) Validate() error
type RegisterInstancesWithLoadBalancerOutput
    func (s RegisterInstancesWithLoadBalancerOutput) GoString() string
    func (s *RegisterInstancesWithLoadBalancerOutput) SetInstances(v []*Instance) *RegisterInstancesWithLoadBalancerOutput
    func (s RegisterInstancesWithLoadBalancerOutput) String() string
type RemoveTagsInput
    func (s RemoveTagsInput) GoString() string
    func (s *RemoveTagsInput) SetLoadBalancerNames(v []*string) *RemoveTagsInput
    func (s *RemoveTagsInput) SetTags(v []*TagKeyOnly) *RemoveTagsInput
    func (s RemoveTagsInput) String() string
    func (s *RemoveTagsInput) Validate() error
type RemoveTagsOutput
    func (s RemoveTagsOutput) GoString() string
    func (s RemoveTagsOutput) String() string
type SetLoadBalancerListenerSSLCertificateInput
    func (s SetLoadBalancerListenerSSLCertificateInput) GoString() string
    func (s *SetLoadBalancerListenerSSLCertificateInput) SetLoadBalancerName(v string) *SetLoadBalancerListenerSSLCertificateInput
    func (s *SetLoadBalancerListenerSSLCertificateInput) SetLoadBalancerPort(v int64) *SetLoadBalancerListenerSSLCertificateInput
    func (s *SetLoadBalancerListenerSSLCertificateInput) SetSSLCertificateId(v string) *SetLoadBalancerListenerSSLCertificateInput
    func (s SetLoadBalancerListenerSSLCertificateInput) String() string
    func (s *SetLoadBalancerListenerSSLCertificateInput) Validate() error
type SetLoadBalancerListenerSSLCertificateOutput
    func (s SetLoadBalancerListenerSSLCertificateOutput) GoString() string
    func (s SetLoadBalancerListenerSSLCertificateOutput) String() string
type SetLoadBalancerPoliciesForBackendServerInput
    func (s SetLoadBalancerPoliciesForBackendServerInput) GoString() string
    func (s *SetLoadBalancerPoliciesForBackendServerInput) SetInstancePort(v int64) *SetLoadBalancerPoliciesForBackendServerInput
    func (s *SetLoadBalancerPoliciesForBackendServerInput) SetLoadBalancerName(v string) *SetLoadBalancerPoliciesForBackendServerInput
    func (s *SetLoadBalancerPoliciesForBackendServerInput) SetPolicyNames(v []*string) *SetLoadBalancerPoliciesForBackendServerInput
    func (s SetLoadBalancerPoliciesForBackendServerInput) String() string
    func (s *SetLoadBalancerPoliciesForBackendServerInput) Validate() error
type SetLoadBalancerPoliciesForBackendServerOutput
    func (s SetLoadBalancerPoliciesForBackendServerOutput) GoString() string
    func (s SetLoadBalancerPoliciesForBackendServerOutput) String() string
type SetLoadBalancerPoliciesOfListenerInput
    func (s SetLoadBalancerPoliciesOfListenerInput) GoString() string
    func (s *SetLoadBalancerPoliciesOfListenerInput) SetLoadBalancerName(v string) *SetLoadBalancerPoliciesOfListenerInput
    func (s *SetLoadBalancerPoliciesOfListenerInput) SetLoadBalancerPort(v int64) *SetLoadBalancerPoliciesOfListenerInput
    func (s *SetLoadBalancerPoliciesOfListenerInput) SetPolicyNames(v []*string) *SetLoadBalancerPoliciesOfListenerInput
    func (s SetLoadBalancerPoliciesOfListenerInput) String() string
    func (s *SetLoadBalancerPoliciesOfListenerInput) Validate() error
type SetLoadBalancerPoliciesOfListenerOutput
    func (s SetLoadBalancerPoliciesOfListenerOutput) GoString() string
    func (s SetLoadBalancerPoliciesOfListenerOutput) String() string
type SourceSecurityGroup
    func (s SourceSecurityGroup) GoString() string
    func (s *SourceSecurityGroup) SetGroupName(v string) *SourceSecurityGroup
    func (s *SourceSecurityGroup) SetOwnerAlias(v string) *SourceSecurityGroup
    func (s SourceSecurityGroup) String() string
type Tag
    func (s Tag) GoString() string
    func (s *Tag) SetKey(v string) *Tag
    func (s *Tag) SetValue(v string) *Tag
    func (s Tag) String() string
    func (s *Tag) Validate() error
type TagDescription
    func (s TagDescription) GoString() string
    func (s *TagDescription) SetLoadBalancerName(v string) *TagDescription
    func (s *TagDescription) SetTags(v []*Tag) *TagDescription
    func (s TagDescription) String() string
type TagKeyOnly
    func (s TagKeyOnly) GoString() string
    func (s *TagKeyOnly) SetKey(v string) *TagKeyOnly
    func (s TagKeyOnly) String() string
    func (s *TagKeyOnly) Validate() error

Examples

ELB.AddTags (Shared00)
ELB.ApplySecurityGroupsToLoadBalancer (Shared00)
ELB.AttachLoadBalancerToSubnets (Shared00)
ELB.ConfigureHealthCheck (Shared00)
ELB.CreateAppCookieStickinessPolicy (Shared00)
ELB.CreateLBCookieStickinessPolicy (Shared00)
ELB.CreateLoadBalancerListeners (Shared00)
ELB.CreateLoadBalancerListeners (Shared01)
ELB.CreateLoadBalancerPolicy (Shared00)
ELB.CreateLoadBalancerPolicy (Shared01)
ELB.CreateLoadBalancerPolicy (Shared02)
ELB.CreateLoadBalancer (Shared00)
ELB.CreateLoadBalancer (Shared01)
ELB.CreateLoadBalancer (Shared02)
ELB.CreateLoadBalancer (Shared03)
ELB.CreateLoadBalancer (Shared04)
ELB.DeleteLoadBalancerListeners (Shared00)
ELB.DeleteLoadBalancerPolicy (Shared00)
ELB.DeleteLoadBalancer (Shared00)
ELB.DeregisterInstancesFromLoadBalancer (Shared00)
ELB.DescribeInstanceHealth (Shared00)
ELB.DescribeLoadBalancerAttributes (Shared00)
ELB.DescribeLoadBalancerPolicies (Shared00)
ELB.DescribeLoadBalancerPolicyTypes (Shared00)
ELB.DescribeLoadBalancers (Shared00)
ELB.DescribeTags (Shared00)
ELB.DetachLoadBalancerFromSubnets (Shared00)
ELB.DisableAvailabilityZonesForLoadBalancer (Shared00)
ELB.EnableAvailabilityZonesForLoadBalancer (Shared00)
ELB.ModifyLoadBalancerAttributes (Shared00)
ELB.ModifyLoadBalancerAttributes (Shared01)
ELB.RegisterInstancesWithLoadBalancer (Shared00)
ELB.RemoveTags (Shared00)
ELB.SetLoadBalancerListenerSSLCertificate (Shared00)
ELB.SetLoadBalancerPoliciesForBackendServer (Shared00)
ELB.SetLoadBalancerPoliciesOfListener (Shared00)

Package files

api.go doc.go errors.go service.go waiters.go

Constants

const (

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

    // ErrCodeCertificateNotFoundException for service response error code
    // "CertificateNotFound".
    //
    // The specified ARN does not refer to a valid SSL certificate in AWS Identity
    // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if
    // you recently uploaded the certificate to IAM, this error might indicate that
    // the certificate is not fully available yet.
    ErrCodeCertificateNotFoundException = "CertificateNotFound"

    // ErrCodeDependencyThrottleException for service response error code
    // "DependencyThrottle".
    ErrCodeDependencyThrottleException = "DependencyThrottle"

    // ErrCodeDuplicateAccessPointNameException for service response error code
    // "DuplicateLoadBalancerName".
    //
    // The specified load balancer name already exists for this account.
    ErrCodeDuplicateAccessPointNameException = "DuplicateLoadBalancerName"

    // ErrCodeDuplicateListenerException for service response error code
    // "DuplicateListener".
    //
    // A listener already exists for the specified load balancer name and port,
    // but with a different instance port, protocol, or SSL certificate.
    ErrCodeDuplicateListenerException = "DuplicateListener"

    // ErrCodeDuplicatePolicyNameException for service response error code
    // "DuplicatePolicyName".
    //
    // A policy with the specified name already exists for this load balancer.
    ErrCodeDuplicatePolicyNameException = "DuplicatePolicyName"

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

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

    // ErrCodeInvalidEndPointException for service response error code
    // "InvalidInstance".
    //
    // The specified endpoint is not valid.
    ErrCodeInvalidEndPointException = "InvalidInstance"

    // ErrCodeInvalidSchemeException for service response error code
    // "InvalidScheme".
    //
    // The specified value for the schema is not valid. You can only specify a scheme
    // for load balancers in a VPC.
    ErrCodeInvalidSchemeException = "InvalidScheme"

    // ErrCodeInvalidSecurityGroupException for service response error code
    // "InvalidSecurityGroup".
    //
    // One or more of the specified security groups do not exist.
    ErrCodeInvalidSecurityGroupException = "InvalidSecurityGroup"

    // ErrCodeInvalidSubnetException for service response error code
    // "InvalidSubnet".
    //
    // The specified VPC has no associated Internet gateway.
    ErrCodeInvalidSubnetException = "InvalidSubnet"

    // ErrCodeListenerNotFoundException for service response error code
    // "ListenerNotFound".
    //
    // The load balancer does not have a listener configured at the specified port.
    ErrCodeListenerNotFoundException = "ListenerNotFound"

    // ErrCodeLoadBalancerAttributeNotFoundException for service response error code
    // "LoadBalancerAttributeNotFound".
    //
    // The specified load balancer attribute does not exist.
    ErrCodeLoadBalancerAttributeNotFoundException = "LoadBalancerAttributeNotFound"

    // ErrCodePolicyNotFoundException for service response error code
    // "PolicyNotFound".
    //
    // One or more of the specified policies do not exist.
    ErrCodePolicyNotFoundException = "PolicyNotFound"

    // ErrCodePolicyTypeNotFoundException for service response error code
    // "PolicyTypeNotFound".
    //
    // One or more of the specified policy types do not exist.
    ErrCodePolicyTypeNotFoundException = "PolicyTypeNotFound"

    // ErrCodeSubnetNotFoundException for service response error code
    // "SubnetNotFound".
    //
    // One or more of the specified subnets do not exist.
    ErrCodeSubnetNotFoundException = "SubnetNotFound"

    // ErrCodeTooManyAccessPointsException for service response error code
    // "TooManyLoadBalancers".
    //
    // The quota for the number of load balancers has been reached.
    ErrCodeTooManyAccessPointsException = "TooManyLoadBalancers"

    // ErrCodeTooManyPoliciesException for service response error code
    // "TooManyPolicies".
    //
    // The quota for the number of policies for this load balancer has been reached.
    ErrCodeTooManyPoliciesException = "TooManyPolicies"

    // ErrCodeTooManyTagsException for service response error code
    // "TooManyTags".
    //
    // The quota for the number of tags that can be assigned to a load balancer
    // has been reached.
    ErrCodeTooManyTagsException = "TooManyTags"

    // ErrCodeUnsupportedProtocolException for service response error code
    // "UnsupportedProtocol".
    //
    // The specified protocol or signature version is not supported.
    ErrCodeUnsupportedProtocolException = "UnsupportedProtocol"
)

Service information constants

const (
    ServiceName = "elasticloadbalancing" // Service endpoint prefix API calls made to.
    EndpointsID = ServiceName            // Service ID for Regions and Endpoints metadata.
)

type AccessLog

Information about the AccessLog attribute. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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 logs are enabled for the load balancer.
    //
    // Enabled is a required field
    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
}

func (AccessLog) GoString

func (s AccessLog) GoString() string

GoString returns the string representation

func (*AccessLog) SetEmitInterval

func (s *AccessLog) SetEmitInterval(v int64) *AccessLog

SetEmitInterval sets the EmitInterval field's value.

func (*AccessLog) SetEnabled

func (s *AccessLog) SetEnabled(v bool) *AccessLog

SetEnabled sets the Enabled field's value.

func (*AccessLog) SetS3BucketName

func (s *AccessLog) SetS3BucketName(v string) *AccessLog

SetS3BucketName sets the S3BucketName field's value.

func (*AccessLog) SetS3BucketPrefix

func (s *AccessLog) SetS3BucketPrefix(v string) *AccessLog

SetS3BucketPrefix sets the S3BucketPrefix field's value.

func (AccessLog) String

func (s AccessLog) String() string

String returns the string representation

func (*AccessLog) Validate

func (s *AccessLog) Validate() error

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

type AddTagsInput

Contains the parameters for AddTags. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AddTagsInput

type AddTagsInput struct {

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

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

func (AddTagsInput) GoString

func (s AddTagsInput) GoString() string

GoString returns the string representation

func (*AddTagsInput) SetLoadBalancerNames

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

SetLoadBalancerNames sets the LoadBalancerNames field's value.

func (*AddTagsInput) SetTags

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

SetTags sets the Tags field's value.

func (AddTagsInput) String

func (s AddTagsInput) String() string

String returns the string representation

func (*AddTagsInput) Validate

func (s *AddTagsInput) Validate() error

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

type AddTagsOutput

Contains the output of AddTags. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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

This data type is reserved. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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
}

func (AdditionalAttribute) GoString

func (s AdditionalAttribute) GoString() string

GoString returns the string representation

func (*AdditionalAttribute) SetKey

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

SetKey sets the Key field's value.

func (*AdditionalAttribute) SetValue

func (s *AdditionalAttribute) SetValue(v string) *AdditionalAttribute

SetValue sets the Value field's value.

func (AdditionalAttribute) String

func (s AdditionalAttribute) String() string

String returns the string representation

type AppCookieStickinessPolicy

Information about a policy for application-controlled session stickiness. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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
}

func (AppCookieStickinessPolicy) GoString

func (s AppCookieStickinessPolicy) GoString() string

GoString returns the string representation

func (*AppCookieStickinessPolicy) SetCookieName

func (s *AppCookieStickinessPolicy) SetCookieName(v string) *AppCookieStickinessPolicy

SetCookieName sets the CookieName field's value.

func (*AppCookieStickinessPolicy) SetPolicyName

func (s *AppCookieStickinessPolicy) SetPolicyName(v string) *AppCookieStickinessPolicy

SetPolicyName sets the PolicyName field's value.

func (AppCookieStickinessPolicy) String

func (s AppCookieStickinessPolicy) String() string

String returns the string representation

type ApplySecurityGroupsToLoadBalancerInput

Contains the parameters for ApplySecurityGroupsToLoadBalancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ApplySecurityGroupsToLoadBalancerInput

type ApplySecurityGroupsToLoadBalancerInput struct {

    // The name of the load balancer.
    //
    // LoadBalancerName is a required field
    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 is a required field
    SecurityGroups []*string `type:"list" required:"true"`
    // contains filtered or unexported fields
}

func (ApplySecurityGroupsToLoadBalancerInput) GoString

func (s ApplySecurityGroupsToLoadBalancerInput) GoString() string

GoString returns the string representation

func (*ApplySecurityGroupsToLoadBalancerInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*ApplySecurityGroupsToLoadBalancerInput) SetSecurityGroups

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

SetSecurityGroups sets the SecurityGroups field's value.

func (ApplySecurityGroupsToLoadBalancerInput) String

func (s ApplySecurityGroupsToLoadBalancerInput) String() string

String returns the string representation

func (*ApplySecurityGroupsToLoadBalancerInput) Validate

func (s *ApplySecurityGroupsToLoadBalancerInput) Validate() error

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

type ApplySecurityGroupsToLoadBalancerOutput

Contains the output of ApplySecurityGroupsToLoadBalancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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

func (s ApplySecurityGroupsToLoadBalancerOutput) GoString() string

GoString returns the string representation

func (*ApplySecurityGroupsToLoadBalancerOutput) SetSecurityGroups

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

SetSecurityGroups sets the SecurityGroups field's value.

func (ApplySecurityGroupsToLoadBalancerOutput) String

func (s ApplySecurityGroupsToLoadBalancerOutput) String() string

String returns the string representation

type AttachLoadBalancerToSubnetsInput

Contains the parameters for AttachLoaBalancerToSubnets. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AttachLoadBalancerToSubnetsInput

type AttachLoadBalancerToSubnetsInput struct {

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

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

func (AttachLoadBalancerToSubnetsInput) GoString

func (s AttachLoadBalancerToSubnetsInput) GoString() string

GoString returns the string representation

func (*AttachLoadBalancerToSubnetsInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*AttachLoadBalancerToSubnetsInput) SetSubnets

func (s *AttachLoadBalancerToSubnetsInput) SetSubnets(v []*string) *AttachLoadBalancerToSubnetsInput

SetSubnets sets the Subnets field's value.

func (AttachLoadBalancerToSubnetsInput) String

func (s AttachLoadBalancerToSubnetsInput) String() string

String returns the string representation

func (*AttachLoadBalancerToSubnetsInput) Validate

func (s *AttachLoadBalancerToSubnetsInput) Validate() error

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

type AttachLoadBalancerToSubnetsOutput

Contains the output of AttachLoadBalancerToSubnets. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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

func (s AttachLoadBalancerToSubnetsOutput) GoString() string

GoString returns the string representation

func (*AttachLoadBalancerToSubnetsOutput) SetSubnets

func (s *AttachLoadBalancerToSubnetsOutput) SetSubnets(v []*string) *AttachLoadBalancerToSubnetsOutput

SetSubnets sets the Subnets field's value.

func (AttachLoadBalancerToSubnetsOutput) String

func (s AttachLoadBalancerToSubnetsOutput) String() string

String returns the string representation

type BackendServerDescription

Information about the configuration of an EC2 instance. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/BackendServerDescription

type BackendServerDescription struct {

    // The port on which the EC2 instance is listening.
    InstancePort *int64 `min:"1" type:"integer"`

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

func (BackendServerDescription) GoString

func (s BackendServerDescription) GoString() string

GoString returns the string representation

func (*BackendServerDescription) SetInstancePort

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

SetInstancePort sets the InstancePort field's value.

func (*BackendServerDescription) SetPolicyNames

func (s *BackendServerDescription) SetPolicyNames(v []*string) *BackendServerDescription

SetPolicyNames sets the PolicyNames field's value.

func (BackendServerDescription) String

func (s BackendServerDescription) String() string

String returns the string representation

type ConfigureHealthCheckInput

Contains the parameters for ConfigureHealthCheck. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ConfigureHealthCheckInput

type ConfigureHealthCheckInput struct {

    // The configuration information.
    //
    // HealthCheck is a required field
    HealthCheck *HealthCheck `type:"structure" required:"true"`

    // The name of the load balancer.
    //
    // LoadBalancerName is a required field
    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) SetHealthCheck

func (s *ConfigureHealthCheckInput) SetHealthCheck(v *HealthCheck) *ConfigureHealthCheckInput

SetHealthCheck sets the HealthCheck field's value.

func (*ConfigureHealthCheckInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (ConfigureHealthCheckInput) String

func (s ConfigureHealthCheckInput) String() string

String returns the string representation

func (*ConfigureHealthCheckInput) Validate

func (s *ConfigureHealthCheckInput) Validate() error

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

type ConfigureHealthCheckOutput

Contains the output of ConfigureHealthCheck. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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) SetHealthCheck

func (s *ConfigureHealthCheckOutput) SetHealthCheck(v *HealthCheck) *ConfigureHealthCheckOutput

SetHealthCheck sets the HealthCheck field's value.

func (ConfigureHealthCheckOutput) String

func (s ConfigureHealthCheckOutput) String() string

String returns the string representation

type ConnectionDraining

Information about the ConnectionDraining attribute. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ConnectionDraining

type ConnectionDraining struct {

    // Specifies whether connection draining is enabled for the load balancer.
    //
    // Enabled is a required field
    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
}

func (ConnectionDraining) GoString

func (s ConnectionDraining) GoString() string

GoString returns the string representation

func (*ConnectionDraining) SetEnabled

func (s *ConnectionDraining) SetEnabled(v bool) *ConnectionDraining

SetEnabled sets the Enabled field's value.

func (*ConnectionDraining) SetTimeout

func (s *ConnectionDraining) SetTimeout(v int64) *ConnectionDraining

SetTimeout sets the Timeout field's value.

func (ConnectionDraining) String

func (s ConnectionDraining) String() string

String returns the string representation

func (*ConnectionDraining) Validate

func (s *ConnectionDraining) Validate() error

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

type ConnectionSettings

Information about the ConnectionSettings attribute. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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 is a required field
    IdleTimeout *int64 `min:"1" type:"integer" required:"true"`
    // contains filtered or unexported fields
}

func (ConnectionSettings) GoString

func (s ConnectionSettings) GoString() string

GoString returns the string representation

func (*ConnectionSettings) SetIdleTimeout

func (s *ConnectionSettings) SetIdleTimeout(v int64) *ConnectionSettings

SetIdleTimeout sets the IdleTimeout field's value.

func (ConnectionSettings) String

func (s ConnectionSettings) String() string

String returns the string representation

func (*ConnectionSettings) Validate

func (s *ConnectionSettings) Validate() error

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

type CreateAppCookieStickinessPolicyInput

Contains the parameters for CreateAppCookieStickinessPolicy. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAppCookieStickinessPolicyInput

type CreateAppCookieStickinessPolicyInput struct {

    // The name of the application cookie used for stickiness.
    //
    // CookieName is a required field
    CookieName *string `type:"string" required:"true"`

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

    // The name of the policy being created. Policy names must consist of alphanumeric
    // characters and dashes (-). This name must be unique within the set of policies
    // for this load balancer.
    //
    // PolicyName is a required field
    PolicyName *string `type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (CreateAppCookieStickinessPolicyInput) GoString

func (s CreateAppCookieStickinessPolicyInput) GoString() string

GoString returns the string representation

func (*CreateAppCookieStickinessPolicyInput) SetCookieName

func (s *CreateAppCookieStickinessPolicyInput) SetCookieName(v string) *CreateAppCookieStickinessPolicyInput

SetCookieName sets the CookieName field's value.

func (*CreateAppCookieStickinessPolicyInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*CreateAppCookieStickinessPolicyInput) SetPolicyName

func (s *CreateAppCookieStickinessPolicyInput) SetPolicyName(v string) *CreateAppCookieStickinessPolicyInput

SetPolicyName sets the PolicyName field's value.

func (CreateAppCookieStickinessPolicyInput) String

func (s CreateAppCookieStickinessPolicyInput) String() string

String returns the string representation

func (*CreateAppCookieStickinessPolicyInput) Validate

func (s *CreateAppCookieStickinessPolicyInput) Validate() error

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

type CreateAppCookieStickinessPolicyOutput

Contains the output for CreateAppCookieStickinessPolicy. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAppCookieStickinessPolicyOutput

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

func (CreateAppCookieStickinessPolicyOutput) GoString

func (s CreateAppCookieStickinessPolicyOutput) GoString() string

GoString returns the string representation

func (CreateAppCookieStickinessPolicyOutput) String

func (s CreateAppCookieStickinessPolicyOutput) String() string

String returns the string representation

type CreateLBCookieStickinessPolicyInput

Contains the parameters for CreateLBCookieStickinessPolicy. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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 default value is 0, which
    // indicates that the sticky session should last for the duration of the browser
    // session.
    CookieExpirationPeriod *int64 `type:"long"`

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

    // The name of the policy being created. Policy names must consist of alphanumeric
    // characters and dashes (-). This name must be unique within the set of policies
    // for this load balancer.
    //
    // PolicyName is a required field
    PolicyName *string `type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (CreateLBCookieStickinessPolicyInput) GoString

func (s CreateLBCookieStickinessPolicyInput) GoString() string

GoString returns the string representation

func (*CreateLBCookieStickinessPolicyInput) SetCookieExpirationPeriod

func (s *CreateLBCookieStickinessPolicyInput) SetCookieExpirationPeriod(v int64) *CreateLBCookieStickinessPolicyInput

SetCookieExpirationPeriod sets the CookieExpirationPeriod field's value.

func (*CreateLBCookieStickinessPolicyInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*CreateLBCookieStickinessPolicyInput) SetPolicyName

func (s *CreateLBCookieStickinessPolicyInput) SetPolicyName(v string) *CreateLBCookieStickinessPolicyInput

SetPolicyName sets the PolicyName field's value.

func (CreateLBCookieStickinessPolicyInput) String

func (s CreateLBCookieStickinessPolicyInput) String() string

String returns the string representation

func (*CreateLBCookieStickinessPolicyInput) Validate

func (s *CreateLBCookieStickinessPolicyInput) Validate() error

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

type CreateLBCookieStickinessPolicyOutput

Contains the output for CreateLBCookieStickinessPolicy. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLBCookieStickinessPolicyOutput

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

func (CreateLBCookieStickinessPolicyOutput) GoString

func (s CreateLBCookieStickinessPolicyOutput) GoString() string

GoString returns the string representation

func (CreateLBCookieStickinessPolicyOutput) String

func (s CreateLBCookieStickinessPolicyOutput) String() string

String returns the string representation

type CreateLoadBalancerInput

Contains the parameters for CreateLoadBalancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAccessPointInput

type CreateLoadBalancerInput struct {

    // One or more Availability Zones from the same region as the load balancer.
    //
    // 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 Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
    // in the Classic Load Balancer Guide.
    //
    // Listeners is a required field
    Listeners []*Listener `type:"list" required:"true"`

    // The name of the load balancer.
    //
    // This name must be unique within your set of load balancers for the region,
    // must have a maximum of 32 characters, must contain only alphanumeric characters
    // or hyphens, and cannot begin or end with a hyphen.
    //
    // LoadBalancerName is a required field
    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 DNS name that resolves to public IP addresses. For more information
    // about Internet-facing and Internal load balancers, see Load Balancer Scheme
    // (http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/how-elastic-load-balancing-works.html#load-balancer-scheme)
    // in the Elastic Load Balancing User Guide.
    //
    // Specify internal to create a 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 Tag Your Classic
    // Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html)
    // in the Classic Load Balancer Guide.
    Tags []*Tag `min:"1" type:"list"`
    // contains filtered or unexported fields
}

func (CreateLoadBalancerInput) GoString

func (s CreateLoadBalancerInput) GoString() string

GoString returns the string representation

func (*CreateLoadBalancerInput) SetAvailabilityZones

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

SetAvailabilityZones sets the AvailabilityZones field's value.

func (*CreateLoadBalancerInput) SetListeners

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

SetListeners sets the Listeners field's value.

func (*CreateLoadBalancerInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*CreateLoadBalancerInput) SetScheme

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

SetScheme sets the Scheme field's value.

func (*CreateLoadBalancerInput) SetSecurityGroups

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

SetSecurityGroups sets the SecurityGroups field's value.

func (*CreateLoadBalancerInput) SetSubnets

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

SetSubnets sets the Subnets field's value.

func (*CreateLoadBalancerInput) SetTags

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

SetTags sets the Tags field's value.

func (CreateLoadBalancerInput) String

func (s CreateLoadBalancerInput) String() string

String returns the string representation

func (*CreateLoadBalancerInput) Validate

func (s *CreateLoadBalancerInput) Validate() error

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

type CreateLoadBalancerListenersInput

Contains the parameters for CreateLoadBalancerListeners. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerListenerInput

type CreateLoadBalancerListenersInput struct {

    // The listeners.
    //
    // Listeners is a required field
    Listeners []*Listener `type:"list" required:"true"`

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

func (CreateLoadBalancerListenersInput) GoString

func (s CreateLoadBalancerListenersInput) GoString() string

GoString returns the string representation

func (*CreateLoadBalancerListenersInput) SetListeners

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

SetListeners sets the Listeners field's value.

func (*CreateLoadBalancerListenersInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (CreateLoadBalancerListenersInput) String

func (s CreateLoadBalancerListenersInput) String() string

String returns the string representation

func (*CreateLoadBalancerListenersInput) Validate

func (s *CreateLoadBalancerListenersInput) Validate() error

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

type CreateLoadBalancerListenersOutput

Contains the parameters for CreateLoadBalancerListener. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerListenerOutput

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

func (CreateLoadBalancerListenersOutput) GoString

func (s CreateLoadBalancerListenersOutput) GoString() string

GoString returns the string representation

func (CreateLoadBalancerListenersOutput) String

func (s CreateLoadBalancerListenersOutput) String() string

String returns the string representation

type CreateLoadBalancerOutput

Contains the output for CreateLoadBalancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAccessPointOutput

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) SetDNSName

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

SetDNSName sets the DNSName field's value.

func (CreateLoadBalancerOutput) String

func (s CreateLoadBalancerOutput) String() string

String returns the string representation

type CreateLoadBalancerPolicyInput

Contains the parameters for CreateLoadBalancerPolicy. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerPolicyInput

type CreateLoadBalancerPolicyInput struct {

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

    // The policy attributes.
    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 is a required field
    PolicyName *string `type:"string" required:"true"`

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

func (CreateLoadBalancerPolicyInput) GoString

func (s CreateLoadBalancerPolicyInput) GoString() string

GoString returns the string representation

func (*CreateLoadBalancerPolicyInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*CreateLoadBalancerPolicyInput) SetPolicyAttributes

func (s *CreateLoadBalancerPolicyInput) SetPolicyAttributes(v []*PolicyAttribute) *CreateLoadBalancerPolicyInput

SetPolicyAttributes sets the PolicyAttributes field's value.

func (*CreateLoadBalancerPolicyInput) SetPolicyName

func (s *CreateLoadBalancerPolicyInput) SetPolicyName(v string) *CreateLoadBalancerPolicyInput

SetPolicyName sets the PolicyName field's value.

func (*CreateLoadBalancerPolicyInput) SetPolicyTypeName

func (s *CreateLoadBalancerPolicyInput) SetPolicyTypeName(v string) *CreateLoadBalancerPolicyInput

SetPolicyTypeName sets the PolicyTypeName field's value.

func (CreateLoadBalancerPolicyInput) String

func (s CreateLoadBalancerPolicyInput) String() string

String returns the string representation

func (*CreateLoadBalancerPolicyInput) Validate

func (s *CreateLoadBalancerPolicyInput) Validate() error

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

type CreateLoadBalancerPolicyOutput

Contains the output of CreateLoadBalancerPolicy. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerPolicyOutput

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

func (CreateLoadBalancerPolicyOutput) GoString

func (s CreateLoadBalancerPolicyOutput) GoString() string

GoString returns the string representation

func (CreateLoadBalancerPolicyOutput) String

func (s CreateLoadBalancerPolicyOutput) String() string

String returns the string representation

type CrossZoneLoadBalancing

Information about the CrossZoneLoadBalancing attribute. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CrossZoneLoadBalancing

type CrossZoneLoadBalancing struct {

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

func (CrossZoneLoadBalancing) GoString

func (s CrossZoneLoadBalancing) GoString() string

GoString returns the string representation

func (*CrossZoneLoadBalancing) SetEnabled

func (s *CrossZoneLoadBalancing) SetEnabled(v bool) *CrossZoneLoadBalancing

SetEnabled sets the Enabled field's value.

func (CrossZoneLoadBalancing) String

func (s CrossZoneLoadBalancing) String() string

String returns the string representation

func (*CrossZoneLoadBalancing) Validate

func (s *CrossZoneLoadBalancing) Validate() error

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

type DeleteLoadBalancerInput

Contains the parameters for DeleteLoadBalancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteAccessPointInput

type DeleteLoadBalancerInput struct {

    // The name of the load balancer.
    //
    // LoadBalancerName is a required field
    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) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (DeleteLoadBalancerInput) String

func (s DeleteLoadBalancerInput) String() string

String returns the string representation

func (*DeleteLoadBalancerInput) Validate

func (s *DeleteLoadBalancerInput) Validate() error

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

type DeleteLoadBalancerListenersInput

Contains the parameters for DeleteLoadBalancerListeners. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerListenerInput

type DeleteLoadBalancerListenersInput struct {

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

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

func (DeleteLoadBalancerListenersInput) GoString

func (s DeleteLoadBalancerListenersInput) GoString() string

GoString returns the string representation

func (*DeleteLoadBalancerListenersInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*DeleteLoadBalancerListenersInput) SetLoadBalancerPorts

func (s *DeleteLoadBalancerListenersInput) SetLoadBalancerPorts(v []*int64) *DeleteLoadBalancerListenersInput

SetLoadBalancerPorts sets the LoadBalancerPorts field's value.

func (DeleteLoadBalancerListenersInput) String

func (s DeleteLoadBalancerListenersInput) String() string

String returns the string representation

func (*DeleteLoadBalancerListenersInput) Validate

func (s *DeleteLoadBalancerListenersInput) Validate() error

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

type DeleteLoadBalancerListenersOutput

Contains the output of DeleteLoadBalancerListeners. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerListenerOutput

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

func (DeleteLoadBalancerListenersOutput) GoString

func (s DeleteLoadBalancerListenersOutput) GoString() string

GoString returns the string representation

func (DeleteLoadBalancerListenersOutput) String

func (s DeleteLoadBalancerListenersOutput) String() string

String returns the string representation

type DeleteLoadBalancerOutput

Contains the output of DeleteLoadBalancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteAccessPointOutput

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

Contains the parameters for DeleteLoadBalancerPolicy. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerPolicyInput

type DeleteLoadBalancerPolicyInput struct {

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

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

func (DeleteLoadBalancerPolicyInput) GoString

func (s DeleteLoadBalancerPolicyInput) GoString() string

GoString returns the string representation

func (*DeleteLoadBalancerPolicyInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*DeleteLoadBalancerPolicyInput) SetPolicyName

func (s *DeleteLoadBalancerPolicyInput) SetPolicyName(v string) *DeleteLoadBalancerPolicyInput

SetPolicyName sets the PolicyName field's value.

func (DeleteLoadBalancerPolicyInput) String

func (s DeleteLoadBalancerPolicyInput) String() string

String returns the string representation

func (*DeleteLoadBalancerPolicyInput) Validate

func (s *DeleteLoadBalancerPolicyInput) Validate() error

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

type DeleteLoadBalancerPolicyOutput

Contains the output of DeleteLoadBalancerPolicy. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerPolicyOutput

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

func (DeleteLoadBalancerPolicyOutput) GoString

func (s DeleteLoadBalancerPolicyOutput) GoString() string

GoString returns the string representation

func (DeleteLoadBalancerPolicyOutput) String

func (s DeleteLoadBalancerPolicyOutput) String() string

String returns the string representation

type DeregisterInstancesFromLoadBalancerInput

Contains the parameters for DeregisterInstancesFromLoadBalancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeregisterEndPointsInput

type DeregisterInstancesFromLoadBalancerInput struct {

    // The IDs of the instances.
    //
    // Instances is a required field
    Instances []*Instance `type:"list" required:"true"`

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

func (DeregisterInstancesFromLoadBalancerInput) GoString

func (s DeregisterInstancesFromLoadBalancerInput) GoString() string

GoString returns the string representation

func (*DeregisterInstancesFromLoadBalancerInput) SetInstances

func (s *DeregisterInstancesFromLoadBalancerInput) SetInstances(v []*Instance) *DeregisterInstancesFromLoadBalancerInput

SetInstances sets the Instances field's value.

func (*DeregisterInstancesFromLoadBalancerInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (DeregisterInstancesFromLoadBalancerInput) String

func (s DeregisterInstancesFromLoadBalancerInput) String() string

String returns the string representation

func (*DeregisterInstancesFromLoadBalancerInput) Validate

func (s *DeregisterInstancesFromLoadBalancerInput) Validate() error

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

type DeregisterInstancesFromLoadBalancerOutput

Contains the output of DeregisterInstancesFromLoadBalancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeregisterEndPointsOutput

type DeregisterInstancesFromLoadBalancerOutput struct {

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

func (DeregisterInstancesFromLoadBalancerOutput) GoString

func (s DeregisterInstancesFromLoadBalancerOutput) GoString() string

GoString returns the string representation

func (*DeregisterInstancesFromLoadBalancerOutput) SetInstances

func (s *DeregisterInstancesFromLoadBalancerOutput) SetInstances(v []*Instance) *DeregisterInstancesFromLoadBalancerOutput

SetInstances sets the Instances field's value.

func (DeregisterInstancesFromLoadBalancerOutput) String

func (s DeregisterInstancesFromLoadBalancerOutput) String() string

String returns the string representation

type DescribeAccountLimitsInput

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeAccountLimitsInput

type DescribeAccountLimitsInput struct {

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

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

func (DescribeAccountLimitsInput) GoString

func (s DescribeAccountLimitsInput) GoString() string

GoString returns the string representation

func (*DescribeAccountLimitsInput) SetMarker

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

SetMarker sets the Marker field's value.

func (*DescribeAccountLimitsInput) SetPageSize

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

SetPageSize sets the PageSize field's value.

func (DescribeAccountLimitsInput) String

func (s DescribeAccountLimitsInput) String() string

String returns the string representation

func (*DescribeAccountLimitsInput) Validate

func (s *DescribeAccountLimitsInput) Validate() error

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

type DescribeAccountLimitsOutput

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeAccountLimitsOutput

type DescribeAccountLimitsOutput struct {

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

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

func (DescribeAccountLimitsOutput) GoString

func (s DescribeAccountLimitsOutput) GoString() string

GoString returns the string representation

func (*DescribeAccountLimitsOutput) SetLimits

func (s *DescribeAccountLimitsOutput) SetLimits(v []*Limit) *DescribeAccountLimitsOutput

SetLimits sets the Limits field's value.

func (*DescribeAccountLimitsOutput) SetNextMarker

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

SetNextMarker sets the NextMarker field's value.

func (DescribeAccountLimitsOutput) String

func (s DescribeAccountLimitsOutput) String() string

String returns the string representation

type DescribeInstanceHealthInput

Contains the parameters for DescribeInstanceHealth. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeEndPointStateInput

type DescribeInstanceHealthInput struct {

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

    // The name of the load balancer.
    //
    // LoadBalancerName is a required field
    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) SetInstances

func (s *DescribeInstanceHealthInput) SetInstances(v []*Instance) *DescribeInstanceHealthInput

SetInstances sets the Instances field's value.

func (*DescribeInstanceHealthInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (DescribeInstanceHealthInput) String

func (s DescribeInstanceHealthInput) String() string

String returns the string representation

func (*DescribeInstanceHealthInput) Validate

func (s *DescribeInstanceHealthInput) Validate() error

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

type DescribeInstanceHealthOutput

Contains the output for DescribeInstanceHealth. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeEndPointStateOutput

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) SetInstanceStates

func (s *DescribeInstanceHealthOutput) SetInstanceStates(v []*InstanceState) *DescribeInstanceHealthOutput

SetInstanceStates sets the InstanceStates field's value.

func (DescribeInstanceHealthOutput) String

func (s DescribeInstanceHealthOutput) String() string

String returns the string representation

type DescribeLoadBalancerAttributesInput

Contains the parameters for DescribeLoadBalancerAttributes. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerAttributesInput

type DescribeLoadBalancerAttributesInput struct {

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

func (DescribeLoadBalancerAttributesInput) GoString

func (s DescribeLoadBalancerAttributesInput) GoString() string

GoString returns the string representation

func (*DescribeLoadBalancerAttributesInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (DescribeLoadBalancerAttributesInput) String

func (s DescribeLoadBalancerAttributesInput) String() string

String returns the string representation

func (*DescribeLoadBalancerAttributesInput) Validate

func (s *DescribeLoadBalancerAttributesInput) Validate() error

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

type DescribeLoadBalancerAttributesOutput

Contains the output of DescribeLoadBalancerAttributes. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerAttributesOutput

type DescribeLoadBalancerAttributesOutput struct {

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

func (DescribeLoadBalancerAttributesOutput) GoString

func (s DescribeLoadBalancerAttributesOutput) GoString() string

GoString returns the string representation

func (*DescribeLoadBalancerAttributesOutput) SetLoadBalancerAttributes

func (s *DescribeLoadBalancerAttributesOutput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *DescribeLoadBalancerAttributesOutput

SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value.

func (DescribeLoadBalancerAttributesOutput) String

func (s DescribeLoadBalancerAttributesOutput) String() string

String returns the string representation

type DescribeLoadBalancerPoliciesInput

Contains the parameters for DescribeLoadBalancerPolicies. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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

func (s DescribeLoadBalancerPoliciesInput) GoString() string

GoString returns the string representation

func (*DescribeLoadBalancerPoliciesInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*DescribeLoadBalancerPoliciesInput) SetPolicyNames

func (s *DescribeLoadBalancerPoliciesInput) SetPolicyNames(v []*string) *DescribeLoadBalancerPoliciesInput

SetPolicyNames sets the PolicyNames field's value.

func (DescribeLoadBalancerPoliciesInput) String

func (s DescribeLoadBalancerPoliciesInput) String() string

String returns the string representation

type DescribeLoadBalancerPoliciesOutput

Contains the output of DescribeLoadBalancerPolicies. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPoliciesOutput

type DescribeLoadBalancerPoliciesOutput struct {

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

func (DescribeLoadBalancerPoliciesOutput) GoString

func (s DescribeLoadBalancerPoliciesOutput) GoString() string

GoString returns the string representation

func (*DescribeLoadBalancerPoliciesOutput) SetPolicyDescriptions

func (s *DescribeLoadBalancerPoliciesOutput) SetPolicyDescriptions(v []*PolicyDescription) *DescribeLoadBalancerPoliciesOutput

SetPolicyDescriptions sets the PolicyDescriptions field's value.

func (DescribeLoadBalancerPoliciesOutput) String

func (s DescribeLoadBalancerPoliciesOutput) String() string

String returns the string representation

type DescribeLoadBalancerPolicyTypesInput

Contains the parameters for DescribeLoadBalancerPolicyTypes. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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

func (s DescribeLoadBalancerPolicyTypesInput) GoString() string

GoString returns the string representation

func (*DescribeLoadBalancerPolicyTypesInput) SetPolicyTypeNames

func (s *DescribeLoadBalancerPolicyTypesInput) SetPolicyTypeNames(v []*string) *DescribeLoadBalancerPolicyTypesInput

SetPolicyTypeNames sets the PolicyTypeNames field's value.

func (DescribeLoadBalancerPolicyTypesInput) String

func (s DescribeLoadBalancerPolicyTypesInput) String() string

String returns the string representation

type DescribeLoadBalancerPolicyTypesOutput

Contains the output of DescribeLoadBalancerPolicyTypes. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicyTypesOutput

type DescribeLoadBalancerPolicyTypesOutput struct {

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

func (DescribeLoadBalancerPolicyTypesOutput) GoString

func (s DescribeLoadBalancerPolicyTypesOutput) GoString() string

GoString returns the string representation

func (*DescribeLoadBalancerPolicyTypesOutput) SetPolicyTypeDescriptions

func (s *DescribeLoadBalancerPolicyTypesOutput) SetPolicyTypeDescriptions(v []*PolicyTypeDescription) *DescribeLoadBalancerPolicyTypesOutput

SetPolicyTypeDescriptions sets the PolicyTypeDescriptions field's value.

func (DescribeLoadBalancerPolicyTypesOutput) String

func (s DescribeLoadBalancerPolicyTypesOutput) String() string

String returns the string representation

type DescribeLoadBalancersInput

Contains the parameters for DescribeLoadBalancers. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeAccessPointsInput

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 `min:"1" type:"integer"`
    // contains filtered or unexported fields
}

func (DescribeLoadBalancersInput) GoString

func (s DescribeLoadBalancersInput) GoString() string

GoString returns the string representation

func (*DescribeLoadBalancersInput) SetLoadBalancerNames

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

SetLoadBalancerNames sets the LoadBalancerNames field's value.

func (*DescribeLoadBalancersInput) SetMarker

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

SetMarker sets the Marker field's value.

func (*DescribeLoadBalancersInput) SetPageSize

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

SetPageSize sets the PageSize field's value.

func (DescribeLoadBalancersInput) String

func (s DescribeLoadBalancersInput) String() string

String returns the string representation

func (*DescribeLoadBalancersInput) Validate

func (s *DescribeLoadBalancersInput) Validate() error

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

type DescribeLoadBalancersOutput

Contains the parameters for DescribeLoadBalancers. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeAccessPointsOutput

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) SetLoadBalancerDescriptions

func (s *DescribeLoadBalancersOutput) SetLoadBalancerDescriptions(v []*LoadBalancerDescription) *DescribeLoadBalancersOutput

SetLoadBalancerDescriptions sets the LoadBalancerDescriptions field's value.

func (*DescribeLoadBalancersOutput) SetNextMarker

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

SetNextMarker sets the NextMarker field's value.

func (DescribeLoadBalancersOutput) String

func (s DescribeLoadBalancersOutput) String() string

String returns the string representation

type DescribeTagsInput

Contains the parameters for DescribeTags. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeTagsInput

type DescribeTagsInput struct {

    // The names of the load balancers.
    //
    // LoadBalancerNames is a required field
    LoadBalancerNames []*string `min:"1" type:"list" required:"true"`
    // contains filtered or unexported fields
}

func (DescribeTagsInput) GoString

func (s DescribeTagsInput) GoString() string

GoString returns the string representation

func (*DescribeTagsInput) SetLoadBalancerNames

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

SetLoadBalancerNames sets the LoadBalancerNames field's value.

func (DescribeTagsInput) String

func (s DescribeTagsInput) String() string

String returns the string representation

func (*DescribeTagsInput) Validate

func (s *DescribeTagsInput) Validate() error

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

type DescribeTagsOutput

Contains the output for DescribeTags. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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) SetTagDescriptions

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

SetTagDescriptions sets the TagDescriptions field's value.

func (DescribeTagsOutput) String

func (s DescribeTagsOutput) String() string

String returns the string representation

type DetachLoadBalancerFromSubnetsInput

Contains the parameters for DetachLoadBalancerFromSubnets. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DetachLoadBalancerFromSubnetsInput

type DetachLoadBalancerFromSubnetsInput struct {

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

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

func (DetachLoadBalancerFromSubnetsInput) GoString

func (s DetachLoadBalancerFromSubnetsInput) GoString() string

GoString returns the string representation

func (*DetachLoadBalancerFromSubnetsInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*DetachLoadBalancerFromSubnetsInput) SetSubnets

func (s *DetachLoadBalancerFromSubnetsInput) SetSubnets(v []*string) *DetachLoadBalancerFromSubnetsInput

SetSubnets sets the Subnets field's value.

func (DetachLoadBalancerFromSubnetsInput) String

func (s DetachLoadBalancerFromSubnetsInput) String() string

String returns the string representation

func (*DetachLoadBalancerFromSubnetsInput) Validate

func (s *DetachLoadBalancerFromSubnetsInput) Validate() error

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

type DetachLoadBalancerFromSubnetsOutput

Contains the output of DetachLoadBalancerFromSubnets. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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

func (s DetachLoadBalancerFromSubnetsOutput) GoString() string

GoString returns the string representation

func (*DetachLoadBalancerFromSubnetsOutput) SetSubnets

func (s *DetachLoadBalancerFromSubnetsOutput) SetSubnets(v []*string) *DetachLoadBalancerFromSubnetsOutput

SetSubnets sets the Subnets field's value.

func (DetachLoadBalancerFromSubnetsOutput) String

func (s DetachLoadBalancerFromSubnetsOutput) String() string

String returns the string representation

type DisableAvailabilityZonesForLoadBalancerInput

Contains the parameters for DisableAvailabilityZonesForLoadBalancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveAvailabilityZonesInput

type DisableAvailabilityZonesForLoadBalancerInput struct {

    // The Availability Zones.
    //
    // AvailabilityZones is a required field
    AvailabilityZones []*string `type:"list" required:"true"`

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

func (DisableAvailabilityZonesForLoadBalancerInput) GoString

func (s DisableAvailabilityZonesForLoadBalancerInput) GoString() string

GoString returns the string representation

func (*DisableAvailabilityZonesForLoadBalancerInput) SetAvailabilityZones

func (s *DisableAvailabilityZonesForLoadBalancerInput) SetAvailabilityZones(v []*string) *DisableAvailabilityZonesForLoadBalancerInput

SetAvailabilityZones sets the AvailabilityZones field's value.

func (*DisableAvailabilityZonesForLoadBalancerInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (DisableAvailabilityZonesForLoadBalancerInput) String

func (s DisableAvailabilityZonesForLoadBalancerInput) String() string

String returns the string representation

func (*DisableAvailabilityZonesForLoadBalancerInput) Validate

func (s *DisableAvailabilityZonesForLoadBalancerInput) Validate() error

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

type DisableAvailabilityZonesForLoadBalancerOutput

Contains the output for DisableAvailabilityZonesForLoadBalancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveAvailabilityZonesOutput

type DisableAvailabilityZonesForLoadBalancerOutput struct {

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

func (DisableAvailabilityZonesForLoadBalancerOutput) GoString

func (s DisableAvailabilityZonesForLoadBalancerOutput) GoString() string

GoString returns the string representation

func (*DisableAvailabilityZonesForLoadBalancerOutput) SetAvailabilityZones

func (s *DisableAvailabilityZonesForLoadBalancerOutput) SetAvailabilityZones(v []*string) *DisableAvailabilityZonesForLoadBalancerOutput

SetAvailabilityZones sets the AvailabilityZones field's value.

func (DisableAvailabilityZonesForLoadBalancerOutput) String

func (s DisableAvailabilityZonesForLoadBalancerOutput) String() string

String returns the string representation

type ELB

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

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

type ELB struct {
    *client.Client
}

func New

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

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

Example:

// Create a ELB client from just a session.
svc := elb.New(mySession)

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

func (*ELB) AddTags

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

AddTags API operation for Elastic Load Balancing.

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 Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeTooManyTagsException "TooManyTags"
The quota for the number of tags that can be assigned to a load balancer
has been reached.

* ErrCodeDuplicateTagKeysException "DuplicateTagKeys"
A tag key was specified more than once.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AddTags

Example (Shared00)

To add tags to a load balancer This example adds two tags to the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.AddTagsInput{
    LoadBalancerNames: []*string{
        aws.String("my-load-balancer"),
    },
    Tags: []*elb.Tag{
        {
            Key:   aws.String("project"),
            Value: aws.String("lima"),
        },
        {
            Key:   aws.String("department"),
            Value: aws.String("digital-media"),
        },
    },
}

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

fmt.Println(result)

func (*ELB) AddTagsRequest

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

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

See AddTags for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AddTags

func (*ELB) AddTagsWithContext

func (c *ELB) AddTagsWithContext(ctx aws.Context, input *AddTagsInput, opts ...request.Option) (*AddTagsOutput, error)

AddTagsWithContext is the same as AddTags with the addition of the ability to pass a context and additional request options.

See AddTags for details on how to use this API operation.

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

func (*ELB) ApplySecurityGroupsToLoadBalancer

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

ApplySecurityGroupsToLoadBalancer API operation for Elastic Load Balancing.

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/classic/elb-security-groups.html#elb-vpc-security-groups) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
The requested configuration change is not valid.

* ErrCodeInvalidSecurityGroupException "InvalidSecurityGroup"
One or more of the specified security groups do not exist.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ApplySecurityGroupsToLoadBalancer

Example (Shared00)

To associate a security group with a load balancer in a VPC This example associates a security group with the specified load balancer in a VPC.

Code:

svc := elb.New(session.New())
input := &elb.ApplySecurityGroupsToLoadBalancerInput{
    LoadBalancerName: aws.String("my-load-balancer"),
    SecurityGroups: []*string{
        aws.String("sg-fc448899"),
    },
}

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

fmt.Println(result)

func (*ELB) ApplySecurityGroupsToLoadBalancerRequest

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

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

See ApplySecurityGroupsToLoadBalancer for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ApplySecurityGroupsToLoadBalancer

func (*ELB) ApplySecurityGroupsToLoadBalancerWithContext

func (c *ELB) ApplySecurityGroupsToLoadBalancerWithContext(ctx aws.Context, input *ApplySecurityGroupsToLoadBalancerInput, opts ...request.Option) (*ApplySecurityGroupsToLoadBalancerOutput, error)

ApplySecurityGroupsToLoadBalancerWithContext is the same as ApplySecurityGroupsToLoadBalancer with the addition of the ability to pass a context and additional request options.

See ApplySecurityGroupsToLoadBalancer for details on how to use this API operation.

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

func (*ELB) AttachLoadBalancerToSubnets

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

AttachLoadBalancerToSubnets API operation for Elastic Load Balancing.

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/classic/elb-manage-subnets.html) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
The requested configuration change is not valid.

* ErrCodeSubnetNotFoundException "SubnetNotFound"
One or more of the specified subnets do not exist.

* ErrCodeInvalidSubnetException "InvalidSubnet"
The specified VPC has no associated Internet gateway.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AttachLoadBalancerToSubnets

Example (Shared00)

To attach subnets to a load balancer This example adds the specified subnet to the set of configured subnets for the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.AttachLoadBalancerToSubnetsInput{
    LoadBalancerName: aws.String("my-load-balancer"),
    Subnets: []*string{
        aws.String("subnet-0ecac448"),
    },
}

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

fmt.Println(result)

func (*ELB) AttachLoadBalancerToSubnetsRequest

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

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

See AttachLoadBalancerToSubnets for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AttachLoadBalancerToSubnets

func (*ELB) AttachLoadBalancerToSubnetsWithContext

func (c *ELB) AttachLoadBalancerToSubnetsWithContext(ctx aws.Context, input *AttachLoadBalancerToSubnetsInput, opts ...request.Option) (*AttachLoadBalancerToSubnetsOutput, error)

AttachLoadBalancerToSubnetsWithContext is the same as AttachLoadBalancerToSubnets with the addition of the ability to pass a context and additional request options.

See AttachLoadBalancerToSubnets for details on how to use this API operation.

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

func (*ELB) ConfigureHealthCheck

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

ConfigureHealthCheck API operation for Elastic Load Balancing.

Specifies the health check settings to use when evaluating the health state of your EC2 instances.

For more information, see Configure Health Checks for Your Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-healthchecks.html) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ConfigureHealthCheck

Example (Shared00)

To specify the health check settings for your backend EC2 instances This example specifies the health check settings used to evaluate the health of your backend EC2 instances.

Code:

svc := elb.New(session.New())
input := &elb.ConfigureHealthCheckInput{
    HealthCheck: &elb.HealthCheck{
        HealthyThreshold:   aws.Int64(2),
        Interval:           aws.Int64(30),
        Target:             aws.String("HTTP:80/png"),
        Timeout:            aws.Int64(3),
        UnhealthyThreshold: aws.Int64(2),
    },
    LoadBalancerName: aws.String("my-load-balancer"),
}

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

fmt.Println(result)

func (*ELB) ConfigureHealthCheckRequest

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

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

See ConfigureHealthCheck for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ConfigureHealthCheck

func (*ELB) ConfigureHealthCheckWithContext

func (c *ELB) ConfigureHealthCheckWithContext(ctx aws.Context, input *ConfigureHealthCheckInput, opts ...request.Option) (*ConfigureHealthCheckOutput, error)

ConfigureHealthCheckWithContext is the same as ConfigureHealthCheck with the addition of the ability to pass a context and additional request options.

See ConfigureHealthCheck for details on how to use this API operation.

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

func (*ELB) CreateAppCookieStickinessPolicy

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

CreateAppCookieStickinessPolicy API operation for Elastic Load Balancing.

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/classic/elb-sticky-sessions.html#enable-sticky-sessions-application) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeDuplicatePolicyNameException "DuplicatePolicyName"
A policy with the specified name already exists for this load balancer.

* ErrCodeTooManyPoliciesException "TooManyPolicies"
The quota for the number of policies for this load balancer has been reached.

* ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
The requested configuration change is not valid.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAppCookieStickinessPolicy

Example (Shared00)

To generate a stickiness policy for your load balancer This example generates a stickiness policy that follows the sticky session lifetimes of the application-generated cookie.

Code:

svc := elb.New(session.New())
input := &elb.CreateAppCookieStickinessPolicyInput{
    CookieName:       aws.String("my-app-cookie"),
    LoadBalancerName: aws.String("my-load-balancer"),
    PolicyName:       aws.String("my-app-cookie-policy"),
}

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

fmt.Println(result)

func (*ELB) CreateAppCookieStickinessPolicyRequest

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

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

See CreateAppCookieStickinessPolicy for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAppCookieStickinessPolicy

func (*ELB) CreateAppCookieStickinessPolicyWithContext

func (c *ELB) CreateAppCookieStickinessPolicyWithContext(ctx aws.Context, input *CreateAppCookieStickinessPolicyInput, opts ...request.Option) (*CreateAppCookieStickinessPolicyOutput, error)

CreateAppCookieStickinessPolicyWithContext is the same as CreateAppCookieStickinessPolicy with the addition of the ability to pass a context and additional request options.

See CreateAppCookieStickinessPolicy for details on how to use this API operation.

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

func (*ELB) CreateLBCookieStickinessPolicy

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

CreateLBCookieStickinessPolicy API operation for Elastic Load Balancing.

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 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/classic/elb-sticky-sessions.html#enable-sticky-sessions-duration) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeDuplicatePolicyNameException "DuplicatePolicyName"
A policy with the specified name already exists for this load balancer.

* ErrCodeTooManyPoliciesException "TooManyPolicies"
The quota for the number of policies for this load balancer has been reached.

* ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
The requested configuration change is not valid.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLBCookieStickinessPolicy

Example (Shared00)

To generate a duration-based stickiness policy for your load balancer This example generates a stickiness policy with sticky session lifetimes controlled by the specified expiration period.

Code:

svc := elb.New(session.New())
input := &elb.CreateLBCookieStickinessPolicyInput{
    CookieExpirationPeriod: aws.Int64(60),
    LoadBalancerName:       aws.String("my-load-balancer"),
    PolicyName:             aws.String("my-duration-cookie-policy"),
}

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

fmt.Println(result)

func (*ELB) CreateLBCookieStickinessPolicyRequest

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

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

See CreateLBCookieStickinessPolicy for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLBCookieStickinessPolicy

func (*ELB) CreateLBCookieStickinessPolicyWithContext

func (c *ELB) CreateLBCookieStickinessPolicyWithContext(ctx aws.Context, input *CreateLBCookieStickinessPolicyInput, opts ...request.Option) (*CreateLBCookieStickinessPolicyOutput, error)

CreateLBCookieStickinessPolicyWithContext is the same as CreateLBCookieStickinessPolicy with the addition of the ability to pass a context and additional request options.

See CreateLBCookieStickinessPolicy for details on how to use this API operation.

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

func (*ELB) CreateLoadBalancer

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

CreateLoadBalancer API operation for Elastic Load Balancing.

Creates a Classic Load Balancer.

You can add listeners, security groups, subnets, and tags when you create your load balancer, or you can add them later using CreateLoadBalancerListeners, ApplySecurityGroupsToLoadBalancer, AttachLoadBalancerToSubnets, and AddTags.

To describe your current load balancers, see DescribeLoadBalancers. When you are finished with a load balancer, you can delete it using DeleteLoadBalancer.

You can create up to 20 load balancers per region per account. You can request an increase for the number of load balancers for your account. For more information, see Limits for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-limits.html) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeDuplicateAccessPointNameException "DuplicateLoadBalancerName"
The specified load balancer name already exists for this account.

* ErrCodeTooManyAccessPointsException "TooManyLoadBalancers"
The quota for the number of load balancers has been reached.

* ErrCodeCertificateNotFoundException "CertificateNotFound"
The specified ARN does not refer to a valid SSL certificate in AWS Identity
and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if
you recently uploaded the certificate to IAM, this error might indicate that
the certificate is not fully available yet.

* ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
The requested configuration change is not valid.

* ErrCodeSubnetNotFoundException "SubnetNotFound"
One or more of the specified subnets do not exist.

* ErrCodeInvalidSubnetException "InvalidSubnet"
The specified VPC has no associated Internet gateway.

* ErrCodeInvalidSecurityGroupException "InvalidSecurityGroup"
One or more of the specified security groups do not exist.

* ErrCodeInvalidSchemeException "InvalidScheme"
The specified value for the schema is not valid. You can only specify a scheme
for load balancers in a VPC.

* ErrCodeTooManyTagsException "TooManyTags"
The quota for the number of tags that can be assigned to a load balancer
has been reached.

* ErrCodeDuplicateTagKeysException "DuplicateTagKeys"
A tag key was specified more than once.

* ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
The specified protocol or signature version is not supported.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancer

Example (Shared00)

To create an HTTP load balancer in a VPC This example creates a load balancer with an HTTP listener in a VPC.

Code:

svc := elb.New(session.New())
input := &elb.CreateLoadBalancerInput{
    Listeners: []*elb.Listener{
        {
            InstancePort:     aws.Int64(80),
            InstanceProtocol: aws.String("HTTP"),
            LoadBalancerPort: aws.Int64(80),
            Protocol:         aws.String("HTTP"),
        },
    },
    LoadBalancerName: aws.String("my-load-balancer"),
    SecurityGroups: []*string{
        aws.String("sg-a61988c3"),
    },
    Subnets: []*string{
        aws.String("subnet-15aaab61"),
    },
}

result, err := svc.CreateLoadBalancer(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case elb.ErrCodeDuplicateAccessPointNameException:
            fmt.Println(elb.ErrCodeDuplicateAccessPointNameException, aerr.Error())
        case elb.ErrCodeTooManyAccessPointsException:
            fmt.Println(elb.ErrCodeTooManyAccessPointsException, aerr.Error())
        case elb.ErrCodeCertificateNotFoundException:
            fmt.Println(elb.ErrCodeCertificateNotFoundException, aerr.Error())
        case elb.ErrCodeInvalidConfigurationRequestException:
            fmt.Println(elb.ErrCodeInvalidConfigurationRequestException, aerr.Error())
        case elb.ErrCodeSubnetNotFoundException:
            fmt.Println(elb.ErrCodeSubnetNotFoundException, aerr.Error())
        case elb.ErrCodeInvalidSubnetException:
            fmt.Println(elb.ErrCodeInvalidSubnetException, aerr.Error())
        case elb.ErrCodeInvalidSecurityGroupException:
            fmt.Println(elb.ErrCodeInvalidSecurityGroupException, aerr.Error())
        case elb.ErrCodeInvalidSchemeException:
            fmt.Println(elb.ErrCodeInvalidSchemeException, aerr.Error())
        case elb.ErrCodeTooManyTagsException:
            fmt.Println(elb.ErrCodeTooManyTagsException, aerr.Error())
        case elb.ErrCodeDuplicateTagKeysException:
            fmt.Println(elb.ErrCodeDuplicateTagKeysException, aerr.Error())
        case elb.ErrCodeUnsupportedProtocolException:
            fmt.Println(elb.ErrCodeUnsupportedProtocolException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

Example (Shared01)

To create an HTTP load balancer in EC2-Classic This example creates a load balancer with an HTTP listener in EC2-Classic.

Code:

svc := elb.New(session.New())
input := &elb.CreateLoadBalancerInput{
    AvailabilityZones: []*string{
        aws.String("us-west-2a"),
    },
    Listeners: []*elb.Listener{
        {
            InstancePort:     aws.Int64(80),
            InstanceProtocol: aws.String("HTTP"),
            LoadBalancerPort: aws.Int64(80),
            Protocol:         aws.String("HTTP"),
        },
    },
    LoadBalancerName: aws.String("my-load-balancer"),
}

result, err := svc.CreateLoadBalancer(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case elb.ErrCodeDuplicateAccessPointNameException:
            fmt.Println(elb.ErrCodeDuplicateAccessPointNameException, aerr.Error())
        case elb.ErrCodeTooManyAccessPointsException:
            fmt.Println(elb.ErrCodeTooManyAccessPointsException, aerr.Error())
        case elb.ErrCodeCertificateNotFoundException:
            fmt.Println(elb.ErrCodeCertificateNotFoundException, aerr.Error())
        case elb.ErrCodeInvalidConfigurationRequestException:
            fmt.Println(elb.ErrCodeInvalidConfigurationRequestException, aerr.Error())
        case elb.ErrCodeSubnetNotFoundException:
            fmt.Println(elb.ErrCodeSubnetNotFoundException, aerr.Error())
        case elb.ErrCodeInvalidSubnetException:
            fmt.Println(elb.ErrCodeInvalidSubnetException, aerr.Error())
        case elb.ErrCodeInvalidSecurityGroupException:
            fmt.Println(elb.ErrCodeInvalidSecurityGroupException, aerr.Error())
        case elb.ErrCodeInvalidSchemeException:
            fmt.Println(elb.ErrCodeInvalidSchemeException, aerr.Error())
        case elb.ErrCodeTooManyTagsException:
            fmt.Println(elb.ErrCodeTooManyTagsException, aerr.Error())
        case elb.ErrCodeDuplicateTagKeysException:
            fmt.Println(elb.ErrCodeDuplicateTagKeysException, aerr.Error())
        case elb.ErrCodeUnsupportedProtocolException:
            fmt.Println(elb.ErrCodeUnsupportedProtocolException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

Example (Shared02)

To create an HTTPS load balancer in a VPC This example creates a load balancer with an HTTPS listener in a VPC.

Code:

svc := elb.New(session.New())
input := &elb.CreateLoadBalancerInput{
    Listeners: []*elb.Listener{
        {
            InstancePort:     aws.Int64(80),
            InstanceProtocol: aws.String("HTTP"),
            LoadBalancerPort: aws.Int64(80),
            Protocol:         aws.String("HTTP"),
        },
        {
            InstancePort:     aws.Int64(80),
            InstanceProtocol: aws.String("HTTP"),
            LoadBalancerPort: aws.Int64(443),
            Protocol:         aws.String("HTTPS"),
            SSLCertificateId: aws.String("arn:aws:iam::123456789012:server-certificate/my-server-cert"),
        },
    },
    LoadBalancerName: aws.String("my-load-balancer"),
    SecurityGroups: []*string{
        aws.String("sg-a61988c3"),
    },
    Subnets: []*string{
        aws.String("subnet-15aaab61"),
    },
}

result, err := svc.CreateLoadBalancer(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case elb.ErrCodeDuplicateAccessPointNameException:
            fmt.Println(elb.ErrCodeDuplicateAccessPointNameException, aerr.Error())
        case elb.ErrCodeTooManyAccessPointsException:
            fmt.Println(elb.ErrCodeTooManyAccessPointsException, aerr.Error())
        case elb.ErrCodeCertificateNotFoundException:
            fmt.Println(elb.ErrCodeCertificateNotFoundException, aerr.Error())
        case elb.ErrCodeInvalidConfigurationRequestException:
            fmt.Println(elb.ErrCodeInvalidConfigurationRequestException, aerr.Error())
        case elb.ErrCodeSubnetNotFoundException:
            fmt.Println(elb.ErrCodeSubnetNotFoundException, aerr.Error())
        case elb.ErrCodeInvalidSubnetException:
            fmt.Println(elb.ErrCodeInvalidSubnetException, aerr.Error())
        case elb.ErrCodeInvalidSecurityGroupException:
            fmt.Println(elb.ErrCodeInvalidSecurityGroupException, aerr.Error())
        case elb.ErrCodeInvalidSchemeException:
            fmt.Println(elb.ErrCodeInvalidSchemeException, aerr.Error())
        case elb.ErrCodeTooManyTagsException:
            fmt.Println(elb.ErrCodeTooManyTagsException, aerr.Error())
        case elb.ErrCodeDuplicateTagKeysException:
            fmt.Println(elb.ErrCodeDuplicateTagKeysException, aerr.Error())
        case elb.ErrCodeUnsupportedProtocolException:
            fmt.Println(elb.ErrCodeUnsupportedProtocolException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

Example (Shared03)

To create an HTTPS load balancer in EC2-Classic This example creates a load balancer with an HTTPS listener in EC2-Classic.

Code:

svc := elb.New(session.New())
input := &elb.CreateLoadBalancerInput{
    AvailabilityZones: []*string{
        aws.String("us-west-2a"),
    },
    Listeners: []*elb.Listener{
        {
            InstancePort:     aws.Int64(80),
            InstanceProtocol: aws.String("HTTP"),
            LoadBalancerPort: aws.Int64(80),
            Protocol:         aws.String("HTTP"),
        },
        {
            InstancePort:     aws.Int64(80),
            InstanceProtocol: aws.String("HTTP"),
            LoadBalancerPort: aws.Int64(443),
            Protocol:         aws.String("HTTPS"),
            SSLCertificateId: aws.String("arn:aws:iam::123456789012:server-certificate/my-server-cert"),
        },
    },
    LoadBalancerName: aws.String("my-load-balancer"),
}

result, err := svc.CreateLoadBalancer(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case elb.ErrCodeDuplicateAccessPointNameException:
            fmt.Println(elb.ErrCodeDuplicateAccessPointNameException, aerr.Error())
        case elb.ErrCodeTooManyAccessPointsException:
            fmt.Println(elb.ErrCodeTooManyAccessPointsException, aerr.Error())
        case elb.ErrCodeCertificateNotFoundException:
            fmt.Println(elb.ErrCodeCertificateNotFoundException, aerr.Error())
        case elb.ErrCodeInvalidConfigurationRequestException:
            fmt.Println(elb.ErrCodeInvalidConfigurationRequestException, aerr.Error())
        case elb.ErrCodeSubnetNotFoundException:
            fmt.Println(elb.ErrCodeSubnetNotFoundException, aerr.Error())
        case elb.ErrCodeInvalidSubnetException:
            fmt.Println(elb.ErrCodeInvalidSubnetException, aerr.Error())
        case elb.ErrCodeInvalidSecurityGroupException:
            fmt.Println(elb.ErrCodeInvalidSecurityGroupException, aerr.Error())
        case elb.ErrCodeInvalidSchemeException:
            fmt.Println(elb.ErrCodeInvalidSchemeException, aerr.Error())
        case elb.ErrCodeTooManyTagsException:
            fmt.Println(elb.ErrCodeTooManyTagsException, aerr.Error())
        case elb.ErrCodeDuplicateTagKeysException:
            fmt.Println(elb.ErrCodeDuplicateTagKeysException, aerr.Error())
        case elb.ErrCodeUnsupportedProtocolException:
            fmt.Println(elb.ErrCodeUnsupportedProtocolException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

Example (Shared04)

To create an internal load balancer This example creates an internal load balancer with an HTTP listener in a VPC.

Code:

svc := elb.New(session.New())
input := &elb.CreateLoadBalancerInput{
    Listeners: []*elb.Listener{
        {
            InstancePort:     aws.Int64(80),
            InstanceProtocol: aws.String("HTTP"),
            LoadBalancerPort: aws.Int64(80),
            Protocol:         aws.String("HTTP"),
        },
    },
    LoadBalancerName: aws.String("my-load-balancer"),
    Scheme:           aws.String("internal"),
    SecurityGroups: []*string{
        aws.String("sg-a61988c3"),
    },
    Subnets: []*string{
        aws.String("subnet-15aaab61"),
    },
}

result, err := svc.CreateLoadBalancer(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case elb.ErrCodeDuplicateAccessPointNameException:
            fmt.Println(elb.ErrCodeDuplicateAccessPointNameException, aerr.Error())
        case elb.ErrCodeTooManyAccessPointsException:
            fmt.Println(elb.ErrCodeTooManyAccessPointsException, aerr.Error())
        case elb.ErrCodeCertificateNotFoundException:
            fmt.Println(elb.ErrCodeCertificateNotFoundException, aerr.Error())
        case elb.ErrCodeInvalidConfigurationRequestException:
            fmt.Println(elb.ErrCodeInvalidConfigurationRequestException, aerr.Error())
        case elb.ErrCodeSubnetNotFoundException:
            fmt.Println(elb.ErrCodeSubnetNotFoundException, aerr.Error())
        case elb.ErrCodeInvalidSubnetException:
            fmt.Println(elb.ErrCodeInvalidSubnetException, aerr.Error())
        case elb.ErrCodeInvalidSecurityGroupException:
            fmt.Println(elb.ErrCodeInvalidSecurityGroupException, aerr.Error())
        case elb.ErrCodeInvalidSchemeException:
            fmt.Println(elb.ErrCodeInvalidSchemeException, aerr.Error())
        case elb.ErrCodeTooManyTagsException:
            fmt.Println(elb.ErrCodeTooManyTagsException, aerr.Error())
        case elb.ErrCodeDuplicateTagKeysException:
            fmt.Println(elb.ErrCodeDuplicateTagKeysException, aerr.Error())
        case elb.ErrCodeUnsupportedProtocolException:
            fmt.Println(elb.ErrCodeUnsupportedProtocolException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*ELB) CreateLoadBalancerListeners

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

CreateLoadBalancerListeners API operation for Elastic Load Balancing.

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 Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeDuplicateListenerException "DuplicateListener"
A listener already exists for the specified load balancer name and port,
but with a different instance port, protocol, or SSL certificate.

* ErrCodeCertificateNotFoundException "CertificateNotFound"
The specified ARN does not refer to a valid SSL certificate in AWS Identity
and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if
you recently uploaded the certificate to IAM, this error might indicate that
the certificate is not fully available yet.

* ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
The requested configuration change is not valid.

* ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
The specified protocol or signature version is not supported.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerListeners

Example (Shared00)

To create an HTTP listener for a load balancer This example creates a listener for your load balancer at port 80 using the HTTP protocol.

Code:

svc := elb.New(session.New())
input := &elb.CreateLoadBalancerListenersInput{
    Listeners: []*elb.Listener{
        {
            InstancePort:     aws.Int64(80),
            InstanceProtocol: aws.String("HTTP"),
            LoadBalancerPort: aws.Int64(80),
            Protocol:         aws.String("HTTP"),
        },
    },
    LoadBalancerName: aws.String("my-load-balancer"),
}

result, err := svc.CreateLoadBalancerListeners(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case elb.ErrCodeAccessPointNotFoundException:
            fmt.Println(elb.ErrCodeAccessPointNotFoundException, aerr.Error())
        case elb.ErrCodeDuplicateListenerException:
            fmt.Println(elb.ErrCodeDuplicateListenerException, aerr.Error())
        case elb.ErrCodeCertificateNotFoundException:
            fmt.Println(elb.ErrCodeCertificateNotFoundException, aerr.Error())
        case elb.ErrCodeInvalidConfigurationRequestException:
            fmt.Println(elb.ErrCodeInvalidConfigurationRequestException, aerr.Error())
        case elb.ErrCodeUnsupportedProtocolException:
            fmt.Println(elb.ErrCodeUnsupportedProtocolException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

Example (Shared01)

To create an HTTPS listener for a load balancer This example creates a listener for your load balancer at port 443 using the HTTPS protocol.

Code:

svc := elb.New(session.New())
input := &elb.CreateLoadBalancerListenersInput{
    Listeners: []*elb.Listener{
        {
            InstancePort:     aws.Int64(80),
            InstanceProtocol: aws.String("HTTP"),
            LoadBalancerPort: aws.Int64(443),
            Protocol:         aws.String("HTTPS"),
            SSLCertificateId: aws.String("arn:aws:iam::123456789012:server-certificate/my-server-cert"),
        },
    },
    LoadBalancerName: aws.String("my-load-balancer"),
}

result, err := svc.CreateLoadBalancerListeners(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case elb.ErrCodeAccessPointNotFoundException:
            fmt.Println(elb.ErrCodeAccessPointNotFoundException, aerr.Error())
        case elb.ErrCodeDuplicateListenerException:
            fmt.Println(elb.ErrCodeDuplicateListenerException, aerr.Error())
        case elb.ErrCodeCertificateNotFoundException:
            fmt.Println(elb.ErrCodeCertificateNotFoundException, aerr.Error())
        case elb.ErrCodeInvalidConfigurationRequestException:
            fmt.Println(elb.ErrCodeInvalidConfigurationRequestException, aerr.Error())
        case elb.ErrCodeUnsupportedProtocolException:
            fmt.Println(elb.ErrCodeUnsupportedProtocolException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*ELB) CreateLoadBalancerListenersRequest

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

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

See CreateLoadBalancerListeners for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerListeners

func (*ELB) CreateLoadBalancerListenersWithContext

func (c *ELB) CreateLoadBalancerListenersWithContext(ctx aws.Context, input *CreateLoadBalancerListenersInput, opts ...request.Option) (*CreateLoadBalancerListenersOutput, error)

CreateLoadBalancerListenersWithContext is the same as CreateLoadBalancerListeners with the addition of the ability to pass a context and additional request options.

See CreateLoadBalancerListeners for details on how to use this API operation.

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

func (*ELB) CreateLoadBalancerPolicy

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

CreateLoadBalancerPolicy API operation for Elastic Load Balancing.

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 listener or the application server, depending on the policy type.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodePolicyTypeNotFoundException "PolicyTypeNotFound"
One or more of the specified policy types do not exist.

* ErrCodeDuplicatePolicyNameException "DuplicatePolicyName"
A policy with the specified name already exists for this load balancer.

* ErrCodeTooManyPoliciesException "TooManyPolicies"
The quota for the number of policies for this load balancer has been reached.

* ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
The requested configuration change is not valid.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerPolicy

Example (Shared00)

To create a policy that enables Proxy Protocol on a load balancer This example creates a policy that enables Proxy Protocol on the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.CreateLoadBalancerPolicyInput{
    LoadBalancerName: aws.String("my-load-balancer"),
    PolicyAttributes: []*elb.PolicyAttribute{
        {
            AttributeName:  aws.String("ProxyProtocol"),
            AttributeValue: aws.String("true"),
        },
    },
    PolicyName:     aws.String("my-ProxyProtocol-policy"),
    PolicyTypeName: aws.String("ProxyProtocolPolicyType"),
}

result, err := svc.CreateLoadBalancerPolicy(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case elb.ErrCodeAccessPointNotFoundException:
            fmt.Println(elb.ErrCodeAccessPointNotFoundException, aerr.Error())
        case elb.ErrCodePolicyTypeNotFoundException:
            fmt.Println(elb.ErrCodePolicyTypeNotFoundException, aerr.Error())
        case elb.ErrCodeDuplicatePolicyNameException:
            fmt.Println(elb.ErrCodeDuplicatePolicyNameException, aerr.Error())
        case elb.ErrCodeTooManyPoliciesException:
            fmt.Println(elb.ErrCodeTooManyPoliciesException, aerr.Error())
        case elb.ErrCodeInvalidConfigurationRequestException:
            fmt.Println(elb.ErrCodeInvalidConfigurationRequestException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

Example (Shared01)

To create a public key policy This example creates a public key policy.

Code:

svc := elb.New(session.New())
input := &elb.CreateLoadBalancerPolicyInput{
    LoadBalancerName: aws.String("my-load-balancer"),
    PolicyAttributes: []*elb.PolicyAttribute{
        {
            AttributeName:  aws.String("PublicKey"),
            AttributeValue: aws.String("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwAYUjnfyEyXr1pxjhFWBpMlggUcqoi3kl+dS74kj//c6x7ROtusUaeQCTgIUkayttRDWchuqo1pHC1u+n5xxXnBBe2ejbb2WRsKIQ5rXEeixsjFpFsojpSQKkzhVGI6mJVZBJDVKSHmswnwLBdofLhzvllpovBPTHe+o4haAWvDBALJU0pkSI1FecPHcs2hwxf14zHoXy1e2k36A64nXW43wtfx5qcVSIxtCEOjnYRg7RPvybaGfQ+v6Iaxb/+7J5kEvZhTFQId+bSiJImF1FSUT1W1xwzBZPUbcUkkXDj45vC2s3Z8E+Lk7a3uZhvsQHLZnrfuWjBWGWvZ/MhZYgEXAMPLE"),
        },
    },
    PolicyName:     aws.String("my-PublicKey-policy"),
    PolicyTypeName: aws.String("PublicKeyPolicyType"),
}

result, err := svc.CreateLoadBalancerPolicy(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case elb.ErrCodeAccessPointNotFoundException:
            fmt.Println(elb.ErrCodeAccessPointNotFoundException, aerr.Error())
        case elb.ErrCodePolicyTypeNotFoundException:
            fmt.Println(elb.ErrCodePolicyTypeNotFoundException, aerr.Error())
        case elb.ErrCodeDuplicatePolicyNameException:
            fmt.Println(elb.ErrCodeDuplicatePolicyNameException, aerr.Error())
        case elb.ErrCodeTooManyPoliciesException:
            fmt.Println(elb.ErrCodeTooManyPoliciesException, aerr.Error())
        case elb.ErrCodeInvalidConfigurationRequestException:
            fmt.Println(elb.ErrCodeInvalidConfigurationRequestException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

Example (Shared02)

To create a backend server authentication policy This example creates a backend server authentication policy that enables authentication on your backend instance using a public key policy.

Code:

svc := elb.New(session.New())
input := &elb.CreateLoadBalancerPolicyInput{
    LoadBalancerName: aws.String("my-load-balancer"),
    PolicyAttributes: []*elb.PolicyAttribute{
        {
            AttributeName:  aws.String("PublicKeyPolicyName"),
            AttributeValue: aws.String("my-PublicKey-policy"),
        },
    },
    PolicyName:     aws.String("my-authentication-policy"),
    PolicyTypeName: aws.String("BackendServerAuthenticationPolicyType"),
}

result, err := svc.CreateLoadBalancerPolicy(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case elb.ErrCodeAccessPointNotFoundException:
            fmt.Println(elb.ErrCodeAccessPointNotFoundException, aerr.Error())
        case elb.ErrCodePolicyTypeNotFoundException:
            fmt.Println(elb.ErrCodePolicyTypeNotFoundException, aerr.Error())
        case elb.ErrCodeDuplicatePolicyNameException:
            fmt.Println(elb.ErrCodeDuplicatePolicyNameException, aerr.Error())
        case elb.ErrCodeTooManyPoliciesException:
            fmt.Println(elb.ErrCodeTooManyPoliciesException, aerr.Error())
        case elb.ErrCodeInvalidConfigurationRequestException:
            fmt.Println(elb.ErrCodeInvalidConfigurationRequestException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*ELB) CreateLoadBalancerPolicyRequest

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

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

See CreateLoadBalancerPolicy for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerPolicy

func (*ELB) CreateLoadBalancerPolicyWithContext

func (c *ELB) CreateLoadBalancerPolicyWithContext(ctx aws.Context, input *CreateLoadBalancerPolicyInput, opts ...request.Option) (*CreateLoadBalancerPolicyOutput, error)

CreateLoadBalancerPolicyWithContext is the same as CreateLoadBalancerPolicy with the addition of the ability to pass a context and additional request options.

See CreateLoadBalancerPolicy for details on how to use this API operation.

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

func (*ELB) CreateLoadBalancerRequest

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

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

See CreateLoadBalancer for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancer

func (*ELB) CreateLoadBalancerWithContext

func (c *ELB) CreateLoadBalancerWithContext(ctx aws.Context, input *CreateLoadBalancerInput, opts ...request.Option) (*CreateLoadBalancerOutput, error)

CreateLoadBalancerWithContext is the same as CreateLoadBalancer with the addition of the ability to pass a context and additional request options.

See CreateLoadBalancer for details on how to use this API operation.

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

func (*ELB) DeleteLoadBalancer

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

DeleteLoadBalancer API operation for Elastic Load Balancing.

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

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

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

See the AWS API reference guide for Elastic Load Balancing's API operation DeleteLoadBalancer for usage and error information. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancer

Example (Shared00)

To delete a load balancer This example deletes the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.DeleteLoadBalancerInput{
    LoadBalancerName: aws.String("my-load-balancer"),
}

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

fmt.Println(result)

func (*ELB) DeleteLoadBalancerListeners

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

DeleteLoadBalancerListeners API operation for Elastic Load Balancing.

Deletes the specified listeners from the specified load balancer.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerListeners

Example (Shared00)

To delete a listener from your load balancer This example deletes the listener for the specified port from the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.DeleteLoadBalancerListenersInput{
    LoadBalancerName: aws.String("my-load-balancer"),
    LoadBalancerPorts: []*int64{
        aws.Int64(80),
    },
}

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

fmt.Println(result)

func (*ELB) DeleteLoadBalancerListenersRequest

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

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

See DeleteLoadBalancerListeners for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerListeners

func (*ELB) DeleteLoadBalancerListenersWithContext

func (c *ELB) DeleteLoadBalancerListenersWithContext(ctx aws.Context, input *DeleteLoadBalancerListenersInput, opts ...request.Option) (*DeleteLoadBalancerListenersOutput, error)

DeleteLoadBalancerListenersWithContext is the same as DeleteLoadBalancerListeners with the addition of the ability to pass a context and additional request options.

See DeleteLoadBalancerListeners for details on how to use this API operation.

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

func (*ELB) DeleteLoadBalancerPolicy

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

DeleteLoadBalancerPolicy API operation for Elastic Load Balancing.

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

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
The requested configuration change is not valid.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerPolicy

Example (Shared00)

To delete a policy from your load balancer This example deletes the specified policy from the specified load balancer. The policy must not be enabled on any listener.

Code:

svc := elb.New(session.New())
input := &elb.DeleteLoadBalancerPolicyInput{
    LoadBalancerName: aws.String("my-load-balancer"),
    PolicyName:       aws.String("my-duration-cookie-policy"),
}

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

fmt.Println(result)

func (*ELB) DeleteLoadBalancerPolicyRequest

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

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

See DeleteLoadBalancerPolicy for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerPolicy

func (*ELB) DeleteLoadBalancerPolicyWithContext

func (c *ELB) DeleteLoadBalancerPolicyWithContext(ctx aws.Context, input *DeleteLoadBalancerPolicyInput, opts ...request.Option) (*DeleteLoadBalancerPolicyOutput, error)

DeleteLoadBalancerPolicyWithContext is the same as DeleteLoadBalancerPolicy with the addition of the ability to pass a context and additional request options.

See DeleteLoadBalancerPolicy for details on how to use this API operation.

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

func (*ELB) DeleteLoadBalancerRequest

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

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

See DeleteLoadBalancer for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancer

func (*ELB) DeleteLoadBalancerWithContext

func (c *ELB) DeleteLoadBalancerWithContext(ctx aws.Context, input *DeleteLoadBalancerInput, opts ...request.Option) (*DeleteLoadBalancerOutput, error)

DeleteLoadBalancerWithContext is the same as DeleteLoadBalancer with the addition of the ability to pass a context and additional request options.

See DeleteLoadBalancer for details on how to use this API operation.

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

func (*ELB) DeregisterInstancesFromLoadBalancer

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

DeregisterInstancesFromLoadBalancer API operation for Elastic Load Balancing.

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 Register or De-Register EC2 Instances (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-deregister-register-instances.html) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeInvalidEndPointException "InvalidInstance"
The specified endpoint is not valid.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeregisterInstancesFromLoadBalancer

Example (Shared00)

To deregister instances from a load balancer This example deregisters the specified instance from the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.DeregisterInstancesFromLoadBalancerInput{
    Instances: []*elb.Instance{
        {
            InstanceId: aws.String("i-d6f6fae3"),
        },
    },
    LoadBalancerName: aws.String("my-load-balancer"),
}

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

fmt.Println(result)

func (*ELB) DeregisterInstancesFromLoadBalancerRequest

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

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

See DeregisterInstancesFromLoadBalancer for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeregisterInstancesFromLoadBalancer

func (*ELB) DeregisterInstancesFromLoadBalancerWithContext

func (c *ELB) DeregisterInstancesFromLoadBalancerWithContext(ctx aws.Context, input *DeregisterInstancesFromLoadBalancerInput, opts ...request.Option) (*DeregisterInstancesFromLoadBalancerOutput, error)

DeregisterInstancesFromLoadBalancerWithContext is the same as DeregisterInstancesFromLoadBalancer with the addition of the ability to pass a context and additional request options.

See DeregisterInstancesFromLoadBalancer for details on how to use this API operation.

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

func (*ELB) DescribeAccountLimits

func (c *ELB) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error)

DescribeAccountLimits API operation for Elastic Load Balancing.

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

For more information, see Limits for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-limits.html) in the Classic Load Balancer Guide.

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

See the AWS API reference guide for Elastic Load Balancing's API operation DescribeAccountLimits for usage and error information. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeAccountLimits

func (*ELB) DescribeAccountLimitsRequest

func (c *ELB) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) (req *request.Request, output *DescribeAccountLimitsOutput)

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

See DescribeAccountLimits for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeAccountLimits

func (*ELB) DescribeAccountLimitsWithContext

func (c *ELB) DescribeAccountLimitsWithContext(ctx aws.Context, input *DescribeAccountLimitsInput, opts ...request.Option) (*DescribeAccountLimitsOutput, error)

DescribeAccountLimitsWithContext is the same as DescribeAccountLimits with the addition of the ability to pass a context and additional request options.

See DescribeAccountLimits for details on how to use this API operation.

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

func (*ELB) DescribeInstanceHealth

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

DescribeInstanceHealth API operation for Elastic Load Balancing.

Describes the state of the specified instances with respect to the specified load balancer. If no instances are specified, the call describes the state of all instances that are currently registered with the load balancer. If instances are specified, their state is returned even if they are no longer registered with the load balancer. The state of terminated instances is not returned.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeInvalidEndPointException "InvalidInstance"
The specified endpoint is not valid.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeInstanceHealth

Example (Shared00)

To describe the health of the instances for a load balancer This example describes the health of the instances for the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.DescribeInstanceHealthInput{
    LoadBalancerName: aws.String("my-load-balancer"),
}

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

fmt.Println(result)

func (*ELB) DescribeInstanceHealthRequest

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

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

See DescribeInstanceHealth for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeInstanceHealth

func (*ELB) DescribeInstanceHealthWithContext

func (c *ELB) DescribeInstanceHealthWithContext(ctx aws.Context, input *DescribeInstanceHealthInput, opts ...request.Option) (*DescribeInstanceHealthOutput, error)

DescribeInstanceHealthWithContext is the same as DescribeInstanceHealth with the addition of the ability to pass a context and additional request options.

See DescribeInstanceHealth for details on how to use this API operation.

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

func (*ELB) DescribeLoadBalancerAttributes

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

DescribeLoadBalancerAttributes API operation for Elastic Load Balancing.

Describes the attributes for the specified load balancer.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeLoadBalancerAttributeNotFoundException "LoadBalancerAttributeNotFound"
The specified load balancer attribute does not exist.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerAttributes

Example (Shared00)

To describe the attributes of a load balancer This example describes the attributes of the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.DescribeLoadBalancerAttributesInput{
    LoadBalancerName: aws.String("my-load-balancer"),
}

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

fmt.Println(result)

func (*ELB) DescribeLoadBalancerAttributesRequest

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

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

See DescribeLoadBalancerAttributes for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerAttributes

func (*ELB) DescribeLoadBalancerAttributesWithContext

func (c *ELB) DescribeLoadBalancerAttributesWithContext(ctx aws.Context, input *DescribeLoadBalancerAttributesInput, opts ...request.Option) (*DescribeLoadBalancerAttributesOutput, error)

DescribeLoadBalancerAttributesWithContext is the same as DescribeLoadBalancerAttributes with the addition of the ability to pass a context and additional request options.

See DescribeLoadBalancerAttributes for details on how to use this API operation.

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

func (*ELB) DescribeLoadBalancerPolicies

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

DescribeLoadBalancerPolicies API operation for Elastic Load Balancing.

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.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodePolicyNotFoundException "PolicyNotFound"
One or more of the specified policies do not exist.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicies

Example (Shared00)

To describe a policy associated with a load balancer This example describes the specified policy associated with the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.DescribeLoadBalancerPoliciesInput{
    LoadBalancerName: aws.String("my-load-balancer"),
    PolicyNames: []*string{
        aws.String("my-authentication-policy"),
    },
}

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

fmt.Println(result)

func (*ELB) DescribeLoadBalancerPoliciesRequest

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

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

See DescribeLoadBalancerPolicies for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicies

func (*ELB) DescribeLoadBalancerPoliciesWithContext

func (c *ELB) DescribeLoadBalancerPoliciesWithContext(ctx aws.Context, input *DescribeLoadBalancerPoliciesInput, opts ...request.Option) (*DescribeLoadBalancerPoliciesOutput, error)

DescribeLoadBalancerPoliciesWithContext is the same as DescribeLoadBalancerPolicies with the addition of the ability to pass a context and additional request options.

See DescribeLoadBalancerPolicies for details on how to use this API operation.

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

func (*ELB) DescribeLoadBalancerPolicyTypes

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

DescribeLoadBalancerPolicyTypes API operation for Elastic Load Balancing.

Describes the specified load balancer policy types or all load balancer policy types.

The description of each type indicates how it can be used. For example, some policies can be used only with layer 7 listeners, some policies can be used only with layer 4 listeners, and some policies can be used only with your EC2 instances.

You can use CreateLoadBalancerPolicy to create a policy configuration for any of these policy types. Then, depending on the policy type, use either SetLoadBalancerPoliciesOfListener or SetLoadBalancerPoliciesForBackendServer to set the policy.

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

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

Returned Error Codes:

* ErrCodePolicyTypeNotFoundException "PolicyTypeNotFound"
One or more of the specified policy types do not exist.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicyTypes

Example (Shared00)

To describe a load balancer policy type defined by Elastic Load Balancing This example describes the specified load balancer policy type.

Code:

svc := elb.New(session.New())
input := &elb.DescribeLoadBalancerPolicyTypesInput{
    PolicyTypeNames: []*string{
        aws.String("ProxyProtocolPolicyType"),
    },
}

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

fmt.Println(result)

func (*ELB) DescribeLoadBalancerPolicyTypesRequest

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

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

See DescribeLoadBalancerPolicyTypes for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicyTypes

func (*ELB) DescribeLoadBalancerPolicyTypesWithContext

func (c *ELB) DescribeLoadBalancerPolicyTypesWithContext(ctx aws.Context, input *DescribeLoadBalancerPolicyTypesInput, opts ...request.Option) (*DescribeLoadBalancerPolicyTypesOutput, error)

DescribeLoadBalancerPolicyTypesWithContext is the same as DescribeLoadBalancerPolicyTypes with the addition of the ability to pass a context and additional request options.

See DescribeLoadBalancerPolicyTypes for details on how to use this API operation.

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

func (*ELB) DescribeLoadBalancers

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

DescribeLoadBalancers API operation for Elastic Load Balancing.

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

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeDependencyThrottleException "DependencyThrottle"

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancers

Example (Shared00)

To describe one of your load balancers This example describes the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.DescribeLoadBalancersInput{
    LoadBalancerNames: []*string{
        aws.String("my-load-balancer"),
    },
}

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

fmt.Println(result)

func (*ELB) DescribeLoadBalancersPages

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

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

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

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

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

func (*ELB) DescribeLoadBalancersPagesWithContext

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

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

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

func (*ELB) DescribeLoadBalancersRequest

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

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

See DescribeLoadBalancers for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancers

func (*ELB) DescribeLoadBalancersWithContext

func (c *ELB) DescribeLoadBalancersWithContext(ctx aws.Context, input *DescribeLoadBalancersInput, opts ...request.Option) (*DescribeLoadBalancersOutput, error)

DescribeLoadBalancersWithContext is the same as DescribeLoadBalancers with the addition of the ability to pass a context and additional request options.

See DescribeLoadBalancers for details on how to use this API operation.

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

func (*ELB) DescribeTags

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

DescribeTags API operation for Elastic Load Balancing.

Describes the tags associated with the specified load balancers.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeTags

Example (Shared00)

To describe the tags for a load balancer This example describes the tags for the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.DescribeTagsInput{
    LoadBalancerNames: []*string{
        aws.String("my-load-balancer"),
    },
}

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

fmt.Println(result)

func (*ELB) DescribeTagsRequest

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

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

See DescribeTags for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeTags

func (*ELB) DescribeTagsWithContext

func (c *ELB) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error)

DescribeTagsWithContext is the same as DescribeTags with the addition of the ability to pass a context and additional request options.

See DescribeTags for details on how to use this API operation.

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

func (*ELB) DetachLoadBalancerFromSubnets

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

DetachLoadBalancerFromSubnets API operation for Elastic Load Balancing.

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.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
The requested configuration change is not valid.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DetachLoadBalancerFromSubnets

Example (Shared00)

To detach a load balancer from a subnet This example detaches the specified load balancer from the specified subnet.

Code:

svc := elb.New(session.New())
input := &elb.DetachLoadBalancerFromSubnetsInput{
    LoadBalancerName: aws.String("my-load-balancer"),
    Subnets: []*string{
        aws.String("subnet-0ecac448"),
    },
}

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

fmt.Println(result)

func (*ELB) DetachLoadBalancerFromSubnetsRequest

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

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

See DetachLoadBalancerFromSubnets for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DetachLoadBalancerFromSubnets

func (*ELB) DetachLoadBalancerFromSubnetsWithContext

func (c *ELB) DetachLoadBalancerFromSubnetsWithContext(ctx aws.Context, input *DetachLoadBalancerFromSubnetsInput, opts ...request.Option) (*DetachLoadBalancerFromSubnetsOutput, error)

DetachLoadBalancerFromSubnetsWithContext is the same as DetachLoadBalancerFromSubnets with the addition of the ability to pass a context and additional request options.

See DetachLoadBalancerFromSubnets for details on how to use this API operation.

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

func (*ELB) DisableAvailabilityZonesForLoadBalancer

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

DisableAvailabilityZonesForLoadBalancer API operation for Elastic Load Balancing.

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 Add or Remove Availability Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
The requested configuration change is not valid.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DisableAvailabilityZonesForLoadBalancer

Example (Shared00)

To disable an Availability Zone for a load balancer This example removes the specified Availability Zone from the set of Availability Zones for the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.DisableAvailabilityZonesForLoadBalancerInput{
    AvailabilityZones: []*string{
        aws.String("us-west-2a"),
    },
    LoadBalancerName: aws.String("my-load-balancer"),
}

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

fmt.Println(result)

func (*ELB) DisableAvailabilityZonesForLoadBalancerRequest

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

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

See DisableAvailabilityZonesForLoadBalancer for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DisableAvailabilityZonesForLoadBalancer

func (*ELB) DisableAvailabilityZonesForLoadBalancerWithContext

func (c *ELB) DisableAvailabilityZonesForLoadBalancerWithContext(ctx aws.Context, input *DisableAvailabilityZonesForLoadBalancerInput, opts ...request.Option) (*DisableAvailabilityZonesForLoadBalancerOutput, error)

DisableAvailabilityZonesForLoadBalancerWithContext is the same as DisableAvailabilityZonesForLoadBalancer with the addition of the ability to pass a context and additional request options.

See DisableAvailabilityZonesForLoadBalancer for details on how to use this API operation.

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

func (*ELB) EnableAvailabilityZonesForLoadBalancer

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

EnableAvailabilityZonesForLoadBalancer API operation for Elastic Load Balancing.

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 or Remove Availability Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/EnableAvailabilityZonesForLoadBalancer

Example (Shared00)

To enable an Availability Zone for a load balancer This example adds the specified Availability Zone to the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.EnableAvailabilityZonesForLoadBalancerInput{
    AvailabilityZones: []*string{
        aws.String("us-west-2b"),
    },
    LoadBalancerName: aws.String("my-load-balancer"),
}

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

fmt.Println(result)

func (*ELB) EnableAvailabilityZonesForLoadBalancerRequest

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

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

See EnableAvailabilityZonesForLoadBalancer for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/EnableAvailabilityZonesForLoadBalancer

func (*ELB) EnableAvailabilityZonesForLoadBalancerWithContext

func (c *ELB) EnableAvailabilityZonesForLoadBalancerWithContext(ctx aws.Context, input *EnableAvailabilityZonesForLoadBalancerInput, opts ...request.Option) (*EnableAvailabilityZonesForLoadBalancerOutput, error)

EnableAvailabilityZonesForLoadBalancerWithContext is the same as EnableAvailabilityZonesForLoadBalancer with the addition of the ability to pass a context and additional request options.

See EnableAvailabilityZonesForLoadBalancer for details on how to use this API operation.

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

func (*ELB) ModifyLoadBalancerAttributes

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

ModifyLoadBalancerAttributes API operation for Elastic Load Balancing.

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 Classic Load Balancer Guide:

* Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html)

* Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html)

* Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/access-log-collection.html)

* Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html)

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeLoadBalancerAttributeNotFoundException "LoadBalancerAttributeNotFound"
The specified load balancer attribute does not exist.

* ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
The requested configuration change is not valid.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ModifyLoadBalancerAttributes

Example (Shared00)

To enable cross-zone load balancing This example enables cross-zone load balancing for the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.ModifyLoadBalancerAttributesInput{
    LoadBalancerAttributes: &elb.LoadBalancerAttributes{
        CrossZoneLoadBalancing: &elb.CrossZoneLoadBalancing{
            Enabled: aws.Bool(true),
        },
    },
    LoadBalancerName: aws.String("my-load-balancer"),
}

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

fmt.Println(result)

Example (Shared01)

To enable connection draining This example enables connection draining for the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.ModifyLoadBalancerAttributesInput{
    LoadBalancerAttributes: &elb.LoadBalancerAttributes{
        ConnectionDraining: &elb.ConnectionDraining{
            Enabled: aws.Bool(true),
            Timeout: aws.Int64(300),
        },
    },
    LoadBalancerName: aws.String("my-load-balancer"),
}

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

fmt.Println(result)

func (*ELB) ModifyLoadBalancerAttributesRequest

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

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

See ModifyLoadBalancerAttributes for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ModifyLoadBalancerAttributes

func (*ELB) ModifyLoadBalancerAttributesWithContext

func (c *ELB) ModifyLoadBalancerAttributesWithContext(ctx aws.Context, input *ModifyLoadBalancerAttributesInput, opts ...request.Option) (*ModifyLoadBalancerAttributesOutput, error)

ModifyLoadBalancerAttributesWithContext is the same as ModifyLoadBalancerAttributes with the addition of the ability to pass a context and additional request options.

See ModifyLoadBalancerAttributes for details on how to use this API operation.

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

func (*ELB) RegisterInstancesWithLoadBalancer

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

RegisterInstancesWithLoadBalancer API operation for Elastic Load Balancing.

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 takes a little time to complete. 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.

To deregister instances from a load balancer, use DeregisterInstancesFromLoadBalancer.

For more information, see Register or De-Register EC2 Instances (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-deregister-register-instances.html) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeInvalidEndPointException "InvalidInstance"
The specified endpoint is not valid.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RegisterInstancesWithLoadBalancer

Example (Shared00)

To register instances with a load balancer This example registers the specified instance with the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.RegisterInstancesWithLoadBalancerInput{
    Instances: []*elb.Instance{
        {
            InstanceId: aws.String("i-d6f6fae3"),
        },
    },
    LoadBalancerName: aws.String("my-load-balancer"),
}

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

fmt.Println(result)

func (*ELB) RegisterInstancesWithLoadBalancerRequest

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

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

See RegisterInstancesWithLoadBalancer for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RegisterInstancesWithLoadBalancer

func (*ELB) RegisterInstancesWithLoadBalancerWithContext

func (c *ELB) RegisterInstancesWithLoadBalancerWithContext(ctx aws.Context, input *RegisterInstancesWithLoadBalancerInput, opts ...request.Option) (*RegisterInstancesWithLoadBalancerOutput, error)

RegisterInstancesWithLoadBalancerWithContext is the same as RegisterInstancesWithLoadBalancer with the addition of the ability to pass a context and additional request options.

See RegisterInstancesWithLoadBalancer for details on how to use this API operation.

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

func (*ELB) RemoveTags

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

RemoveTags API operation for Elastic Load Balancing.

Removes one or more tags from the specified load balancer.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveTags

Example (Shared00)

To remove tags from a load balancer This example removes the specified tag from the specified load balancer.

Code:

svc := elb.New(session.New())
input := &elb.RemoveTagsInput{
    LoadBalancerNames: []*string{
        aws.String("my-load-balancer"),
    },
    Tags: []*elb.TagKeyOnly{
        {
            Key: aws.String("project"),
        },
    },
}

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

fmt.Println(result)

func (*ELB) RemoveTagsRequest

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

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

See RemoveTags for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveTags

func (*ELB) RemoveTagsWithContext

func (c *ELB) RemoveTagsWithContext(ctx aws.Context, input *RemoveTagsInput, opts ...request.Option) (*RemoveTagsOutput, error)

RemoveTagsWithContext is the same as RemoveTags with the addition of the ability to pass a context and additional request options.

See RemoveTags for details on how to use this API operation.

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

func (*ELB) SetLoadBalancerListenerSSLCertificate

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

SetLoadBalancerListenerSSLCertificate API operation for Elastic Load Balancing.

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 Replace the SSL Certificate for Your Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-update-ssl-cert.html) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeCertificateNotFoundException "CertificateNotFound"
The specified ARN does not refer to a valid SSL certificate in AWS Identity
and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if
you recently uploaded the certificate to IAM, this error might indicate that
the certificate is not fully available yet.

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodeListenerNotFoundException "ListenerNotFound"
The load balancer does not have a listener configured at the specified port.

* ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
The requested configuration change is not valid.

* ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
The specified protocol or signature version is not supported.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerListenerSSLCertificate

Example (Shared00)

To update the SSL certificate for an HTTPS listener This example replaces the existing SSL certificate for the specified HTTPS listener.

Code:

svc := elb.New(session.New())
input := &elb.SetLoadBalancerListenerSSLCertificateInput{
    LoadBalancerName: aws.String("my-load-balancer"),
    LoadBalancerPort: aws.Int64(443),
    SSLCertificateId: aws.String("arn:aws:iam::123456789012:server-certificate/new-server-cert"),
}

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

fmt.Println(result)

func (*ELB) SetLoadBalancerListenerSSLCertificateRequest

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

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

See SetLoadBalancerListenerSSLCertificate for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerListenerSSLCertificate

func (*ELB) SetLoadBalancerListenerSSLCertificateWithContext

func (c *ELB) SetLoadBalancerListenerSSLCertificateWithContext(ctx aws.Context, input *SetLoadBalancerListenerSSLCertificateInput, opts ...request.Option) (*SetLoadBalancerListenerSSLCertificateOutput, error)

SetLoadBalancerListenerSSLCertificateWithContext is the same as SetLoadBalancerListenerSSLCertificate with the addition of the ability to pass a context and additional request options.

See SetLoadBalancerListenerSSLCertificate for details on how to use this API operation.

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

func (*ELB) SetLoadBalancerPoliciesForBackendServer

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

SetLoadBalancerPoliciesForBackendServer API operation for Elastic Load Balancing.

Replaces the set of policies associated with the specified port on which the EC2 instance is listening with a new set of policies. At this time, only the back-end server authentication policy type can be applied to the instance 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 EC2 instance.

For more information about enabling back-end instance authentication, see Configure Back-end Instance Authentication (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-create-https-ssl-load-balancer.html#configure_backendauth_clt) in the Classic Load Balancer Guide. For more information about Proxy Protocol, see Configure Proxy Protocol Support (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-proxy-protocol.html) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodePolicyNotFoundException "PolicyNotFound"
One or more of the specified policies do not exist.

* ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
The requested configuration change is not valid.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesForBackendServer

Example (Shared00)

To replace the policies associated with a port for a backend instance This example replaces the policies that are currently associated with the specified port.

Code:

svc := elb.New(session.New())
input := &elb.SetLoadBalancerPoliciesForBackendServerInput{
    InstancePort:     aws.Int64(80),
    LoadBalancerName: aws.String("my-load-balancer"),
    PolicyNames: []*string{
        aws.String("my-ProxyProtocol-policy"),
    },
}

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

fmt.Println(result)

func (*ELB) SetLoadBalancerPoliciesForBackendServerRequest

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

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

See SetLoadBalancerPoliciesForBackendServer for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesForBackendServer

func (*ELB) SetLoadBalancerPoliciesForBackendServerWithContext

func (c *ELB) SetLoadBalancerPoliciesForBackendServerWithContext(ctx aws.Context, input *SetLoadBalancerPoliciesForBackendServerInput, opts ...request.Option) (*SetLoadBalancerPoliciesForBackendServerOutput, error)

SetLoadBalancerPoliciesForBackendServerWithContext is the same as SetLoadBalancerPoliciesForBackendServer with the addition of the ability to pass a context and additional request options.

See SetLoadBalancerPoliciesForBackendServer for details on how to use this API operation.

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

func (*ELB) SetLoadBalancerPoliciesOfListener

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

SetLoadBalancerPoliciesOfListener API operation for Elastic Load Balancing.

Replaces the current set of policies for the specified load balancer port with the specified set of policies.

To enable back-end server authentication, use SetLoadBalancerPoliciesForBackendServer.

For more information about setting policies, see Update the SSL Negotiation Configuration (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/ssl-config-update.html), Duration-Based Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-duration), and Application-Controlled Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-application) in the Classic Load Balancer Guide.

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

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

Returned Error Codes:

* ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
The specified load balancer does not exist.

* ErrCodePolicyNotFoundException "PolicyNotFound"
One or more of the specified policies do not exist.

* ErrCodeListenerNotFoundException "ListenerNotFound"
The load balancer does not have a listener configured at the specified port.

* ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
The requested configuration change is not valid.

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesOfListener

Example (Shared00)

To replace the policies associated with a listener This example replaces the policies that are currently associated with the specified listener.

Code:

svc := elb.New(session.New())
input := &elb.SetLoadBalancerPoliciesOfListenerInput{
    LoadBalancerName: aws.String("my-load-balancer"),
    LoadBalancerPort: aws.Int64(80),
    PolicyNames: []*string{
        aws.String("my-SSLNegotiation-policy"),
    },
}

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

fmt.Println(result)

func (*ELB) SetLoadBalancerPoliciesOfListenerRequest

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

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

See SetLoadBalancerPoliciesOfListener for usage and error information.

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

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

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

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesOfListener

func (*ELB) SetLoadBalancerPoliciesOfListenerWithContext

func (c *ELB) SetLoadBalancerPoliciesOfListenerWithContext(ctx aws.Context, input *SetLoadBalancerPoliciesOfListenerInput, opts ...request.Option) (*SetLoadBalancerPoliciesOfListenerOutput, error)

SetLoadBalancerPoliciesOfListenerWithContext is the same as SetLoadBalancerPoliciesOfListener with the addition of the ability to pass a context and additional request options.

See SetLoadBalancerPoliciesOfListener for details on how to use this API operation.

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

func (*ELB) WaitUntilAnyInstanceInService

func (c *ELB) WaitUntilAnyInstanceInService(input *DescribeInstanceHealthInput) error

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

func (*ELB) WaitUntilAnyInstanceInServiceWithContext

func (c *ELB) WaitUntilAnyInstanceInServiceWithContext(ctx aws.Context, input *DescribeInstanceHealthInput, opts ...request.WaiterOption) error

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

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

func (*ELB) WaitUntilInstanceDeregistered

func (c *ELB) WaitUntilInstanceDeregistered(input *DescribeInstanceHealthInput) error

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

func (*ELB) WaitUntilInstanceDeregisteredWithContext

func (c *ELB) WaitUntilInstanceDeregisteredWithContext(ctx aws.Context, input *DescribeInstanceHealthInput, opts ...request.WaiterOption) error

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

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

func (*ELB) WaitUntilInstanceInService

func (c *ELB) WaitUntilInstanceInService(input *DescribeInstanceHealthInput) error

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

func (*ELB) WaitUntilInstanceInServiceWithContext

func (c *ELB) WaitUntilInstanceInServiceWithContext(ctx aws.Context, input *DescribeInstanceHealthInput, opts ...request.WaiterOption) error

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

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

type EnableAvailabilityZonesForLoadBalancerInput

Contains the parameters for EnableAvailabilityZonesForLoadBalancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AddAvailabilityZonesInput

type EnableAvailabilityZonesForLoadBalancerInput struct {

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

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

func (EnableAvailabilityZonesForLoadBalancerInput) GoString

func (s EnableAvailabilityZonesForLoadBalancerInput) GoString() string

GoString returns the string representation

func (*EnableAvailabilityZonesForLoadBalancerInput) SetAvailabilityZones

func (s *EnableAvailabilityZonesForLoadBalancerInput) SetAvailabilityZones(v []*string) *EnableAvailabilityZonesForLoadBalancerInput

SetAvailabilityZones sets the AvailabilityZones field's value.

func (*EnableAvailabilityZonesForLoadBalancerInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (EnableAvailabilityZonesForLoadBalancerInput) String

func (s EnableAvailabilityZonesForLoadBalancerInput) String() string

String returns the string representation

func (*EnableAvailabilityZonesForLoadBalancerInput) Validate

func (s *EnableAvailabilityZonesForLoadBalancerInput) Validate() error

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

type EnableAvailabilityZonesForLoadBalancerOutput

Contains the output of EnableAvailabilityZonesForLoadBalancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AddAvailabilityZonesOutput

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

func (s EnableAvailabilityZonesForLoadBalancerOutput) GoString() string

GoString returns the string representation

func (*EnableAvailabilityZonesForLoadBalancerOutput) SetAvailabilityZones

func (s *EnableAvailabilityZonesForLoadBalancerOutput) SetAvailabilityZones(v []*string) *EnableAvailabilityZonesForLoadBalancerOutput

SetAvailabilityZones sets the AvailabilityZones field's value.

func (EnableAvailabilityZonesForLoadBalancerOutput) String

func (s EnableAvailabilityZonesForLoadBalancerOutput) String() string

String returns the string representation

type HealthCheck

Information about a health check. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/HealthCheck

type HealthCheck struct {

    // The number of consecutive health checks successes required before moving
    // the instance to the Healthy state.
    //
    // HealthyThreshold is a required field
    HealthyThreshold *int64 `min:"2" type:"integer" required:"true"`

    // The approximate interval, in seconds, between health checks of an individual
    // instance.
    //
    // Interval is a required field
    Interval *int64 `min:"5" 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 is a required field
    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 is a required field
    Timeout *int64 `min:"2" type:"integer" required:"true"`

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

func (HealthCheck) GoString

func (s HealthCheck) GoString() string

GoString returns the string representation

func (*HealthCheck) SetHealthyThreshold

func (s *HealthCheck) SetHealthyThreshold(v int64) *HealthCheck

SetHealthyThreshold sets the HealthyThreshold field's value.

func (*HealthCheck) SetInterval

func (s *HealthCheck) SetInterval(v int64) *HealthCheck

SetInterval sets the Interval field's value.

func (*HealthCheck) SetTarget

func (s *HealthCheck) SetTarget(v string) *HealthCheck

SetTarget sets the Target field's value.

func (*HealthCheck) SetTimeout

func (s *HealthCheck) SetTimeout(v int64) *HealthCheck

SetTimeout sets the Timeout field's value.

func (*HealthCheck) SetUnhealthyThreshold

func (s *HealthCheck) SetUnhealthyThreshold(v int64) *HealthCheck

SetUnhealthyThreshold sets the UnhealthyThreshold field's value.

func (HealthCheck) String

func (s HealthCheck) String() string

String returns the string representation

func (*HealthCheck) Validate

func (s *HealthCheck) Validate() error

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

type Instance

The ID of an EC2 instance. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/Instance

type Instance struct {

    // The instance ID.
    InstanceId *string `type:"string"`
    // contains filtered or unexported fields
}

func (Instance) GoString

func (s Instance) GoString() string

GoString returns the string representation

func (*Instance) SetInstanceId

func (s *Instance) SetInstanceId(v string) *Instance

SetInstanceId sets the InstanceId field's value.

func (Instance) String

func (s Instance) String() string

String returns the string representation

type InstanceState

Information about the state of an EC2 instance. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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 `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
}

func (InstanceState) GoString

func (s InstanceState) GoString() string

GoString returns the string representation

func (*InstanceState) SetDescription

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

SetDescription sets the Description field's value.

func (*InstanceState) SetInstanceId

func (s *InstanceState) SetInstanceId(v string) *InstanceState

SetInstanceId sets the InstanceId field's value.

func (*InstanceState) SetReasonCode

func (s *InstanceState) SetReasonCode(v string) *InstanceState

SetReasonCode sets the ReasonCode field's value.

func (*InstanceState) SetState

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

SetState sets the State field's value.

func (InstanceState) String

func (s InstanceState) String() string

String returns the string representation

type LBCookieStickinessPolicy

Information about a policy for duration-based session stickiness. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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 of the policy. This name must be unique within the set of policies
    // for this load balancer.
    PolicyName *string `type:"string"`
    // contains filtered or unexported fields
}

func (LBCookieStickinessPolicy) GoString

func (s LBCookieStickinessPolicy) GoString() string

GoString returns the string representation

func (*LBCookieStickinessPolicy) SetCookieExpirationPeriod

func (s *LBCookieStickinessPolicy) SetCookieExpirationPeriod(v int64) *LBCookieStickinessPolicy

SetCookieExpirationPeriod sets the CookieExpirationPeriod field's value.

func (*LBCookieStickinessPolicy) SetPolicyName

func (s *LBCookieStickinessPolicy) SetPolicyName(v string) *LBCookieStickinessPolicy

SetPolicyName sets the PolicyName field's value.

func (LBCookieStickinessPolicy) String

func (s LBCookieStickinessPolicy) String() string

String returns the string representation

type Limit

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

type Limit struct {

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

    // The name of the limit. The possible values are:
    //
    //    * classic-listeners
    //
    //    * classic-load-balancers
    Name *string `type:"string"`
    // contains filtered or unexported fields
}

func (Limit) GoString

func (s Limit) GoString() string

GoString returns the string representation

func (*Limit) SetMax

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

SetMax sets the Max field's value.

func (*Limit) SetName

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

SetName sets the Name field's value.

func (Limit) String

func (s Limit) String() string

String returns the string representation

type Listener

Information about a listener.

For information about the protocols and the ports supported by Elastic Load Balancing, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html) in the Classic Load Balancer Guide. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/Listener

type Listener struct {

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

    // The protocol to use for routing traffic to 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. On EC2-VPC, you can specify
    // any port from the range 1-65535. On EC2-Classic, you can specify any port
    // from the following list: 25, 80, 443, 465, 587, 1024-65535.
    //
    // LoadBalancerPort is a required field
    LoadBalancerPort *int64 `type:"integer" required:"true"`

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

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

func (Listener) GoString

func (s Listener) GoString() string

GoString returns the string representation

func (*Listener) SetInstancePort

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

SetInstancePort sets the InstancePort field's value.

func (*Listener) SetInstanceProtocol

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

SetInstanceProtocol sets the InstanceProtocol field's value.

func (*Listener) SetLoadBalancerPort

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

SetLoadBalancerPort sets the LoadBalancerPort field's value.

func (*Listener) SetProtocol

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

SetProtocol sets the Protocol field's value.

func (*Listener) SetSSLCertificateId

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

SetSSLCertificateId sets the SSLCertificateId field's value.

func (Listener) String

func (s Listener) String() string

String returns the string representation

func (*Listener) Validate

func (s *Listener) Validate() error

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

type ListenerDescription

The policies enabled for a listener. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ListenerDescription

type ListenerDescription struct {

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

func (ListenerDescription) GoString

func (s ListenerDescription) GoString() string

GoString returns the string representation

func (*ListenerDescription) SetListener

func (s *ListenerDescription) SetListener(v *Listener) *ListenerDescription

SetListener sets the Listener field's value.

func (*ListenerDescription) SetPolicyNames

func (s *ListenerDescription) SetPolicyNames(v []*string) *ListenerDescription

SetPolicyNames sets the PolicyNames field's value.

func (ListenerDescription) String

func (s ListenerDescription) String() string

String returns the string representation

type LoadBalancerAttributes

The attributes for a load balancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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/classic/enable-access-logs.html)
    // in the Classic Load Balancer 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 instance.
    //
    // For more information, see Configure Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html)
    // in the Classic Load Balancer 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/classic/config-idle-timeout.html)
    // in the Classic Load Balancer Guide.
    ConnectionSettings *ConnectionSettings `type:"structure"`

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

func (LoadBalancerAttributes) GoString

func (s LoadBalancerAttributes) GoString() string

GoString returns the string representation

func (*LoadBalancerAttributes) SetAccessLog

func (s *LoadBalancerAttributes) SetAccessLog(v *AccessLog) *LoadBalancerAttributes

SetAccessLog sets the AccessLog field's value.

func (*LoadBalancerAttributes) SetAdditionalAttributes

func (s *LoadBalancerAttributes) SetAdditionalAttributes(v []*AdditionalAttribute) *LoadBalancerAttributes

SetAdditionalAttributes sets the AdditionalAttributes field's value.

func (*LoadBalancerAttributes) SetConnectionDraining

func (s *LoadBalancerAttributes) SetConnectionDraining(v *ConnectionDraining) *LoadBalancerAttributes

SetConnectionDraining sets the ConnectionDraining field's value.

func (*LoadBalancerAttributes) SetConnectionSettings

func (s *LoadBalancerAttributes) SetConnectionSettings(v *ConnectionSettings) *LoadBalancerAttributes

SetConnectionSettings sets the ConnectionSettings field's value.

func (*LoadBalancerAttributes) SetCrossZoneLoadBalancing

func (s *LoadBalancerAttributes) SetCrossZoneLoadBalancing(v *CrossZoneLoadBalancing) *LoadBalancerAttributes

SetCrossZoneLoadBalancing sets the CrossZoneLoadBalancing field's value.

func (LoadBalancerAttributes) String

func (s LoadBalancerAttributes) String() string

String returns the string representation

func (*LoadBalancerAttributes) Validate

func (s *LoadBalancerAttributes) Validate() error

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

type LoadBalancerDescription

Information about a load balancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/LoadBalancerDescription

type LoadBalancerDescription struct {

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

    // Information about your EC2 instances.
    BackendServerDescriptions []*BackendServerDescription `type:"list"`

    // The DNS name of the load balancer.
    //
    // For more information, see Configure a Custom Domain Name (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/using-domain-names-with-elb.html)
    // in the Classic Load Balancer Guide.
    CanonicalHostedZoneName *string `type:"string"`

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

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

    // The 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 for the load balancer, which you can use as part of your
    // inbound rules for your registered instances. To only allow traffic from load
    // balancers, add a security group rule 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 `type:"string"`
    // contains filtered or unexported fields
}

func (LoadBalancerDescription) GoString

func (s LoadBalancerDescription) GoString() string

GoString returns the string representation

func (*LoadBalancerDescription) SetAvailabilityZones

func (s *LoadBalancerDescription) SetAvailabilityZones(v []*string) *LoadBalancerDescription

SetAvailabilityZones sets the AvailabilityZones field's value.

func (*LoadBalancerDescription) SetBackendServerDescriptions

func (s *LoadBalancerDescription) SetBackendServerDescriptions(v []*BackendServerDescription) *LoadBalancerDescription

SetBackendServerDescriptions sets the BackendServerDescriptions field's value.

func (*LoadBalancerDescription) SetCanonicalHostedZoneName

func (s *LoadBalancerDescription) SetCanonicalHostedZoneName(v string) *LoadBalancerDescription

SetCanonicalHostedZoneName sets the CanonicalHostedZoneName field's value.

func (*LoadBalancerDescription) SetCanonicalHostedZoneNameID

func (s *LoadBalancerDescription) SetCanonicalHostedZoneNameID(v string) *LoadBalancerDescription

SetCanonicalHostedZoneNameID sets the CanonicalHostedZoneNameID field's value.

func (*LoadBalancerDescription) SetCreatedTime

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

SetCreatedTime sets the CreatedTime field's value.

func (*LoadBalancerDescription) SetDNSName

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

SetDNSName sets the DNSName field's value.

func (*LoadBalancerDescription) SetHealthCheck

func (s *LoadBalancerDescription) SetHealthCheck(v *HealthCheck) *LoadBalancerDescription

SetHealthCheck sets the HealthCheck field's value.

func (*LoadBalancerDescription) SetInstances

func (s *LoadBalancerDescription) SetInstances(v []*Instance) *LoadBalancerDescription

SetInstances sets the Instances field's value.

func (*LoadBalancerDescription) SetListenerDescriptions

func (s *LoadBalancerDescription) SetListenerDescriptions(v []*ListenerDescription) *LoadBalancerDescription

SetListenerDescriptions sets the ListenerDescriptions field's value.

func (*LoadBalancerDescription) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*LoadBalancerDescription) SetPolicies

func (s *LoadBalancerDescription) SetPolicies(v *Policies) *LoadBalancerDescription

SetPolicies sets the Policies field's value.

func (*LoadBalancerDescription) SetScheme

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

SetScheme sets the Scheme field's value.

func (*LoadBalancerDescription) SetSecurityGroups

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

SetSecurityGroups sets the SecurityGroups field's value.

func (*LoadBalancerDescription) SetSourceSecurityGroup

func (s *LoadBalancerDescription) SetSourceSecurityGroup(v *SourceSecurityGroup) *LoadBalancerDescription

SetSourceSecurityGroup sets the SourceSecurityGroup field's value.

func (*LoadBalancerDescription) SetSubnets

func (s *LoadBalancerDescription) SetSubnets(v []*string) *LoadBalancerDescription

SetSubnets sets the Subnets field's value.

func (*LoadBalancerDescription) SetVPCId

func (s *LoadBalancerDescription) SetVPCId(v string) *LoadBalancerDescription

SetVPCId sets the VPCId field's value.

func (LoadBalancerDescription) String

func (s LoadBalancerDescription) String() string

String returns the string representation

type ModifyLoadBalancerAttributesInput

Contains the parameters for ModifyLoadBalancerAttributes. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ModifyLoadBalancerAttributesInput

type ModifyLoadBalancerAttributesInput struct {

    // The attributes for the load balancer.
    //
    // LoadBalancerAttributes is a required field
    LoadBalancerAttributes *LoadBalancerAttributes `type:"structure" required:"true"`

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

func (ModifyLoadBalancerAttributesInput) GoString

func (s ModifyLoadBalancerAttributesInput) GoString() string

GoString returns the string representation

func (*ModifyLoadBalancerAttributesInput) SetLoadBalancerAttributes

func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *ModifyLoadBalancerAttributesInput

SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value.

func (*ModifyLoadBalancerAttributesInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (ModifyLoadBalancerAttributesInput) String

func (s ModifyLoadBalancerAttributesInput) String() string

String returns the string representation

func (*ModifyLoadBalancerAttributesInput) Validate

func (s *ModifyLoadBalancerAttributesInput) Validate() error

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

type ModifyLoadBalancerAttributesOutput

Contains the output of ModifyLoadBalancerAttributes. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ModifyLoadBalancerAttributesOutput

type ModifyLoadBalancerAttributesOutput struct {

    // Information about the load balancer attributes.
    LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`

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

func (ModifyLoadBalancerAttributesOutput) GoString

func (s ModifyLoadBalancerAttributesOutput) GoString() string

GoString returns the string representation

func (*ModifyLoadBalancerAttributesOutput) SetLoadBalancerAttributes

func (s *ModifyLoadBalancerAttributesOutput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *ModifyLoadBalancerAttributesOutput

SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value.

func (*ModifyLoadBalancerAttributesOutput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (ModifyLoadBalancerAttributesOutput) String

func (s ModifyLoadBalancerAttributesOutput) String() string

String returns the string representation

type Policies

The policies for a load balancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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
}

func (Policies) GoString

func (s Policies) GoString() string

GoString returns the string representation

func (*Policies) SetAppCookieStickinessPolicies

func (s *Policies) SetAppCookieStickinessPolicies(v []*AppCookieStickinessPolicy) *Policies

SetAppCookieStickinessPolicies sets the AppCookieStickinessPolicies field's value.

func (*Policies) SetLBCookieStickinessPolicies

func (s *Policies) SetLBCookieStickinessPolicies(v []*LBCookieStickinessPolicy) *Policies

SetLBCookieStickinessPolicies sets the LBCookieStickinessPolicies field's value.

func (*Policies) SetOtherPolicies

func (s *Policies) SetOtherPolicies(v []*string) *Policies

SetOtherPolicies sets the OtherPolicies field's value.

func (Policies) String

func (s Policies) String() string

String returns the string representation

type PolicyAttribute

Information about a policy attribute. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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
}

func (PolicyAttribute) GoString

func (s PolicyAttribute) GoString() string

GoString returns the string representation

func (*PolicyAttribute) SetAttributeName

func (s *PolicyAttribute) SetAttributeName(v string) *PolicyAttribute

SetAttributeName sets the AttributeName field's value.

func (*PolicyAttribute) SetAttributeValue

func (s *PolicyAttribute) SetAttributeValue(v string) *PolicyAttribute

SetAttributeValue sets the AttributeValue field's value.

func (PolicyAttribute) String

func (s PolicyAttribute) String() string

String returns the string representation

type PolicyAttributeDescription

Information about a policy attribute. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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
}

func (PolicyAttributeDescription) GoString

func (s PolicyAttributeDescription) GoString() string

GoString returns the string representation

func (*PolicyAttributeDescription) SetAttributeName

func (s *PolicyAttributeDescription) SetAttributeName(v string) *PolicyAttributeDescription

SetAttributeName sets the AttributeName field's value.

func (*PolicyAttributeDescription) SetAttributeValue

func (s *PolicyAttributeDescription) SetAttributeValue(v string) *PolicyAttributeDescription

SetAttributeValue sets the AttributeValue field's value.

func (PolicyAttributeDescription) String

func (s PolicyAttributeDescription) String() string

String returns the string representation

type PolicyAttributeTypeDescription

Information about a policy attribute type. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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 is allowed
    //
    //    * 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
}

func (PolicyAttributeTypeDescription) GoString

func (s PolicyAttributeTypeDescription) GoString() string

GoString returns the string representation

func (*PolicyAttributeTypeDescription) SetAttributeName

func (s *PolicyAttributeTypeDescription) SetAttributeName(v string) *PolicyAttributeTypeDescription

SetAttributeName sets the AttributeName field's value.

func (*PolicyAttributeTypeDescription) SetAttributeType

func (s *PolicyAttributeTypeDescription) SetAttributeType(v string) *PolicyAttributeTypeDescription

SetAttributeType sets the AttributeType field's value.

func (*PolicyAttributeTypeDescription) SetCardinality

func (s *PolicyAttributeTypeDescription) SetCardinality(v string) *PolicyAttributeTypeDescription

SetCardinality sets the Cardinality field's value.

func (*PolicyAttributeTypeDescription) SetDefaultValue

func (s *PolicyAttributeTypeDescription) SetDefaultValue(v string) *PolicyAttributeTypeDescription

SetDefaultValue sets the DefaultValue field's value.

func (*PolicyAttributeTypeDescription) SetDescription

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

SetDescription sets the Description field's value.

func (PolicyAttributeTypeDescription) String

func (s PolicyAttributeTypeDescription) String() string

String returns the string representation

type PolicyDescription

Information about a policy. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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
}

func (PolicyDescription) GoString

func (s PolicyDescription) GoString() string

GoString returns the string representation

func (*PolicyDescription) SetPolicyAttributeDescriptions

func (s *PolicyDescription) SetPolicyAttributeDescriptions(v []*PolicyAttributeDescription) *PolicyDescription

SetPolicyAttributeDescriptions sets the PolicyAttributeDescriptions field's value.

func (*PolicyDescription) SetPolicyName

func (s *PolicyDescription) SetPolicyName(v string) *PolicyDescription

SetPolicyName sets the PolicyName field's value.

func (*PolicyDescription) SetPolicyTypeName

func (s *PolicyDescription) SetPolicyTypeName(v string) *PolicyDescription

SetPolicyTypeName sets the PolicyTypeName field's value.

func (PolicyDescription) String

func (s PolicyDescription) String() string

String returns the string representation

type PolicyTypeDescription

Information about a policy type. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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
}

func (PolicyTypeDescription) GoString

func (s PolicyTypeDescription) GoString() string

GoString returns the string representation

func (*PolicyTypeDescription) SetDescription

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

SetDescription sets the Description field's value.

func (*PolicyTypeDescription) SetPolicyAttributeTypeDescriptions

func (s *PolicyTypeDescription) SetPolicyAttributeTypeDescriptions(v []*PolicyAttributeTypeDescription) *PolicyTypeDescription

SetPolicyAttributeTypeDescriptions sets the PolicyAttributeTypeDescriptions field's value.

func (*PolicyTypeDescription) SetPolicyTypeName

func (s *PolicyTypeDescription) SetPolicyTypeName(v string) *PolicyTypeDescription

SetPolicyTypeName sets the PolicyTypeName field's value.

func (PolicyTypeDescription) String

func (s PolicyTypeDescription) String() string

String returns the string representation

type RegisterInstancesWithLoadBalancerInput

Contains the parameters for RegisterInstancesWithLoadBalancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RegisterEndPointsInput

type RegisterInstancesWithLoadBalancerInput struct {

    // The IDs of the instances.
    //
    // Instances is a required field
    Instances []*Instance `type:"list" required:"true"`

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

func (RegisterInstancesWithLoadBalancerInput) GoString

func (s RegisterInstancesWithLoadBalancerInput) GoString() string

GoString returns the string representation

func (*RegisterInstancesWithLoadBalancerInput) SetInstances

func (s *RegisterInstancesWithLoadBalancerInput) SetInstances(v []*Instance) *RegisterInstancesWithLoadBalancerInput

SetInstances sets the Instances field's value.

func (*RegisterInstancesWithLoadBalancerInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (RegisterInstancesWithLoadBalancerInput) String

func (s RegisterInstancesWithLoadBalancerInput) String() string

String returns the string representation

func (*RegisterInstancesWithLoadBalancerInput) Validate

func (s *RegisterInstancesWithLoadBalancerInput) Validate() error

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

type RegisterInstancesWithLoadBalancerOutput

Contains the output of RegisterInstancesWithLoadBalancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RegisterEndPointsOutput

type RegisterInstancesWithLoadBalancerOutput struct {

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

func (RegisterInstancesWithLoadBalancerOutput) GoString

func (s RegisterInstancesWithLoadBalancerOutput) GoString() string

GoString returns the string representation

func (*RegisterInstancesWithLoadBalancerOutput) SetInstances

func (s *RegisterInstancesWithLoadBalancerOutput) SetInstances(v []*Instance) *RegisterInstancesWithLoadBalancerOutput

SetInstances sets the Instances field's value.

func (RegisterInstancesWithLoadBalancerOutput) String

func (s RegisterInstancesWithLoadBalancerOutput) String() string

String returns the string representation

type RemoveTagsInput

Contains the parameters for RemoveTags. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveTagsInput

type RemoveTagsInput struct {

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

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

func (RemoveTagsInput) GoString

func (s RemoveTagsInput) GoString() string

GoString returns the string representation

func (*RemoveTagsInput) SetLoadBalancerNames

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

SetLoadBalancerNames sets the LoadBalancerNames field's value.

func (*RemoveTagsInput) SetTags

func (s *RemoveTagsInput) SetTags(v []*TagKeyOnly) *RemoveTagsInput

SetTags sets the Tags field's value.

func (RemoveTagsInput) String

func (s RemoveTagsInput) String() string

String returns the string representation

func (*RemoveTagsInput) Validate

func (s *RemoveTagsInput) Validate() error

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

type RemoveTagsOutput

Contains the output of RemoveTags. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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

Contains the parameters for SetLoadBalancerListenerSSLCertificate. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerListenerSSLCertificateInput

type SetLoadBalancerListenerSSLCertificateInput struct {

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

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

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

func (SetLoadBalancerListenerSSLCertificateInput) GoString

func (s SetLoadBalancerListenerSSLCertificateInput) GoString() string

GoString returns the string representation

func (*SetLoadBalancerListenerSSLCertificateInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*SetLoadBalancerListenerSSLCertificateInput) SetLoadBalancerPort

func (s *SetLoadBalancerListenerSSLCertificateInput) SetLoadBalancerPort(v int64) *SetLoadBalancerListenerSSLCertificateInput

SetLoadBalancerPort sets the LoadBalancerPort field's value.

func (*SetLoadBalancerListenerSSLCertificateInput) SetSSLCertificateId

func (s *SetLoadBalancerListenerSSLCertificateInput) SetSSLCertificateId(v string) *SetLoadBalancerListenerSSLCertificateInput

SetSSLCertificateId sets the SSLCertificateId field's value.

func (SetLoadBalancerListenerSSLCertificateInput) String

func (s SetLoadBalancerListenerSSLCertificateInput) String() string

String returns the string representation

func (*SetLoadBalancerListenerSSLCertificateInput) Validate

func (s *SetLoadBalancerListenerSSLCertificateInput) Validate() error

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

type SetLoadBalancerListenerSSLCertificateOutput

Contains the output of SetLoadBalancerListenerSSLCertificate. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerListenerSSLCertificateOutput

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

func (SetLoadBalancerListenerSSLCertificateOutput) GoString

func (s SetLoadBalancerListenerSSLCertificateOutput) GoString() string

GoString returns the string representation

func (SetLoadBalancerListenerSSLCertificateOutput) String

func (s SetLoadBalancerListenerSSLCertificateOutput) String() string

String returns the string representation

type SetLoadBalancerPoliciesForBackendServerInput

Contains the parameters for SetLoadBalancerPoliciesForBackendServer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesForBackendServerInput

type SetLoadBalancerPoliciesForBackendServerInput struct {

    // The port number associated with the EC2 instance.
    //
    // InstancePort is a required field
    InstancePort *int64 `type:"integer" required:"true"`

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

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

func (SetLoadBalancerPoliciesForBackendServerInput) GoString

func (s SetLoadBalancerPoliciesForBackendServerInput) GoString() string

GoString returns the string representation

func (*SetLoadBalancerPoliciesForBackendServerInput) SetInstancePort

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

SetInstancePort sets the InstancePort field's value.

func (*SetLoadBalancerPoliciesForBackendServerInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*SetLoadBalancerPoliciesForBackendServerInput) SetPolicyNames

func (s *SetLoadBalancerPoliciesForBackendServerInput) SetPolicyNames(v []*string) *SetLoadBalancerPoliciesForBackendServerInput

SetPolicyNames sets the PolicyNames field's value.

func (SetLoadBalancerPoliciesForBackendServerInput) String

func (s SetLoadBalancerPoliciesForBackendServerInput) String() string

String returns the string representation

func (*SetLoadBalancerPoliciesForBackendServerInput) Validate

func (s *SetLoadBalancerPoliciesForBackendServerInput) Validate() error

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

type SetLoadBalancerPoliciesForBackendServerOutput

Contains the output of SetLoadBalancerPoliciesForBackendServer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesForBackendServerOutput

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

func (SetLoadBalancerPoliciesForBackendServerOutput) GoString

func (s SetLoadBalancerPoliciesForBackendServerOutput) GoString() string

GoString returns the string representation

func (SetLoadBalancerPoliciesForBackendServerOutput) String

func (s SetLoadBalancerPoliciesForBackendServerOutput) String() string

String returns the string representation

type SetLoadBalancerPoliciesOfListenerInput

Contains the parameters for SetLoadBalancePoliciesOfListener. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesOfListenerInput

type SetLoadBalancerPoliciesOfListenerInput struct {

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

    // The external port of the load balancer.
    //
    // LoadBalancerPort is a required field
    LoadBalancerPort *int64 `type:"integer" required:"true"`

    // The names of the policies. This list must include all policies to be enabled.
    // If you omit a policy that is currently enabled, it is disabled. If the list
    // is empty, all current policies are disabled.
    //
    // PolicyNames is a required field
    PolicyNames []*string `type:"list" required:"true"`
    // contains filtered or unexported fields
}

func (SetLoadBalancerPoliciesOfListenerInput) GoString

func (s SetLoadBalancerPoliciesOfListenerInput) GoString() string

GoString returns the string representation

func (*SetLoadBalancerPoliciesOfListenerInput) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*SetLoadBalancerPoliciesOfListenerInput) SetLoadBalancerPort

func (s *SetLoadBalancerPoliciesOfListenerInput) SetLoadBalancerPort(v int64) *SetLoadBalancerPoliciesOfListenerInput

SetLoadBalancerPort sets the LoadBalancerPort field's value.

func (*SetLoadBalancerPoliciesOfListenerInput) SetPolicyNames

func (s *SetLoadBalancerPoliciesOfListenerInput) SetPolicyNames(v []*string) *SetLoadBalancerPoliciesOfListenerInput

SetPolicyNames sets the PolicyNames field's value.

func (SetLoadBalancerPoliciesOfListenerInput) String

func (s SetLoadBalancerPoliciesOfListenerInput) String() string

String returns the string representation

func (*SetLoadBalancerPoliciesOfListenerInput) Validate

func (s *SetLoadBalancerPoliciesOfListenerInput) Validate() error

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

type SetLoadBalancerPoliciesOfListenerOutput

Contains the output of SetLoadBalancePoliciesOfListener. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesOfListenerOutput

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

func (SetLoadBalancerPoliciesOfListenerOutput) GoString

func (s SetLoadBalancerPoliciesOfListenerOutput) GoString() string

GoString returns the string representation

func (SetLoadBalancerPoliciesOfListenerOutput) String

func (s SetLoadBalancerPoliciesOfListenerOutput) String() string

String returns the string representation

type SourceSecurityGroup

Information about a source security group. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/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
}

func (SourceSecurityGroup) GoString

func (s SourceSecurityGroup) GoString() string

GoString returns the string representation

func (*SourceSecurityGroup) SetGroupName

func (s *SourceSecurityGroup) SetGroupName(v string) *SourceSecurityGroup

SetGroupName sets the GroupName field's value.

func (*SourceSecurityGroup) SetOwnerAlias

func (s *SourceSecurityGroup) SetOwnerAlias(v string) *SourceSecurityGroup

SetOwnerAlias sets the OwnerAlias field's value.

func (SourceSecurityGroup) String

func (s SourceSecurityGroup) String() string

String returns the string representation

type Tag

Information about a tag. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/Tag

type Tag struct {

    // The key of the tag.
    //
    // Key is a required field
    Key *string `min:"1" type:"string" required:"true"`

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

func (Tag) GoString

func (s Tag) GoString() string

GoString returns the string representation

func (*Tag) SetKey

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

SetKey sets the Key field's value.

func (*Tag) SetValue

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

SetValue sets the Value field's value.

func (Tag) String

func (s Tag) String() string

String returns the string representation

func (*Tag) Validate

func (s *Tag) Validate() error

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

type TagDescription

The tags associated with a load balancer. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/TagDescription

type TagDescription struct {

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

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

func (TagDescription) GoString

func (s TagDescription) GoString() string

GoString returns the string representation

func (*TagDescription) SetLoadBalancerName

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*TagDescription) SetTags

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

SetTags sets the Tags field's value.

func (TagDescription) String

func (s TagDescription) String() string

String returns the string representation

type TagKeyOnly

The key of a tag. Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/TagKeyOnly

type TagKeyOnly struct {

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

func (TagKeyOnly) GoString

func (s TagKeyOnly) GoString() string

GoString returns the string representation

func (*TagKeyOnly) SetKey

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

SetKey sets the Key field's value.

func (TagKeyOnly) String

func (s TagKeyOnly) String() string

String returns the string representation

func (*TagKeyOnly) Validate

func (s *TagKeyOnly) Validate() error

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

Subdirectories

Name Synopsis
..
elbiface Package elbiface provides an interface to enable mocking the Elastic Load Balancing service client for testing your code.