elasticloadbalancingv2

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 244

Documentation

Overview

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

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

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

An Application Load Balancer makes routing and load balancing decisions at the application layer (HTTP/HTTPS). A Network Load Balancer makes routing and load balancing decisions at the transport layer (TCP/TLS). Both Application Load Balancers and Network Load Balancers can route requests to one or more ports on each EC2 instance or container instance in your virtual private cloud (VPC). For more information, see the Elastic Load Balancing User Guide (https://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/).

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

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

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

Using the Client

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

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

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

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

Index

Examples

Constants

View Source
const (
	ServiceName = "Elastic Load Balancing v2" // Service's name
	ServiceID   = "ElasticLoadBalancingV2"    // Service's identifier
	EndpointsID = "elasticloadbalancing"      // Service's Endpoint identifier
)
View Source
const (

	// ErrCodeALPNPolicyNotSupportedException for service response error code
	// "ALPNPolicyNotFound".
	//
	// The specified ALPN policy is not supported.
	ErrCodeALPNPolicyNotSupportedException = "ALPNPolicyNotFound"

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

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

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

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

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

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

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

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

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

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

	// ErrCodeInvalidLoadBalancerActionException for service response error code
	// "InvalidLoadBalancerAction".
	//
	// The requested action is not valid.
	ErrCodeInvalidLoadBalancerActionException = "InvalidLoadBalancerAction"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	// ErrCodeTooManyActionsException for service response error code
	// "TooManyActions".
	//
	// You've reached the limit on the number of actions per rule.
	ErrCodeTooManyActionsException = "TooManyActions"

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

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

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

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

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

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

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

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

	// ErrCodeTooManyUniqueTargetGroupsPerLoadBalancerException for service response error code
	// "TooManyUniqueTargetGroupsPerLoadBalancer".
	//
	// You've reached the limit on the number of unique target groups per load balancer
	// across all listeners. If a target group is used by multiple actions for a
	// load balancer, it is counted as only one use.
	ErrCodeTooManyUniqueTargetGroupsPerLoadBalancerException = "TooManyUniqueTargetGroupsPerLoadBalancer"

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {

	// [HTTPS listeners] Information for using Amazon Cognito to authenticate users.
	// Specify only when Type is authenticate-cognito.
	AuthenticateCognitoConfig *AuthenticateCognitoActionConfig `type:"structure"`

	// [HTTPS listeners] Information about an identity provider that is compliant
	// with OpenID Connect (OIDC). Specify only when Type is authenticate-oidc.
	AuthenticateOidcConfig *AuthenticateOidcActionConfig `type:"structure"`

	// [Application Load Balancer] Information for creating an action that returns
	// a custom HTTP response. Specify only when Type is fixed-response.
	FixedResponseConfig *FixedResponseActionConfig `type:"structure"`

	// Information for creating an action that distributes requests among one or
	// more target groups. For Network Load Balancers, you can specify a single
	// target group. Specify only when Type is forward. If you specify both ForwardConfig
	// and TargetGroupArn, you can specify only one target group using ForwardConfig
	// and it must be the same target group specified in TargetGroupArn.
	ForwardConfig *ForwardActionConfig `type:"structure"`

	// The order for the action. This value is required for rules with multiple
	// actions. The action with the lowest value for order is performed first. The
	// last action to be performed must be one of the following types of actions:
	// a forward, fixed-response, or redirect.
	Order *int64 `min:"1" type:"integer"`

	// [Application Load Balancer] Information for creating a redirect action. Specify
	// only when Type is redirect.
	RedirectConfig *RedirectActionConfig `type:"structure"`

	// The Amazon Resource Name (ARN) of the target group. Specify only when Type
	// is forward and you want to route to a single target group. To route to one
	// or more target groups, use ForwardConfig instead.
	TargetGroupArn *string `type:"string"`

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

Information about an action.

func (Action) String

func (s Action) String() string

String returns the string representation

func (*Action) Validate

func (s *Action) Validate() error

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

type ActionTypeEnum

type ActionTypeEnum string
const (
	ActionTypeEnumForward             ActionTypeEnum = "forward"
	ActionTypeEnumAuthenticateOidc    ActionTypeEnum = "authenticate-oidc"
	ActionTypeEnumAuthenticateCognito ActionTypeEnum = "authenticate-cognito"
	ActionTypeEnumRedirect            ActionTypeEnum = "redirect"
	ActionTypeEnumFixedResponse       ActionTypeEnum = "fixed-response"
)

Enum values for ActionTypeEnum

func (ActionTypeEnum) MarshalValue

func (enum ActionTypeEnum) MarshalValue() (string, error)

func (ActionTypeEnum) MarshalValueBuf

func (enum ActionTypeEnum) MarshalValueBuf(b []byte) ([]byte, error)

type AddListenerCertificatesInput

type AddListenerCertificatesInput struct {

	// The certificate to add. You can specify one certificate per call. Set CertificateArn
	// to the certificate ARN but do not set IsDefault.
	//
	// Certificates is a required field
	Certificates []Certificate `type:"list" required:"true"`

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

func (AddListenerCertificatesInput) String

String returns the string representation

func (*AddListenerCertificatesInput) Validate

func (s *AddListenerCertificatesInput) Validate() error

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

type AddListenerCertificatesOutput

type AddListenerCertificatesOutput struct {

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

func (AddListenerCertificatesOutput) String

String returns the string representation

type AddListenerCertificatesRequest

type AddListenerCertificatesRequest struct {
	*aws.Request
	Input *AddListenerCertificatesInput
	Copy  func(*AddListenerCertificatesInput) AddListenerCertificatesRequest
}

AddListenerCertificatesRequest is the request type for the AddListenerCertificates API operation.

func (AddListenerCertificatesRequest) Send

Send marshals and sends the AddListenerCertificates API request.

type AddListenerCertificatesResponse

type AddListenerCertificatesResponse struct {
	*AddListenerCertificatesOutput
	// contains filtered or unexported fields
}

AddListenerCertificatesResponse is the response type for the AddListenerCertificates API operation.

func (*AddListenerCertificatesResponse) SDKResponseMetdata

func (r *AddListenerCertificatesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AddListenerCertificates request.

type AddTagsInput

type AddTagsInput struct {

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

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

func (AddTagsInput) String

func (s AddTagsInput) String() string

String returns the string representation

func (*AddTagsInput) Validate

func (s *AddTagsInput) Validate() error

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

type AddTagsOutput

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

func (AddTagsOutput) String

func (s AddTagsOutput) String() string

String returns the string representation

type AddTagsRequest

type AddTagsRequest struct {
	*aws.Request
	Input *AddTagsInput
	Copy  func(*AddTagsInput) AddTagsRequest
}

AddTagsRequest is the request type for the AddTags API operation.

func (AddTagsRequest) Send

Send marshals and sends the AddTags API request.

type AddTagsResponse

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

AddTagsResponse is the response type for the AddTags API operation.

func (*AddTagsResponse) SDKResponseMetdata

func (r *AddTagsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AddTags request.

type AuthenticateCognitoActionConditionalBehaviorEnum

type AuthenticateCognitoActionConditionalBehaviorEnum string
const (
	AuthenticateCognitoActionConditionalBehaviorEnumDeny         AuthenticateCognitoActionConditionalBehaviorEnum = "deny"
	AuthenticateCognitoActionConditionalBehaviorEnumAllow        AuthenticateCognitoActionConditionalBehaviorEnum = "allow"
	AuthenticateCognitoActionConditionalBehaviorEnumAuthenticate AuthenticateCognitoActionConditionalBehaviorEnum = "authenticate"
)

Enum values for AuthenticateCognitoActionConditionalBehaviorEnum

func (AuthenticateCognitoActionConditionalBehaviorEnum) MarshalValue

func (AuthenticateCognitoActionConditionalBehaviorEnum) MarshalValueBuf

func (enum AuthenticateCognitoActionConditionalBehaviorEnum) MarshalValueBuf(b []byte) ([]byte, error)

type AuthenticateCognitoActionConfig

type AuthenticateCognitoActionConfig struct {

	// The query parameters (up to 10) to include in the redirect request to the
	// authorization endpoint.
	AuthenticationRequestExtraParams map[string]string `type:"map"`

	// The behavior if the user is not authenticated. The following are possible
	// values:
	//
	//    * deny - Return an HTTP 401 Unauthorized error.
	//
	//    * allow - Allow the request to be forwarded to the target.
	//
	//    * authenticate - Redirect the request to the IdP authorization endpoint.
	//    This is the default value.
	OnUnauthenticatedRequest AuthenticateCognitoActionConditionalBehaviorEnum `type:"string" enum:"true"`

	// The set of user claims to be requested from the IdP. The default is openid.
	//
	// To verify which scope values your IdP supports and how to separate multiple
	// values, see the documentation for your IdP.
	Scope *string `type:"string"`

	// The name of the cookie used to maintain session information. The default
	// is AWSELBAuthSessionCookie.
	SessionCookieName *string `type:"string"`

	// The maximum duration of the authentication session, in seconds. The default
	// is 604800 seconds (7 days).
	SessionTimeout *int64 `type:"long"`

	// The Amazon Resource Name (ARN) of the Amazon Cognito user pool.
	//
	// UserPoolArn is a required field
	UserPoolArn *string `type:"string" required:"true"`

	// The ID of the Amazon Cognito user pool client.
	//
	// UserPoolClientId is a required field
	UserPoolClientId *string `type:"string" required:"true"`

	// The domain prefix or fully-qualified domain name of the Amazon Cognito user
	// pool.
	//
	// UserPoolDomain is a required field
	UserPoolDomain *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Request parameters to use when integrating with Amazon Cognito to authenticate users.

func (AuthenticateCognitoActionConfig) String

String returns the string representation

func (*AuthenticateCognitoActionConfig) Validate

func (s *AuthenticateCognitoActionConfig) Validate() error

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

type AuthenticateOidcActionConditionalBehaviorEnum

type AuthenticateOidcActionConditionalBehaviorEnum string
const (
	AuthenticateOidcActionConditionalBehaviorEnumDeny         AuthenticateOidcActionConditionalBehaviorEnum = "deny"
	AuthenticateOidcActionConditionalBehaviorEnumAllow        AuthenticateOidcActionConditionalBehaviorEnum = "allow"
	AuthenticateOidcActionConditionalBehaviorEnumAuthenticate AuthenticateOidcActionConditionalBehaviorEnum = "authenticate"
)

Enum values for AuthenticateOidcActionConditionalBehaviorEnum

func (AuthenticateOidcActionConditionalBehaviorEnum) MarshalValue

func (AuthenticateOidcActionConditionalBehaviorEnum) MarshalValueBuf

func (enum AuthenticateOidcActionConditionalBehaviorEnum) MarshalValueBuf(b []byte) ([]byte, error)

type AuthenticateOidcActionConfig

type AuthenticateOidcActionConfig struct {

	// The query parameters (up to 10) to include in the redirect request to the
	// authorization endpoint.
	AuthenticationRequestExtraParams map[string]string `type:"map"`

	// The authorization endpoint of the IdP. This must be a full URL, including
	// the HTTPS protocol, the domain, and the path.
	//
	// AuthorizationEndpoint is a required field
	AuthorizationEndpoint *string `type:"string" required:"true"`

	// The OAuth 2.0 client identifier.
	//
	// ClientId is a required field
	ClientId *string `type:"string" required:"true"`

	// The OAuth 2.0 client secret. This parameter is required if you are creating
	// a rule. If you are modifying a rule, you can omit this parameter if you set
	// UseExistingClientSecret to true.
	ClientSecret *string `type:"string"`

	// The OIDC issuer identifier of the IdP. This must be a full URL, including
	// the HTTPS protocol, the domain, and the path.
	//
	// Issuer is a required field
	Issuer *string `type:"string" required:"true"`

	// The behavior if the user is not authenticated. The following are possible
	// values:
	//
	//    * deny - Return an HTTP 401 Unauthorized error.
	//
	//    * allow - Allow the request to be forwarded to the target.
	//
	//    * authenticate - Redirect the request to the IdP authorization endpoint.
	//    This is the default value.
	OnUnauthenticatedRequest AuthenticateOidcActionConditionalBehaviorEnum `type:"string" enum:"true"`

	// The set of user claims to be requested from the IdP. The default is openid.
	//
	// To verify which scope values your IdP supports and how to separate multiple
	// values, see the documentation for your IdP.
	Scope *string `type:"string"`

	// The name of the cookie used to maintain session information. The default
	// is AWSELBAuthSessionCookie.
	SessionCookieName *string `type:"string"`

	// The maximum duration of the authentication session, in seconds. The default
	// is 604800 seconds (7 days).
	SessionTimeout *int64 `type:"long"`

	// The token endpoint of the IdP. This must be a full URL, including the HTTPS
	// protocol, the domain, and the path.
	//
	// TokenEndpoint is a required field
	TokenEndpoint *string `type:"string" required:"true"`

	// Indicates whether to use the existing client secret when modifying a rule.
	// If you are creating a rule, you can omit this parameter or set it to false.
	UseExistingClientSecret *bool `type:"boolean"`

	// The user info endpoint of the IdP. This must be a full URL, including the
	// HTTPS protocol, the domain, and the path.
	//
	// UserInfoEndpoint is a required field
	UserInfoEndpoint *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Request parameters when using an identity provider (IdP) that is compliant with OpenID Connect (OIDC) to authenticate users.

func (AuthenticateOidcActionConfig) String

String returns the string representation

func (*AuthenticateOidcActionConfig) Validate

func (s *AuthenticateOidcActionConfig) Validate() error

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

type AvailabilityZone

type AvailabilityZone struct {

	// [Network Load Balancers] If you need static IP addresses for your load balancer,
	// you can specify one Elastic IP address per Availability Zone when you create
	// an internal-facing load balancer. For internal load balancers, you can specify
	// a private IP address from the IPv4 range of the subnet.
	LoadBalancerAddresses []LoadBalancerAddress `type:"list"`

	// The ID of the subnet. You can specify one subnet per Availability Zone.
	SubnetId *string `type:"string"`

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

Information about an Availability Zone.

func (AvailabilityZone) String

func (s AvailabilityZone) String() string

String returns the string representation

type Certificate

type Certificate struct {

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

	// Indicates whether the certificate is the default certificate. Do not set
	// this value when specifying a certificate as an input. This value is not included
	// in the output when describing a listener, but is included when describing
	// listener certificates.
	IsDefault *bool `type:"boolean"`
	// contains filtered or unexported fields
}

Information about an SSL server certificate.

func (Certificate) String

func (s Certificate) String() string

String returns the string representation

type Cipher

type Cipher struct {

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

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

Information about a cipher used in a policy.

func (Cipher) String

func (s Cipher) String() string

String returns the string representation

type Client

type Client struct {
	*aws.Client
}

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

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

func New

func New(config aws.Config) *Client

New creates a new instance of the client from the provided Config.

Example:

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

func (*Client) AddListenerCertificatesRequest

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

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

Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener.

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

To get the certificate list for a listener, use DescribeListenerCertificates. To remove certificates from the certificate list for a listener, use RemoveListenerCertificates. To replace the default certificate for a listener, use ModifyListener.

For more information, see SSL Certificates (https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html#https-listener-certificates) in the Application Load Balancers Guide.

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

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

func (*Client) AddTagsRequest

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

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

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

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

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

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

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

Example (Shared00)

To add tags to a load balancer

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) CreateListenerRequest

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

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

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

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

This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple listeners with the same settings, each call succeeds.

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

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

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

Example (Shared00)

To create an HTTP listener

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

Example (Shared01)

To create an HTTPS listener

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) CreateLoadBalancerRequest

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

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

Creates an Application Load Balancer or a Network Load Balancer.

When you create a load balancer, you can specify security groups, public subnets, IP address type, and tags. Otherwise, you could do so later using SetSecurityGroups, SetSubnets, SetIpAddressType, and AddTags.

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

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

This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple load balancers with the same settings, each call succeeds.

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

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

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

Example (Shared00)

To create an Internet-facing load balancer

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

Example (Shared01)

To create an internal load balancer

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) CreateRuleRequest

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

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

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

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

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

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

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

Example (Shared00)

To create a rule

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) CreateTargetGroupRequest

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

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

Creates a target group.

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

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

To delete a target group, use DeleteTargetGroup.

This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple target groups with the same settings, each call succeeds.

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

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

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

Example (Shared00)

To create a target group

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) DeleteListenerRequest

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

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

Deletes the specified listener.

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

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

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

Example (Shared00)

To delete a listener

This example deletes the specified listener.

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) DeleteLoadBalancerRequest

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

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

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

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

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

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

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

Example (Shared00)

To delete a load balancer

This example deletes the specified load balancer.

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) DeleteRuleRequest

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

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

Deletes the specified rule.

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

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

Example (Shared00)

To delete a rule

This example deletes the specified rule.

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) DeleteTargetGroupRequest

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

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

Deletes the specified target group.

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

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

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

Example (Shared00)

To delete a target group

This example deletes the specified target group.

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) DeregisterTargetsRequest

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

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

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

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

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

Example (Shared00)

To deregister a target from a target group

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) DescribeAccountLimitsRequest

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

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

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

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

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

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

func (*Client) DescribeListenerCertificatesRequest

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

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

Describes the default certificate and the certificate list for the specified HTTPS or TLS listener.

If the default certificate is also in the certificate list, it appears twice in the results (once with IsDefault set to true and once with IsDefault set to false).

For more information, see SSL Certificates (https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html#https-listener-certificates) in the Application Load Balancers Guide.

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

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

func (*Client) DescribeListenersRequest

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

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

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

For an HTTPS or TLS listener, the output includes the default certificate for the listener. To describe the certificate list for the listener, use DescribeListenerCertificates.

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

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

Example (Shared00)

To describe a listener

This example describes the specified listener.

package main

import (
	"context"
	"fmt"

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

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

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

	req := svc.DescribeListenersRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elasticloadbalancingv2.ErrCodeListenerNotFoundException:
				fmt.Println(elasticloadbalancingv2.ErrCodeListenerNotFoundException, aerr.Error())
			case elasticloadbalancingv2.ErrCodeLoadBalancerNotFoundException:
				fmt.Println(elasticloadbalancingv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
			case elasticloadbalancingv2.ErrCodeUnsupportedProtocolException:
				fmt.Println(elasticloadbalancingv2.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)
}
Output:

func (*Client) DescribeLoadBalancerAttributesRequest

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

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

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

For more information, see Load Balancer Attributes (https://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html#load-balancer-attributes) in the Application Load Balancers Guide or Load Balancer Attributes (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html#load-balancer-attributes) in the Network Load Balancers Guide.

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

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

Example (Shared00)

To describe load balancer attributes

This example describes the attributes of the specified load balancer.

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) DescribeLoadBalancersRequest

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

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

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

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

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

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

Example (Shared00)

To describe a load balancer

This example describes the specified load balancer.

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) DescribeRulesRequest

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

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

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

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

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

Example (Shared00)

To describe a rule

This example describes the specified rule.

package main

import (
	"context"
	"fmt"

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

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

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

	req := svc.DescribeRulesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case elasticloadbalancingv2.ErrCodeListenerNotFoundException:
				fmt.Println(elasticloadbalancingv2.ErrCodeListenerNotFoundException, aerr.Error())
			case elasticloadbalancingv2.ErrCodeRuleNotFoundException:
				fmt.Println(elasticloadbalancingv2.ErrCodeRuleNotFoundException, aerr.Error())
			case elasticloadbalancingv2.ErrCodeUnsupportedProtocolException:
				fmt.Println(elasticloadbalancingv2.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)
}
Output:

func (*Client) DescribeSSLPoliciesRequest

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

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

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

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

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

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

Example (Shared00)

To describe a policy used for SSL negotiation

This example describes the specified policy used for SSL negotiation.

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) DescribeTagsRequest

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

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

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

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

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

Example (Shared00)

To describe the tags assigned to a load balancer

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) DescribeTargetGroupAttributesRequest

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

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

Describes the attributes for the specified target group.

For more information, see Target Group Attributes (https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#target-group-attributes) in the Application Load Balancers Guide or Target Group Attributes (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html#target-group-attributes) in the Network Load Balancers Guide.

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

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

Example (Shared00)

To describe target group attributes

This example describes the attributes of the specified target group.

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) DescribeTargetGroupsRequest

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

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

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

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

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

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

Example (Shared00)

To describe a target group

This example describes the specified target group.

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) DescribeTargetHealthRequest

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

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

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

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

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

Example (Shared00)

To describe the health of the targets for a target group

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

Example (Shared01)

To describe the health of a target

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) ModifyListenerRequest

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

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

