aws-sdk-go: github.com/aws/aws-sdk-go/service/elbv2 Index | Examples | Files | Directories

package elbv2

import "github.com/aws/aws-sdk-go/service/elbv2"

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

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

Elastic Load Balancing supports the following types of load balancers: Application Load Balancers, Network Load Balancers, and Classic Load Balancers. 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 elbv2 package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/elbv2/

Using the Client

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

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

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

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

Index

Examples

Package Files

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

Constants

const (
    // ActionTypeEnumForward is a ActionTypeEnum enum value
    ActionTypeEnumForward = "forward"

    // ActionTypeEnumAuthenticateOidc is a ActionTypeEnum enum value
    ActionTypeEnumAuthenticateOidc = "authenticate-oidc"

    // ActionTypeEnumAuthenticateCognito is a ActionTypeEnum enum value
    ActionTypeEnumAuthenticateCognito = "authenticate-cognito"

    // ActionTypeEnumRedirect is a ActionTypeEnum enum value
    ActionTypeEnumRedirect = "redirect"

    // ActionTypeEnumFixedResponse is a ActionTypeEnum enum value
    ActionTypeEnumFixedResponse = "fixed-response"
)
const (
    // AuthenticateCognitoActionConditionalBehaviorEnumDeny is a AuthenticateCognitoActionConditionalBehaviorEnum enum value
    AuthenticateCognitoActionConditionalBehaviorEnumDeny = "deny"

    // AuthenticateCognitoActionConditionalBehaviorEnumAllow is a AuthenticateCognitoActionConditionalBehaviorEnum enum value
    AuthenticateCognitoActionConditionalBehaviorEnumAllow = "allow"

    // AuthenticateCognitoActionConditionalBehaviorEnumAuthenticate is a AuthenticateCognitoActionConditionalBehaviorEnum enum value
    AuthenticateCognitoActionConditionalBehaviorEnumAuthenticate = "authenticate"
)
const (
    // AuthenticateOidcActionConditionalBehaviorEnumDeny is a AuthenticateOidcActionConditionalBehaviorEnum enum value
    AuthenticateOidcActionConditionalBehaviorEnumDeny = "deny"

    // AuthenticateOidcActionConditionalBehaviorEnumAllow is a AuthenticateOidcActionConditionalBehaviorEnum enum value
    AuthenticateOidcActionConditionalBehaviorEnumAllow = "allow"

    // AuthenticateOidcActionConditionalBehaviorEnumAuthenticate is a AuthenticateOidcActionConditionalBehaviorEnum enum value
    AuthenticateOidcActionConditionalBehaviorEnumAuthenticate = "authenticate"
)
const (
    // IpAddressTypeIpv4 is a IpAddressType enum value
    IpAddressTypeIpv4 = "ipv4"

    // IpAddressTypeDualstack is a IpAddressType enum value
    IpAddressTypeDualstack = "dualstack"
)
const (
    // LoadBalancerSchemeEnumInternetFacing is a LoadBalancerSchemeEnum enum value
    LoadBalancerSchemeEnumInternetFacing = "internet-facing"

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

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

    // LoadBalancerStateEnumActiveImpaired is a LoadBalancerStateEnum enum value
    LoadBalancerStateEnumActiveImpaired = "active_impaired"

    // LoadBalancerStateEnumFailed is a LoadBalancerStateEnum enum value
    LoadBalancerStateEnumFailed = "failed"
)
const (
    // LoadBalancerTypeEnumApplication is a LoadBalancerTypeEnum enum value
    LoadBalancerTypeEnumApplication = "application"

    // LoadBalancerTypeEnumNetwork is a LoadBalancerTypeEnum enum value
    LoadBalancerTypeEnumNetwork = "network"
)
const (
    // ProtocolEnumHttp is a ProtocolEnum enum value
    ProtocolEnumHttp = "HTTP"

    // ProtocolEnumHttps is a ProtocolEnum enum value
    ProtocolEnumHttps = "HTTPS"

    // ProtocolEnumTcp is a ProtocolEnum enum value
    ProtocolEnumTcp = "TCP"

    // ProtocolEnumTls is a ProtocolEnum enum value
    ProtocolEnumTls = "TLS"

    // ProtocolEnumUdp is a ProtocolEnum enum value
    ProtocolEnumUdp = "UDP"

    // ProtocolEnumTcpUdp is a ProtocolEnum enum value
    ProtocolEnumTcpUdp = "TCP_UDP"
)
const (
    // RedirectActionStatusCodeEnumHttp301 is a RedirectActionStatusCodeEnum enum value
    RedirectActionStatusCodeEnumHttp301 = "HTTP_301"

    // RedirectActionStatusCodeEnumHttp302 is a RedirectActionStatusCodeEnum enum value
    RedirectActionStatusCodeEnumHttp302 = "HTTP_302"
)
const (
    // TargetHealthReasonEnumElbRegistrationInProgress is a TargetHealthReasonEnum enum value
    TargetHealthReasonEnumElbRegistrationInProgress = "Elb.RegistrationInProgress"

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

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

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

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

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

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

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

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

    // TargetHealthReasonEnumTargetIpUnusable is a TargetHealthReasonEnum enum value
    TargetHealthReasonEnumTargetIpUnusable = "Target.IpUnusable"

    // TargetHealthReasonEnumTargetHealthCheckDisabled is a TargetHealthReasonEnum enum value
    TargetHealthReasonEnumTargetHealthCheckDisabled = "Target.HealthCheckDisabled"

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

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

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

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

    // TargetHealthStateEnumDraining is a TargetHealthStateEnum enum value
    TargetHealthStateEnumDraining = "draining"

    // TargetHealthStateEnumUnavailable is a TargetHealthStateEnum enum value
    TargetHealthStateEnumUnavailable = "unavailable"
)
const (
    // TargetTypeEnumInstance is a TargetTypeEnum enum value
    TargetTypeEnumInstance = "instance"

    // TargetTypeEnumIp is a TargetTypeEnum enum value
    TargetTypeEnumIp = "ip"

    // TargetTypeEnumLambda is a TargetTypeEnum enum value
    TargetTypeEnumLambda = "lambda"
)
const (

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

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

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

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

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

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

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

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

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

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

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

    // ErrCodeUnsupportedProtocolException for service response error code
    // "UnsupportedProtocol".
    //
    // The specified protocol is not supported.
    ErrCodeUnsupportedProtocolException = "UnsupportedProtocol"
)
const (
    ServiceName = "elasticloadbalancing"      // Name of service.
    EndpointsID = ServiceName                 // ID to lookup a service endpoint with.
    ServiceID   = "Elastic Load Balancing v2" // ServiceID is a unique identifer of a specific service.
)

Service information constants

type Action Uses

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

    // 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
    // final action to be performed must be a forward or a fixed-response action.
    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.
    TargetGroupArn *string `type:"string"`

    // The type of action. Each rule must include exactly one of the following types
    // of actions: forward, fixed-response, or redirect.
    //
    // Type is a required field
    Type *string `type:"string" required:"true" enum:"ActionTypeEnum"`
    // contains filtered or unexported fields
}

Information about an action.

func (Action) GoString Uses

func (s Action) GoString() string

GoString returns the string representation

func (*Action) SetAuthenticateCognitoConfig Uses

func (s *Action) SetAuthenticateCognitoConfig(v *AuthenticateCognitoActionConfig) *Action

SetAuthenticateCognitoConfig sets the AuthenticateCognitoConfig field's value.

func (*Action) SetAuthenticateOidcConfig Uses

func (s *Action) SetAuthenticateOidcConfig(v *AuthenticateOidcActionConfig) *Action

SetAuthenticateOidcConfig sets the AuthenticateOidcConfig field's value.

func (*Action) SetFixedResponseConfig Uses

func (s *Action) SetFixedResponseConfig(v *FixedResponseActionConfig) *Action

SetFixedResponseConfig sets the FixedResponseConfig field's value.

func (*Action) SetOrder Uses

func (s *Action) SetOrder(v int64) *Action

SetOrder sets the Order field's value.

func (*Action) SetRedirectConfig Uses

func (s *Action) SetRedirectConfig(v *RedirectActionConfig) *Action

SetRedirectConfig sets the RedirectConfig field's value.

func (*Action) SetTargetGroupArn Uses

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

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*Action) SetType Uses

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

SetType sets the Type field's value.

func (Action) String Uses

func (s Action) String() string

String returns the string representation

func (*Action) Validate Uses

func (s *Action) Validate() error

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

type AddListenerCertificatesInput Uses

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) GoString Uses

func (s AddListenerCertificatesInput) GoString() string

GoString returns the string representation

func (*AddListenerCertificatesInput) SetCertificates Uses

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

SetCertificates sets the Certificates field's value.

func (*AddListenerCertificatesInput) SetListenerArn Uses

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

SetListenerArn sets the ListenerArn field's value.

func (AddListenerCertificatesInput) String Uses

func (s AddListenerCertificatesInput) String() string

String returns the string representation

func (*AddListenerCertificatesInput) Validate Uses

func (s *AddListenerCertificatesInput) Validate() error

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

type AddListenerCertificatesOutput Uses

type AddListenerCertificatesOutput struct {

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

func (AddListenerCertificatesOutput) GoString Uses

func (s AddListenerCertificatesOutput) GoString() string

GoString returns the string representation

func (*AddListenerCertificatesOutput) SetCertificates Uses

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

SetCertificates sets the Certificates field's value.

func (AddListenerCertificatesOutput) String Uses

func (s AddListenerCertificatesOutput) String() string

String returns the string representation

type AddTagsInput Uses

type AddTagsInput struct {

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

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

func (AddTagsInput) GoString Uses

func (s AddTagsInput) GoString() string

GoString returns the string representation

func (*AddTagsInput) SetResourceArns Uses

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

SetResourceArns sets the ResourceArns field's value.

func (*AddTagsInput) SetTags Uses

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

SetTags sets the Tags field's value.

func (AddTagsInput) String Uses

func (s AddTagsInput) String() string

String returns the string representation

func (*AddTagsInput) Validate Uses

func (s *AddTagsInput) Validate() error

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

type AddTagsOutput Uses

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

func (AddTagsOutput) GoString Uses

func (s AddTagsOutput) GoString() string

GoString returns the string representation

func (AddTagsOutput) String Uses

func (s AddTagsOutput) String() string

String returns the string representation

type AuthenticateCognitoActionConfig Uses

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

    // 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) GoString Uses

func (s AuthenticateCognitoActionConfig) GoString() string

GoString returns the string representation

func (*AuthenticateCognitoActionConfig) SetAuthenticationRequestExtraParams Uses

func (s *AuthenticateCognitoActionConfig) SetAuthenticationRequestExtraParams(v map[string]*string) *AuthenticateCognitoActionConfig

SetAuthenticationRequestExtraParams sets the AuthenticationRequestExtraParams field's value.

func (*AuthenticateCognitoActionConfig) SetOnUnauthenticatedRequest Uses

func (s *AuthenticateCognitoActionConfig) SetOnUnauthenticatedRequest(v string) *AuthenticateCognitoActionConfig

SetOnUnauthenticatedRequest sets the OnUnauthenticatedRequest field's value.

func (*AuthenticateCognitoActionConfig) SetScope Uses

func (s *AuthenticateCognitoActionConfig) SetScope(v string) *AuthenticateCognitoActionConfig

SetScope sets the Scope field's value.

func (*AuthenticateCognitoActionConfig) SetSessionCookieName Uses

func (s *AuthenticateCognitoActionConfig) SetSessionCookieName(v string) *AuthenticateCognitoActionConfig

SetSessionCookieName sets the SessionCookieName field's value.

func (*AuthenticateCognitoActionConfig) SetSessionTimeout Uses

func (s *AuthenticateCognitoActionConfig) SetSessionTimeout(v int64) *AuthenticateCognitoActionConfig

SetSessionTimeout sets the SessionTimeout field's value.

func (*AuthenticateCognitoActionConfig) SetUserPoolArn Uses

func (s *AuthenticateCognitoActionConfig) SetUserPoolArn(v string) *AuthenticateCognitoActionConfig

SetUserPoolArn sets the UserPoolArn field's value.

func (*AuthenticateCognitoActionConfig) SetUserPoolClientId Uses

func (s *AuthenticateCognitoActionConfig) SetUserPoolClientId(v string) *AuthenticateCognitoActionConfig

SetUserPoolClientId sets the UserPoolClientId field's value.

func (*AuthenticateCognitoActionConfig) SetUserPoolDomain Uses

func (s *AuthenticateCognitoActionConfig) SetUserPoolDomain(v string) *AuthenticateCognitoActionConfig

SetUserPoolDomain sets the UserPoolDomain field's value.

func (AuthenticateCognitoActionConfig) String Uses

func (s AuthenticateCognitoActionConfig) String() string

String returns the string representation

func (*AuthenticateCognitoActionConfig) Validate Uses

func (s *AuthenticateCognitoActionConfig) Validate() error

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

type AuthenticateOidcActionConfig Uses

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

    // 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) GoString Uses

func (s AuthenticateOidcActionConfig) GoString() string

GoString returns the string representation

func (*AuthenticateOidcActionConfig) SetAuthenticationRequestExtraParams Uses

func (s *AuthenticateOidcActionConfig) SetAuthenticationRequestExtraParams(v map[string]*string) *AuthenticateOidcActionConfig

SetAuthenticationRequestExtraParams sets the AuthenticationRequestExtraParams field's value.

func (*AuthenticateOidcActionConfig) SetAuthorizationEndpoint Uses

func (s *AuthenticateOidcActionConfig) SetAuthorizationEndpoint(v string) *AuthenticateOidcActionConfig

SetAuthorizationEndpoint sets the AuthorizationEndpoint field's value.

func (*AuthenticateOidcActionConfig) SetClientId Uses

func (s *AuthenticateOidcActionConfig) SetClientId(v string) *AuthenticateOidcActionConfig

SetClientId sets the ClientId field's value.

func (*AuthenticateOidcActionConfig) SetClientSecret Uses

func (s *AuthenticateOidcActionConfig) SetClientSecret(v string) *AuthenticateOidcActionConfig

SetClientSecret sets the ClientSecret field's value.

func (*AuthenticateOidcActionConfig) SetIssuer Uses

func (s *AuthenticateOidcActionConfig) SetIssuer(v string) *AuthenticateOidcActionConfig

SetIssuer sets the Issuer field's value.

func (*AuthenticateOidcActionConfig) SetOnUnauthenticatedRequest Uses

func (s *AuthenticateOidcActionConfig) SetOnUnauthenticatedRequest(v string) *AuthenticateOidcActionConfig

SetOnUnauthenticatedRequest sets the OnUnauthenticatedRequest field's value.

func (*AuthenticateOidcActionConfig) SetScope Uses

func (s *AuthenticateOidcActionConfig) SetScope(v string) *AuthenticateOidcActionConfig

SetScope sets the Scope field's value.

func (*AuthenticateOidcActionConfig) SetSessionCookieName Uses

func (s *AuthenticateOidcActionConfig) SetSessionCookieName(v string) *AuthenticateOidcActionConfig

SetSessionCookieName sets the SessionCookieName field's value.

func (*AuthenticateOidcActionConfig) SetSessionTimeout Uses

func (s *AuthenticateOidcActionConfig) SetSessionTimeout(v int64) *AuthenticateOidcActionConfig

SetSessionTimeout sets the SessionTimeout field's value.

func (*AuthenticateOidcActionConfig) SetTokenEndpoint Uses

func (s *AuthenticateOidcActionConfig) SetTokenEndpoint(v string) *AuthenticateOidcActionConfig

SetTokenEndpoint sets the TokenEndpoint field's value.

func (*AuthenticateOidcActionConfig) SetUseExistingClientSecret Uses

func (s *AuthenticateOidcActionConfig) SetUseExistingClientSecret(v bool) *AuthenticateOidcActionConfig

SetUseExistingClientSecret sets the UseExistingClientSecret field's value.

func (*AuthenticateOidcActionConfig) SetUserInfoEndpoint Uses

func (s *AuthenticateOidcActionConfig) SetUserInfoEndpoint(v string) *AuthenticateOidcActionConfig

SetUserInfoEndpoint sets the UserInfoEndpoint field's value.

func (AuthenticateOidcActionConfig) String Uses

func (s AuthenticateOidcActionConfig) String() string

String returns the string representation

func (*AuthenticateOidcActionConfig) Validate Uses

func (s *AuthenticateOidcActionConfig) Validate() error

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

type AvailabilityZone Uses

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
    // the load balancer.
    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) GoString Uses

func (s AvailabilityZone) GoString() string

GoString returns the string representation

func (*AvailabilityZone) SetLoadBalancerAddresses Uses

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

SetLoadBalancerAddresses sets the LoadBalancerAddresses field's value.

func (*AvailabilityZone) SetSubnetId Uses

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

SetSubnetId sets the SubnetId field's value.

func (*AvailabilityZone) SetZoneName Uses

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

SetZoneName sets the ZoneName field's value.

func (AvailabilityZone) String Uses

func (s AvailabilityZone) String() string

String returns the string representation

type Certificate Uses

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) GoString Uses

func (s Certificate) GoString() string

GoString returns the string representation

func (*Certificate) SetCertificateArn Uses

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

SetCertificateArn sets the CertificateArn field's value.

func (*Certificate) SetIsDefault Uses

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

SetIsDefault sets the IsDefault field's value.

func (Certificate) String Uses

func (s Certificate) String() string

String returns the string representation

type Cipher Uses

type Cipher struct {

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

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

Information about a cipher used in a policy.

func (Cipher) GoString Uses

func (s Cipher) GoString() string

GoString returns the string representation

func (*Cipher) SetName Uses

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

SetName sets the Name field's value.

func (*Cipher) SetPriority Uses

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

SetPriority sets the Priority field's value.

func (Cipher) String Uses

func (s Cipher) String() string

String returns the string representation

type CreateListenerInput Uses

type CreateListenerInput struct {

    // [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 a target group. 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 *string `type:"string" required:"true" enum:"ProtocolEnum"`

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

func (CreateListenerInput) GoString Uses

func (s CreateListenerInput) GoString() string

GoString returns the string representation

func (*CreateListenerInput) SetCertificates Uses

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

SetCertificates sets the Certificates field's value.

func (*CreateListenerInput) SetDefaultActions Uses

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

SetDefaultActions sets the DefaultActions field's value.

func (*CreateListenerInput) SetLoadBalancerArn Uses

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*CreateListenerInput) SetPort Uses

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

SetPort sets the Port field's value.

func (*CreateListenerInput) SetProtocol Uses

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

SetProtocol sets the Protocol field's value.

func (*CreateListenerInput) SetSslPolicy Uses

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

SetSslPolicy sets the SslPolicy field's value.

func (CreateListenerInput) String Uses

func (s CreateListenerInput) String() string

String returns the string representation

func (*CreateListenerInput) Validate Uses

func (s *CreateListenerInput) Validate() error

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

type CreateListenerOutput Uses

type CreateListenerOutput struct {

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

func (CreateListenerOutput) GoString Uses

func (s CreateListenerOutput) GoString() string

GoString returns the string representation

func (*CreateListenerOutput) SetListeners Uses

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

SetListeners sets the Listeners field's value.

func (CreateListenerOutput) String Uses

func (s CreateListenerOutput) String() string

String returns the string representation

type CreateLoadBalancerInput Uses

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

    // 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 only route
    // requests from clients with access to the VPC for the load balancer.
    //
    // The default is an Internet-facing load balancer.
    Scheme *string `type:"string" enum:"LoadBalancerSchemeEnum"`

    // [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 load balancer.
    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 *string `type:"string" enum:"LoadBalancerTypeEnum"`
    // contains filtered or unexported fields
}

func (CreateLoadBalancerInput) GoString Uses

func (s CreateLoadBalancerInput) GoString() string

GoString returns the string representation

func (*CreateLoadBalancerInput) SetIpAddressType Uses

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

SetIpAddressType sets the IpAddressType field's value.

func (*CreateLoadBalancerInput) SetName Uses

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

SetName sets the Name field's value.

func (*CreateLoadBalancerInput) SetScheme Uses

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

SetScheme sets the Scheme field's value.

func (*CreateLoadBalancerInput) SetSecurityGroups Uses

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

SetSecurityGroups sets the SecurityGroups field's value.

func (*CreateLoadBalancerInput) SetSubnetMappings Uses

func (s *CreateLoadBalancerInput) SetSubnetMappings(v []*SubnetMapping) *CreateLoadBalancerInput

SetSubnetMappings sets the SubnetMappings field's value.

func (*CreateLoadBalancerInput) SetSubnets Uses

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

SetSubnets sets the Subnets field's value.

func (*CreateLoadBalancerInput) SetTags Uses

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

SetTags sets the Tags field's value.

func (*CreateLoadBalancerInput) SetType Uses

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

SetType sets the Type field's value.

func (CreateLoadBalancerInput) String Uses

func (s CreateLoadBalancerInput) String() string

String returns the string representation

func (*CreateLoadBalancerInput) Validate Uses

func (s *CreateLoadBalancerInput) Validate() error

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

type CreateLoadBalancerOutput Uses

type CreateLoadBalancerOutput struct {

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

func (CreateLoadBalancerOutput) GoString Uses

func (s CreateLoadBalancerOutput) GoString() string

GoString returns the string representation

func (*CreateLoadBalancerOutput) SetLoadBalancers Uses

func (s *CreateLoadBalancerOutput) SetLoadBalancers(v []*LoadBalancer) *CreateLoadBalancerOutput

SetLoadBalancers sets the LoadBalancers field's value.

func (CreateLoadBalancerOutput) String Uses

func (s CreateLoadBalancerOutput) String() string

String returns the string representation

type CreateRuleInput Uses

type CreateRuleInput struct {

    // The actions. Each rule must include exactly one of the following types of
    // actions: forward, fixed-response, or redirect.
    //
    // If the action type is forward, you specify a target group. 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) GoString Uses

func (s CreateRuleInput) GoString() string

GoString returns the string representation

func (*CreateRuleInput) SetActions Uses

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

SetActions sets the Actions field's value.

func (*CreateRuleInput) SetConditions Uses

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

SetConditions sets the Conditions field's value.

func (*CreateRuleInput) SetListenerArn Uses

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

SetListenerArn sets the ListenerArn field's value.

func (*CreateRuleInput) SetPriority Uses

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

SetPriority sets the Priority field's value.

func (CreateRuleInput) String Uses

func (s CreateRuleInput) String() string

String returns the string representation

func (*CreateRuleInput) Validate Uses

func (s *CreateRuleInput) Validate() error

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

type CreateRuleOutput Uses

type CreateRuleOutput struct {

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

func (CreateRuleOutput) GoString Uses

func (s CreateRuleOutput) GoString() string

GoString returns the string representation

func (*CreateRuleOutput) SetRules Uses

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

SetRules sets the Rules field's value.

func (CreateRuleOutput) String Uses

func (s CreateRuleOutput) String() string

String returns the string representation

type CreateTargetGroupInput Uses

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

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

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

    // 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) GoString Uses

func (s CreateTargetGroupInput) GoString() string

GoString returns the string representation

func (*CreateTargetGroupInput) SetHealthCheckEnabled Uses

func (s *CreateTargetGroupInput) SetHealthCheckEnabled(v bool) *CreateTargetGroupInput

SetHealthCheckEnabled sets the HealthCheckEnabled field's value.

func (*CreateTargetGroupInput) SetHealthCheckIntervalSeconds Uses

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

SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value.

func (*CreateTargetGroupInput) SetHealthCheckPath Uses

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

SetHealthCheckPath sets the HealthCheckPath field's value.

func (*CreateTargetGroupInput) SetHealthCheckPort Uses

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

SetHealthCheckPort sets the HealthCheckPort field's value.

func (*CreateTargetGroupInput) SetHealthCheckProtocol Uses

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

SetHealthCheckProtocol sets the HealthCheckProtocol field's value.

func (*CreateTargetGroupInput) SetHealthCheckTimeoutSeconds Uses

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

SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value.

func (*CreateTargetGroupInput) SetHealthyThresholdCount Uses

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

SetHealthyThresholdCount sets the HealthyThresholdCount field's value.

func (*CreateTargetGroupInput) SetMatcher Uses

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

SetMatcher sets the Matcher field's value.

func (*CreateTargetGroupInput) SetName Uses

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

SetName sets the Name field's value.

func (*CreateTargetGroupInput) SetPort Uses

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

SetPort sets the Port field's value.

func (*CreateTargetGroupInput) SetProtocol Uses

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

SetProtocol sets the Protocol field's value.

func (*CreateTargetGroupInput) SetTargetType Uses

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

SetTargetType sets the TargetType field's value.

func (*CreateTargetGroupInput) SetUnhealthyThresholdCount Uses

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

SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value.

func (*CreateTargetGroupInput) SetVpcId Uses

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

SetVpcId sets the VpcId field's value.

func (CreateTargetGroupInput) String Uses

func (s CreateTargetGroupInput) String() string

String returns the string representation

func (*CreateTargetGroupInput) Validate Uses

func (s *CreateTargetGroupInput) Validate() error

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

type CreateTargetGroupOutput Uses

type CreateTargetGroupOutput struct {

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

func (CreateTargetGroupOutput) GoString Uses

func (s CreateTargetGroupOutput) GoString() string

GoString returns the string representation

func (*CreateTargetGroupOutput) SetTargetGroups Uses

func (s *CreateTargetGroupOutput) SetTargetGroups(v []*TargetGroup) *CreateTargetGroupOutput

SetTargetGroups sets the TargetGroups field's value.

func (CreateTargetGroupOutput) String Uses

func (s CreateTargetGroupOutput) String() string

String returns the string representation

type DeleteListenerInput Uses

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) GoString Uses

func (s DeleteListenerInput) GoString() string

GoString returns the string representation

func (*DeleteListenerInput) SetListenerArn Uses

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

SetListenerArn sets the ListenerArn field's value.

func (DeleteListenerInput) String Uses

func (s DeleteListenerInput) String() string

String returns the string representation

func (*DeleteListenerInput) Validate Uses

func (s *DeleteListenerInput) Validate() error

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

type DeleteListenerOutput Uses

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

func (DeleteListenerOutput) GoString Uses

func (s DeleteListenerOutput) GoString() string

GoString returns the string representation

func (DeleteListenerOutput) String Uses

func (s DeleteListenerOutput) String() string

String returns the string representation

type DeleteLoadBalancerInput Uses

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) GoString Uses

func (s DeleteLoadBalancerInput) GoString() string

GoString returns the string representation

func (*DeleteLoadBalancerInput) SetLoadBalancerArn Uses

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (DeleteLoadBalancerInput) String Uses

func (s DeleteLoadBalancerInput) String() string

String returns the string representation

func (*DeleteLoadBalancerInput) Validate Uses

func (s *DeleteLoadBalancerInput) Validate() error

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

type DeleteLoadBalancerOutput Uses

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

func (DeleteLoadBalancerOutput) GoString Uses

func (s DeleteLoadBalancerOutput) GoString() string

GoString returns the string representation

func (DeleteLoadBalancerOutput) String Uses

func (s DeleteLoadBalancerOutput) String() string

String returns the string representation

type DeleteRuleInput Uses

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) GoString Uses

func (s DeleteRuleInput) GoString() string

GoString returns the string representation

func (*DeleteRuleInput) SetRuleArn Uses

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

SetRuleArn sets the RuleArn field's value.

func (DeleteRuleInput) String Uses

func (s DeleteRuleInput) String() string

String returns the string representation

func (*DeleteRuleInput) Validate Uses

func (s *DeleteRuleInput) Validate() error

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

type DeleteRuleOutput Uses

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

func (DeleteRuleOutput) GoString Uses

func (s DeleteRuleOutput) GoString() string

GoString returns the string representation

func (DeleteRuleOutput) String Uses

func (s DeleteRuleOutput) String() string

String returns the string representation

type DeleteTargetGroupInput Uses

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) GoString Uses

func (s DeleteTargetGroupInput) GoString() string

GoString returns the string representation

func (*DeleteTargetGroupInput) SetTargetGroupArn Uses

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

SetTargetGroupArn sets the TargetGroupArn field's value.

func (DeleteTargetGroupInput) String Uses

func (s DeleteTargetGroupInput) String() string

String returns the string representation

func (*DeleteTargetGroupInput) Validate Uses

func (s *DeleteTargetGroupInput) Validate() error

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

type DeleteTargetGroupOutput Uses

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

func (DeleteTargetGroupOutput) GoString Uses

func (s DeleteTargetGroupOutput) GoString() string

GoString returns the string representation

func (DeleteTargetGroupOutput) String Uses

func (s DeleteTargetGroupOutput) String() string

String returns the string representation

type DeregisterTargetsInput Uses

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) GoString Uses

func (s DeregisterTargetsInput) GoString() string

GoString returns the string representation

func (*DeregisterTargetsInput) SetTargetGroupArn Uses

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

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*DeregisterTargetsInput) SetTargets Uses

func (s *DeregisterTargetsInput) SetTargets(v []*TargetDescription) *DeregisterTargetsInput

SetTargets sets the Targets field's value.

func (DeregisterTargetsInput) String Uses

func (s DeregisterTargetsInput) String() string

String returns the string representation

func (*DeregisterTargetsInput) Validate Uses

func (s *DeregisterTargetsInput) Validate() error

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

type DeregisterTargetsOutput Uses

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

func (DeregisterTargetsOutput) GoString Uses

func (s DeregisterTargetsOutput) GoString() string

GoString returns the string representation