Replaces the specified properties of the specified listener. Any properties that you do not specify remain unchanged.

Changing the protocol from HTTPS to HTTP, or from TLS to TCP, removes the security policy and default certificate properties. If you change the protocol from HTTP to HTTPS, or from TCP to TLS, you must add the security policy and default certificate properties.

To add an item to a list, remove an item from a list, or update an item in a list, you must provide the entire list. For example, to add an action, specify a list with the current actions plus the new action.

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

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

Example (Shared00)

To change the default action for a listener

This example changes the default action for the specified listener.

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

Example (Shared01)

To change the server certificate

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) ModifyLoadBalancerAttributesRequest

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

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

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

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

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

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

Example (Shared00)

To enable deletion protection

This example enables deletion protection for the specified load balancer.

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

Example (Shared01)

To change the idle timeout

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

Example (Shared02)

To enable access logs

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) ModifyRuleRequest

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

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

Replaces the specified properties of the specified rule. Any properties that you do not specify are unchanged.

To add an item to a list, remove an item from a list, or update an item in a list, you must provide the entire list. For example, to add an action, specify a list with the current actions plus the new action.

To modify the actions for the default rule, use ModifyListener.

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

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

Example (Shared00)

To modify a rule

This example modifies the condition for the specified rule.

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) ModifyTargetGroupAttributesRequest

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

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

Modifies the specified attributes of the specified target group.

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

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

Example (Shared00)

To modify the deregistration delay timeout

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) ModifyTargetGroupRequest

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

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

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

To monitor the health of the targets, use DescribeTargetHealth.

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

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

Example (Shared00)

To modify the health check configuration for a target group

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) RegisterTargetsRequest

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

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

Registers the specified targets with the specified target group.

If the target is an EC2 instance, it must be in the running state when you register it.

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

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

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

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

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

Example (Shared00)

To register targets with a target group

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

Example (Shared01)

To register targets with a target group using port overrides

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) RemoveListenerCertificatesRequest

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

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

Removes the specified certificate from the certificate list for the specified HTTPS or TLS listener.

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

To list the certificates for your listener, use DescribeListenerCertificates.

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

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

func (*Client) RemoveTagsRequest

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

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

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

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

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

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

Example (Shared00)

To remove tags from a load balancer

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) SetIpAddressTypeRequest

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

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

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

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

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

func (*Client) SetRulePrioritiesRequest

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

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

Sets the priorities of the specified rules.

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

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

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

Example (Shared00)

To set the rule priority

This example sets the priority of the specified rule.

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) SetSecurityGroupsRequest

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

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

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

You can't specify a security group for a Network Load Balancer.

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

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

Example (Shared00)

To associate a security group with a load balancer

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) SetSubnetsRequest

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

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

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

When you specify subnets for a Network Load Balancer, you must include all subnets that were enabled previously, with their existing configurations, plus any additional subnets.

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

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

Example (Shared00)

To enable Availability Zones for a load balancer

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

package main

import (
	"context"
	"fmt"

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

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

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

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

	fmt.Println(result)
}
Output:

func (*Client) WaitUntilLoadBalancerAvailable

func (c *Client) WaitUntilLoadBalancerAvailable(ctx context.Context, input *DescribeLoadBalancersInput, opts ...aws.WaiterOption) error

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

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 (*Client) WaitUntilLoadBalancerExists

func (c *Client) WaitUntilLoadBalancerExists(ctx context.Context, input *DescribeLoadBalancersInput, opts ...aws.WaiterOption) error

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

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 (*Client) WaitUntilLoadBalancersDeleted

func (c *Client) WaitUntilLoadBalancersDeleted(ctx context.Context, input *DescribeLoadBalancersInput, opts ...aws.WaiterOption) error

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

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 (*Client) WaitUntilTargetDeregistered

func (c *Client) WaitUntilTargetDeregistered(ctx context.Context, input *DescribeTargetHealthInput, opts ...aws.WaiterOption) error

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

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 (*Client) WaitUntilTargetInService

func (c *Client) WaitUntilTargetInService(ctx context.Context, input *DescribeTargetHealthInput, opts ...aws.WaiterOption) error

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

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 CreateListenerInput

type CreateListenerInput struct {

	// [TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN)
	// policy. You can specify one policy name. The following are the possible values:
	//
	//    * HTTP1Only
	//
	//    * HTTP2Only
	//
	//    * HTTP2Optional
	//
	//    * HTTP2Preferred
	//
	//    * None
	//
	// For more information, see ALPN Policies (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html#alpn-policies)
	// in the Network Load Balancers Guide.
	AlpnPolicy []string `type:"list"`

	// [HTTPS and TLS listeners] The default certificate for the listener. You must
	// provide exactly one certificate. Set CertificateArn to the certificate ARN
	// but do not set IsDefault.
	//
	// To create a certificate list for the listener, use AddListenerCertificates.
	Certificates []Certificate `type:"list"`

	// The actions for the default rule. The rule must include one forward action
	// or one or more fixed-response actions.
	//
	// If the action type is forward, you specify one or more target groups. The
	// protocol of the target group must be HTTP or HTTPS for an Application Load
	// Balancer. The protocol of the target group must be TCP, TLS, UDP, or TCP_UDP
	// for a Network Load Balancer.
	//
	// [HTTPS listeners] If the action type is authenticate-oidc, you authenticate
	// users through an identity provider that is OpenID Connect (OIDC) compliant.
	//
	// [HTTPS listeners] If the action type is authenticate-cognito, you authenticate
	// users through the user pools supported by Amazon Cognito.
	//
	// [Application Load Balancer] If the action type is redirect, you redirect
	// specified client requests from one URL to another.
	//
	// [Application Load Balancer] If the action type is fixed-response, you drop
	// specified client requests and return a custom HTTP response.
	//
	// DefaultActions is a required field
	DefaultActions []Action `type:"list" required:"true"`

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

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

	// The protocol for connections from clients to the load balancer. For Application
	// Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load
	// Balancers, the supported protocols are TCP, TLS, UDP, and TCP_UDP.
	//
	// Protocol is a required field
	Protocol ProtocolEnum `type:"string" required:"true" enum:"true"`

	// [HTTPS and TLS listeners] The security policy that defines which protocols
	// and ciphers are supported. The following are the possible values:
	//
	//    * ELBSecurityPolicy-2016-08
	//
	//    * ELBSecurityPolicy-TLS-1-0-2015-04
	//
	//    * ELBSecurityPolicy-TLS-1-1-2017-01
	//
	//    * ELBSecurityPolicy-TLS-1-2-2017-01
	//
	//    * ELBSecurityPolicy-TLS-1-2-Ext-2018-06
	//
	//    * ELBSecurityPolicy-FS-2018-06
	//
	//    * ELBSecurityPolicy-FS-1-1-2019-08
	//
	//    * ELBSecurityPolicy-FS-1-2-2019-08
	//
	//    * ELBSecurityPolicy-FS-1-2-Res-2019-08
	//
	// For more information, see Security Policies (https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html#describe-ssl-policies)
	// in the Application Load Balancers Guide and Security Policies (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html#describe-ssl-policies)
	// in the Network Load Balancers Guide.
	SslPolicy *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateListenerInput) String

func (s CreateListenerInput) String() string

String returns the string representation

func (*CreateListenerInput) Validate

func (s *CreateListenerInput) Validate() error

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

type CreateListenerOutput

type CreateListenerOutput struct {

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

func (CreateListenerOutput) String

func (s CreateListenerOutput) String() string

String returns the string representation

type CreateListenerRequest

type CreateListenerRequest struct {
	*aws.Request
	Input *CreateListenerInput
	Copy  func(*CreateListenerInput) CreateListenerRequest
}

CreateListenerRequest is the request type for the CreateListener API operation.

func (CreateListenerRequest) Send

Send marshals and sends the CreateListener API request.

type CreateListenerResponse

type CreateListenerResponse struct {
	*CreateListenerOutput
	// contains filtered or unexported fields
}

CreateListenerResponse is the response type for the CreateListener API operation.

func (*CreateListenerResponse) SDKResponseMetdata

func (r *CreateListenerResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateListener request.

type CreateLoadBalancerInput

type CreateLoadBalancerInput struct {

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

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

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

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

	// The IDs of the public subnets. You can specify only one subnet per Availability
	// Zone. You must specify either subnets or subnet mappings.
	//
	// [Application Load Balancers] You must specify subnets from at least two Availability
	// Zones. You cannot specify Elastic IP addresses for your subnets.
	//
	// [Network Load Balancers] You can specify subnets from one or more Availability
	// Zones. You can specify one Elastic IP address per subnet if you need static
	// IP addresses for your internet-facing load balancer. For internal load balancers,
	// you can specify one private IP address per subnet from the IPv4 range of
	// the subnet.
	SubnetMappings []SubnetMapping `type:"list"`

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

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

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

func (CreateLoadBalancerInput) String

func (s CreateLoadBalancerInput) String() string

String returns the string representation

func (*CreateLoadBalancerInput) Validate

func (s *CreateLoadBalancerInput) Validate() error

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

type CreateLoadBalancerOutput

type CreateLoadBalancerOutput struct {

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

func (CreateLoadBalancerOutput) String

func (s CreateLoadBalancerOutput) String() string

String returns the string representation

type CreateLoadBalancerRequest

type CreateLoadBalancerRequest struct {
	*aws.Request
	Input *CreateLoadBalancerInput
	Copy  func(*CreateLoadBalancerInput) CreateLoadBalancerRequest
}

CreateLoadBalancerRequest is the request type for the CreateLoadBalancer API operation.

func (CreateLoadBalancerRequest) Send

Send marshals and sends the CreateLoadBalancer API request.

type CreateLoadBalancerResponse

type CreateLoadBalancerResponse struct {
	*CreateLoadBalancerOutput
	// contains filtered or unexported fields
}

CreateLoadBalancerResponse is the response type for the CreateLoadBalancer API operation.

func (*CreateLoadBalancerResponse) SDKResponseMetdata

func (r *CreateLoadBalancerResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateLoadBalancer request.

type CreateRuleInput

type CreateRuleInput struct {

	// The actions. Each rule must include exactly one of the following types of
	// actions: forward, fixed-response, or redirect, and it must be the last action
	// to be performed.
	//
	// If the action type is forward, you specify one or more target groups. The
	// protocol of the target group must be HTTP or HTTPS for an Application Load
	// Balancer. The protocol of the target group must be TCP, TLS, UDP, or TCP_UDP
	// for a Network Load Balancer.
	//
	// [HTTPS listeners] If the action type is authenticate-oidc, you authenticate
	// users through an identity provider that is OpenID Connect (OIDC) compliant.
	//
	// [HTTPS listeners] If the action type is authenticate-cognito, you authenticate
	// users through the user pools supported by Amazon Cognito.
	//
	// [Application Load Balancer] If the action type is redirect, you redirect
	// specified client requests from one URL to another.
	//
	// [Application Load Balancer] If the action type is fixed-response, you drop
	// specified client requests and return a custom HTTP response.
	//
	// Actions is a required field
	Actions []Action `type:"list" required:"true"`

	// The conditions. Each rule can include zero or one of the following conditions:
	// http-request-method, host-header, path-pattern, and source-ip, and zero or
	// more of the following conditions: http-header and query-string.
	//
	// Conditions is a required field
	Conditions []RuleCondition `type:"list" required:"true"`

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

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

func (CreateRuleInput) String

func (s CreateRuleInput) String() string

String returns the string representation

func (*CreateRuleInput) Validate

func (s *CreateRuleInput) Validate() error

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

type CreateRuleOutput

type CreateRuleOutput struct {

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

func (CreateRuleOutput) String

func (s CreateRuleOutput) String() string

String returns the string representation

type CreateRuleRequest

type CreateRuleRequest struct {
	*aws.Request
	Input *CreateRuleInput
	Copy  func(*CreateRuleInput) CreateRuleRequest
}

CreateRuleRequest is the request type for the CreateRule API operation.

func (CreateRuleRequest) Send

Send marshals and sends the CreateRule API request.

type CreateRuleResponse

type CreateRuleResponse struct {
	*CreateRuleOutput
	// contains filtered or unexported fields
}

CreateRuleResponse is the response type for the CreateRule API operation.

func (*CreateRuleResponse) SDKResponseMetdata

func (r *CreateRuleResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateRule request.

type CreateTargetGroupInput

type CreateTargetGroupInput struct {

	// Indicates whether health checks are enabled. If the target type is lambda,
	// health checks are disabled by default but can be enabled. If the target type
	// is instance or ip, health checks are always enabled and cannot be disabled.
	HealthCheckEnabled *bool `type:"boolean"`

	// The approximate amount of time, in seconds, between health checks of an individual
	// target. For HTTP and HTTPS health checks, the range is 5–300 seconds. For
	// TCP health checks, the supported values are 10 and 30 seconds. If the target
	// type is instance or ip, the default is 30 seconds. If the target type is
	// lambda, the default is 35 seconds.
	HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"`

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

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

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

	// The amount of time, in seconds, during which no response from a target means
	// a failed health check. For target groups with a protocol of HTTP or HTTPS,
	// the default is 5 seconds. For target groups with a protocol of TCP or TLS,
	// this value must be 6 seconds for HTTP health checks and 10 seconds for TCP
	// and HTTPS health checks. If the target type is lambda, the default is 30
	// seconds.
	HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"`

	// The number of consecutive health checks successes required before considering
	// an unhealthy target healthy. For target groups with a protocol of HTTP or
	// HTTPS, the default is 5. For target groups with a protocol of TCP or TLS,
	// the default is 3. If the target type is lambda, the default is 5.
	HealthyThresholdCount *int64 `min:"2" type:"integer"`

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

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

	// The port on which the targets receive traffic. This port is used unless you
	// specify a port override when registering the target. If the target is a Lambda
	// function, this parameter does not apply.
	Port *int64 `min:"1" type:"integer"`

	// The protocol to use for routing traffic to the targets. For Application Load
	// Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers,
	// the supported protocols are TCP, TLS, UDP, or TCP_UDP. A TCP_UDP listener
	// must be associated with a TCP_UDP target group. If the target is a Lambda
	// function, this parameter does not apply.
	Protocol ProtocolEnum `type:"string" enum:"true"`

	// The type of target that you must specify when registering targets with this
	// target group. You can't specify targets for a target group using more than
	// one target type.
	//
	//    * instance - Targets are specified by instance ID. This is the default
	//    value. If the target group protocol is UDP or TCP_UDP, the target type
	//    must be instance.
	//
	//    * ip - Targets are specified by IP address. You can specify IP addresses
	//    from the subnets of the virtual private cloud (VPC) for the target group,
	//    the RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16), and
	//    the RFC 6598 range (100.64.0.0/10). You can't specify publicly routable
	//    IP addresses.
	//
	//    * lambda - The target groups contains a single Lambda function.
	TargetType TargetTypeEnum `type:"string" enum:"true"`

	// The number of consecutive health check failures required before considering
	// a target unhealthy. For target groups with a protocol of HTTP or HTTPS, the
	// default is 2. For target groups with a protocol of TCP or TLS, this value
	// must be the same as the healthy threshold count. If the target type is lambda,
	// the default is 2.
	UnhealthyThresholdCount *int64 `min:"2" type:"integer"`

	// The identifier of the virtual private cloud (VPC). If the target is a Lambda
	// function, this parameter does not apply. Otherwise, this parameter is required.
	VpcId *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateTargetGroupInput) String

func (s CreateTargetGroupInput) String() string

String returns the string representation

func (*CreateTargetGroupInput) Validate

func (s *CreateTargetGroupInput) Validate() error

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

type CreateTargetGroupOutput

type CreateTargetGroupOutput struct {

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

func (CreateTargetGroupOutput) String

func (s CreateTargetGroupOutput) String() string

String returns the string representation

type CreateTargetGroupRequest

type CreateTargetGroupRequest struct {
	*aws.Request
	Input *CreateTargetGroupInput
	Copy  func(*CreateTargetGroupInput) CreateTargetGroupRequest
}

CreateTargetGroupRequest is the request type for the CreateTargetGroup API operation.

func (CreateTargetGroupRequest) Send

Send marshals and sends the CreateTargetGroup API request.

type CreateTargetGroupResponse

type CreateTargetGroupResponse struct {
	*CreateTargetGroupOutput
	// contains filtered or unexported fields
}

CreateTargetGroupResponse is the response type for the CreateTargetGroup API operation.

func (*CreateTargetGroupResponse) SDKResponseMetdata

func (r *CreateTargetGroupResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateTargetGroup request.

type DeleteListenerInput

type DeleteListenerInput struct {

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

func (DeleteListenerInput) String

func (s DeleteListenerInput) String() string

String returns the string representation

func (*DeleteListenerInput) Validate

func (s *DeleteListenerInput) Validate() error

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

type DeleteListenerOutput

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

func (DeleteListenerOutput) String

func (s DeleteListenerOutput) String() string

String returns the string representation

type DeleteListenerRequest

type DeleteListenerRequest struct {
	*aws.Request
	Input *DeleteListenerInput
	Copy  func(*DeleteListenerInput) DeleteListenerRequest
}

DeleteListenerRequest is the request type for the DeleteListener API operation.

func (DeleteListenerRequest) Send

Send marshals and sends the DeleteListener API request.

type DeleteListenerResponse

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

DeleteListenerResponse is the response type for the DeleteListener API operation.

func (*DeleteListenerResponse) SDKResponseMetdata

func (r *DeleteListenerResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteListener request.

type DeleteLoadBalancerInput

type DeleteLoadBalancerInput struct {

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

func (DeleteLoadBalancerInput) String

func (s DeleteLoadBalancerInput) String() string

String returns the string representation

func (*DeleteLoadBalancerInput) Validate

func (s *DeleteLoadBalancerInput) Validate() error

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

type DeleteLoadBalancerOutput

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

func (DeleteLoadBalancerOutput) String

func (s DeleteLoadBalancerOutput) String() string

String returns the string representation

type DeleteLoadBalancerRequest

type DeleteLoadBalancerRequest struct {
	*aws.Request
	Input *DeleteLoadBalancerInput
	Copy  func(*DeleteLoadBalancerInput) DeleteLoadBalancerRequest
}

DeleteLoadBalancerRequest is the request type for the DeleteLoadBalancer API operation.

func (DeleteLoadBalancerRequest) Send

Send marshals and sends the DeleteLoadBalancer API request.

type DeleteLoadBalancerResponse

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

DeleteLoadBalancerResponse is the response type for the DeleteLoadBalancer API operation.

func (*DeleteLoadBalancerResponse) SDKResponseMetdata

func (r *DeleteLoadBalancerResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteLoadBalancer request.

type DeleteRuleInput

type DeleteRuleInput struct {

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

func (DeleteRuleInput) String

func (s DeleteRuleInput) String() string

String returns the string representation

func (*DeleteRuleInput) Validate

func (s *DeleteRuleInput) Validate() error

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

type DeleteRuleOutput

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

func (DeleteRuleOutput) String

func (s DeleteRuleOutput) String() string

String returns the string representation

type DeleteRuleRequest

type DeleteRuleRequest struct {
	*aws.Request
	Input *DeleteRuleInput
	Copy  func(*DeleteRuleInput) DeleteRuleRequest
}

DeleteRuleRequest is the request type for the DeleteRule API operation.

func (DeleteRuleRequest) Send

Send marshals and sends the DeleteRule API request.

type DeleteRuleResponse

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

DeleteRuleResponse is the response type for the DeleteRule API operation.

func (*DeleteRuleResponse) SDKResponseMetdata

func (r *DeleteRuleResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteRule request.

type DeleteTargetGroupInput

type DeleteTargetGroupInput struct {

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

func (DeleteTargetGroupInput) String

func (s DeleteTargetGroupInput) String() string

String returns the string representation

func (*DeleteTargetGroupInput) Validate

func (s *DeleteTargetGroupInput) Validate() error

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

type DeleteTargetGroupOutput

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

func (DeleteTargetGroupOutput) String

func (s DeleteTargetGroupOutput) String() string

String returns the string representation

type DeleteTargetGroupRequest

type DeleteTargetGroupRequest struct {
	*aws.Request
	Input *DeleteTargetGroupInput
	Copy  func(*DeleteTargetGroupInput) DeleteTargetGroupRequest
}

DeleteTargetGroupRequest is the request type for the DeleteTargetGroup API operation.

func (DeleteTargetGroupRequest) Send

Send marshals and sends the DeleteTargetGroup API request.

type DeleteTargetGroupResponse

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

DeleteTargetGroupResponse is the response type for the DeleteTargetGroup API operation.

func (*DeleteTargetGroupResponse) SDKResponseMetdata

func (r *DeleteTargetGroupResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteTargetGroup request.

type DeregisterTargetsInput

type DeregisterTargetsInput struct {

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

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

func (DeregisterTargetsInput) String

func (s DeregisterTargetsInput) String() string

String returns the string representation

func (*DeregisterTargetsInput) Validate

func (s *DeregisterTargetsInput) Validate() error

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

type DeregisterTargetsOutput

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

func (DeregisterTargetsOutput) String

func (s DeregisterTargetsOutput) String() string

String returns the string representation

type DeregisterTargetsRequest

type DeregisterTargetsRequest struct {
	*aws.Request
	Input *DeregisterTargetsInput
	Copy  func(*DeregisterTargetsInput) DeregisterTargetsRequest
}

DeregisterTargetsRequest is the request type for the DeregisterTargets API operation.

func (DeregisterTargetsRequest) Send

Send marshals and sends the DeregisterTargets API request.

type DeregisterTargetsResponse

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

DeregisterTargetsResponse is the response type for the DeregisterTargets API operation.

func (*DeregisterTargetsResponse) SDKResponseMetdata

func (r *DeregisterTargetsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeregisterTargets request.

type DescribeAccountLimitsInput

type DescribeAccountLimitsInput struct {

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

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

func (DescribeAccountLimitsInput) String

String returns the string representation

func (*DescribeAccountLimitsInput) Validate

func (s *DescribeAccountLimitsInput) Validate() error

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

type DescribeAccountLimitsOutput

type DescribeAccountLimitsOutput struct {

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

	// If there are additional results, this is the marker for the next set of results.
	// Otherwise, this is null.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeAccountLimitsOutput) String

String returns the string representation

type DescribeAccountLimitsRequest

type DescribeAccountLimitsRequest struct {
	*aws.Request
	Input *DescribeAccountLimitsInput
	Copy  func(*DescribeAccountLimitsInput) DescribeAccountLimitsRequest
}

DescribeAccountLimitsRequest is the request type for the DescribeAccountLimits API operation.

func (DescribeAccountLimitsRequest) Send

Send marshals and sends the DescribeAccountLimits API request.

type DescribeAccountLimitsResponse

type DescribeAccountLimitsResponse struct {
	*DescribeAccountLimitsOutput
	// contains filtered or unexported fields
}

DescribeAccountLimitsResponse is the response type for the DescribeAccountLimits API operation.

func (*DescribeAccountLimitsResponse) SDKResponseMetdata

func (r *DescribeAccountLimitsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeAccountLimits request.

type DescribeListenerCertificatesInput

type DescribeListenerCertificatesInput struct {

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

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

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

func (DescribeListenerCertificatesInput) String

String returns the string representation

func (*DescribeListenerCertificatesInput) Validate

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

type DescribeListenerCertificatesOutput

type DescribeListenerCertificatesOutput struct {

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

	// If there are additional results, this is the marker for the next set of results.
	// Otherwise, this is null.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeListenerCertificatesOutput) String

String returns the string representation

type DescribeListenerCertificatesRequest

type DescribeListenerCertificatesRequest struct {
	*aws.Request
	Input *DescribeListenerCertificatesInput
	Copy  func(*DescribeListenerCertificatesInput) DescribeListenerCertificatesRequest
}

DescribeListenerCertificatesRequest is the request type for the DescribeListenerCertificates API operation.

func (DescribeListenerCertificatesRequest) Send

Send marshals and sends the DescribeListenerCertificates API request.

type DescribeListenerCertificatesResponse

type DescribeListenerCertificatesResponse struct {
	*DescribeListenerCertificatesOutput
	// contains filtered or unexported fields
}

DescribeListenerCertificatesResponse is the response type for the DescribeListenerCertificates API operation.

func (*DescribeListenerCertificatesResponse) SDKResponseMetdata

func (r *DescribeListenerCertificatesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeListenerCertificates request.

type DescribeListenersInput

type DescribeListenersInput struct {

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

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

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

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

func (DescribeListenersInput) String

func (s DescribeListenersInput) String() string

String returns the string representation

func (*DescribeListenersInput) Validate

func (s *DescribeListenersInput) Validate() error

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

type DescribeListenersOutput

type DescribeListenersOutput struct {

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

	// If there are additional results, this is the marker for the next set of results.
	// Otherwise, this is null.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeListenersOutput) String

func (s DescribeListenersOutput) String() string

String returns the string representation

type DescribeListenersPaginator

type DescribeListenersPaginator struct {
	aws.Pager
}

DescribeListenersPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeListenersPaginator

func NewDescribeListenersPaginator(req DescribeListenersRequest) DescribeListenersPaginator

NewDescribeListenersRequestPaginator returns a paginator for DescribeListeners. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

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

// Example iterating over pages.
req := client.DescribeListenersRequest(input)
p := elasticloadbalancingv2.NewDescribeListenersRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeListenersPaginator) CurrentPage

type DescribeListenersRequest

type DescribeListenersRequest struct {
	*aws.Request
	Input *DescribeListenersInput
	Copy  func(*DescribeListenersInput) DescribeListenersRequest
}

DescribeListenersRequest is the request type for the DescribeListeners API operation.

func (DescribeListenersRequest) Send

Send marshals and sends the DescribeListeners API request.

type DescribeListenersResponse

type DescribeListenersResponse struct {
	*DescribeListenersOutput
	// contains filtered or unexported fields
}

DescribeListenersResponse is the response type for the DescribeListeners API operation.

func (*DescribeListenersResponse) SDKResponseMetdata

func (r *DescribeListenersResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeListeners request.

type DescribeLoadBalancerAttributesInput

type DescribeLoadBalancerAttributesInput struct {

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

func (DescribeLoadBalancerAttributesInput) String

String returns the string representation

func (*DescribeLoadBalancerAttributesInput) Validate

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

type DescribeLoadBalancerAttributesOutput

type DescribeLoadBalancerAttributesOutput struct {

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

func (DescribeLoadBalancerAttributesOutput) String

String returns the string representation

type DescribeLoadBalancerAttributesRequest

type DescribeLoadBalancerAttributesRequest struct {
	*aws.Request
	Input *DescribeLoadBalancerAttributesInput
	Copy  func(*DescribeLoadBalancerAttributesInput) DescribeLoadBalancerAttributesRequest
}

DescribeLoadBalancerAttributesRequest is the request type for the DescribeLoadBalancerAttributes API operation.

func (DescribeLoadBalancerAttributesRequest) Send

Send marshals and sends the DescribeLoadBalancerAttributes API request.

type DescribeLoadBalancerAttributesResponse

type DescribeLoadBalancerAttributesResponse struct {
	*DescribeLoadBalancerAttributesOutput
	// contains filtered or unexported fields
}

DescribeLoadBalancerAttributesResponse is the response type for the DescribeLoadBalancerAttributes API operation.

func (*DescribeLoadBalancerAttributesResponse) SDKResponseMetdata

func (r *DescribeLoadBalancerAttributesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeLoadBalancerAttributes request.

type DescribeLoadBalancersInput

type DescribeLoadBalancersInput struct {

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

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

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

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

func (DescribeLoadBalancersInput) String

String returns the string representation

func (*DescribeLoadBalancersInput) Validate

func (s *DescribeLoadBalancersInput) Validate() error

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

type DescribeLoadBalancersOutput

type DescribeLoadBalancersOutput struct {

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

	// If there are additional results, this is the marker for the next set of results.
	// Otherwise, this is null.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLoadBalancersOutput) String

String returns the string representation

type DescribeLoadBalancersPaginator

type DescribeLoadBalancersPaginator struct {
	aws.Pager
}

DescribeLoadBalancersPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeLoadBalancersPaginator

func NewDescribeLoadBalancersPaginator(req DescribeLoadBalancersRequest) DescribeLoadBalancersPaginator

NewDescribeLoadBalancersRequestPaginator returns a paginator for DescribeLoadBalancers. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

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

// Example iterating over pages.
req := client.DescribeLoadBalancersRequest(input)
p := elasticloadbalancingv2.NewDescribeLoadBalancersRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeLoadBalancersPaginator) CurrentPage

type DescribeLoadBalancersRequest

type DescribeLoadBalancersRequest struct {
	*aws.Request
	Input *DescribeLoadBalancersInput
	Copy  func(*DescribeLoadBalancersInput) DescribeLoadBalancersRequest
}

DescribeLoadBalancersRequest is the request type for the DescribeLoadBalancers API operation.

func (DescribeLoadBalancersRequest) Send

Send marshals and sends the DescribeLoadBalancers API request.

type DescribeLoadBalancersResponse

type DescribeLoadBalancersResponse struct {
	*DescribeLoadBalancersOutput
	// contains filtered or unexported fields
}

DescribeLoadBalancersResponse is the response type for the DescribeLoadBalancers API operation.

func (*DescribeLoadBalancersResponse) SDKResponseMetdata

func (r *DescribeLoadBalancersResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeLoadBalancers request.

type DescribeRulesInput

type DescribeRulesInput struct {

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

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

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

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

func (DescribeRulesInput) String

func (s DescribeRulesInput) String() string

String returns the string representation

func (*DescribeRulesInput) Validate

func (s *DescribeRulesInput) Validate() error

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

type DescribeRulesOutput

type DescribeRulesOutput struct {

	// If there are additional results, this is the marker for the next set of results.
	// Otherwise, this is null.
	NextMarker *string `type:"string"`

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

func (DescribeRulesOutput) String

func (s DescribeRulesOutput) String() string

String returns the string representation

type DescribeRulesRequest

type DescribeRulesRequest struct {
	*aws.Request
	Input *DescribeRulesInput
	Copy  func(*DescribeRulesInput) DescribeRulesRequest
}

DescribeRulesRequest is the request type for the DescribeRules API operation.

func (DescribeRulesRequest) Send

Send marshals and sends the DescribeRules API request.

type DescribeRulesResponse

type DescribeRulesResponse struct {
	*DescribeRulesOutput
	// contains filtered or unexported fields
}

DescribeRulesResponse is the response type for the DescribeRules API operation.

func (*DescribeRulesResponse) SDKResponseMetdata

func (r *DescribeRulesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeRules request.

type DescribeSSLPoliciesInput

type DescribeSSLPoliciesInput struct {

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

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

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

func (DescribeSSLPoliciesInput) String

func (s DescribeSSLPoliciesInput) String() string

String returns the string representation

func (*DescribeSSLPoliciesInput) Validate

func (s *DescribeSSLPoliciesInput) Validate() error

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

type DescribeSSLPoliciesOutput

type DescribeSSLPoliciesOutput struct {

	// If there are additional results, this is the marker for the next set of results.
	// Otherwise, this is null.
	NextMarker *string `type:"string"`

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

func (DescribeSSLPoliciesOutput) String

func (s DescribeSSLPoliciesOutput) String() string

String returns the string representation

type DescribeSSLPoliciesRequest

type DescribeSSLPoliciesRequest struct {
	*aws.Request
	Input *DescribeSSLPoliciesInput
	Copy  func(*DescribeSSLPoliciesInput) DescribeSSLPoliciesRequest
}

DescribeSSLPoliciesRequest is the request type for the DescribeSSLPolicies API operation.

func (DescribeSSLPoliciesRequest) Send

Send marshals and sends the DescribeSSLPolicies API request.

type DescribeSSLPoliciesResponse

type DescribeSSLPoliciesResponse struct {
	*DescribeSSLPoliciesOutput
	// contains filtered or unexported fields
}

DescribeSSLPoliciesResponse is the response type for the DescribeSSLPolicies API operation.

func (*DescribeSSLPoliciesResponse) SDKResponseMetdata

func (r *DescribeSSLPoliciesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeSSLPolicies request.

type DescribeTagsInput

type DescribeTagsInput struct {

	// The Amazon Resource Names (ARN) of the resources. You can specify up to 20
	// resources in a single call.
	//
	// ResourceArns is a required field
	ResourceArns []string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeTagsInput) String

func (s DescribeTagsInput) String() string

String returns the string representation

func (*DescribeTagsInput) Validate

func (s *DescribeTagsInput) Validate() error

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

type DescribeTagsOutput

type DescribeTagsOutput struct {

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

func (DescribeTagsOutput) String

func (s DescribeTagsOutput) String() string

String returns the string representation

type DescribeTagsRequest

type DescribeTagsRequest struct {
	*aws.Request
	Input *DescribeTagsInput
	Copy  func(*DescribeTagsInput) DescribeTagsRequest
}

DescribeTagsRequest is the request type for the DescribeTags API operation.

func (DescribeTagsRequest) Send

Send marshals and sends the DescribeTags API request.

type DescribeTagsResponse

type DescribeTagsResponse struct {
	*DescribeTagsOutput
	// contains filtered or unexported fields
}

DescribeTagsResponse is the response type for the DescribeTags API operation.

func (*DescribeTagsResponse) SDKResponseMetdata

func (r *DescribeTagsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeTags request.

type DescribeTargetGroupAttributesInput

type DescribeTargetGroupAttributesInput struct {

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

func (DescribeTargetGroupAttributesInput) String

String returns the string representation

func (*DescribeTargetGroupAttributesInput) Validate

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

type DescribeTargetGroupAttributesOutput

type DescribeTargetGroupAttributesOutput struct {

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

func (DescribeTargetGroupAttributesOutput) String

String returns the string representation

type DescribeTargetGroupAttributesRequest

type DescribeTargetGroupAttributesRequest struct {
	*aws.Request
	Input *DescribeTargetGroupAttributesInput
	Copy  func(*DescribeTargetGroupAttributesInput) DescribeTargetGroupAttributesRequest
}

DescribeTargetGroupAttributesRequest is the request type for the DescribeTargetGroupAttributes API operation.

func (DescribeTargetGroupAttributesRequest) Send

Send marshals and sends the DescribeTargetGroupAttributes API request.

type DescribeTargetGroupAttributesResponse

type DescribeTargetGroupAttributesResponse struct {
	*DescribeTargetGroupAttributesOutput
	// contains filtered or unexported fields
}

DescribeTargetGroupAttributesResponse is the response type for the DescribeTargetGroupAttributes API operation.

func (*DescribeTargetGroupAttributesResponse) SDKResponseMetdata

func (r *DescribeTargetGroupAttributesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeTargetGroupAttributes request.

type DescribeTargetGroupsInput

type DescribeTargetGroupsInput struct {

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

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

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

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

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

func (DescribeTargetGroupsInput) String

func (s DescribeTargetGroupsInput) String() string

String returns the string representation

func (*DescribeTargetGroupsInput) Validate

func (s *DescribeTargetGroupsInput) Validate() error

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

type DescribeTargetGroupsOutput

type DescribeTargetGroupsOutput struct {

	// If there are additional results, this is the marker for the next set of results.
	// Otherwise, this is null.
	NextMarker *string `type:"string"`

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

func (DescribeTargetGroupsOutput) String

String returns the string representation

type DescribeTargetGroupsPaginator

type DescribeTargetGroupsPaginator struct {
	aws.Pager
}

DescribeTargetGroupsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeTargetGroupsPaginator

func NewDescribeTargetGroupsPaginator(req DescribeTargetGroupsRequest) DescribeTargetGroupsPaginator

NewDescribeTargetGroupsRequestPaginator returns a paginator for DescribeTargetGroups. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

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

// Example iterating over pages.
req := client.DescribeTargetGroupsRequest(input)
p := elasticloadbalancingv2.NewDescribeTargetGroupsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeTargetGroupsPaginator) CurrentPage

type DescribeTargetGroupsRequest

type DescribeTargetGroupsRequest struct {
	*aws.Request
	Input *DescribeTargetGroupsInput
	Copy  func(*DescribeTargetGroupsInput) DescribeTargetGroupsRequest
}

DescribeTargetGroupsRequest is the request type for the DescribeTargetGroups API operation.

func (DescribeTargetGroupsRequest) Send

Send marshals and sends the DescribeTargetGroups API request.

type DescribeTargetGroupsResponse

type DescribeTargetGroupsResponse struct {
	*DescribeTargetGroupsOutput
	// contains filtered or unexported fields
}

DescribeTargetGroupsResponse is the response type for the DescribeTargetGroups API operation.

func (*DescribeTargetGroupsResponse) SDKResponseMetdata

func (r *DescribeTargetGroupsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeTargetGroups request.

type DescribeTargetHealthInput

type DescribeTargetHealthInput struct {

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

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

func (DescribeTargetHealthInput) String

func (s DescribeTargetHealthInput) String() string

String returns the string representation

func (*DescribeTargetHealthInput) Validate

func (s *DescribeTargetHealthInput) Validate() error

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

type DescribeTargetHealthOutput

type DescribeTargetHealthOutput struct {

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

func (DescribeTargetHealthOutput) String

String returns the string representation

type DescribeTargetHealthRequest

type DescribeTargetHealthRequest struct {
	*aws.Request
	Input *DescribeTargetHealthInput
	Copy  func(*DescribeTargetHealthInput) DescribeTargetHealthRequest
}

DescribeTargetHealthRequest is the request type for the DescribeTargetHealth API operation.

func (DescribeTargetHealthRequest) Send

Send marshals and sends the DescribeTargetHealth API request.

type DescribeTargetHealthResponse

type DescribeTargetHealthResponse struct {
	*DescribeTargetHealthOutput
	// contains filtered or unexported fields
}

DescribeTargetHealthResponse is the response type for the DescribeTargetHealth API operation.

func (*DescribeTargetHealthResponse) SDKResponseMetdata

func (r *DescribeTargetHealthResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeTargetHealth request.

type FixedResponseActionConfig

type FixedResponseActionConfig struct {

	// The content type.
	//
	// Valid Values: text/plain | text/css | text/html | application/javascript
	// | application/json
	ContentType *string `type:"string"`

	// The message.
	MessageBody *string `type:"string"`

	// The HTTP response code (2XX, 4XX, or 5XX).
	//
	// StatusCode is a required field
	StatusCode *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Information about an action that returns a custom HTTP response.

func (FixedResponseActionConfig) String

func (s FixedResponseActionConfig) String() string

String returns the string representation

func (*FixedResponseActionConfig) Validate

func (s *FixedResponseActionConfig) Validate() error

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

type ForwardActionConfig added in v0.17.0

type ForwardActionConfig struct {

	// The target group stickiness for the rule.
	TargetGroupStickinessConfig *TargetGroupStickinessConfig `type:"structure"`

	// One or more target groups. For Network Load Balancers, you can specify a
	// single target group.
	TargetGroups []TargetGroupTuple `type:"list"`
	// contains filtered or unexported fields
}

Information about a forward action.

func (ForwardActionConfig) String added in v0.17.0

func (s ForwardActionConfig) String() string

String returns the string representation

type HostHeaderConditionConfig

type HostHeaderConditionConfig struct {

	// One or more host names. The maximum size of each name is 128 characters.
	// The comparison is case insensitive. The following wildcard characters are
	// supported: * (matches 0 or more characters) and ? (matches exactly 1 character).
	//
	// If you specify multiple strings, the condition is satisfied if one of the
	// strings matches the host name.
	Values []string `type:"list"`
	// contains filtered or unexported fields
}

Information about a host header condition.

func (HostHeaderConditionConfig) String

func (s HostHeaderConditionConfig) String() string

String returns the string representation

type HttpHeaderConditionConfig

type HttpHeaderConditionConfig struct {

	// The name of the HTTP header field. The maximum size is 40 characters. The
	// header name is case insensitive. The allowed characters are specified by
	// RFC 7230. Wildcards are not supported.
	//
	// You can't use an HTTP header condition to specify the host header. Use HostHeaderConditionConfig
	// to specify a host header condition.
	HttpHeaderName *string `type:"string"`

	// One or more strings to compare against the value of the HTTP header. The
	// maximum size of each string is 128 characters. The comparison strings are
	// case insensitive. The following wildcard characters are supported: * (matches
	// 0 or more characters) and ? (matches exactly 1 character).
	//
	// If the same header appears multiple times in the request, we search them
	// in order until a match is found.
	//
	// If you specify multiple strings, the condition is satisfied if one of the
	// strings matches the value of the HTTP header. To require that all of the
	// strings are a match, create one condition per string.
	Values []string `type:"list"`
	// contains filtered or unexported fields
}

Information about an HTTP header condition.

There is a set of standard HTTP header fields. You can also define custom HTTP header fields.

func (HttpHeaderConditionConfig) String

func (s HttpHeaderConditionConfig) String() string

String returns the string representation

type HttpRequestMethodConditionConfig

type HttpRequestMethodConditionConfig struct {

	// The name of the request method. The maximum size is 40 characters. The allowed
	// characters are A-Z, hyphen (-), and underscore (_). The comparison is case
	// sensitive. Wildcards are not supported; therefore, the method name must be
	// an exact match.
	//
	// If you specify multiple strings, the condition is satisfied if one of the
	// strings matches the HTTP request method. We recommend that you route GET
	// and HEAD requests in the same way, because the response to a HEAD request
	// may be cached.
	Values []string `type:"list"`
	// contains filtered or unexported fields
}

Information about an HTTP method condition.

HTTP defines a set of request methods, also referred to as HTTP verbs. For more information, see the HTTP Method Registry (https://www.iana.org/assignments/http-methods/http-methods.xhtml). You can also define custom HTTP methods.

func (HttpRequestMethodConditionConfig) String

String returns the string representation

type IpAddressType

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

Enum values for IpAddressType

func (IpAddressType) MarshalValue

func (enum IpAddressType) MarshalValue() (string, error)

func (IpAddressType) MarshalValueBuf

func (enum IpAddressType) MarshalValueBuf(b []byte) ([]byte, error)

type Limit

type Limit struct {

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

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

Information about an Elastic Load Balancing resource limit for your AWS account.

func (Limit) String

func (s Limit) String() string

String returns the string representation

type Listener

type Listener struct {

	// [TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN)
	// policy.
	AlpnPolicy []string `type:"list"`

	// [HTTPS or TLS listener] The default certificate for the listener.
	Certificates []Certificate `type:"list"`

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

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

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

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

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

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

Information about a listener.

func (Listener) String

func (s Listener) String() string

String returns the string representation

type LoadBalancer

type LoadBalancer struct {

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

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

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

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

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

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

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

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

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

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

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

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

Information about a load balancer.

func (LoadBalancer) String

func (s LoadBalancer) String() string

String returns the string representation

type LoadBalancerAddress

type LoadBalancerAddress struct {

	// [Network Load Balancers] The allocation ID of the Elastic IP address for
	// an internal-facing load balancer.
	AllocationId *string `type:"string"`

	// The static IP address.
	IpAddress *string `type:"string"`

	// [Network Load Balancers] The private IPv4 address for an internal load balancer.
	PrivateIPv4Address *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a static IP address for a load balancer.

func (LoadBalancerAddress) String

func (s LoadBalancerAddress) String() string

String returns the string representation

type LoadBalancerAttribute

type LoadBalancerAttribute struct {

	// The name of the attribute.
	//
	// The following attributes are supported by both Application Load Balancers
	// and Network Load Balancers:
	//
	//    * access_logs.s3.enabled - Indicates whether access logs are enabled.
	//    The value is true or false. The default is false.
	//
	//    * access_logs.s3.bucket - The name of the S3 bucket for the access logs.
	//    This attribute is required if access logs are enabled. The bucket must
	//    exist in the same region as the load balancer and have a bucket policy
	//    that grants Elastic Load Balancing permissions to write to the bucket.
	//
	//    * access_logs.s3.prefix - The prefix for the location in the S3 bucket
	//    for the access logs.
	//
	//    * deletion_protection.enabled - Indicates whether deletion protection
	//    is enabled. The value is true or false. The default is false.
	//
	// The following attributes are supported by only Application Load Balancers:
	//
	//    * idle_timeout.timeout_seconds - The idle timeout value, in seconds. The
	//    valid range is 1-4000 seconds. The default is 60 seconds.
	//
	//    * routing.http.drop_invalid_header_fields.enabled - Indicates whether
	//    HTTP headers with invalid header fields are removed by the load balancer
	//    (true) or routed to targets (false). The default is false.
	//
	//    * routing.http2.enabled - Indicates whether HTTP/2 is enabled. The value
	//    is true or false. The default is true. Elastic Load Balancing requires
	//    that message header names contain only alphanumeric characters and hyphens.
	//
	// The following attributes are supported by only Network Load Balancers:
	//
	//    * load_balancing.cross_zone.enabled - Indicates whether cross-zone load
	//    balancing is enabled. The value is true or false. The default is false.
	Key *string `type:"string"`

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

Information about a load balancer attribute.

func (LoadBalancerAttribute) String

func (s LoadBalancerAttribute) String() string

String returns the string representation

type LoadBalancerSchemeEnum

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

Enum values for LoadBalancerSchemeEnum

func (LoadBalancerSchemeEnum) MarshalValue

func (enum LoadBalancerSchemeEnum) MarshalValue() (string, error)

func (LoadBalancerSchemeEnum) MarshalValueBuf

func (enum LoadBalancerSchemeEnum) MarshalValueBuf(b []byte) ([]byte, error)

type LoadBalancerState

type LoadBalancerState struct {

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

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

Information about the state of the load balancer.

func (LoadBalancerState) String

func (s LoadBalancerState) String() string

String returns the string representation

type LoadBalancerStateEnum

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

Enum values for LoadBalancerStateEnum

func (LoadBalancerStateEnum) MarshalValue

func (enum LoadBalancerStateEnum) MarshalValue() (string, error)

func (LoadBalancerStateEnum) MarshalValueBuf

func (enum LoadBalancerStateEnum) MarshalValueBuf(b []byte) ([]byte, error)

type LoadBalancerTypeEnum

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

Enum values for LoadBalancerTypeEnum

func (LoadBalancerTypeEnum) MarshalValue

func (enum LoadBalancerTypeEnum) MarshalValue() (string, error)

func (LoadBalancerTypeEnum) MarshalValueBuf

func (enum LoadBalancerTypeEnum) MarshalValueBuf(b []byte) ([]byte, error)

type Matcher

type Matcher struct {

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

Information to use when checking for a successful response from a target.

func (Matcher) String

func (s Matcher) String() string

String returns the string representation

func (*Matcher) Validate

func (s *Matcher) Validate() error

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

type ModifyListenerInput

type ModifyListenerInput struct {

	// [TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN)
	// policy. You can specify one policy name. The following are the possible values:
	//
	//    * HTTP1Only
	//
	//    * HTTP2Only
	//
	//    * HTTP2Optional
	//
	//    * HTTP2Preferred
	//
	//    * None
	//
	// For more information, see ALPN Policies (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html#alpn-policies)
	// in the Network Load Balancers Guide.
	AlpnPolicy []string `type:"list"`

	// [HTTPS and TLS listeners] The default certificate for the listener. You must
	// provide exactly one certificate. Set CertificateArn to the certificate ARN
	// but do not set IsDefault.
	//
	// To create a certificate list, use AddListenerCertificates.
	Certificates []Certificate `type:"list"`

	// The actions for the default rule. The rule must include one forward action
	// or one or more fixed-response actions.
	//
	// If the action type is forward, you specify one or more target groups. The
	// protocol of the target group must be HTTP or HTTPS for an Application Load
	// Balancer. The protocol of the target group must be TCP, TLS, UDP, or TCP_UDP
	// for a Network Load Balancer.
	//
	// [HTTPS listeners] If the action type is authenticate-oidc, you authenticate
	// users through an identity provider that is OpenID Connect (OIDC) compliant.
	//
	// [HTTPS listeners] If the action type is authenticate-cognito, you authenticate
	// users through the user pools supported by Amazon Cognito.
	//
	// [Application Load Balancer] If the action type is redirect, you redirect
	// specified client requests from one URL to another.
	//
	// [Application Load Balancer] If the action type is fixed-response, you drop
	// specified client requests and return a custom HTTP response.
	DefaultActions []Action `type:"list"`

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

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

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

	// [HTTPS and TLS listeners] The security policy that defines which protocols
	// and ciphers are supported. The following are the possible values:
	//
	//    * ELBSecurityPolicy-2016-08
	//
	//    * ELBSecurityPolicy-TLS-1-0-2015-04
	//
	//    * ELBSecurityPolicy-TLS-1-1-2017-01
	//
	//    * ELBSecurityPolicy-TLS-1-2-2017-01
	//
	//    * ELBSecurityPolicy-TLS-1-2-Ext-2018-06
	//
	//    * ELBSecurityPolicy-FS-2018-06
	//
	//    * ELBSecurityPolicy-FS-1-1-2019-08
	//
	//    * ELBSecurityPolicy-FS-1-2-2019-08
	//
	//    * ELBSecurityPolicy-FS-1-2-Res-2019-08
	//
	// For more information, see Security Policies (https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html#describe-ssl-policies)
	// in the Application Load Balancers Guide and Security Policies (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html#describe-ssl-policies)
	// in the Network Load Balancers Guide.
	SslPolicy *string `type:"string"`
	// contains filtered or unexported fields
}

func (ModifyListenerInput) String

func (s ModifyListenerInput) String() string

String returns the string representation

func (*ModifyListenerInput) Validate

func (s *ModifyListenerInput) Validate() error

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

type ModifyListenerOutput

type ModifyListenerOutput struct {

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

func (ModifyListenerOutput) String

func (s ModifyListenerOutput) String() string

String returns the string representation

type ModifyListenerRequest

type ModifyListenerRequest struct {
	*aws.Request
	Input *ModifyListenerInput
	Copy  func(*ModifyListenerInput) ModifyListenerRequest
}

ModifyListenerRequest is the request type for the ModifyListener API operation.

func (ModifyListenerRequest) Send

Send marshals and sends the ModifyListener API request.

type ModifyListenerResponse

type ModifyListenerResponse struct {
	*ModifyListenerOutput
	// contains filtered or unexported fields
}

ModifyListenerResponse is the response type for the ModifyListener API operation.

func (*ModifyListenerResponse) SDKResponseMetdata

func (r *ModifyListenerResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyListener request.

type ModifyLoadBalancerAttributesInput

type ModifyLoadBalancerAttributesInput struct {

	// The load balancer attributes.
	//
	// Attributes is a required field
	Attributes []LoadBalancerAttribute `type:"list" required:"true"`

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

func (ModifyLoadBalancerAttributesInput) String

String returns the string representation

func (*ModifyLoadBalancerAttributesInput) Validate

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

type ModifyLoadBalancerAttributesOutput

type ModifyLoadBalancerAttributesOutput struct {

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

func (ModifyLoadBalancerAttributesOutput) String

String returns the string representation

type ModifyLoadBalancerAttributesRequest

type ModifyLoadBalancerAttributesRequest struct {
	*aws.Request
	Input *ModifyLoadBalancerAttributesInput
	Copy  func(*ModifyLoadBalancerAttributesInput) ModifyLoadBalancerAttributesRequest
}

ModifyLoadBalancerAttributesRequest is the request type for the ModifyLoadBalancerAttributes API operation.

func (ModifyLoadBalancerAttributesRequest) Send

Send marshals and sends the ModifyLoadBalancerAttributes API request.

type ModifyLoadBalancerAttributesResponse

type ModifyLoadBalancerAttributesResponse struct {
	*ModifyLoadBalancerAttributesOutput
	// contains filtered or unexported fields
}

ModifyLoadBalancerAttributesResponse is the response type for the ModifyLoadBalancerAttributes API operation.

func (*ModifyLoadBalancerAttributesResponse) SDKResponseMetdata

func (r *ModifyLoadBalancerAttributesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyLoadBalancerAttributes request.

type ModifyRuleInput

type ModifyRuleInput struct {

	// The actions. Each rule must include exactly one of the following types of
	// actions: forward, fixed-response, or redirect, and it must be the last action
	// to be performed.
	//
	// If the action type is forward, you specify one or more target groups. The
	// protocol of the target group must be HTTP or HTTPS for an Application Load
	// Balancer. The protocol of the target group must be TCP, TLS, UDP, or TCP_UDP
	// for a Network Load Balancer.
	//
	// [HTTPS listeners] If the action type is authenticate-oidc, you authenticate
	// users through an identity provider that is OpenID Connect (OIDC) compliant.
	//
	// [HTTPS listeners] If the action type is authenticate-cognito, you authenticate
	// users through the user pools supported by Amazon Cognito.
	//
	// [Application Load Balancer] If the action type is redirect, you redirect
	// specified client requests from one URL to another.
	//
	// [Application Load Balancer] If the action type is fixed-response, you drop
	// specified client requests and return a custom HTTP response.
	Actions []Action `type:"list"`

	// The conditions. Each rule can include zero or one of the following conditions:
	// http-request-method, host-header, path-pattern, and source-ip, and zero or
	// more of the following conditions: http-header and query-string.
	Conditions []RuleCondition `type:"list"`

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

func (ModifyRuleInput) String

func (s ModifyRuleInput) String() string

String returns the string representation

func (*ModifyRuleInput) Validate

func (s *ModifyRuleInput) Validate() error

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

type ModifyRuleOutput

type ModifyRuleOutput struct {

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

func (ModifyRuleOutput) String

func (s ModifyRuleOutput) String() string

String returns the string representation

type ModifyRuleRequest

type ModifyRuleRequest struct {
	*aws.Request
	Input *ModifyRuleInput
	Copy  func(*ModifyRuleInput) ModifyRuleRequest
}

ModifyRuleRequest is the request type for the ModifyRule API operation.

func (ModifyRuleRequest) Send

Send marshals and sends the ModifyRule API request.

type ModifyRuleResponse

type ModifyRuleResponse struct {
	*ModifyRuleOutput
	// contains filtered or unexported fields
}

ModifyRuleResponse is the response type for the ModifyRule API operation.

func (*ModifyRuleResponse) SDKResponseMetdata

func (r *ModifyRuleResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyRule request.

type ModifyTargetGroupAttributesInput

type ModifyTargetGroupAttributesInput struct {

	// The attributes.
	//
	// Attributes is a required field
	Attributes []TargetGroupAttribute `type:"list" required:"true"`

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

func (ModifyTargetGroupAttributesInput) String

String returns the string representation

func (*ModifyTargetGroupAttributesInput) Validate

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

type ModifyTargetGroupAttributesOutput

type ModifyTargetGroupAttributesOutput struct {

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

func (ModifyTargetGroupAttributesOutput) String

String returns the string representation

type ModifyTargetGroupAttributesRequest

type ModifyTargetGroupAttributesRequest struct {
	*aws.Request
	Input *ModifyTargetGroupAttributesInput
	Copy  func(*ModifyTargetGroupAttributesInput) ModifyTargetGroupAttributesRequest
}

ModifyTargetGroupAttributesRequest is the request type for the ModifyTargetGroupAttributes API operation.

func (ModifyTargetGroupAttributesRequest) Send

Send marshals and sends the ModifyTargetGroupAttributes API request.

type ModifyTargetGroupAttributesResponse

type ModifyTargetGroupAttributesResponse struct {
	*ModifyTargetGroupAttributesOutput
	// contains filtered or unexported fields
}

ModifyTargetGroupAttributesResponse is the response type for the ModifyTargetGroupAttributes API operation.

func (*ModifyTargetGroupAttributesResponse) SDKResponseMetdata

func (r *ModifyTargetGroupAttributesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyTargetGroupAttributes request.

type ModifyTargetGroupInput

type ModifyTargetGroupInput struct {

	// Indicates whether health checks are enabled.
	HealthCheckEnabled *bool `type:"boolean"`

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

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

	// The port the load balancer uses when performing health checks on targets.
	HealthCheckPort *string `type:"string"`

	// The protocol the load balancer uses when performing health checks on targets.
	// The TCP protocol is supported for health checks only if the protocol of the
	// target group is TCP, TLS, UDP, or TCP_UDP. The TLS, UDP, and TCP_UDP protocols
	// are not supported for health checks.
	//
	// With Network Load Balancers, you can't modify this setting.
	HealthCheckProtocol ProtocolEnum `type:"string" enum:"true"`

	// [HTTP/HTTPS health checks] The amount of time, in seconds, during which no
	// response means a failed health check.
	//
	// With Network Load Balancers, you can't modify this setting.
	HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"`

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

	// [HTTP/HTTPS health checks] The HTTP codes to use when checking for a successful
	// response from a target.
	//
	// With Network Load Balancers, you can't modify this setting.
	Matcher *Matcher `type:"structure"`

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

	// The number of consecutive health check failures required before considering
	// the target unhealthy. For Network Load Balancers, this value must be the
	// same as the healthy threshold count.
	UnhealthyThresholdCount *int64 `min:"2" type:"integer"`
	// contains filtered or unexported fields
}

func (ModifyTargetGroupInput) String

func (s ModifyTargetGroupInput) String() string

String returns the string representation

func (*ModifyTargetGroupInput) Validate

func (s *ModifyTargetGroupInput) Validate() error

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

type ModifyTargetGroupOutput

type ModifyTargetGroupOutput struct {

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

func (ModifyTargetGroupOutput) String

func (s ModifyTargetGroupOutput) String() string

String returns the string representation

type ModifyTargetGroupRequest

type ModifyTargetGroupRequest struct {
	*aws.Request
	Input *ModifyTargetGroupInput
	Copy  func(*ModifyTargetGroupInput) ModifyTargetGroupRequest
}

ModifyTargetGroupRequest is the request type for the ModifyTargetGroup API operation.

func (ModifyTargetGroupRequest) Send

Send marshals and sends the ModifyTargetGroup API request.

type ModifyTargetGroupResponse

type ModifyTargetGroupResponse struct {
	*ModifyTargetGroupOutput
	// contains filtered or unexported fields
}

ModifyTargetGroupResponse is the response type for the ModifyTargetGroup API operation.

func (*ModifyTargetGroupResponse) SDKResponseMetdata

func (r *ModifyTargetGroupResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyTargetGroup request.

type PathPatternConditionConfig

type PathPatternConditionConfig struct {

	// One or more path patterns to compare against the request URL. The maximum
	// size of each string is 128 characters. The comparison is case sensitive.
	// The following wildcard characters are supported: * (matches 0 or more characters)
	// and ? (matches exactly 1 character).
	//
	// If you specify multiple strings, the condition is satisfied if one of them
	// matches the request URL. The path pattern is compared only to the path of
	// the URL, not to its query string. To compare against the query string, use
	// QueryStringConditionConfig.
	Values []string `type:"list"`
	// contains filtered or unexported fields
}

Information about a path pattern condition.

func (PathPatternConditionConfig) String

String returns the string representation

type ProtocolEnum

type ProtocolEnum string
const (
	ProtocolEnumHttp   ProtocolEnum = "HTTP"
	ProtocolEnumHttps  ProtocolEnum = "HTTPS"
	ProtocolEnumTcp    ProtocolEnum = "TCP"
	ProtocolEnumTls    ProtocolEnum = "TLS"
	ProtocolEnumUdp    ProtocolEnum = "UDP"
	ProtocolEnumTcpUdp ProtocolEnum = "TCP_UDP"
)

Enum values for ProtocolEnum

func (ProtocolEnum) MarshalValue

func (enum ProtocolEnum) MarshalValue() (string, error)

func (ProtocolEnum) MarshalValueBuf

func (enum ProtocolEnum) MarshalValueBuf(b []byte) ([]byte, error)

type QueryStringConditionConfig

type QueryStringConditionConfig struct {

	// One or more key/value pairs or values to find in the query string. The maximum
	// size of each string is 128 characters. The comparison is case insensitive.
	// The following wildcard characters are supported: * (matches 0 or more characters)
	// and ? (matches exactly 1 character). To search for a literal '*' or '?' character
	// in a query string, you must escape these characters in Values using a '\'
	// character.
	//
	// If you specify multiple key/value pairs or values, the condition is satisfied
	// if one of them is found in the query string.
	Values []QueryStringKeyValuePair `type:"list"`
	// contains filtered or unexported fields
}

Information about a query string condition.

The query string component of a URI starts after the first '?' character and is terminated by either a '#' character or the end of the URI. A typical query string contains key/value pairs separated by '&' characters. The allowed characters are specified by RFC 3986. Any character can be percentage encoded.

func (QueryStringConditionConfig) String

String returns the string representation

type QueryStringKeyValuePair

type QueryStringKeyValuePair struct {

	// The key. You can omit the key.
	Key *string `type:"string"`

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

Information about a key/value pair.

func (QueryStringKeyValuePair) String

func (s QueryStringKeyValuePair) String() string

String returns the string representation

type RedirectActionConfig

type RedirectActionConfig struct {

	// The hostname. This component is not percent-encoded. The hostname can contain
	// #{host}.
	Host *string `min:"1" type:"string"`

	// The absolute path, starting with the leading "/". This component is not percent-encoded.
	// The path can contain #{host}, #{path}, and #{port}.
	Path *string `min:"1" type:"string"`

	// The port. You can specify a value from 1 to 65535 or #{port}.
	Port *string `type:"string"`

	// The protocol. You can specify HTTP, HTTPS, or #{protocol}. You can redirect
	// HTTP to HTTP, HTTP to HTTPS, and HTTPS to HTTPS. You cannot redirect HTTPS
	// to HTTP.
	Protocol *string `type:"string"`

	// The query parameters, URL-encoded when necessary, but not percent-encoded.
	// Do not include the leading "?", as it is automatically added. You can specify
	// any of the reserved keywords.
	Query *string `type:"string"`

	// The HTTP redirect code. The redirect is either permanent (HTTP 301) or temporary
	// (HTTP 302).
	//
	// StatusCode is a required field
	StatusCode RedirectActionStatusCodeEnum `type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

Information about a redirect action.

A URI consists of the following components: protocol://hostname:port/path?query. You must modify at least one of the following components to avoid a redirect loop: protocol, hostname, port, or path. Any components that you do not modify retain their original values.

You can reuse URI components using the following reserved keywords:

  • #{protocol}

  • #{host}

  • #{port}

  • #{path} (the leading "/" is removed)

  • #{query}

For example, you can change the path to "/new/#{path}", the hostname to "example.#{host}", or the query to "#{query}&value=xyz".

func (RedirectActionConfig) String

func (s RedirectActionConfig) String() string

String returns the string representation

func (*RedirectActionConfig) Validate

func (s *RedirectActionConfig) Validate() error

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

type RedirectActionStatusCodeEnum

type RedirectActionStatusCodeEnum string
const (
	RedirectActionStatusCodeEnumHttp301 RedirectActionStatusCodeEnum = "HTTP_301"
	RedirectActionStatusCodeEnumHttp302 RedirectActionStatusCodeEnum = "HTTP_302"
)

Enum values for RedirectActionStatusCodeEnum

func (RedirectActionStatusCodeEnum) MarshalValue

func (enum RedirectActionStatusCodeEnum) MarshalValue() (string, error)

func (RedirectActionStatusCodeEnum) MarshalValueBuf

func (enum RedirectActionStatusCodeEnum) MarshalValueBuf(b []byte) ([]byte, error)

type RegisterTargetsInput

type RegisterTargetsInput struct {

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

	// The targets.
	//
	// To register a target by instance ID, specify the instance ID. To register
	// a target by IP address, specify the IP address. To register a Lambda function,
	// specify the ARN of the Lambda function.
	//
	// Targets is a required field
	Targets []TargetDescription `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (RegisterTargetsInput) String

func (s RegisterTargetsInput) String() string

String returns the string representation

func (*RegisterTargetsInput) Validate

func (s *RegisterTargetsInput) Validate() error

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

type RegisterTargetsOutput

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

func (RegisterTargetsOutput) String

func (s RegisterTargetsOutput) String() string

String returns the string representation

type RegisterTargetsRequest

type RegisterTargetsRequest struct {
	*aws.Request
	Input *RegisterTargetsInput
	Copy  func(*RegisterTargetsInput) RegisterTargetsRequest
}

RegisterTargetsRequest is the request type for the RegisterTargets API operation.

func (RegisterTargetsRequest) Send

Send marshals and sends the RegisterTargets API request.

type RegisterTargetsResponse

type RegisterTargetsResponse struct {
	*RegisterTargetsOutput
	// contains filtered or unexported fields
}

RegisterTargetsResponse is the response type for the RegisterTargets API operation.

func (*RegisterTargetsResponse) SDKResponseMetdata

func (r *RegisterTargetsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RegisterTargets request.

type RemoveListenerCertificatesInput

type RemoveListenerCertificatesInput struct {

	// The certificate to remove. You can specify one certificate per call. Set
	// CertificateArn to the certificate ARN but do not set IsDefault.
	//
	// Certificates is a required field
	Certificates []Certificate `type:"list" required:"true"`

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

func (RemoveListenerCertificatesInput) String

String returns the string representation

func (*RemoveListenerCertificatesInput) Validate

func (s *RemoveListenerCertificatesInput) Validate() error

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

type RemoveListenerCertificatesOutput

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

func (RemoveListenerCertificatesOutput) String

String returns the string representation

type RemoveListenerCertificatesRequest

type RemoveListenerCertificatesRequest struct {
	*aws.Request
	Input *RemoveListenerCertificatesInput
	Copy  func(*RemoveListenerCertificatesInput) RemoveListenerCertificatesRequest
}

RemoveListenerCertificatesRequest is the request type for the RemoveListenerCertificates API operation.

func (RemoveListenerCertificatesRequest) Send

Send marshals and sends the RemoveListenerCertificates API request.

type RemoveListenerCertificatesResponse

type RemoveListenerCertificatesResponse struct {
	*RemoveListenerCertificatesOutput
	// contains filtered or unexported fields
}

RemoveListenerCertificatesResponse is the response type for the RemoveListenerCertificates API operation.

func (*RemoveListenerCertificatesResponse) SDKResponseMetdata

func (r *RemoveListenerCertificatesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RemoveListenerCertificates request.

type RemoveTagsInput

type RemoveTagsInput struct {

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

	// The tag keys for the tags to remove.
	//
	// TagKeys is a required field
	TagKeys []string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (RemoveTagsInput) String

func (s RemoveTagsInput) String() string

String returns the string representation

func (*RemoveTagsInput) Validate

func (s *RemoveTagsInput) Validate() error

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

type RemoveTagsOutput

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

func (RemoveTagsOutput) String

func (s RemoveTagsOutput) String() string

String returns the string representation

type RemoveTagsRequest

type RemoveTagsRequest struct {
	*aws.Request
	Input *RemoveTagsInput
	Copy  func(*RemoveTagsInput) RemoveTagsRequest
}

RemoveTagsRequest is the request type for the RemoveTags API operation.

func (RemoveTagsRequest) Send

Send marshals and sends the RemoveTags API request.

type RemoveTagsResponse

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

RemoveTagsResponse is the response type for the RemoveTags API operation.

func (*RemoveTagsResponse) SDKResponseMetdata

func (r *RemoveTagsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RemoveTags request.

type Rule

type Rule struct {

	// The actions. Each rule must include exactly one of the following types of
	// actions: forward, redirect, or fixed-response, and it must be the last action
	// to be performed.
	Actions []Action `type:"list"`

	// The conditions. Each rule can include zero or one of the following conditions:
	// http-request-method, host-header, path-pattern, and source-ip, and zero or
	// more of the following conditions: http-header and query-string.
	Conditions []RuleCondition `type:"list"`

	// Indicates whether this is the default rule.
	IsDefault *bool `type:"boolean"`

	// The priority.
	Priority *string `type:"string"`

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

Information about a rule.

func (Rule) String

func (s Rule) String() string

String returns the string representation

type RuleCondition

type RuleCondition struct {

	// The field in the HTTP request. The following are the possible values:
	//
	//    * http-header
	//
	//    * http-request-method
	//
	//    * host-header
	//
	//    * path-pattern
	//
	//    * query-string
	//
	//    * source-ip
	Field *string `type:"string"`

	// Information for a host header condition. Specify only when Field is host-header.
	HostHeaderConfig *HostHeaderConditionConfig `type:"structure"`

	// Information for an HTTP header condition. Specify only when Field is http-header.
	HttpHeaderConfig *HttpHeaderConditionConfig `type:"structure"`

	// Information for an HTTP method condition. Specify only when Field is http-request-method.
	HttpRequestMethodConfig *HttpRequestMethodConditionConfig `type:"structure"`

	// Information for a path pattern condition. Specify only when Field is path-pattern.
	PathPatternConfig *PathPatternConditionConfig `type:"structure"`

	// Information for a query string condition. Specify only when Field is query-string.
	QueryStringConfig *QueryStringConditionConfig `type:"structure"`

	// Information for a source IP condition. Specify only when Field is source-ip.
	SourceIpConfig *SourceIpConditionConfig `type:"structure"`

	// The condition value. You can use Values if the rule contains only host-header
	// and path-pattern conditions. Otherwise, you can use HostHeaderConfig for
	// host-header conditions and PathPatternConfig for path-pattern conditions.
	//
	// If Field is host-header, you can specify a single host name (for example,
	// my.example.com). A host name is case insensitive, can be up to 128 characters
	// in length, and can contain any of the following characters.
	//
	//    * A-Z, a-z, 0-9
	//
	//    * - .
	//
	//    * * (matches 0 or more characters)
	//
	//    * ? (matches exactly 1 character)
	//
	// If Field is path-pattern, you can specify a single path pattern (for example,
	// /img/*). A path pattern is case-sensitive, can be up to 128 characters in
	// length, and can contain any of the following characters.
	//
	//    * A-Z, a-z, 0-9
	//
	//    * _ - . $ / ~ " ' @ : +
	//
	//    * & (using &)
	//
	//    * * (matches 0 or more characters)
	//
	//    * ? (matches exactly 1 character)
	Values []string `type:"list"`
	// contains filtered or unexported fields
}

Information about a condition for a rule.

func (RuleCondition) String

func (s RuleCondition) String() string

String returns the string representation

type RulePriorityPair

type RulePriorityPair struct {

	// The rule priority.
	Priority *int64 `min:"1" type:"integer"`

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

Information about the priorities for the rules for a listener.

func (RulePriorityPair) String

func (s RulePriorityPair) String() string

String returns the string representation

func (*RulePriorityPair) Validate

func (s *RulePriorityPair) Validate() error

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

type SetIpAddressTypeInput

type SetIpAddressTypeInput struct {

	// The IP address type. The possible values are ipv4 (for IPv4 addresses) and
	// dualstack (for IPv4 and IPv6 addresses). Internal load balancers must use
	// ipv4. Network Load Balancers must use ipv4.
	//
	// IpAddressType is a required field
	IpAddressType IpAddressType `type:"string" required:"true" enum:"true"`

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

func (SetIpAddressTypeInput) String

func (s SetIpAddressTypeInput) String() string

String returns the string representation

func (*SetIpAddressTypeInput) Validate

func (s *SetIpAddressTypeInput) Validate() error

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

type SetIpAddressTypeOutput

type SetIpAddressTypeOutput struct {

	// The IP address type.
	IpAddressType IpAddressType `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (SetIpAddressTypeOutput) String

func (s SetIpAddressTypeOutput) String() string

String returns the string representation

type SetIpAddressTypeRequest

type SetIpAddressTypeRequest struct {
	*aws.Request
	Input *SetIpAddressTypeInput
	Copy  func(*SetIpAddressTypeInput) SetIpAddressTypeRequest
}

SetIpAddressTypeRequest is the request type for the SetIpAddressType API operation.

func (SetIpAddressTypeRequest) Send

Send marshals and sends the SetIpAddressType API request.

type SetIpAddressTypeResponse

type SetIpAddressTypeResponse struct {
	*SetIpAddressTypeOutput
	// contains filtered or unexported fields
}

SetIpAddressTypeResponse is the response type for the SetIpAddressType API operation.

func (*SetIpAddressTypeResponse) SDKResponseMetdata

func (r *SetIpAddressTypeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the SetIpAddressType request.

type SetRulePrioritiesInput

type SetRulePrioritiesInput struct {

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

func (SetRulePrioritiesInput) String

func (s SetRulePrioritiesInput) String() string

String returns the string representation

func (*SetRulePrioritiesInput) Validate

func (s *SetRulePrioritiesInput) Validate() error

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

type SetRulePrioritiesOutput

type SetRulePrioritiesOutput struct {

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

func (SetRulePrioritiesOutput) String

func (s SetRulePrioritiesOutput) String() string

String returns the string representation

type SetRulePrioritiesRequest

type SetRulePrioritiesRequest struct {
	*aws.Request
	Input *SetRulePrioritiesInput
	Copy  func(*SetRulePrioritiesInput) SetRulePrioritiesRequest
}

SetRulePrioritiesRequest is the request type for the SetRulePriorities API operation.

func (SetRulePrioritiesRequest) Send

Send marshals and sends the SetRulePriorities API request.

type SetRulePrioritiesResponse

type SetRulePrioritiesResponse struct {
	*SetRulePrioritiesOutput
	// contains filtered or unexported fields
}

SetRulePrioritiesResponse is the response type for the SetRulePriorities API operation.

func (*SetRulePrioritiesResponse) SDKResponseMetdata

func (r *SetRulePrioritiesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the SetRulePriorities request.

type SetSecurityGroupsInput

type SetSecurityGroupsInput struct {

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

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

func (SetSecurityGroupsInput) String

func (s SetSecurityGroupsInput) String() string

String returns the string representation

func (*SetSecurityGroupsInput) Validate

func (s *SetSecurityGroupsInput) Validate() error

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

type SetSecurityGroupsOutput

type SetSecurityGroupsOutput struct {

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

func (SetSecurityGroupsOutput) String

func (s SetSecurityGroupsOutput) String() string

String returns the string representation

type SetSecurityGroupsRequest

type SetSecurityGroupsRequest struct {
	*aws.Request
	Input *SetSecurityGroupsInput
	Copy  func(*SetSecurityGroupsInput) SetSecurityGroupsRequest
}

SetSecurityGroupsRequest is the request type for the SetSecurityGroups API operation.

func (SetSecurityGroupsRequest) Send

Send marshals and sends the SetSecurityGroups API request.

type SetSecurityGroupsResponse

type SetSecurityGroupsResponse struct {
	*SetSecurityGroupsOutput
	// contains filtered or unexported fields
}

SetSecurityGroupsResponse is the response type for the SetSecurityGroups API operation.

func (*SetSecurityGroupsResponse) SDKResponseMetdata

func (r *SetSecurityGroupsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the SetSecurityGroups request.

type SetSubnetsInput

type SetSubnetsInput struct {

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

	// The IDs of the public subnets. You can specify only one subnet per Availability
	// Zone. You must specify either subnets or subnet mappings.
	//
	// [Application Load Balancers] You must specify subnets from at least two Availability
	// Zones. You cannot specify Elastic IP addresses for your subnets.
	//
	// [Network Load Balancers] You can specify subnets from one or more Availability
	// Zones. If you need static IP addresses for your internet-facing load balancer,
	// you can specify one Elastic IP address per subnet. For internal load balancers,
	// you can specify one private IP address per subnet from the IPv4 range of
	// the subnet.
	SubnetMappings []SubnetMapping `type:"list"`

	// The IDs of the public subnets. You must specify subnets from at least two
	// Availability Zones. You can specify only one subnet per Availability Zone.
	// You must specify either subnets or subnet mappings.
	Subnets []string `type:"list"`
	// contains filtered or unexported fields
}

func (SetSubnetsInput) String

func (s SetSubnetsInput) String() string

String returns the string representation

func (*SetSubnetsInput) Validate

func (s *SetSubnetsInput) Validate() error

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

type SetSubnetsOutput

type SetSubnetsOutput struct {

	// Information about the subnet and Availability Zone.
	AvailabilityZones []AvailabilityZone `type:"list"`
	// contains filtered or unexported fields
}

func (SetSubnetsOutput) String

func (s SetSubnetsOutput) String() string

String returns the string representation

type SetSubnetsRequest

type SetSubnetsRequest struct {
	*aws.Request
	Input *SetSubnetsInput
	Copy  func(*SetSubnetsInput) SetSubnetsRequest
}

SetSubnetsRequest is the request type for the SetSubnets API operation.

func (SetSubnetsRequest) Send

Send marshals and sends the SetSubnets API request.

type SetSubnetsResponse

type SetSubnetsResponse struct {
	*SetSubnetsOutput
	// contains filtered or unexported fields
}

SetSubnetsResponse is the response type for the SetSubnets API operation.

func (*SetSubnetsResponse) SDKResponseMetdata

func (r *SetSubnetsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the SetSubnets request.

type SourceIpConditionConfig

type SourceIpConditionConfig struct {

	// One or more source IP addresses, in CIDR format. You can use both IPv4 and
	// IPv6 addresses. Wildcards are not supported.
	//
	// If you specify multiple addresses, the condition is satisfied if the source
	// IP address of the request matches one of the CIDR blocks. This condition
	// is not satisfied by the addresses in the X-Forwarded-For header. To search
	// for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig.
	Values []string `type:"list"`
	// contains filtered or unexported fields
}

Information about a source IP condition.

You can use this condition to route based on the IP address of the source that connects to the load balancer. If a client is behind a proxy, this is the IP address of the proxy not the IP address of the client.

func (SourceIpConditionConfig) String

func (s SourceIpConditionConfig) String() string

String returns the string representation

type SslPolicy

type SslPolicy struct {

	// The ciphers.
	Ciphers []Cipher `type:"list"`

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

	// The protocols.
	SslProtocols []string `type:"list"`
	// contains filtered or unexported fields
}

Information about a policy used for SSL negotiation.

func (SslPolicy) String

func (s SslPolicy) String() string

String returns the string representation

type SubnetMapping

type SubnetMapping struct {

	// [Network Load Balancers] The allocation ID of the Elastic IP address for
	// an internet-facing load balancer.
	AllocationId *string `type:"string"`

	// [Network Load Balancers] The private IPv4 address for an internal load balancer.
	PrivateIPv4Address *string `type:"string"`

	// The ID of the subnet.
	SubnetId *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a subnet mapping.

func (SubnetMapping) String

func (s SubnetMapping) String() string

String returns the string representation

type Tag

type Tag struct {

	// The key of the tag.
	//
	// Key is a required field
	Key *string `min:"1" type:"string" required:"true"`

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

Information about a tag.

func (Tag) String

func (s Tag) String() string

String returns the string representation

func (*Tag) Validate

func (s *Tag) Validate() error

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

type TagDescription

type TagDescription struct {

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

	// Information about the tags.
	Tags []Tag `min:"1" type:"list"`
	// contains filtered or unexported fields
}

The tags associated with a resource.

func (TagDescription) String

func (s TagDescription) String() string

String returns the string representation

type TargetDescription

type TargetDescription struct {

	// An Availability Zone or all. This determines whether the target receives
	// traffic from the load balancer nodes in the specified Availability Zone or
	// from all enabled Availability Zones for the load balancer.
	//
	// This parameter is not supported if the target type of the target group is
	// instance.
	//
	// If the target type is ip and the IP address is in a subnet of the VPC for
	// the target group, the Availability Zone is automatically detected and this
	// parameter is optional. If the IP address is outside the VPC, this parameter
	// is required.
	//
	// With an Application Load Balancer, if the target type is ip and the IP address
	// is outside the VPC for the target group, the only supported value is all.
	//
	// If the target type is lambda, this parameter is optional and the only supported
	// value is all.
	AvailabilityZone *string `type:"string"`

	// The ID of the target. If the target type of the target group is instance,
	// specify an instance ID. If the target type is ip, specify an IP address.
	// If the target type is lambda, specify the ARN of the Lambda function.
	//
	// Id is a required field
	Id *string `type:"string" required:"true"`

	// The port on which the target is listening. Not used if the target is a Lambda
	// function.
	Port *int64 `min:"1" type:"integer"`
	// contains filtered or unexported fields
}

Information about a target.

func (TargetDescription) String

func (s TargetDescription) String() string

String returns the string representation

func (*TargetDescription) Validate

func (s *TargetDescription) Validate() error

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

type TargetGroup

type TargetGroup struct {

	// Indicates whether health checks are enabled.
	HealthCheckEnabled *bool `type:"boolean"`

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

	// The destination for the health check request.
	HealthCheckPath *string `min:"1" type:"string"`

	// The port to use to connect with the target.
	HealthCheckPort *string `type:"string"`

	// The protocol to use to connect with the target.
	HealthCheckProtocol ProtocolEnum `type:"string" enum:"true"`

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

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

	// The Amazon Resource Names (ARN) of the load balancers that route traffic
	// to this target group.
	LoadBalancerArns []string `type:"list"`

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

	// The port on which the targets are listening. Not used if the target is a
	// Lambda function.
	Port *int64 `min:"1" type:"integer"`

	// The protocol to use for routing traffic to the targets.
	Protocol ProtocolEnum `type:"string" enum:"true"`

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

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

	// The type of target that you must specify when registering targets with this
	// target group. The possible values are instance (targets are specified by
	// instance ID) or ip (targets are specified by IP address).
	TargetType TargetTypeEnum `type:"string" enum:"true"`

	// The number of consecutive health check failures required before considering
	// the target unhealthy.
	UnhealthyThresholdCount *int64 `min:"2" type:"integer"`

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

Information about a target group.

func (TargetGroup) String

func (s TargetGroup) String() string

String returns the string representation

type TargetGroupAttribute

type TargetGroupAttribute struct {

	// The name of the attribute.
	//
	// The following attributes are supported by both Application Load Balancers
	// and Network Load Balancers:
	//
	//    * deregistration_delay.timeout_seconds - The amount of time, in seconds,
	//    for Elastic Load Balancing to wait before changing the state of a deregistering
	//    target from draining to unused. The range is 0-3600 seconds. The default
	//    value is 300 seconds. If the target is a Lambda function, this attribute
	//    is not supported.
	//
	//    * stickiness.enabled - Indicates whether sticky sessions are enabled.
	//    The value is true or false. The default is false.
	//
	//    * stickiness.type - The type of sticky sessions. The possible values are
	//    lb_cookie for Application Load Balancers or source_ip for Network Load
	//    Balancers.
	//
	// The following attributes are supported only if the load balancer is an Application
	// Load Balancer and the target is an instance or an IP address:
	//
	//    * load_balancing.algorithm.type - The load balancing algorithm determines
	//    how the load balancer selects targets when routing requests. The value
	//    is round_robin or least_outstanding_requests. The default is round_robin.
	//
	//    * slow_start.duration_seconds - The time period, in seconds, during which
	//    a newly registered target receives an increasing share of the traffic
	//    to the target group. After this time period ends, the target receives
	//    its full share of traffic. The range is 30-900 seconds (15 minutes). Slow
	//    start mode is disabled by default.
	//
	//    * stickiness.lb_cookie.duration_seconds - The time period, in seconds,
	//    during which requests from a client should be routed to the same target.
	//    After this time period expires, the load balancer-generated cookie is
	//    considered stale. The range is 1 second to 1 week (604800 seconds). The
	//    default value is 1 day (86400 seconds).
	//
	// The following attribute is supported only if the load balancer is an Application
	// Load Balancer and the target is a Lambda function:
	//
	//    * lambda.multi_value_headers.enabled - Indicates whether the request and
	//    response headers that are exchanged between the load balancer and the
	//    Lambda function include arrays of values or strings. The value is true
	//    or false. The default is false. If the value is false and the request
	//    contains a duplicate header field name or query parameter key, the load
	//    balancer uses the last value sent by the client.
	//
	// The following attribute is supported only by Network Load Balancers:
	//
	//    * proxy_protocol_v2.enabled - Indicates whether Proxy Protocol version
	//    2 is enabled. The value is true or false. The default is false.
	Key *string `type:"string"`

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

Information about a target group attribute.

func (TargetGroupAttribute) String

func (s TargetGroupAttribute) String() string

String returns the string representation

type TargetGroupStickinessConfig added in v0.17.0

type TargetGroupStickinessConfig struct {

	// The time period, in seconds, during which requests from a client should be
	// routed to the same target group. The range is 1-604800 seconds (7 days).
	DurationSeconds *int64 `type:"integer"`

	// Indicates whether target group stickiness is enabled.
	Enabled *bool `type:"boolean"`
	// contains filtered or unexported fields
}

Information about the target group stickiness for a rule.

func (TargetGroupStickinessConfig) String added in v0.17.0

String returns the string representation

type TargetGroupTuple added in v0.17.0

type TargetGroupTuple struct {

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

	// The weight. The range is 0 to 999.
	Weight *int64 `type:"integer"`
	// contains filtered or unexported fields
}

Information about how traffic will be distributed between multiple target groups in a forward rule.

func (TargetGroupTuple) String added in v0.17.0

func (s TargetGroupTuple) String() string

String returns the string representation

type TargetHealth

type TargetHealth struct {

	// A description of the target health that provides additional details. If the
	// state is healthy, a description is not provided.
	Description *string `type:"string"`

	// The reason code.
	//
	// If the target state is healthy, a reason code is not provided.
	//
	// If the target state is initial, the reason code can be one of the following
	// values:
	//
	//    * Elb.RegistrationInProgress - The target is in the process of being registered
	//    with the load balancer.
	//
	//    * Elb.InitialHealthChecking - The load balancer is still sending the target
	//    the minimum number of health checks required to determine its health status.
	//
	// If the target state is unhealthy, the reason code can be one of the following
	// values:
	//
	//    * Target.ResponseCodeMismatch - The health checks did not return an expected
	//    HTTP code. Applies only to Application Load Balancers.
	//
	//    * Target.Timeout - The health check requests timed out. Applies only to
	//    Application Load Balancers.
	//
	//    * Target.FailedHealthChecks - The load balancer received an error while
	//    establishing a connection to the target or the target response was malformed.
	//
	//    * Elb.InternalError - The health checks failed due to an internal error.
	//    Applies only to Application Load Balancers.
	//
	// If the target state is unused, the reason code can be one of the following
	// values:
	//
	//    * Target.NotRegistered - The target is not registered with the target
	//    group.
	//
	//    * Target.NotInUse - The target group is not used by any load balancer
	//    or the target is in an Availability Zone that is not enabled for its load
	//    balancer.
	//
	//    * Target.InvalidState - The target is in the stopped or terminated state.
	//
	//    * Target.IpUnusable - The target IP address is reserved for use by a load
	//    balancer.
	//
	// If the target state is draining, the reason code can be the following value:
	//
	//    * Target.DeregistrationInProgress - The target is in the process of being
	//    deregistered and the deregistration delay period has not expired.
	//
	// If the target state is unavailable, the reason code can be the following
	// value:
	//
	//    * Target.HealthCheckDisabled - Health checks are disabled for the target
	//    group. Applies only to Application Load Balancers.
	//
	//    * Elb.InternalError - Target health is unavailable due to an internal
	//    error. Applies only to Network Load Balancers.
	Reason TargetHealthReasonEnum `type:"string" enum:"true"`

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

Information about the current health of a target.

func (TargetHealth) String

func (s TargetHealth) String() string

String returns the string representation

type TargetHealthDescription

type TargetHealthDescription struct {

	// The port to use to connect with the target.
	HealthCheckPort *string `type:"string"`

	// The description of the target.
	Target *TargetDescription `type:"structure"`

	// The health information for the target.
	TargetHealth *TargetHealth `type:"structure"`
	// contains filtered or unexported fields
}

Information about the health of a target.

func (TargetHealthDescription) String

func (s TargetHealthDescription) String() string

String returns the string representation

type TargetHealthReasonEnum

type TargetHealthReasonEnum string
const (
	TargetHealthReasonEnumElbRegistrationInProgress      TargetHealthReasonEnum = "Elb.RegistrationInProgress"
	TargetHealthReasonEnumElbInitialHealthChecking       TargetHealthReasonEnum = "Elb.InitialHealthChecking"
	TargetHealthReasonEnumTargetResponseCodeMismatch     TargetHealthReasonEnum = "Target.ResponseCodeMismatch"
	TargetHealthReasonEnumTargetTimeout                  TargetHealthReasonEnum = "Target.Timeout"
	TargetHealthReasonEnumTargetFailedHealthChecks       TargetHealthReasonEnum = "Target.FailedHealthChecks"
	TargetHealthReasonEnumTargetNotRegistered            TargetHealthReasonEnum = "Target.NotRegistered"
	TargetHealthReasonEnumTargetNotInUse                 TargetHealthReasonEnum = "Target.NotInUse"
	TargetHealthReasonEnumTargetDeregistrationInProgress TargetHealthReasonEnum = "Target.DeregistrationInProgress"
	TargetHealthReasonEnumTargetInvalidState             TargetHealthReasonEnum = "Target.InvalidState"
	TargetHealthReasonEnumTargetIpUnusable               TargetHealthReasonEnum = "Target.IpUnusable"
	TargetHealthReasonEnumTargetHealthCheckDisabled      TargetHealthReasonEnum = "Target.HealthCheckDisabled"
	TargetHealthReasonEnumElbInternalError               TargetHealthReasonEnum = "Elb.InternalError"
)

Enum values for TargetHealthReasonEnum

func (TargetHealthReasonEnum) MarshalValue

func (enum TargetHealthReasonEnum) MarshalValue() (string, error)

func (TargetHealthReasonEnum) MarshalValueBuf

func (enum TargetHealthReasonEnum) MarshalValueBuf(b []byte) ([]byte, error)

type TargetHealthStateEnum

type TargetHealthStateEnum string
const (
	TargetHealthStateEnumInitial     TargetHealthStateEnum = "initial"
	TargetHealthStateEnumHealthy     TargetHealthStateEnum = "healthy"
	TargetHealthStateEnumUnhealthy   TargetHealthStateEnum = "unhealthy"
	TargetHealthStateEnumUnused      TargetHealthStateEnum = "unused"
	TargetHealthStateEnumDraining    TargetHealthStateEnum = "draining"
	TargetHealthStateEnumUnavailable TargetHealthStateEnum = "unavailable"
)

Enum values for TargetHealthStateEnum

func (TargetHealthStateEnum) MarshalValue

func (enum TargetHealthStateEnum) MarshalValue() (string, error)

func (TargetHealthStateEnum) MarshalValueBuf

func (enum TargetHealthStateEnum) MarshalValueBuf(b []byte) ([]byte, error)

type TargetTypeEnum

type TargetTypeEnum string
const (
	TargetTypeEnumInstance TargetTypeEnum = "instance"
	TargetTypeEnumIp       TargetTypeEnum = "ip"
	TargetTypeEnumLambda   TargetTypeEnum = "lambda"
)

Enum values for TargetTypeEnum

func (TargetTypeEnum) MarshalValue

func (enum TargetTypeEnum) MarshalValue() (string, error)

func (TargetTypeEnum) MarshalValueBuf

func (enum TargetTypeEnum) MarshalValueBuf(b []byte) ([]byte, error)

Directories

Path Synopsis
Package elasticloadbalancingv2iface provides an interface to enable mocking the Elastic Load Balancing service client for testing your code.
Package elasticloadbalancingv2iface provides an interface to enable mocking the Elastic Load Balancing service client for testing your code.

Jump to

Keyboard shortcuts

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