func (DeregisterTargetsOutput) String Uses

func (s DeregisterTargetsOutput) String() string

String returns the string representation

type DescribeAccountLimitsInput Uses

type DescribeAccountLimitsInput struct {

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

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

func (DescribeAccountLimitsInput) GoString Uses

func (s DescribeAccountLimitsInput) GoString() string

GoString returns the string representation

func (*DescribeAccountLimitsInput) SetMarker Uses

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

SetMarker sets the Marker field's value.

func (*DescribeAccountLimitsInput) SetPageSize Uses

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

SetPageSize sets the PageSize field's value.

func (DescribeAccountLimitsInput) String Uses

func (s DescribeAccountLimitsInput) String() string

String returns the string representation

func (*DescribeAccountLimitsInput) Validate Uses

func (s *DescribeAccountLimitsInput) Validate() error

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

type DescribeAccountLimitsOutput Uses

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) GoString Uses

func (s DescribeAccountLimitsOutput) GoString() string

GoString returns the string representation

func (*DescribeAccountLimitsOutput) SetLimits Uses

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

SetLimits sets the Limits field's value.

func (*DescribeAccountLimitsOutput) SetNextMarker Uses

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

SetNextMarker sets the NextMarker field's value.

func (DescribeAccountLimitsOutput) String Uses

func (s DescribeAccountLimitsOutput) String() string

String returns the string representation

type DescribeListenerCertificatesInput Uses

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) GoString Uses

func (s DescribeListenerCertificatesInput) GoString() string

GoString returns the string representation

func (*DescribeListenerCertificatesInput) SetListenerArn Uses

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

SetListenerArn sets the ListenerArn field's value.

func (*DescribeListenerCertificatesInput) SetMarker Uses

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

SetMarker sets the Marker field's value.

func (*DescribeListenerCertificatesInput) SetPageSize Uses

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

SetPageSize sets the PageSize field's value.

func (DescribeListenerCertificatesInput) String Uses

func (s DescribeListenerCertificatesInput) String() string

String returns the string representation

func (*DescribeListenerCertificatesInput) Validate Uses

func (s *DescribeListenerCertificatesInput) Validate() error

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

type DescribeListenerCertificatesOutput Uses

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) GoString Uses

func (s DescribeListenerCertificatesOutput) GoString() string

GoString returns the string representation

func (*DescribeListenerCertificatesOutput) SetCertificates Uses

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

SetCertificates sets the Certificates field's value.

func (*DescribeListenerCertificatesOutput) SetNextMarker Uses

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

SetNextMarker sets the NextMarker field's value.

func (DescribeListenerCertificatesOutput) String Uses

func (s DescribeListenerCertificatesOutput) String() string

String returns the string representation

type DescribeListenersInput Uses

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) GoString Uses

func (s DescribeListenersInput) GoString() string

GoString returns the string representation

func (*DescribeListenersInput) SetListenerArns Uses

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

SetListenerArns sets the ListenerArns field's value.

func (*DescribeListenersInput) SetLoadBalancerArn Uses

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*DescribeListenersInput) SetMarker Uses

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

SetMarker sets the Marker field's value.

func (*DescribeListenersInput) SetPageSize Uses

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

SetPageSize sets the PageSize field's value.

func (DescribeListenersInput) String Uses

func (s DescribeListenersInput) String() string

String returns the string representation

func (*DescribeListenersInput) Validate Uses

func (s *DescribeListenersInput) Validate() error

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

type DescribeListenersOutput Uses

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) GoString Uses

func (s DescribeListenersOutput) GoString() string

GoString returns the string representation

func (*DescribeListenersOutput) SetListeners Uses

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

SetListeners sets the Listeners field's value.

func (*DescribeListenersOutput) SetNextMarker Uses

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

SetNextMarker sets the NextMarker field's value.

func (DescribeListenersOutput) String Uses

func (s DescribeListenersOutput) String() string

String returns the string representation

type DescribeLoadBalancerAttributesInput Uses

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) GoString Uses

func (s DescribeLoadBalancerAttributesInput) GoString() string

GoString returns the string representation

func (*DescribeLoadBalancerAttributesInput) SetLoadBalancerArn Uses

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (DescribeLoadBalancerAttributesInput) String Uses

func (s DescribeLoadBalancerAttributesInput) String() string

String returns the string representation

func (*DescribeLoadBalancerAttributesInput) Validate Uses

func (s *DescribeLoadBalancerAttributesInput) Validate() error

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

type DescribeLoadBalancerAttributesOutput Uses

type DescribeLoadBalancerAttributesOutput struct {

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

func (DescribeLoadBalancerAttributesOutput) GoString Uses

func (s DescribeLoadBalancerAttributesOutput) GoString() string

GoString returns the string representation

func (*DescribeLoadBalancerAttributesOutput) SetAttributes Uses

func (s *DescribeLoadBalancerAttributesOutput) SetAttributes(v []*LoadBalancerAttribute) *DescribeLoadBalancerAttributesOutput

SetAttributes sets the Attributes field's value.

func (DescribeLoadBalancerAttributesOutput) String Uses

func (s DescribeLoadBalancerAttributesOutput) String() string

String returns the string representation

type DescribeLoadBalancersInput Uses

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) GoString Uses

func (s DescribeLoadBalancersInput) GoString() string

GoString returns the string representation

func (*DescribeLoadBalancersInput) SetLoadBalancerArns Uses

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

SetLoadBalancerArns sets the LoadBalancerArns field's value.

func (*DescribeLoadBalancersInput) SetMarker Uses

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

SetMarker sets the Marker field's value.

func (*DescribeLoadBalancersInput) SetNames Uses

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

SetNames sets the Names field's value.

func (*DescribeLoadBalancersInput) SetPageSize Uses

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

SetPageSize sets the PageSize field's value.

func (DescribeLoadBalancersInput) String Uses

func (s DescribeLoadBalancersInput) String() string

String returns the string representation

func (*DescribeLoadBalancersInput) Validate Uses

func (s *DescribeLoadBalancersInput) Validate() error

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

type DescribeLoadBalancersOutput Uses

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) GoString Uses

func (s DescribeLoadBalancersOutput) GoString() string

GoString returns the string representation

func (*DescribeLoadBalancersOutput) SetLoadBalancers Uses

func (s *DescribeLoadBalancersOutput) SetLoadBalancers(v []*LoadBalancer) *DescribeLoadBalancersOutput

SetLoadBalancers sets the LoadBalancers field's value.

func (*DescribeLoadBalancersOutput) SetNextMarker Uses

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

SetNextMarker sets the NextMarker field's value.

func (DescribeLoadBalancersOutput) String Uses

func (s DescribeLoadBalancersOutput) String() string

String returns the string representation

type DescribeRulesInput Uses

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) GoString Uses

func (s DescribeRulesInput) GoString() string

GoString returns the string representation

func (*DescribeRulesInput) SetListenerArn Uses

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

SetListenerArn sets the ListenerArn field's value.

func (*DescribeRulesInput) SetMarker Uses

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

SetMarker sets the Marker field's value.

func (*DescribeRulesInput) SetPageSize Uses

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

SetPageSize sets the PageSize field's value.

func (*DescribeRulesInput) SetRuleArns Uses

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

SetRuleArns sets the RuleArns field's value.

func (DescribeRulesInput) String Uses

func (s DescribeRulesInput) String() string

String returns the string representation

func (*DescribeRulesInput) Validate Uses

func (s *DescribeRulesInput) Validate() error

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

type DescribeRulesOutput Uses

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) GoString Uses

func (s DescribeRulesOutput) GoString() string

GoString returns the string representation

func (*DescribeRulesOutput) SetNextMarker Uses

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

SetNextMarker sets the NextMarker field's value.

func (*DescribeRulesOutput) SetRules Uses

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

SetRules sets the Rules field's value.

func (DescribeRulesOutput) String Uses

func (s DescribeRulesOutput) String() string

String returns the string representation

type DescribeSSLPoliciesInput Uses

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) GoString Uses

func (s DescribeSSLPoliciesInput) GoString() string

GoString returns the string representation

func (*DescribeSSLPoliciesInput) SetMarker Uses

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

SetMarker sets the Marker field's value.

func (*DescribeSSLPoliciesInput) SetNames Uses

func (s *DescribeSSLPoliciesInput) SetNames(v []*string) *DescribeSSLPoliciesInput

SetNames sets the Names field's value.

func (*DescribeSSLPoliciesInput) SetPageSize Uses

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

SetPageSize sets the PageSize field's value.

func (DescribeSSLPoliciesInput) String Uses

func (s DescribeSSLPoliciesInput) String() string

String returns the string representation

func (*DescribeSSLPoliciesInput) Validate Uses

func (s *DescribeSSLPoliciesInput) Validate() error

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

type DescribeSSLPoliciesOutput Uses

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 policies.
    SslPolicies []*SslPolicy `type:"list"`
    // contains filtered or unexported fields
}

func (DescribeSSLPoliciesOutput) GoString Uses

func (s DescribeSSLPoliciesOutput) GoString() string

GoString returns the string representation

func (*DescribeSSLPoliciesOutput) SetNextMarker Uses

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

SetNextMarker sets the NextMarker field's value.

func (*DescribeSSLPoliciesOutput) SetSslPolicies Uses

func (s *DescribeSSLPoliciesOutput) SetSslPolicies(v []*SslPolicy) *DescribeSSLPoliciesOutput

SetSslPolicies sets the SslPolicies field's value.

func (DescribeSSLPoliciesOutput) String Uses

func (s DescribeSSLPoliciesOutput) String() string

String returns the string representation

type DescribeTagsInput Uses

type DescribeTagsInput struct {

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

func (DescribeTagsInput) GoString Uses

func (s DescribeTagsInput) GoString() string

GoString returns the string representation

func (*DescribeTagsInput) SetResourceArns Uses

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

SetResourceArns sets the ResourceArns field's value.

func (DescribeTagsInput) String Uses

func (s DescribeTagsInput) String() string

String returns the string representation

func (*DescribeTagsInput) Validate Uses

func (s *DescribeTagsInput) Validate() error

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

type DescribeTagsOutput Uses

type DescribeTagsOutput struct {

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

func (DescribeTagsOutput) GoString Uses

func (s DescribeTagsOutput) GoString() string

GoString returns the string representation

func (*DescribeTagsOutput) SetTagDescriptions Uses

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

SetTagDescriptions sets the TagDescriptions field's value.

func (DescribeTagsOutput) String Uses

func (s DescribeTagsOutput) String() string

String returns the string representation

type DescribeTargetGroupAttributesInput Uses

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) GoString Uses

func (s DescribeTargetGroupAttributesInput) GoString() string

GoString returns the string representation

func (*DescribeTargetGroupAttributesInput) SetTargetGroupArn Uses

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

SetTargetGroupArn sets the TargetGroupArn field's value.

func (DescribeTargetGroupAttributesInput) String Uses

func (s DescribeTargetGroupAttributesInput) String() string

String returns the string representation

func (*DescribeTargetGroupAttributesInput) Validate Uses

func (s *DescribeTargetGroupAttributesInput) Validate() error

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

type DescribeTargetGroupAttributesOutput Uses

type DescribeTargetGroupAttributesOutput struct {

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

func (DescribeTargetGroupAttributesOutput) GoString Uses

func (s DescribeTargetGroupAttributesOutput) GoString() string

GoString returns the string representation

func (*DescribeTargetGroupAttributesOutput) SetAttributes Uses

func (s *DescribeTargetGroupAttributesOutput) SetAttributes(v []*TargetGroupAttribute) *DescribeTargetGroupAttributesOutput

SetAttributes sets the Attributes field's value.

func (DescribeTargetGroupAttributesOutput) String Uses

func (s DescribeTargetGroupAttributesOutput) String() string

String returns the string representation

type DescribeTargetGroupsInput Uses

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) GoString Uses

func (s DescribeTargetGroupsInput) GoString() string

GoString returns the string representation

func (*DescribeTargetGroupsInput) SetLoadBalancerArn Uses

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*DescribeTargetGroupsInput) SetMarker Uses

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

SetMarker sets the Marker field's value.

func (*DescribeTargetGroupsInput) SetNames Uses

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

SetNames sets the Names field's value.

func (*DescribeTargetGroupsInput) SetPageSize Uses

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

SetPageSize sets the PageSize field's value.

func (*DescribeTargetGroupsInput) SetTargetGroupArns Uses

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

SetTargetGroupArns sets the TargetGroupArns field's value.

func (DescribeTargetGroupsInput) String Uses

func (s DescribeTargetGroupsInput) String() string

String returns the string representation

func (*DescribeTargetGroupsInput) Validate Uses

func (s *DescribeTargetGroupsInput) Validate() error

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

type DescribeTargetGroupsOutput Uses

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) GoString Uses

func (s DescribeTargetGroupsOutput) GoString() string

GoString returns the string representation

func (*DescribeTargetGroupsOutput) SetNextMarker Uses

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

SetNextMarker sets the NextMarker field's value.

func (*DescribeTargetGroupsOutput) SetTargetGroups Uses

func (s *DescribeTargetGroupsOutput) SetTargetGroups(v []*TargetGroup) *DescribeTargetGroupsOutput

SetTargetGroups sets the TargetGroups field's value.

func (DescribeTargetGroupsOutput) String Uses

func (s DescribeTargetGroupsOutput) String() string

String returns the string representation

type DescribeTargetHealthInput Uses

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) GoString Uses

func (s DescribeTargetHealthInput) GoString() string

GoString returns the string representation

func (*DescribeTargetHealthInput) SetTargetGroupArn Uses

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

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*DescribeTargetHealthInput) SetTargets Uses

func (s *DescribeTargetHealthInput) SetTargets(v []*TargetDescription) *DescribeTargetHealthInput

SetTargets sets the Targets field's value.

func (DescribeTargetHealthInput) String Uses

func (s DescribeTargetHealthInput) String() string

String returns the string representation

func (*DescribeTargetHealthInput) Validate Uses

func (s *DescribeTargetHealthInput) Validate() error

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

type DescribeTargetHealthOutput Uses

type DescribeTargetHealthOutput struct {

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

func (DescribeTargetHealthOutput) GoString Uses

func (s DescribeTargetHealthOutput) GoString() string

GoString returns the string representation

func (*DescribeTargetHealthOutput) SetTargetHealthDescriptions Uses

func (s *DescribeTargetHealthOutput) SetTargetHealthDescriptions(v []*TargetHealthDescription) *DescribeTargetHealthOutput

SetTargetHealthDescriptions sets the TargetHealthDescriptions field's value.

func (DescribeTargetHealthOutput) String Uses

func (s DescribeTargetHealthOutput) String() string

String returns the string representation

type ELBV2 Uses

type ELBV2 struct {
    *client.Client
}

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

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

func New Uses

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

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

Example:

// Create a ELBV2 client from just a session.
svc := elbv2.New(mySession)

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

func (*ELBV2) AddListenerCertificates Uses

func (c *ELBV2) AddListenerCertificates(input *AddListenerCertificatesInput) (*AddListenerCertificatesOutput, error)

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

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

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

Returned Error Codes:

* ErrCodeListenerNotFoundException "ListenerNotFound"
The specified listener does not exist.

* ErrCodeTooManyCertificatesException "TooManyCertificates"
You've reached the limit on the number of certificates per load balancer.

* ErrCodeCertificateNotFoundException "CertificateNotFound"
The specified certificate does not exist.

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

func (*ELBV2) AddListenerCertificatesRequest Uses

func (c *ELBV2) AddListenerCertificatesRequest(input *AddListenerCertificatesInput) (req *request.Request, output *AddListenerCertificatesOutput)

AddListenerCertificatesRequest generates a "aws/request.Request" representing the client's request for the AddListenerCertificates operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AddListenerCertificates for more information on using the AddListenerCertificates API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) AddListenerCertificatesWithContext Uses

func (c *ELBV2) AddListenerCertificatesWithContext(ctx aws.Context, input *AddListenerCertificatesInput, opts ...request.Option) (*AddListenerCertificatesOutput, error)

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

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

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

func (*ELBV2) AddTags Uses

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

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

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

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

Returned Error Codes:

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

* ErrCodeTooManyTagsException "TooManyTags"
You've reached the limit on the number of tags per load balancer.

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

* ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
The specified target group does not exist.

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

To add tags to a load balancer

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

Code:

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

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

fmt.Println(result)

func (*ELBV2) AddTagsRequest Uses

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

AddTagsRequest generates a "aws/request.Request" representing the client's request for the AddTags operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AddTags for more information on using the AddTags API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) AddTagsWithContext Uses

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

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

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

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

func (*ELBV2) CreateListener Uses

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

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

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

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

Returned Error Codes:

* ErrCodeDuplicateListenerException "DuplicateListener"
A listener with the specified port already exists.

* ErrCodeTooManyListenersException "TooManyListeners"
You've reached the limit on the number of listeners per load balancer.

* ErrCodeTooManyCertificatesException "TooManyCertificates"
You've reached the limit on the number of certificates per load balancer.

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

* ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
The specified target group does not exist.

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

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

* ErrCodeIncompatibleProtocolsException "IncompatibleProtocols"
The specified configuration is not valid with this protocol.

* ErrCodeSSLPolicyNotFoundException "SSLPolicyNotFound"
The specified SSL policy does not exist.

* ErrCodeCertificateNotFoundException "CertificateNotFound"
The specified certificate does not exist.

* ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
The specified protocol is not supported.

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

* ErrCodeTooManyTargetsException "TooManyTargets"
You've reached the limit on the number of targets.

* ErrCodeTooManyActionsException "TooManyActions"
You've reached the limit on the number of actions per rule.

* ErrCodeInvalidLoadBalancerActionException "InvalidLoadBalancerAction"
The requested action is not valid.

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

To create an HTTP listener

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

Code:

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

result, err := svc.CreateListener(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case elbv2.ErrCodeDuplicateListenerException:
            fmt.Println(elbv2.ErrCodeDuplicateListenerException, aerr.Error())
        case elbv2.ErrCodeTooManyListenersException:
            fmt.Println(elbv2.ErrCodeTooManyListenersException, aerr.Error())
        case elbv2.ErrCodeTooManyCertificatesException:
            fmt.Println(elbv2.ErrCodeTooManyCertificatesException, aerr.Error())
        case elbv2.ErrCodeLoadBalancerNotFoundException:
            fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
        case elbv2.ErrCodeTargetGroupNotFoundException:
            fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
        case elbv2.ErrCodeTargetGroupAssociationLimitException:
            fmt.Println(elbv2.ErrCodeTargetGroupAssociationLimitException, aerr.Error())
        case elbv2.ErrCodeInvalidConfigurationRequestException:
            fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
        case elbv2.ErrCodeIncompatibleProtocolsException:
            fmt.Println(elbv2.ErrCodeIncompatibleProtocolsException, aerr.Error())
        case elbv2.ErrCodeSSLPolicyNotFoundException:
            fmt.Println(elbv2.ErrCodeSSLPolicyNotFoundException, aerr.Error())
        case elbv2.ErrCodeCertificateNotFoundException:
            fmt.Println(elbv2.ErrCodeCertificateNotFoundException, aerr.Error())
        case elbv2.ErrCodeUnsupportedProtocolException:
            fmt.Println(elbv2.ErrCodeUnsupportedProtocolException, aerr.Error())
        case elbv2.ErrCodeTooManyRegistrationsForTargetIdException:
            fmt.Println(elbv2.ErrCodeTooManyRegistrationsForTargetIdException, aerr.Error())
        case elbv2.ErrCodeTooManyTargetsException:
            fmt.Println(elbv2.ErrCodeTooManyTargetsException, aerr.Error())
        case elbv2.ErrCodeTooManyActionsException:
            fmt.Println(elbv2.ErrCodeTooManyActionsException, aerr.Error())
        case elbv2.ErrCodeInvalidLoadBalancerActionException:
            fmt.Println(elbv2.ErrCodeInvalidLoadBalancerActionException, 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)

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

Code:

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

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

fmt.Println(result)

func (*ELBV2) CreateListenerRequest Uses

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

CreateListenerRequest generates a "aws/request.Request" representing the client's request for the CreateListener operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateListener for more information on using the CreateListener API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) CreateListenerWithContext Uses

func (c *ELBV2) CreateListenerWithContext(ctx aws.Context, input *CreateListenerInput, opts ...request.Option) (*CreateListenerOutput, error)

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

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

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

func (*ELBV2) CreateLoadBalancer Uses

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

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

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

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

Returned Error Codes:

* ErrCodeDuplicateLoadBalancerNameException "DuplicateLoadBalancerName"
A load balancer with the specified name already exists.

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

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

* ErrCodeSubnetNotFoundException "SubnetNotFound"
The specified subnet does not exist.

* ErrCodeInvalidSubnetException "InvalidSubnet"
The specified subnet is out of available addresses.

* ErrCodeInvalidSecurityGroupException "InvalidSecurityGroup"
The specified security group does not exist.

* ErrCodeInvalidSchemeException "InvalidScheme"
The requested scheme is not valid.

* ErrCodeTooManyTagsException "TooManyTags"
You've reached the limit on the number of tags per load balancer.

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

* ErrCodeResourceInUseException "ResourceInUse"
A specified resource is in use.

* ErrCodeAllocationIdNotFoundException "AllocationIdNotFound"
The specified allocation ID does not exist.

* ErrCodeAvailabilityZoneNotSupportedException "AvailabilityZoneNotSupported"
The specified Availability Zone is not supported.

* ErrCodeOperationNotPermittedException "OperationNotPermitted"
This operation is not allowed.

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

To create an Internet-facing load balancer

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

Code:

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

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

fmt.Println(result)

To create an internal load balancer

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

Code:

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

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

fmt.Println(result)

func (*ELBV2) CreateLoadBalancerRequest Uses

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

CreateLoadBalancerRequest generates a "aws/request.Request" representing the client's request for the CreateLoadBalancer operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateLoadBalancer for more information on using the CreateLoadBalancer API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) CreateLoadBalancerWithContext Uses

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

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

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

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

func (*ELBV2) CreateRule Uses

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

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

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

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

Returned Error Codes:

* ErrCodePriorityInUseException "PriorityInUse"
The specified priority is in use.

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

* ErrCodeTooManyRulesException "TooManyRules"
You've reached the limit on the number of rules per load balancer.

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

* ErrCodeIncompatibleProtocolsException "IncompatibleProtocols"
The specified configuration is not valid with this protocol.

* ErrCodeListenerNotFoundException "ListenerNotFound"
The specified listener does not exist.

* ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
The specified target group does not exist.

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

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

* ErrCodeTooManyTargetsException "TooManyTargets"
You've reached the limit on the number of targets.

* ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
The specified protocol is not supported.

* ErrCodeTooManyActionsException "TooManyActions"
You've reached the limit on the number of actions per rule.

* ErrCodeInvalidLoadBalancerActionException "InvalidLoadBalancerAction"
The requested action is not valid.

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

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

Code:

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

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

fmt.Println(result)

func (*ELBV2) CreateRuleRequest Uses

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

CreateRuleRequest generates a "aws/request.Request" representing the client's request for the CreateRule operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateRule for more information on using the CreateRule API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) CreateRuleWithContext Uses

func (c *ELBV2) CreateRuleWithContext(ctx aws.Context, input *CreateRuleInput, opts ...request.Option) (*CreateRuleOutput, error)

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

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

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

func (*ELBV2) CreateTargetGroup Uses

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

CreateTargetGroup API operation for Elastic Load Balancing.

Creates a target group.

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

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

To delete a target group, use DeleteTargetGroup.

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.

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

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

Returned Error Codes:

* ErrCodeDuplicateTargetGroupNameException "DuplicateTargetGroupName"
A target group with the specified name already exists.

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

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

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

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.

Code:

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

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

fmt.Println(result)

func (*ELBV2) CreateTargetGroupRequest Uses

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

CreateTargetGroupRequest generates a "aws/request.Request" representing the client's request for the CreateTargetGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateTargetGroup for more information on using the CreateTargetGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) CreateTargetGroupWithContext Uses

func (c *ELBV2) CreateTargetGroupWithContext(ctx aws.Context, input *CreateTargetGroupInput, opts ...request.Option) (*CreateTargetGroupOutput, error)

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

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

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

func (*ELBV2) DeleteListener Uses

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

DeleteListener API operation for Elastic Load Balancing.

Deletes the specified listener.

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

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

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

Returned Error Codes:

* ErrCodeListenerNotFoundException "ListenerNotFound"
The specified listener does not exist.

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

To delete a listener

This example deletes the specified listener.

Code:

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

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

fmt.Println(result)

func (*ELBV2) DeleteListenerRequest Uses

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

DeleteListenerRequest generates a "aws/request.Request" representing the client's request for the DeleteListener operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteListener for more information on using the DeleteListener API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DeleteListenerWithContext Uses

func (c *ELBV2) DeleteListenerWithContext(ctx aws.Context, input *DeleteListenerInput, opts ...request.Option) (*DeleteListenerOutput, error)

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

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

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

func (*ELBV2) DeleteLoadBalancer Uses

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

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

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

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

Returned Error Codes:

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

* ErrCodeOperationNotPermittedException "OperationNotPermitted"
This operation is not allowed.

* ErrCodeResourceInUseException "ResourceInUse"
A specified resource is in use.

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

To delete a load balancer

This example deletes the specified load balancer.

Code:

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

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

fmt.Println(result)

func (*ELBV2) DeleteLoadBalancerRequest Uses

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

DeleteLoadBalancerRequest generates a "aws/request.Request" representing the client's request for the DeleteLoadBalancer operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteLoadBalancer for more information on using the DeleteLoadBalancer API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DeleteLoadBalancerWithContext Uses

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

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

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

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

func (*ELBV2) DeleteRule Uses

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

DeleteRule API operation for Elastic Load Balancing.

Deletes the specified rule.

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

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

Returned Error Codes:

* ErrCodeRuleNotFoundException "RuleNotFound"
The specified rule does not exist.

* ErrCodeOperationNotPermittedException "OperationNotPermitted"
This operation is not allowed.

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

To delete a rule

This example deletes the specified rule.

Code:

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

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

fmt.Println(result)

func (*ELBV2) DeleteRuleRequest Uses

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

DeleteRuleRequest generates a "aws/request.Request" representing the client's request for the DeleteRule operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteRule for more information on using the DeleteRule API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DeleteRuleWithContext Uses

func (c *ELBV2) DeleteRuleWithContext(ctx aws.Context, input *DeleteRuleInput, opts ...request.Option) (*DeleteRuleOutput, error)

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

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

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

func (*ELBV2) DeleteTargetGroup Uses

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

DeleteTargetGroup API operation for Elastic Load Balancing.

Deletes the specified target group.

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

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

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

Returned Error Codes:

* ErrCodeResourceInUseException "ResourceInUse"
A specified resource is in use.

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

To delete a target group

This example deletes the specified target group.

Code:

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

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

fmt.Println(result)

func (*ELBV2) DeleteTargetGroupRequest Uses

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

DeleteTargetGroupRequest generates a "aws/request.Request" representing the client's request for the DeleteTargetGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteTargetGroup for more information on using the DeleteTargetGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DeleteTargetGroupWithContext Uses

func (c *ELBV2) DeleteTargetGroupWithContext(ctx aws.Context, input *DeleteTargetGroupInput, opts ...request.Option) (*DeleteTargetGroupOutput, error)

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

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

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

func (*ELBV2) DeregisterTargets Uses

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

DeregisterTargets API operation for Elastic Load Balancing.

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

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

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

Returned Error Codes:

* ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
The specified target group does not exist.

* ErrCodeInvalidTargetException "InvalidTarget"
The specified target does not exist, is not in the same VPC as the target
group, or has an unsupported instance type.

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

To deregister a target from a target group

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

Code:

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

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

fmt.Println(result)

func (*ELBV2) DeregisterTargetsRequest Uses

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

DeregisterTargetsRequest generates a "aws/request.Request" representing the client's request for the DeregisterTargets operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeregisterTargets for more information on using the DeregisterTargets API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DeregisterTargetsWithContext Uses

func (c *ELBV2) DeregisterTargetsWithContext(ctx aws.Context, input *DeregisterTargetsInput, opts ...request.Option) (*DeregisterTargetsOutput, error)

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

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

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

func (*ELBV2) DescribeAccountLimits Uses

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

DescribeAccountLimits API operation for Elastic Load Balancing.

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

For more information, see Limits for Your 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.

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

See the AWS API reference guide for Elastic Load Balancing's API operation DescribeAccountLimits for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeAccountLimits

func (*ELBV2) DescribeAccountLimitsRequest Uses

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

DescribeAccountLimitsRequest generates a "aws/request.Request" representing the client's request for the DescribeAccountLimits operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeAccountLimits for more information on using the DescribeAccountLimits API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DescribeAccountLimitsWithContext Uses

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

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

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

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

func (*ELBV2) DescribeListenerCertificates Uses

func (c *ELBV2) DescribeListenerCertificates(input *DescribeListenerCertificatesInput) (*DescribeListenerCertificatesOutput, error)

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

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

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

Returned Error Codes:

* ErrCodeListenerNotFoundException "ListenerNotFound"
The specified listener does not exist.

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

func (*ELBV2) DescribeListenerCertificatesRequest Uses

func (c *ELBV2) DescribeListenerCertificatesRequest(input *DescribeListenerCertificatesInput) (req *request.Request, output *DescribeListenerCertificatesOutput)

DescribeListenerCertificatesRequest generates a "aws/request.Request" representing the client's request for the DescribeListenerCertificates operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeListenerCertificates for more information on using the DescribeListenerCertificates API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DescribeListenerCertificatesWithContext Uses

func (c *ELBV2) DescribeListenerCertificatesWithContext(ctx aws.Context, input *DescribeListenerCertificatesInput, opts ...request.Option) (*DescribeListenerCertificatesOutput, error)

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

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

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

func (*ELBV2) DescribeListeners Uses

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

DescribeListeners API operation for Elastic Load Balancing.

Describes the specified listeners or the listeners for the specified Application Load Balancer 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.

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

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

Returned Error Codes:

* ErrCodeListenerNotFoundException "ListenerNotFound"
The specified listener does not exist.

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

* ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
The specified protocol is not supported.

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

To describe a listener

This example describes the specified listener.

Code:

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

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

fmt.Println(result)

func (*ELBV2) DescribeListenersPages Uses

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

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

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

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

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

func (*ELBV2) DescribeListenersPagesWithContext Uses

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

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

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

func (*ELBV2) DescribeListenersRequest Uses

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

DescribeListenersRequest generates a "aws/request.Request" representing the client's request for the DescribeListeners operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeListeners for more information on using the DescribeListeners API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DescribeListenersWithContext Uses

func (c *ELBV2) DescribeListenersWithContext(ctx aws.Context, input *DescribeListenersInput, opts ...request.Option) (*DescribeListenersOutput, error)

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

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

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

func (*ELBV2) DescribeLoadBalancerAttributes Uses

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

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

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

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

Returned Error Codes:

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

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

To describe load balancer attributes

This example describes the attributes of the specified load balancer.

Code:

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

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

fmt.Println(result)

func (*ELBV2) DescribeLoadBalancerAttributesRequest Uses

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

DescribeLoadBalancerAttributesRequest generates a "aws/request.Request" representing the client's request for the DescribeLoadBalancerAttributes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeLoadBalancerAttributes for more information on using the DescribeLoadBalancerAttributes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DescribeLoadBalancerAttributesWithContext Uses

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

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

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

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

func (*ELBV2) DescribeLoadBalancers Uses

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

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

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

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

Returned Error Codes:

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

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

To describe a load balancer

This example describes the specified load balancer.

Code:

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

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

fmt.Println(result)

func (*ELBV2) DescribeLoadBalancersPages Uses

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

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

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

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

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

func (*ELBV2) DescribeLoadBalancersPagesWithContext Uses

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

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

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

func (*ELBV2) DescribeLoadBalancersRequest Uses

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

DescribeLoadBalancersRequest generates a "aws/request.Request" representing the client's request for the DescribeLoadBalancers operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeLoadBalancers for more information on using the DescribeLoadBalancers API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DescribeLoadBalancersWithContext Uses

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

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

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

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

func (*ELBV2) DescribeRules Uses

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

DescribeRules API operation for Elastic Load Balancing.

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

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

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

Returned Error Codes:

* ErrCodeListenerNotFoundException "ListenerNotFound"
The specified listener does not exist.

* ErrCodeRuleNotFoundException "RuleNotFound"
The specified rule does not exist.

* ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
The specified protocol is not supported.

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

To describe a rule

This example describes the specified rule.

Code:

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

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

fmt.Println(result)

func (*ELBV2) DescribeRulesRequest Uses

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

DescribeRulesRequest generates a "aws/request.Request" representing the client's request for the DescribeRules operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeRules for more information on using the DescribeRules API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DescribeRulesWithContext Uses

func (c *ELBV2) DescribeRulesWithContext(ctx aws.Context, input *DescribeRulesInput, opts ...request.Option) (*DescribeRulesOutput, error)

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

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

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

func (*ELBV2) DescribeSSLPolicies Uses

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

DescribeSSLPolicies API operation for Elastic Load Balancing.

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

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.

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

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

Returned Error Codes:

* ErrCodeSSLPolicyNotFoundException "SSLPolicyNotFound"
The specified SSL policy does not exist.

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

To describe a policy used for SSL negotiation

This example describes the specified policy used for SSL negotiation.

Code:

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

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

fmt.Println(result)

func (*ELBV2) DescribeSSLPoliciesRequest Uses

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

DescribeSSLPoliciesRequest generates a "aws/request.Request" representing the client's request for the DescribeSSLPolicies operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeSSLPolicies for more information on using the DescribeSSLPolicies API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DescribeSSLPoliciesWithContext Uses

func (c *ELBV2) DescribeSSLPoliciesWithContext(ctx aws.Context, input *DescribeSSLPoliciesInput, opts ...request.Option) (*DescribeSSLPoliciesOutput, error)

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

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

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

func (*ELBV2) DescribeTags Uses

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

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

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

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

Returned Error Codes:

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

* ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
The specified target group does not exist.

* ErrCodeListenerNotFoundException "ListenerNotFound"
The specified listener does not exist.

* ErrCodeRuleNotFoundException "RuleNotFound"
The specified rule does not exist.

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

To describe the tags assigned to a load balancer

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

Code:

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

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

fmt.Println(result)

func (*ELBV2) DescribeTagsRequest Uses

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

DescribeTagsRequest generates a "aws/request.Request" representing the client's request for the DescribeTags operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeTags for more information on using the DescribeTags API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DescribeTagsWithContext Uses

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

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

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

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

func (*ELBV2) DescribeTargetGroupAttributes Uses

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

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

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

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

Returned Error Codes:

* ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
The specified target group does not exist.

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

To describe target group attributes

This example describes the attributes of the specified target group.

Code:

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

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

fmt.Println(result)

func (*ELBV2) DescribeTargetGroupAttributesRequest Uses

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

DescribeTargetGroupAttributesRequest generates a "aws/request.Request" representing the client's request for the DescribeTargetGroupAttributes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeTargetGroupAttributes for more information on using the DescribeTargetGroupAttributes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DescribeTargetGroupAttributesWithContext Uses

func (c *ELBV2) DescribeTargetGroupAttributesWithContext(ctx aws.Context, input *DescribeTargetGroupAttributesInput, opts ...request.Option) (*DescribeTargetGroupAttributesOutput, error)

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

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

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

func (*ELBV2) DescribeTargetGroups Uses

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

DescribeTargetGroups API operation for Elastic Load Balancing.

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

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

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

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

Returned Error Codes:

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

* ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
The specified target group does not exist.

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

To describe a target group

This example describes the specified target group.

Code:

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

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

fmt.Println(result)

func (*ELBV2) DescribeTargetGroupsPages Uses

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

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

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

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

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

func (*ELBV2) DescribeTargetGroupsPagesWithContext Uses

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

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

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

func (*ELBV2) DescribeTargetGroupsRequest Uses

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

DescribeTargetGroupsRequest generates a "aws/request.Request" representing the client's request for the DescribeTargetGroups operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeTargetGroups for more information on using the DescribeTargetGroups API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DescribeTargetGroupsWithContext Uses

func (c *ELBV2) DescribeTargetGroupsWithContext(ctx aws.Context, input *DescribeTargetGroupsInput, opts ...request.Option) (*DescribeTargetGroupsOutput, error)

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

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

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

func (*ELBV2) DescribeTargetHealth Uses

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

DescribeTargetHealth API operation for Elastic Load Balancing.

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

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

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

Returned Error Codes:

* ErrCodeInvalidTargetException "InvalidTarget"
The specified target does not exist, is not in the same VPC as the target
group, or has an unsupported instance type.

* ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
The specified target group does not exist.

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

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

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.

Code:

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

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

fmt.Println(result)

To describe the health of a target

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

Code:

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

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

fmt.Println(result)

func (*ELBV2) DescribeTargetHealthRequest Uses

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

DescribeTargetHealthRequest generates a "aws/request.Request" representing the client's request for the DescribeTargetHealth operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeTargetHealth for more information on using the DescribeTargetHealth API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) DescribeTargetHealthWithContext Uses

func (c *ELBV2) DescribeTargetHealthWithContext(ctx aws.Context, input *DescribeTargetHealthInput, opts ...request.Option) (*DescribeTargetHealthOutput, error)

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

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

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

func (*ELBV2) ModifyListener Uses

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

ModifyListener API operation for Elastic Load Balancing.

Modifies the specified properties of the specified listener.

Any properties that you do not specify retain their current values. However, changing the protocol from HTTPS to HTTP, 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.

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

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

Returned Error Codes:

* ErrCodeDuplicateListenerException "DuplicateListener"
A listener with the specified port already exists.

* ErrCodeTooManyListenersException "TooManyListeners"
You've reached the limit on the number of listeners per load balancer.

* ErrCodeTooManyCertificatesException "TooManyCertificates"
You've reached the limit on the number of certificates per load balancer.

* ErrCodeListenerNotFoundException "ListenerNotFound"
The specified listener does not exist.

* ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
The specified target group does not exist.

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

* ErrCodeIncompatibleProtocolsException "IncompatibleProtocols"
The specified configuration is not valid with this protocol.

* ErrCodeSSLPolicyNotFoundException "SSLPolicyNotFound"
The specified SSL policy does not exist.

* ErrCodeCertificateNotFoundException "CertificateNotFound"
The specified certificate does not exist.

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

* ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
The specified protocol is not supported.

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

* ErrCodeTooManyTargetsException "TooManyTargets"
You've reached the limit on the number of targets.

* ErrCodeTooManyActionsException "TooManyActions"
You've reached the limit on the number of actions per rule.

* ErrCodeInvalidLoadBalancerActionException "InvalidLoadBalancerAction"
The requested action is not valid.

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

To change the default action for a listener

This example changes the default action for the specified listener.

Code:

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

result, err := svc.ModifyListener(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case elbv2.ErrCodeDuplicateListenerException:
            fmt.Println(elbv2.ErrCodeDuplicateListenerException, aerr.Error())
        case elbv2.ErrCodeTooManyListenersException:
            fmt.Println(elbv2.ErrCodeTooManyListenersException, aerr.Error())
        case elbv2.ErrCodeTooManyCertificatesException:
            fmt.Println(elbv2.ErrCodeTooManyCertificatesException, aerr.Error())
        case elbv2.ErrCodeListenerNotFoundException:
            fmt.Println(elbv2.ErrCodeListenerNotFoundException, aerr.Error())
        case elbv2.ErrCodeTargetGroupNotFoundException:
            fmt.Println(elbv2.ErrCodeTargetGroupNotFoundException, aerr.Error())
        case elbv2.ErrCodeTargetGroupAssociationLimitException:
            fmt.Println(elbv2.ErrCodeTargetGroupAssociationLimitException, aerr.Error())
        case elbv2.ErrCodeIncompatibleProtocolsException:
            fmt.Println(elbv2.ErrCodeIncompatibleProtocolsException, aerr.Error())
        case elbv2.ErrCodeSSLPolicyNotFoundException:
            fmt.Println(elbv2.ErrCodeSSLPolicyNotFoundException, aerr.Error())
        case elbv2.ErrCodeCertificateNotFoundException:
            fmt.Println(elbv2.ErrCodeCertificateNotFoundException, aerr.Error())
        case elbv2.ErrCodeInvalidConfigurationRequestException:
            fmt.Println(elbv2.ErrCodeInvalidConfigurationRequestException, aerr.Error())
        case elbv2.ErrCodeUnsupportedProtocolException:
            fmt.Println(elbv2.ErrCodeUnsupportedProtocolException, aerr.Error())
        case elbv2.ErrCodeTooManyRegistrationsForTargetIdException:
            fmt.Println(elbv2.ErrCodeTooManyRegistrationsForTargetIdException, aerr.Error())
        case elbv2.ErrCodeTooManyTargetsException:
            fmt.Println(elbv2.ErrCodeTooManyTargetsException, aerr.Error())
        case elbv2.ErrCodeTooManyActionsException:
            fmt.Println(elbv2.ErrCodeTooManyActionsException, aerr.Error())
        case elbv2.ErrCodeInvalidLoadBalancerActionException:
            fmt.Println(elbv2.ErrCodeInvalidLoadBalancerActionException, 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)

To change the server certificate

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

Code:

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

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

fmt.Println(result)

func (*ELBV2) ModifyListenerRequest Uses

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

ModifyListenerRequest generates a "aws/request.Request" representing the client's request for the ModifyListener operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyListener for more information on using the ModifyListener API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) ModifyListenerWithContext Uses

func (c *ELBV2) ModifyListenerWithContext(ctx aws.Context, input *ModifyListenerInput, opts ...request.Option) (*ModifyListenerOutput, error)

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

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

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

func (*ELBV2) ModifyLoadBalancerAttributes Uses

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

ModifyLoadBalancerAttributes API operation for Elastic Load Balancing.

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

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

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

Returned Error Codes:

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

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

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

To enable deletion protection

This example enables deletion protection for the specified load balancer.

Code:

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

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

fmt.Println(result)

To change the idle timeout

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

Code:

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

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

fmt.Println(result)

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.

Code:

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

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

fmt.Println(result)

func (*ELBV2) ModifyLoadBalancerAttributesRequest Uses

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

ModifyLoadBalancerAttributesRequest generates a "aws/request.Request" representing the client's request for the ModifyLoadBalancerAttributes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyLoadBalancerAttributes for more information on using the ModifyLoadBalancerAttributes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) ModifyLoadBalancerAttributesWithContext Uses

func (c *ELBV2) ModifyLoadBalancerAttributesWithContext(ctx aws.Context, input *ModifyLoadBalancerAttributesInput, opts ...request.Option) (*ModifyLoadBalancerAttributesOutput, error)

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

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

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

func (*ELBV2) ModifyRule Uses

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

ModifyRule API operation for Elastic Load Balancing.

Modifies the specified rule.

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

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

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

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

Returned Error Codes:

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

* ErrCodeIncompatibleProtocolsException "IncompatibleProtocols"
The specified configuration is not valid with this protocol.

* ErrCodeRuleNotFoundException "RuleNotFound"
The specified rule does not exist.

* ErrCodeOperationNotPermittedException "OperationNotPermitted"
This operation is not allowed.

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

* ErrCodeTooManyTargetsException "TooManyTargets"
You've reached the limit on the number of targets.

* ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
The specified target group does not exist.

* ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
The specified protocol is not supported.

* ErrCodeTooManyActionsException "TooManyActions"
You've reached the limit on the number of actions per rule.

* ErrCodeInvalidLoadBalancerActionException "InvalidLoadBalancerAction"
The requested action is not valid.

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

To modify a rule

This example modifies the condition for the specified rule.

Code:

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

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

fmt.Println(result)

func (*ELBV2) ModifyRuleRequest Uses

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

ModifyRuleRequest generates a "aws/request.Request" representing the client's request for the ModifyRule operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyRule for more information on using the ModifyRule API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) ModifyRuleWithContext Uses

func (c *ELBV2) ModifyRuleWithContext(ctx aws.Context, input *ModifyRuleInput, opts ...request.Option) (*ModifyRuleOutput, error)

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

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

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

func (*ELBV2) ModifyTargetGroup Uses

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

ModifyTargetGroup API operation for Elastic Load Balancing.

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

To monitor the health of the targets, use DescribeTargetHealth.

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

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

Returned Error Codes:

* ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
The specified target group does not exist.

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

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

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.

Code:

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

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

fmt.Println(result)

func (*ELBV2) ModifyTargetGroupAttributes Uses

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

ModifyTargetGroupAttributes API operation for Elastic Load Balancing.

Modifies the specified attributes of the specified target group.

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

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

Returned Error Codes:

* ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
The specified target group does not exist.

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

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

To modify the deregistration delay timeout

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

Code:

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

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

fmt.Println(result)

func (*ELBV2) ModifyTargetGroupAttributesRequest Uses

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

ModifyTargetGroupAttributesRequest generates a "aws/request.Request" representing the client's request for the ModifyTargetGroupAttributes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyTargetGroupAttributes for more information on using the ModifyTargetGroupAttributes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) ModifyTargetGroupAttributesWithContext Uses

func (c *ELBV2) ModifyTargetGroupAttributesWithContext(ctx aws.Context, input *ModifyTargetGroupAttributesInput, opts ...request.Option) (*ModifyTargetGroupAttributesOutput, error)

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

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

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

func (*ELBV2) ModifyTargetGroupRequest Uses

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

ModifyTargetGroupRequest generates a "aws/request.Request" representing the client's request for the ModifyTargetGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyTargetGroup for more information on using the ModifyTargetGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) ModifyTargetGroupWithContext Uses

func (c *ELBV2) ModifyTargetGroupWithContext(ctx aws.Context, input *ModifyTargetGroupInput, opts ...request.Option) (*ModifyTargetGroupOutput, error)

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

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

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

func (*ELBV2) RegisterTargets Uses

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

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

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

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

Returned Error Codes:

* ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
The specified target group does not exist.

* ErrCodeTooManyTargetsException "TooManyTargets"
You've reached the limit on the number of targets.

* ErrCodeInvalidTargetException "InvalidTarget"
The specified target does not exist, is not in the same VPC as the target
group, or has an unsupported instance type.

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

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

To register targets with a target group

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

Code:

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

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

fmt.Println(result)

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.

Code:

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

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

fmt.Println(result)

func (*ELBV2) RegisterTargetsRequest Uses

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

RegisterTargetsRequest generates a "aws/request.Request" representing the client's request for the RegisterTargets operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RegisterTargets for more information on using the RegisterTargets API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) RegisterTargetsWithContext Uses

func (c *ELBV2) RegisterTargetsWithContext(ctx aws.Context, input *RegisterTargetsInput, opts ...request.Option) (*RegisterTargetsOutput, error)

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

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

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

func (*ELBV2) RemoveListenerCertificates Uses

func (c *ELBV2) RemoveListenerCertificates(input *RemoveListenerCertificatesInput) (*RemoveListenerCertificatesOutput, error)

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

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

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

Returned Error Codes:

* ErrCodeListenerNotFoundException "ListenerNotFound"
The specified listener does not exist.

* ErrCodeOperationNotPermittedException "OperationNotPermitted"
This operation is not allowed.

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

func (*ELBV2) RemoveListenerCertificatesRequest Uses

func (c *ELBV2) RemoveListenerCertificatesRequest(input *RemoveListenerCertificatesInput) (req *request.Request, output *RemoveListenerCertificatesOutput)

RemoveListenerCertificatesRequest generates a "aws/request.Request" representing the client's request for the RemoveListenerCertificates operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RemoveListenerCertificates for more information on using the RemoveListenerCertificates API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) RemoveListenerCertificatesWithContext Uses

func (c *ELBV2) RemoveListenerCertificatesWithContext(ctx aws.Context, input *RemoveListenerCertificatesInput, opts ...request.Option) (*RemoveListenerCertificatesOutput, error)

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

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

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

func (*ELBV2) RemoveTags Uses

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

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

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

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

Returned Error Codes:

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

* ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
The specified target group does not exist.

* ErrCodeListenerNotFoundException "ListenerNotFound"
The specified listener does not exist.

* ErrCodeRuleNotFoundException "RuleNotFound"
The specified rule does not exist.

* ErrCodeTooManyTagsException "TooManyTags"
You've reached the limit on the number of tags per load balancer.

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

To remove tags from a load balancer

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

Code:

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

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

fmt.Println(result)

func (*ELBV2) RemoveTagsRequest Uses

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

RemoveTagsRequest generates a "aws/request.Request" representing the client's request for the RemoveTags operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RemoveTags for more information on using the RemoveTags API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) RemoveTagsWithContext Uses

func (c *ELBV2) RemoveTagsWithContext(ctx aws.Context, input *RemoveTagsInput, opts ...request.Option) (*RemoveTagsOutput, error)

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

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

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

func (*ELBV2) SetIpAddressType Uses

func (c *ELBV2) SetIpAddressType(input *SetIpAddressTypeInput) (*SetIpAddressTypeOutput, error)

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

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

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

Returned Error Codes:

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

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

* ErrCodeInvalidSubnetException "InvalidSubnet"
The specified subnet is out of available addresses.

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

func (*ELBV2) SetIpAddressTypeRequest Uses

func (c *ELBV2) SetIpAddressTypeRequest(input *SetIpAddressTypeInput) (req *request.Request, output *SetIpAddressTypeOutput)

SetIpAddressTypeRequest generates a "aws/request.Request" representing the client's request for the SetIpAddressType operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See SetIpAddressType for more information on using the SetIpAddressType API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) SetIpAddressTypeWithContext Uses

func (c *ELBV2) SetIpAddressTypeWithContext(ctx aws.Context, input *SetIpAddressTypeInput, opts ...request.Option) (*SetIpAddressTypeOutput, error)

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

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

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

func (*ELBV2) SetRulePriorities Uses

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

SetRulePriorities API operation for Elastic Load Balancing.

Sets the priorities of the specified rules.

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

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

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

Returned Error Codes:

* ErrCodeRuleNotFoundException "RuleNotFound"
The specified rule does not exist.

* ErrCodePriorityInUseException "PriorityInUse"
The specified priority is in use.

* ErrCodeOperationNotPermittedException "OperationNotPermitted"
This operation is not allowed.

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

To set the rule priority

This example sets the priority of the specified rule.

Code:

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

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

fmt.Println(result)

func (*ELBV2) SetRulePrioritiesRequest Uses

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

SetRulePrioritiesRequest generates a "aws/request.Request" representing the client's request for the SetRulePriorities operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See SetRulePriorities for more information on using the SetRulePriorities API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) SetRulePrioritiesWithContext Uses

func (c *ELBV2) SetRulePrioritiesWithContext(ctx aws.Context, input *SetRulePrioritiesInput, opts ...request.Option) (*SetRulePrioritiesOutput, error)

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

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

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

func (*ELBV2) SetSecurityGroups Uses

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

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

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

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

Returned Error Codes:

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

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

* ErrCodeInvalidSecurityGroupException "InvalidSecurityGroup"
The specified security group does not exist.

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

To associate a security group with a load balancer

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

Code:

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

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

fmt.Println(result)

func (*ELBV2) SetSecurityGroupsRequest Uses

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

SetSecurityGroupsRequest generates a "aws/request.Request" representing the client's request for the SetSecurityGroups operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See SetSecurityGroups for more information on using the SetSecurityGroups API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) SetSecurityGroupsWithContext Uses

func (c *ELBV2) SetSecurityGroupsWithContext(ctx aws.Context, input *SetSecurityGroupsInput, opts ...request.Option) (*SetSecurityGroupsOutput, error)

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

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

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

func (*ELBV2) SetSubnets Uses

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

SetSubnets API operation for Elastic Load Balancing.

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

You can't change the subnets for a Network Load Balancer.

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

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

Returned Error Codes:

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

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

* ErrCodeSubnetNotFoundException "SubnetNotFound"
The specified subnet does not exist.

* ErrCodeInvalidSubnetException "InvalidSubnet"
The specified subnet is out of available addresses.

* ErrCodeAllocationIdNotFoundException "AllocationIdNotFound"
The specified allocation ID does not exist.

* ErrCodeAvailabilityZoneNotSupportedException "AvailabilityZoneNotSupported"
The specified Availability Zone is not supported.

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

To enable Availability Zones for a load balancer

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

Code:

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

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

fmt.Println(result)

func (*ELBV2) SetSubnetsRequest Uses

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

SetSubnetsRequest generates a "aws/request.Request" representing the client's request for the SetSubnets operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See SetSubnets for more information on using the SetSubnets API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

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

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

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

func (*ELBV2) SetSubnetsWithContext Uses

func (c *ELBV2) SetSubnetsWithContext(ctx aws.Context, input *SetSubnetsInput, opts ...request.Option) (*SetSubnetsOutput, error)

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

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

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

func (*ELBV2) WaitUntilLoadBalancerAvailable Uses

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

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

func (*ELBV2) WaitUntilLoadBalancerAvailableWithContext Uses

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

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

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

func (*ELBV2) WaitUntilLoadBalancerExists Uses

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

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

func (*ELBV2) WaitUntilLoadBalancerExistsWithContext Uses

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

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

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

func (*ELBV2) WaitUntilLoadBalancersDeleted Uses

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

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

func (*ELBV2) WaitUntilLoadBalancersDeletedWithContext Uses

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

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

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

func (*ELBV2) WaitUntilTargetDeregistered Uses

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

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

func (*ELBV2) WaitUntilTargetDeregisteredWithContext Uses

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

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

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

func (*ELBV2) WaitUntilTargetInService Uses

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

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

func (*ELBV2) WaitUntilTargetInServiceWithContext Uses

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

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

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

type FixedResponseActionConfig Uses

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) GoString Uses

func (s FixedResponseActionConfig) GoString() string

GoString returns the string representation

func (*FixedResponseActionConfig) SetContentType Uses

func (s *FixedResponseActionConfig) SetContentType(v string) *FixedResponseActionConfig

SetContentType sets the ContentType field's value.

func (*FixedResponseActionConfig) SetMessageBody Uses

func (s *FixedResponseActionConfig) SetMessageBody(v string) *FixedResponseActionConfig

SetMessageBody sets the MessageBody field's value.

func (*FixedResponseActionConfig) SetStatusCode Uses

func (s *FixedResponseActionConfig) SetStatusCode(v string) *FixedResponseActionConfig

SetStatusCode sets the StatusCode field's value.

func (FixedResponseActionConfig) String Uses

func (s FixedResponseActionConfig) String() string

String returns the string representation

func (*FixedResponseActionConfig) Validate Uses

func (s *FixedResponseActionConfig) Validate() error

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

type HostHeaderConditionConfig Uses

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) GoString Uses

func (s HostHeaderConditionConfig) GoString() string

GoString returns the string representation

func (*HostHeaderConditionConfig) SetValues Uses

func (s *HostHeaderConditionConfig) SetValues(v []*string) *HostHeaderConditionConfig

SetValues sets the Values field's value.

func (HostHeaderConditionConfig) String Uses

func (s HostHeaderConditionConfig) String() string

String returns the string representation

type HttpHeaderConditionConfig Uses

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) GoString Uses

func (s HttpHeaderConditionConfig) GoString() string

GoString returns the string representation

func (*HttpHeaderConditionConfig) SetHttpHeaderName Uses

func (s *HttpHeaderConditionConfig) SetHttpHeaderName(v string) *HttpHeaderConditionConfig

SetHttpHeaderName sets the HttpHeaderName field's value.

func (*HttpHeaderConditionConfig) SetValues Uses

func (s *HttpHeaderConditionConfig) SetValues(v []*string) *HttpHeaderConditionConfig

SetValues sets the Values field's value.

func (HttpHeaderConditionConfig) String Uses

func (s HttpHeaderConditionConfig) String() string

String returns the string representation

type HttpRequestMethodConditionConfig Uses

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) GoString Uses

func (s HttpRequestMethodConditionConfig) GoString() string

GoString returns the string representation

func (*HttpRequestMethodConditionConfig) SetValues Uses

func (s *HttpRequestMethodConditionConfig) SetValues(v []*string) *HttpRequestMethodConditionConfig

SetValues sets the Values field's value.

func (HttpRequestMethodConditionConfig) String Uses

func (s HttpRequestMethodConditionConfig) String() string

String returns the string representation

type Limit Uses

type Limit struct {

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

    // The name of the limit. The possible values are:
    //
    //    * application-load-balancers
    //
    //    * listeners-per-application-load-balancer
    //
    //    * listeners-per-network-load-balancer
    //
    //    * network-load-balancers
    //
    //    * rules-per-application-load-balancer
    //
    //    * target-groups
    //
    //    * targets-per-application-load-balancer
    //
    //    * 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) GoString Uses

func (s Limit) GoString() string

GoString returns the string representation

func (*Limit) SetMax Uses

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

SetMax sets the Max field's value.

func (*Limit) SetName Uses

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

SetName sets the Name field's value.

func (Limit) String Uses

func (s Limit) String() string

String returns the string representation

type Listener Uses

type Listener struct {

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

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

Information about a listener.

func (Listener) GoString Uses

func (s Listener) GoString() string

GoString returns the string representation

func (*Listener) SetCertificates Uses

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

SetCertificates sets the Certificates field's value.

func (*Listener) SetDefaultActions Uses

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

SetDefaultActions sets the DefaultActions field's value.

func (*Listener) SetListenerArn Uses

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

SetListenerArn sets the ListenerArn field's value.

func (*Listener) SetLoadBalancerArn Uses

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*Listener) SetPort Uses

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

SetPort sets the Port field's value.

func (*Listener) SetProtocol Uses

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

SetProtocol sets the Protocol field's value.

func (*Listener) SetSslPolicy Uses

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

SetSslPolicy sets the SslPolicy field's value.

func (Listener) String Uses

func (s Listener) String() string

String returns the string representation

type LoadBalancer Uses

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

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

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

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

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

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

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

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

Information about a load balancer.

func (LoadBalancer) GoString Uses

func (s LoadBalancer) GoString() string

GoString returns the string representation

func (*LoadBalancer) SetAvailabilityZones Uses

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

SetAvailabilityZones sets the AvailabilityZones field's value.

func (*LoadBalancer) SetCanonicalHostedZoneId Uses

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

SetCanonicalHostedZoneId sets the CanonicalHostedZoneId field's value.

func (*LoadBalancer) SetCreatedTime Uses

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

SetCreatedTime sets the CreatedTime field's value.

func (*LoadBalancer) SetDNSName Uses

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

SetDNSName sets the DNSName field's value.

func (*LoadBalancer) SetIpAddressType Uses

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

SetIpAddressType sets the IpAddressType field's value.

func (*LoadBalancer) SetLoadBalancerArn Uses

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

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*LoadBalancer) SetLoadBalancerName Uses

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

SetLoadBalancerName sets the LoadBalancerName field's value.

func (*LoadBalancer) SetScheme Uses

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

SetScheme sets the Scheme field's value.

func (*LoadBalancer) SetSecurityGroups Uses

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

SetSecurityGroups sets the SecurityGroups field's value.

func (*LoadBalancer) SetState Uses

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

SetState sets the State field's value.

func (*LoadBalancer) SetType Uses

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

SetType sets the Type field's value.

func (*LoadBalancer) SetVpcId Uses

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

SetVpcId sets the VpcId field's value.

func (LoadBalancer) String Uses

func (s LoadBalancer) String() string

String returns the string representation

type LoadBalancerAddress Uses

type LoadBalancerAddress struct {

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

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

Information about a static IP address for a load balancer.

func (LoadBalancerAddress) GoString Uses

func (s LoadBalancerAddress) GoString() string

GoString returns the string representation

func (*LoadBalancerAddress) SetAllocationId Uses

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

SetAllocationId sets the AllocationId field's value.

func (*LoadBalancerAddress) SetIpAddress Uses

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

SetIpAddress sets the IpAddress field's value.

func (LoadBalancerAddress) String Uses

func (s LoadBalancerAddress) String() string

String returns the string representation

type LoadBalancerAttribute Uses

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.http2.enabled - Indicates whether HTTP/2 is enabled. The value
    //    is true or false. The default is true.
    //
    // 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) GoString Uses

func (s LoadBalancerAttribute) GoString() string

GoString returns the string representation

func (*LoadBalancerAttribute) SetKey Uses

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

SetKey sets the Key field's value.

func (*LoadBalancerAttribute) SetValue Uses

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

SetValue sets the Value field's value.

func (LoadBalancerAttribute) String Uses

func (s LoadBalancerAttribute) String() string

String returns the string representation

type LoadBalancerState Uses

type LoadBalancerState struct {

    // The state code. The initial state of the load balancer is provisioning. After
    // the load balancer is fully set up and ready to route traffic, its state is
    // active. If the load balancer could not be set up, its state is failed.
    Code *string `type:"string" enum:"LoadBalancerStateEnum"`

    // A description of the state.
    Reason *string `type:"string"`
    // contains filtered or unexported fields
}

Information about the state of the load balancer.

func (LoadBalancerState) GoString Uses

func (s LoadBalancerState) GoString() string

GoString returns the string representation

func (*LoadBalancerState) SetCode Uses

func (s *LoadBalancerState) SetCode(v string) *LoadBalancerState

SetCode sets the Code field's value.

func (*LoadBalancerState) SetReason Uses

func (s *LoadBalancerState) SetReason(v string) *LoadBalancerState

SetReason sets the Reason field's value.

func (LoadBalancerState) String Uses

func (s LoadBalancerState) String() string

String returns the string representation

type Matcher Uses

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) GoString Uses

func (s Matcher) GoString() string

GoString returns the string representation

func (*Matcher) SetHttpCode Uses

func (s *Matcher) SetHttpCode(v string) *Matcher

SetHttpCode sets the HttpCode field's value.

func (Matcher) String Uses

func (s Matcher) String() string

String returns the string representation

func (*Matcher) Validate Uses

func (s *Matcher) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ModifyListenerInput Uses

type ModifyListenerInput struct {

    // [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 a target group. 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 *string `type:"string" enum:"ProtocolEnum"`

    // [HTTPS and TLS listeners] The security policy that defines which protocols
    // and ciphers are supported. 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.
    SslPolicy *string `type:"string"`
    // contains filtered or unexported fields
}

func (ModifyListenerInput) GoString Uses

func (s ModifyListenerInput) GoString() string

GoString returns the string representation

func (*ModifyListenerInput) SetCertificates Uses

func (s *ModifyListenerInput) SetCertificates(v []*Certificate) *ModifyListenerInput

SetCertificates sets the Certificates field's value.

func (*ModifyListenerInput) SetDefaultActions Uses

func (s *ModifyListenerInput) SetDefaultActions(v []*Action) *ModifyListenerInput

SetDefaultActions sets the DefaultActions field's value.

func (*ModifyListenerInput) SetListenerArn Uses

func (s *ModifyListenerInput) SetListenerArn(v string) *ModifyListenerInput

SetListenerArn sets the ListenerArn field's value.

func (*ModifyListenerInput) SetPort Uses

func (s *ModifyListenerInput) SetPort(v int64) *ModifyListenerInput

SetPort sets the Port field's value.

func (*ModifyListenerInput) SetProtocol Uses

func (s *ModifyListenerInput) SetProtocol(v string) *ModifyListenerInput

SetProtocol sets the Protocol field's value.

func (*ModifyListenerInput) SetSslPolicy Uses

func (s *ModifyListenerInput) SetSslPolicy(v string) *ModifyListenerInput

SetSslPolicy sets the SslPolicy field's value.

func (ModifyListenerInput) String Uses

func (s ModifyListenerInput) String() string

String returns the string representation

func (*ModifyListenerInput) Validate Uses

func (s *ModifyListenerInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ModifyListenerOutput Uses

type ModifyListenerOutput struct {

    // Information about the modified listener.
    Listeners []*Listener `type:"list"`
    // contains filtered or unexported fields
}

func (ModifyListenerOutput) GoString Uses

func (s ModifyListenerOutput) GoString() string

GoString returns the string representation

func (*ModifyListenerOutput) SetListeners Uses

func (s *ModifyListenerOutput) SetListeners(v []*Listener) *ModifyListenerOutput

SetListeners sets the Listeners field's value.

func (ModifyListenerOutput) String Uses

func (s ModifyListenerOutput) String() string

String returns the string representation

type ModifyLoadBalancerAttributesInput Uses

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) GoString Uses

func (s ModifyLoadBalancerAttributesInput) GoString() string

GoString returns the string representation

func (*ModifyLoadBalancerAttributesInput) SetAttributes Uses

func (s *ModifyLoadBalancerAttributesInput) SetAttributes(v []*LoadBalancerAttribute) *ModifyLoadBalancerAttributesInput

SetAttributes sets the Attributes field's value.

func (*ModifyLoadBalancerAttributesInput) SetLoadBalancerArn Uses

func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerArn(v string) *ModifyLoadBalancerAttributesInput

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (ModifyLoadBalancerAttributesInput) String Uses

func (s ModifyLoadBalancerAttributesInput) String() string

String returns the string representation

func (*ModifyLoadBalancerAttributesInput) Validate Uses

func (s *ModifyLoadBalancerAttributesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ModifyLoadBalancerAttributesOutput Uses

type ModifyLoadBalancerAttributesOutput struct {

    // Information about the load balancer attributes.
    Attributes []*LoadBalancerAttribute `type:"list"`
    // contains filtered or unexported fields
}

func (ModifyLoadBalancerAttributesOutput) GoString Uses

func (s ModifyLoadBalancerAttributesOutput) GoString() string

GoString returns the string representation

func (*ModifyLoadBalancerAttributesOutput) SetAttributes Uses

func (s *ModifyLoadBalancerAttributesOutput) SetAttributes(v []*LoadBalancerAttribute) *ModifyLoadBalancerAttributesOutput

SetAttributes sets the Attributes field's value.

func (ModifyLoadBalancerAttributesOutput) String Uses

func (s ModifyLoadBalancerAttributesOutput) String() string

String returns the string representation

type ModifyRuleInput Uses

type ModifyRuleInput struct {

    // The actions. Each rule must include exactly one of the following types of
    // actions: forward, fixed-response, or redirect.
    //
    // If the action type is forward, you specify a target group. 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) GoString Uses

func (s ModifyRuleInput) GoString() string

GoString returns the string representation

func (*ModifyRuleInput) SetActions Uses

func (s *ModifyRuleInput) SetActions(v []*Action) *ModifyRuleInput

SetActions sets the Actions field's value.

func (*ModifyRuleInput) SetConditions Uses

func (s *ModifyRuleInput) SetConditions(v []*RuleCondition) *ModifyRuleInput

SetConditions sets the Conditions field's value.

func (*ModifyRuleInput) SetRuleArn Uses

func (s *ModifyRuleInput) SetRuleArn(v string) *ModifyRuleInput

SetRuleArn sets the RuleArn field's value.

func (ModifyRuleInput) String Uses

func (s ModifyRuleInput) String() string

String returns the string representation

func (*ModifyRuleInput) Validate Uses

func (s *ModifyRuleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ModifyRuleOutput Uses

type ModifyRuleOutput struct {

    // Information about the modified rule.
    Rules []*Rule `type:"list"`
    // contains filtered or unexported fields
}

func (ModifyRuleOutput) GoString Uses

func (s ModifyRuleOutput) GoString() string

GoString returns the string representation

func (*ModifyRuleOutput) SetRules Uses

func (s *ModifyRuleOutput) SetRules(v []*Rule) *ModifyRuleOutput

SetRules sets the Rules field's value.

func (ModifyRuleOutput) String Uses

func (s ModifyRuleOutput) String() string

String returns the string representation

type ModifyTargetGroupAttributesInput Uses

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) GoString Uses

func (s ModifyTargetGroupAttributesInput) GoString() string

GoString returns the string representation

func (*ModifyTargetGroupAttributesInput) SetAttributes Uses

func (s *ModifyTargetGroupAttributesInput) SetAttributes(v []*TargetGroupAttribute) *ModifyTargetGroupAttributesInput

SetAttributes sets the Attributes field's value.

func (*ModifyTargetGroupAttributesInput) SetTargetGroupArn Uses

func (s *ModifyTargetGroupAttributesInput) SetTargetGroupArn(v string) *ModifyTargetGroupAttributesInput

SetTargetGroupArn sets the TargetGroupArn field's value.

func (ModifyTargetGroupAttributesInput) String Uses

func (s ModifyTargetGroupAttributesInput) String() string

String returns the string representation

func (*ModifyTargetGroupAttributesInput) Validate Uses

func (s *ModifyTargetGroupAttributesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ModifyTargetGroupAttributesOutput Uses

type ModifyTargetGroupAttributesOutput struct {

    // Information about the attributes.
    Attributes []*TargetGroupAttribute `type:"list"`
    // contains filtered or unexported fields
}

func (ModifyTargetGroupAttributesOutput) GoString Uses

func (s ModifyTargetGroupAttributesOutput) GoString() string

GoString returns the string representation

func (*ModifyTargetGroupAttributesOutput) SetAttributes Uses

func (s *ModifyTargetGroupAttributesOutput) SetAttributes(v []*TargetGroupAttribute) *ModifyTargetGroupAttributesOutput

SetAttributes sets the Attributes field's value.

func (ModifyTargetGroupAttributesOutput) String Uses

func (s ModifyTargetGroupAttributesOutput) String() string

String returns the string representation

type ModifyTargetGroupInput Uses

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.
    //
    // If the protocol of the target group is TCP, 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.
    //
    // If the protocol of the target group is TCP, you can't modify this setting.
    HealthCheckProtocol *string `type:"string" enum:"ProtocolEnum"`

    // [HTTP/HTTPS health checks] The amount of time, in seconds, during which no
    // response means a failed health check.
    //
    // If the protocol of the target group is TCP, 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.
    //
    // If the protocol of the target group is TCP, 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) GoString Uses

func (s ModifyTargetGroupInput) GoString() string

GoString returns the string representation

func (*ModifyTargetGroupInput) SetHealthCheckEnabled Uses

func (s *ModifyTargetGroupInput) SetHealthCheckEnabled(v bool) *ModifyTargetGroupInput

SetHealthCheckEnabled sets the HealthCheckEnabled field's value.

func (*ModifyTargetGroupInput) SetHealthCheckIntervalSeconds Uses

func (s *ModifyTargetGroupInput) SetHealthCheckIntervalSeconds(v int64) *ModifyTargetGroupInput

SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value.

func (*ModifyTargetGroupInput) SetHealthCheckPath Uses

func (s *ModifyTargetGroupInput) SetHealthCheckPath(v string) *ModifyTargetGroupInput

SetHealthCheckPath sets the HealthCheckPath field's value.

func (*ModifyTargetGroupInput) SetHealthCheckPort Uses

func (s *ModifyTargetGroupInput) SetHealthCheckPort(v string) *ModifyTargetGroupInput

SetHealthCheckPort sets the HealthCheckPort field's value.

func (*ModifyTargetGroupInput) SetHealthCheckProtocol Uses

func (s *ModifyTargetGroupInput) SetHealthCheckProtocol(v string) *ModifyTargetGroupInput

SetHealthCheckProtocol sets the HealthCheckProtocol field's value.

func (*ModifyTargetGroupInput) SetHealthCheckTimeoutSeconds Uses

func (s *ModifyTargetGroupInput) SetHealthCheckTimeoutSeconds(v int64) *ModifyTargetGroupInput

SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value.

func (*ModifyTargetGroupInput) SetHealthyThresholdCount Uses

func (s *ModifyTargetGroupInput) SetHealthyThresholdCount(v int64) *ModifyTargetGroupInput

SetHealthyThresholdCount sets the HealthyThresholdCount field's value.

func (*ModifyTargetGroupInput) SetMatcher Uses

func (s *ModifyTargetGroupInput) SetMatcher(v *Matcher) *ModifyTargetGroupInput

SetMatcher sets the Matcher field's value.

func (*ModifyTargetGroupInput) SetTargetGroupArn Uses

func (s *ModifyTargetGroupInput) SetTargetGroupArn(v string) *ModifyTargetGroupInput

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*ModifyTargetGroupInput) SetUnhealthyThresholdCount Uses

func (s *ModifyTargetGroupInput) SetUnhealthyThresholdCount(v int64) *ModifyTargetGroupInput

SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value.

func (ModifyTargetGroupInput) String Uses

func (s ModifyTargetGroupInput) String() string

String returns the string representation

func (*ModifyTargetGroupInput) Validate Uses

func (s *ModifyTargetGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ModifyTargetGroupOutput Uses

type ModifyTargetGroupOutput struct {

    // Information about the modified target group.
    TargetGroups []*TargetGroup `type:"list"`
    // contains filtered or unexported fields
}

func (ModifyTargetGroupOutput) GoString Uses

func (s ModifyTargetGroupOutput) GoString() string

GoString returns the string representation

func (*ModifyTargetGroupOutput) SetTargetGroups Uses

func (s *ModifyTargetGroupOutput) SetTargetGroups(v []*TargetGroup) *ModifyTargetGroupOutput

SetTargetGroups sets the TargetGroups field's value.

func (ModifyTargetGroupOutput) String Uses

func (s ModifyTargetGroupOutput) String() string

String returns the string representation

type PathPatternConditionConfig Uses

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) GoString Uses

func (s PathPatternConditionConfig) GoString() string

GoString returns the string representation

func (*PathPatternConditionConfig) SetValues Uses

func (s *PathPatternConditionConfig) SetValues(v []*string) *PathPatternConditionConfig

SetValues sets the Values field's value.

func (PathPatternConditionConfig) String Uses

func (s PathPatternConditionConfig) String() string

String returns the string representation

type QueryStringConditionConfig Uses

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) GoString Uses

func (s QueryStringConditionConfig) GoString() string

GoString returns the string representation

func (*QueryStringConditionConfig) SetValues Uses

func (s *QueryStringConditionConfig) SetValues(v []*QueryStringKeyValuePair) *QueryStringConditionConfig

SetValues sets the Values field's value.

func (QueryStringConditionConfig) String Uses

func (s QueryStringConditionConfig) String() string

String returns the string representation

type QueryStringKeyValuePair Uses

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) GoString Uses

func (s QueryStringKeyValuePair) GoString() string

GoString returns the string representation

func (*QueryStringKeyValuePair) SetKey Uses

func (s *QueryStringKeyValuePair) SetKey(v string) *QueryStringKeyValuePair

SetKey sets the Key field's value.

func (*QueryStringKeyValuePair) SetValue Uses

func (s *QueryStringKeyValuePair) SetValue(v string) *QueryStringKeyValuePair

SetValue sets the Value field's value.

func (QueryStringKeyValuePair) String Uses

func (s QueryStringKeyValuePair) String() string

String returns the string representation

type RedirectActionConfig Uses

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 *string `type:"string" required:"true" enum:"RedirectActionStatusCodeEnum"`
    // 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) GoString Uses

func (s RedirectActionConfig) GoString() string

GoString returns the string representation

func (*RedirectActionConfig) SetHost Uses

func (s *RedirectActionConfig) SetHost(v string) *RedirectActionConfig

SetHost sets the Host field's value.

func (*RedirectActionConfig) SetPath Uses

func (s *RedirectActionConfig) SetPath(v string) *RedirectActionConfig

SetPath sets the Path field's value.

func (*RedirectActionConfig) SetPort Uses

func (s *RedirectActionConfig) SetPort(v string) *RedirectActionConfig

SetPort sets the Port field's value.

func (*RedirectActionConfig) SetProtocol Uses

func (s *RedirectActionConfig) SetProtocol(v string) *RedirectActionConfig

SetProtocol sets the Protocol field's value.

func (*RedirectActionConfig) SetQuery Uses

func (s *RedirectActionConfig) SetQuery(v string) *RedirectActionConfig

SetQuery sets the Query field's value.

func (*RedirectActionConfig) SetStatusCode Uses

func (s *RedirectActionConfig) SetStatusCode(v string) *RedirectActionConfig

SetStatusCode sets the StatusCode field's value.

func (RedirectActionConfig) String Uses

func (s RedirectActionConfig) String() string

String returns the string representation

func (*RedirectActionConfig) Validate Uses

func (s *RedirectActionConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RegisterTargetsInput Uses

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) GoString Uses

func (s RegisterTargetsInput) GoString() string

GoString returns the string representation

func (*RegisterTargetsInput) SetTargetGroupArn Uses

func (s *RegisterTargetsInput) SetTargetGroupArn(v string) *RegisterTargetsInput

SetTargetGroupArn sets the TargetGroupArn field's value.

func (*RegisterTargetsInput) SetTargets Uses

func (s *RegisterTargetsInput) SetTargets(v []*TargetDescription) *RegisterTargetsInput

SetTargets sets the Targets field's value.

func (RegisterTargetsInput) String Uses

func (s RegisterTargetsInput) String() string

String returns the string representation

func (*RegisterTargetsInput) Validate Uses

func (s *RegisterTargetsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RegisterTargetsOutput Uses

type RegisterTargetsOutput struct {
    // contains filtered or unexported fields
}

func (RegisterTargetsOutput) GoString Uses

func (s RegisterTargetsOutput) GoString() string

GoString returns the string representation

func (RegisterTargetsOutput) String Uses

func (s RegisterTargetsOutput) String() string

String returns the string representation

type RemoveListenerCertificatesInput Uses

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) GoString Uses

func (s RemoveListenerCertificatesInput) GoString() string

GoString returns the string representation

func (*RemoveListenerCertificatesInput) SetCertificates Uses

func (s *RemoveListenerCertificatesInput) SetCertificates(v []*Certificate) *RemoveListenerCertificatesInput

SetCertificates sets the Certificates field's value.

func (*RemoveListenerCertificatesInput) SetListenerArn Uses

func (s *RemoveListenerCertificatesInput) SetListenerArn(v string) *RemoveListenerCertificatesInput

SetListenerArn sets the ListenerArn field's value.

func (RemoveListenerCertificatesInput) String Uses

func (s RemoveListenerCertificatesInput) String() string

String returns the string representation

func (*RemoveListenerCertificatesInput) Validate Uses

func (s *RemoveListenerCertificatesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RemoveListenerCertificatesOutput Uses

type RemoveListenerCertificatesOutput struct {
    // contains filtered or unexported fields
}

func (RemoveListenerCertificatesOutput) GoString Uses

func (s RemoveListenerCertificatesOutput) GoString() string

GoString returns the string representation

func (RemoveListenerCertificatesOutput) String Uses

func (s RemoveListenerCertificatesOutput) String() string

String returns the string representation

type RemoveTagsInput Uses

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) GoString Uses

func (s RemoveTagsInput) GoString() string

GoString returns the string representation

func (*RemoveTagsInput) SetResourceArns Uses

func (s *RemoveTagsInput) SetResourceArns(v []*string) *RemoveTagsInput

SetResourceArns sets the ResourceArns field's value.

func (*RemoveTagsInput) SetTagKeys Uses

func (s *RemoveTagsInput) SetTagKeys(v []*string) *RemoveTagsInput

SetTagKeys sets the TagKeys field's value.

func (RemoveTagsInput) String Uses

func (s RemoveTagsInput) String() string

String returns the string representation

func (*RemoveTagsInput) Validate Uses

func (s *RemoveTagsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RemoveTagsOutput Uses

type RemoveTagsOutput struct {
    // contains filtered or unexported fields
}

func (RemoveTagsOutput) GoString Uses

func (s RemoveTagsOutput) GoString() string

GoString returns the string representation

func (RemoveTagsOutput) String Uses

func (s RemoveTagsOutput) String() string

String returns the string representation

type Rule Uses

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) GoString Uses

func (s Rule) GoString() string

GoString returns the string representation

func (*Rule) SetActions Uses

func (s *Rule) SetActions(v []*Action) *Rule

SetActions sets the Actions field's value.

func (*Rule) SetConditions Uses

func (s *Rule) SetConditions(v []*RuleCondition) *Rule

SetConditions sets the Conditions field's value.

func (*Rule) SetIsDefault Uses

func (s *Rule) SetIsDefault(v bool) *Rule

SetIsDefault sets the IsDefault field's value.

func (*Rule) SetPriority Uses

func (s *Rule) SetPriority(v string) *Rule

SetPriority sets the Priority field's value.

func (*Rule) SetRuleArn Uses

func (s *Rule) SetRuleArn(v string) *Rule

SetRuleArn sets the RuleArn field's value.

func (Rule) String Uses

func (s Rule) String() string

String returns the string representation

type RuleCondition Uses

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) GoString Uses

func (s RuleCondition) GoString() string

GoString returns the string representation

func (*RuleCondition) SetField Uses

func (s *RuleCondition) SetField(v string) *RuleCondition

SetField sets the Field field's value.

func (*RuleCondition) SetHostHeaderConfig Uses

func (s *RuleCondition) SetHostHeaderConfig(v *HostHeaderConditionConfig) *RuleCondition

SetHostHeaderConfig sets the HostHeaderConfig field's value.

func (*RuleCondition) SetHttpHeaderConfig Uses

func (s *RuleCondition) SetHttpHeaderConfig(v *HttpHeaderConditionConfig) *RuleCondition

SetHttpHeaderConfig sets the HttpHeaderConfig field's value.

func (*RuleCondition) SetHttpRequestMethodConfig Uses

func (s *RuleCondition) SetHttpRequestMethodConfig(v *HttpRequestMethodConditionConfig) *RuleCondition

SetHttpRequestMethodConfig sets the HttpRequestMethodConfig field's value.

func (*RuleCondition) SetPathPatternConfig Uses

func (s *RuleCondition) SetPathPatternConfig(v *PathPatternConditionConfig) *RuleCondition

SetPathPatternConfig sets the PathPatternConfig field's value.

func (*RuleCondition) SetQueryStringConfig Uses

func (s *RuleCondition) SetQueryStringConfig(v *QueryStringConditionConfig) *RuleCondition

SetQueryStringConfig sets the QueryStringConfig field's value.

func (*RuleCondition) SetSourceIpConfig Uses

func (s *RuleCondition) SetSourceIpConfig(v *SourceIpConditionConfig) *RuleCondition

SetSourceIpConfig sets the SourceIpConfig field's value.

func (*RuleCondition) SetValues Uses

func (s *RuleCondition) SetValues(v []*string) *RuleCondition

SetValues sets the Values field's value.

func (RuleCondition) String Uses

func (s RuleCondition) String() string

String returns the string representation

type RulePriorityPair Uses

type RulePriorityPair struct {

    // The rule priority.
    Priority *int64 `min:"1" type:"integer"`

    // The Amazon Resource Name (ARN) of the rule.
    RuleArn *string `type:"string"`
    // contains filtered or unexported fields
}

Information about the priorities for the rules for a listener.

func (RulePriorityPair) GoString Uses

func (s RulePriorityPair) GoString() string

GoString returns the string representation

func (*RulePriorityPair) SetPriority Uses

func (s *RulePriorityPair) SetPriority(v int64) *RulePriorityPair

SetPriority sets the Priority field's value.

func (*RulePriorityPair) SetRuleArn Uses

func (s *RulePriorityPair) SetRuleArn(v string) *RulePriorityPair

SetRuleArn sets the RuleArn field's value.

func (RulePriorityPair) String Uses

func (s RulePriorityPair) String() string

String returns the string representation

func (*RulePriorityPair) Validate Uses

func (s *RulePriorityPair) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type SetIpAddressTypeInput Uses

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 *string `type:"string" required:"true" enum:"IpAddressType"`

    // 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) GoString Uses

func (s SetIpAddressTypeInput) GoString() string

GoString returns the string representation

func (*SetIpAddressTypeInput) SetIpAddressType Uses

func (s *SetIpAddressTypeInput) SetIpAddressType(v string) *SetIpAddressTypeInput

SetIpAddressType sets the IpAddressType field's value.

func (*SetIpAddressTypeInput) SetLoadBalancerArn Uses

func (s *SetIpAddressTypeInput) SetLoadBalancerArn(v string) *SetIpAddressTypeInput

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (SetIpAddressTypeInput) String Uses

func (s SetIpAddressTypeInput) String() string

String returns the string representation

func (*SetIpAddressTypeInput) Validate Uses

func (s *SetIpAddressTypeInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type SetIpAddressTypeOutput Uses

type SetIpAddressTypeOutput struct {

    // The IP address type.
    IpAddressType *string `type:"string" enum:"IpAddressType"`
    // contains filtered or unexported fields
}

func (SetIpAddressTypeOutput) GoString Uses

func (s SetIpAddressTypeOutput) GoString() string

GoString returns the string representation

func (*SetIpAddressTypeOutput) SetIpAddressType Uses

func (s *SetIpAddressTypeOutput) SetIpAddressType(v string) *SetIpAddressTypeOutput

SetIpAddressType sets the IpAddressType field's value.

func (SetIpAddressTypeOutput) String Uses

func (s SetIpAddressTypeOutput) String() string

String returns the string representation

type SetRulePrioritiesInput Uses

type SetRulePrioritiesInput struct {

    // The rule priorities.
    //
    // RulePriorities is a required field
    RulePriorities []*RulePriorityPair `type:"list" required:"true"`
    // contains filtered or unexported fields
}

func (SetRulePrioritiesInput) GoString Uses

func (s SetRulePrioritiesInput) GoString() string

GoString returns the string representation

func (*SetRulePrioritiesInput) SetRulePriorities Uses

func (s *SetRulePrioritiesInput) SetRulePriorities(v []*RulePriorityPair) *SetRulePrioritiesInput

SetRulePriorities sets the RulePriorities field's value.

func (SetRulePrioritiesInput) String Uses

func (s SetRulePrioritiesInput) String() string

String returns the string representation

func (*SetRulePrioritiesInput) Validate Uses

func (s *SetRulePrioritiesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type SetRulePrioritiesOutput Uses

type SetRulePrioritiesOutput struct {

    // Information about the rules.
    Rules []*Rule `type:"list"`
    // contains filtered or unexported fields
}

func (SetRulePrioritiesOutput) GoString Uses

func (s SetRulePrioritiesOutput) GoString() string

GoString returns the string representation

func (*SetRulePrioritiesOutput) SetRules Uses

func (s *SetRulePrioritiesOutput) SetRules(v []*Rule) *SetRulePrioritiesOutput

SetRules sets the Rules field's value.

func (SetRulePrioritiesOutput) String Uses

func (s SetRulePrioritiesOutput) String() string

String returns the string representation

type SetSecurityGroupsInput Uses

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) GoString Uses

func (s SetSecurityGroupsInput) GoString() string

GoString returns the string representation

func (*SetSecurityGroupsInput) SetLoadBalancerArn Uses

func (s *SetSecurityGroupsInput) SetLoadBalancerArn(v string) *SetSecurityGroupsInput

SetLoadBalancerArn sets the LoadBalancerArn field's value.

func (*SetSecurityGroupsInput) SetSecurityGroups Uses

func (s *SetSecurityGroupsInput) SetSecurityGroups(v []*string) *SetSecurityGroupsInput

SetSecurityGroups sets the SecurityGroups field's value.

func (SetSecurityGroupsInput) String Uses

func (s SetSecurityGroupsInput) String() string

String returns the string representation

func (*SetSecurityGroupsInput) Validate Uses

func (s *SetSecurityGroupsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type SetSecurityGroupsOutput Uses

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) GoString Uses

func (s SetSecurityGroupsOutput) GoString() string

GoString returns the string representation

func (*SetSecurityGroupsOutput) SetSecurityGroupIds Uses

func (s *SetSecurityGroupsOutput) SetSecurityGroupIds(v []*string) *SetSecurityGroupsOutput

SetSecurityGroupIds sets the SecurityGroupIds field's value.

func (SetSecurityGroupsOutput) String Uses

func (s SetSecurityGroupsOutput) String() string

String returns the string representation

type SetSubnetsInput Uses

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 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.
    //
    // You cannot specify Elastic IP addresses for your subnets.
    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) GoString Uses

func (s SetSubnetsInput) GoString() string

GoString returns the string representation

func (*SetSubnetsInput) SetLoadBalancerArn Uses

func (s *SetSubnetsInput) SetLoadBalancerArn(v string) *SetSubnetsInput

SetLoadBalancerArn sets the LoadBalancerArn field's value.