terraform/vendor/github.com/aws/aws-sdk-go/service/elbv2/api.go

6257 lines
199 KiB
Go
Raw Normal View History

2016-08-11 23:19:56 +02:00
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package elbv2 provides a client for Elastic Load Balancing.
package elbv2
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
)
const opAddTags = "AddTags"
// AddTagsRequest generates a "aws/request.Request" representing the
// client's request for the AddTags operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See AddTags for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the AddTags method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the AddTagsRequest method.
// req, resp := client.AddTagsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTags
2016-08-11 23:19:56 +02:00
func (c *ELBV2) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
op := &request.Operation{
Name: opAddTags,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddTagsInput{}
}
req = c.newRequest(op, input, output)
output = &AddTagsOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// AddTags API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Adds the specified tags to the specified resource. You can tag your Application
2016-11-19 19:41:01 +01:00
// Load Balancers and your target groups.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// 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.
2016-08-11 23:19:56 +02:00
//
// To list the current tags for your resources, use DescribeTags. To remove
// tags from your resources, use RemoveTags.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation AddTags for usage and error information.
//
// Returned Error Codes:
// * DuplicateTagKeys
// A tag key was specified more than once.
//
// * TooManyTags
// You've reached the limit on the number of tags per load balancer.
//
// * LoadBalancerNotFound
// The specified load balancer does not exist.
//
// * TargetGroupNotFound
// The specified target group does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTags
2016-08-11 23:19:56 +02:00
func (c *ELBV2) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
req, out := c.AddTagsRequest(input)
err := req.Send()
return out, err
}
const opCreateListener = "CreateListener"
// CreateListenerRequest generates a "aws/request.Request" representing the
// client's request for the CreateListener operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See CreateListener for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateListener method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateListenerRequest method.
// req, resp := client.CreateListenerRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListener
2016-08-11 23:19:56 +02:00
func (c *ELBV2) CreateListenerRequest(input *CreateListenerInput) (req *request.Request, output *CreateListenerOutput) {
op := &request.Operation{
Name: opCreateListener,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateListenerInput{}
}
req = c.newRequest(op, input, output)
output = &CreateListenerOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// CreateListener API operation for Elastic Load Balancing.
//
2016-11-19 19:41:01 +01:00
// Creates a listener for the specified Application Load Balancer.
//
// You can create up to 10 listeners per load balancer.
2016-08-11 23:19:56 +02:00
//
// 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.
//
2016-11-19 19:41:01 +01:00
// For more information, see Listeners for Your Application Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html)
2016-08-11 23:19:56 +02:00
// in the Application Load Balancers Guide.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation CreateListener for usage and error information.
//
// Returned Error Codes:
// * DuplicateListener
// A listener with the specified port already exists.
//
// * TooManyListeners
// You've reached the limit on the number of listeners per load balancer.
//
// * TooManyCertificates
// You've reached the limit on the number of certificates per listener.
//
// * LoadBalancerNotFound
// The specified load balancer does not exist.
//
// * TargetGroupNotFound
// The specified target group does not exist.
//
// * TargetGroupAssociationLimit
// You've reached the limit on the number of load balancers per target group.
//
// * InvalidConfigurationRequest
// The requested configuration is not valid.
//
// * IncompatibleProtocols
// The specified configuration is not valid with this protocol.
//
// * SSLPolicyNotFound
// The specified SSL policy does not exist.
//
// * CertificateNotFound
// The specified certificate does not exist.
//
// * UnsupportedProtocol
// The specified protocol is not supported.
//
// * TooManyRegistrationsForTargetId
// You've reached the limit on the number of times a target can be registered
// with a load balancer.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListener
2016-08-11 23:19:56 +02:00
func (c *ELBV2) CreateListener(input *CreateListenerInput) (*CreateListenerOutput, error) {
req, out := c.CreateListenerRequest(input)
err := req.Send()
return out, err
}
const opCreateLoadBalancer = "CreateLoadBalancer"
// CreateLoadBalancerRequest generates a "aws/request.Request" representing the
// client's request for the CreateLoadBalancer operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See CreateLoadBalancer for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateLoadBalancer method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateLoadBalancerRequest method.
// req, resp := client.CreateLoadBalancerRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateLoadBalancer
2016-08-11 23:19:56 +02:00
func (c *ELBV2) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *request.Request, output *CreateLoadBalancerOutput) {
op := &request.Operation{
Name: opCreateLoadBalancer,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateLoadBalancerInput{}
}
req = c.newRequest(op, input, output)
output = &CreateLoadBalancerOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// CreateLoadBalancer API operation for Elastic Load Balancing.
//
2016-11-19 19:41:01 +01:00
// Creates an Application Load Balancer.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// To create listeners for your load balancer, use CreateListener. You can add
// security groups, subnets, and tags when you create your load balancer, or
// you can add them later using SetSecurityGroups, SetSubnets, and AddTags.
2016-08-11 23:19:56 +02:00
//
// To describe your current load balancers, see DescribeLoadBalancers. When
// you are finished with a load balancer, you can delete it using DeleteLoadBalancer.
//
// You can create up to 20 load balancers per region per account. You can request
// an increase for the number of load balancers for your account. For more information,
// see Limits for Your Application Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-limits.html)
// in the Application Load Balancers Guide.
2016-10-17 23:21:08 +02:00
//
2016-11-19 19:41:01 +01:00
// For more information, see Application Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html)
// in the Application Load Balancers Guide.
//
2016-10-17 23:21:08 +02:00
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation CreateLoadBalancer for usage and error information.
//
// Returned Error Codes:
// * DuplicateLoadBalancerName
// A load balancer with the specified name already exists for this account.
//
// * TooManyLoadBalancers
// You've reached the limit on the number of load balancers for your AWS account.
//
// * InvalidConfigurationRequest
// The requested configuration is not valid.
//
// * SubnetNotFound
// The specified subnet does not exist.
//
// * InvalidSubnet
// The specified subnet is out of available addresses.
//
// * InvalidSecurityGroup
// The specified security group does not exist.
//
// * InvalidScheme
// The requested scheme is not valid.
//
// * TooManyTags
// You've reached the limit on the number of tags per load balancer.
//
// * DuplicateTagKeys
// A tag key was specified more than once.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateLoadBalancer
2016-08-11 23:19:56 +02:00
func (c *ELBV2) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) {
req, out := c.CreateLoadBalancerRequest(input)
err := req.Send()
return out, err
}
const opCreateRule = "CreateRule"
// CreateRuleRequest generates a "aws/request.Request" representing the
// client's request for the CreateRule operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See CreateRule for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateRule method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateRuleRequest method.
// req, resp := client.CreateRuleRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateRule
2016-08-11 23:19:56 +02:00
func (c *ELBV2) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, output *CreateRuleOutput) {
op := &request.Operation{
Name: opCreateRule,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateRuleInput{}
}
req = c.newRequest(op, input, output)
output = &CreateRuleOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// CreateRule API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Creates a rule for the specified listener.
//
2016-11-19 19:41:01 +01:00
// Each rule can have one action and one condition. Rules are evaluated in priority
// order, from the lowest value to the highest value. When the condition for
// a rule is met, the specified action is taken. If no conditions are met, the
// default action for the default rule is taken. For more information, see Listener
// Rules (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#listener-rules)
// in the Application Load Balancers Guide.
2016-08-11 23:19:56 +02:00
//
// 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.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation CreateRule for usage and error information.
//
// Returned Error Codes:
// * PriorityInUse
// The specified priority is in use.
//
// * TooManyTargetGroups
// You've reached the limit on the number of target groups for your AWS account.
//
// * TooManyRules
// You've reached the limit on the number of rules per load balancer.
//
// * TargetGroupAssociationLimit
// You've reached the limit on the number of load balancers per target group.
//
// * ListenerNotFound
// The specified listener does not exist.
//
// * TargetGroupNotFound
// The specified target group does not exist.
//
// * InvalidConfigurationRequest
// The requested configuration is not valid.
//
// * TooManyRegistrationsForTargetId
// You've reached the limit on the number of times a target can be registered
// with a load balancer.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateRule
2016-08-11 23:19:56 +02:00
func (c *ELBV2) CreateRule(input *CreateRuleInput) (*CreateRuleOutput, error) {
req, out := c.CreateRuleRequest(input)
err := req.Send()
return out, err
}
const opCreateTargetGroup = "CreateTargetGroup"
// CreateTargetGroupRequest generates a "aws/request.Request" representing the
// client's request for the CreateTargetGroup operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See CreateTargetGroup for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateTargetGroup method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateTargetGroupRequest method.
// req, resp := client.CreateTargetGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTargetGroup
2016-08-11 23:19:56 +02:00
func (c *ELBV2) CreateTargetGroupRequest(input *CreateTargetGroupInput) (req *request.Request, output *CreateTargetGroupOutput) {
op := &request.Operation{
Name: opCreateTargetGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateTargetGroupInput{}
}
req = c.newRequest(op, input, output)
output = &CreateTargetGroupOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// CreateTargetGroup API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Creates a target group.
//
// To register targets with the target group, use RegisterTargets. To update
// the health check settings for the target group, use ModifyTargetGroup. To
// monitor the health of targets in the target group, use DescribeTargetHealth.
//
// To route traffic to the targets in a target group, specify the target group
// in an action using CreateListener or CreateRule.
//
// To delete a target group, use DeleteTargetGroup.
//
// For more information, see Target Groups for Your Application Load Balancers
// (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html)
// in the Application Load Balancers Guide.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation CreateTargetGroup for usage and error information.
//
// Returned Error Codes:
// * DuplicateTargetGroupName
// A target group with the specified name already exists.
//
// * TooManyTargetGroups
// You've reached the limit on the number of target groups for your AWS account.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTargetGroup
2016-08-11 23:19:56 +02:00
func (c *ELBV2) CreateTargetGroup(input *CreateTargetGroupInput) (*CreateTargetGroupOutput, error) {
req, out := c.CreateTargetGroupRequest(input)
err := req.Send()
return out, err
}
const opDeleteListener = "DeleteListener"
// DeleteListenerRequest generates a "aws/request.Request" representing the
// client's request for the DeleteListener operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DeleteListener for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteListener method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteListenerRequest method.
// req, resp := client.DeleteListenerRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteListener
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DeleteListenerRequest(input *DeleteListenerInput) (req *request.Request, output *DeleteListenerOutput) {
op := &request.Operation{
Name: opDeleteListener,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteListenerInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteListenerOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// DeleteListener API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Deletes the specified listener.
//
// Alternatively, your listener is deleted when you delete the load balancer
// it is attached to using DeleteLoadBalancer.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation DeleteListener for usage and error information.
//
// Returned Error Codes:
// * ListenerNotFound
// The specified listener does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteListener
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DeleteListener(input *DeleteListenerInput) (*DeleteListenerOutput, error) {
req, out := c.DeleteListenerRequest(input)
err := req.Send()
return out, err
}
const opDeleteLoadBalancer = "DeleteLoadBalancer"
// DeleteLoadBalancerRequest generates a "aws/request.Request" representing the
// client's request for the DeleteLoadBalancer operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DeleteLoadBalancer for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteLoadBalancer method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteLoadBalancerRequest method.
// req, resp := client.DeleteLoadBalancerRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteLoadBalancer
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *request.Request, output *DeleteLoadBalancerOutput) {
op := &request.Operation{
Name: opDeleteLoadBalancer,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteLoadBalancerInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteLoadBalancerOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// DeleteLoadBalancer API operation for Elastic Load Balancing.
//
2016-11-19 19:41:01 +01:00
// Deletes the specified Application Load Balancer and its attached listeners.
2016-08-11 23:19:56 +02:00
//
// 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.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation DeleteLoadBalancer for usage and error information.
//
// Returned Error Codes:
// * LoadBalancerNotFound
// The specified load balancer does not exist.
//
// * OperationNotPermitted
// This operation is not allowed.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteLoadBalancer
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) {
req, out := c.DeleteLoadBalancerRequest(input)
err := req.Send()
return out, err
}
const opDeleteRule = "DeleteRule"
// DeleteRuleRequest generates a "aws/request.Request" representing the
// client's request for the DeleteRule operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DeleteRule for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteRule method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteRuleRequest method.
// req, resp := client.DeleteRuleRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteRule
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput) {
op := &request.Operation{
Name: opDeleteRule,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteRuleInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteRuleOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// DeleteRule API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Deletes the specified rule.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation DeleteRule for usage and error information.
//
// Returned Error Codes:
// * RuleNotFound
// The specified rule does not exist.
//
// * OperationNotPermitted
// This operation is not allowed.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteRule
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) {
req, out := c.DeleteRuleRequest(input)
err := req.Send()
return out, err
}
const opDeleteTargetGroup = "DeleteTargetGroup"
// DeleteTargetGroupRequest generates a "aws/request.Request" representing the
// client's request for the DeleteTargetGroup operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DeleteTargetGroup for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteTargetGroup method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteTargetGroupRequest method.
// req, resp := client.DeleteTargetGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTargetGroup
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DeleteTargetGroupRequest(input *DeleteTargetGroupInput) (req *request.Request, output *DeleteTargetGroupOutput) {
op := &request.Operation{
Name: opDeleteTargetGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteTargetGroupInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteTargetGroupOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// DeleteTargetGroup API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// 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.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation DeleteTargetGroup for usage and error information.
//
// Returned Error Codes:
// * ResourceInUse
// A specified resource is in use.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTargetGroup
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DeleteTargetGroup(input *DeleteTargetGroupInput) (*DeleteTargetGroupOutput, error) {
req, out := c.DeleteTargetGroupRequest(input)
err := req.Send()
return out, err
}
const opDeregisterTargets = "DeregisterTargets"
// DeregisterTargetsRequest generates a "aws/request.Request" representing the
// client's request for the DeregisterTargets operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DeregisterTargets for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeregisterTargets method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeregisterTargetsRequest method.
// req, resp := client.DeregisterTargetsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeregisterTargets
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DeregisterTargetsRequest(input *DeregisterTargetsInput) (req *request.Request, output *DeregisterTargetsOutput) {
op := &request.Operation{
Name: opDeregisterTargets,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeregisterTargetsInput{}
}
req = c.newRequest(op, input, output)
output = &DeregisterTargetsOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// DeregisterTargets API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Deregisters the specified targets from the specified target group. After
// the targets are deregistered, they no longer receive traffic from the load
// balancer.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation DeregisterTargets for usage and error information.
//
// Returned Error Codes:
// * TargetGroupNotFound
// The specified target group does not exist.
//
// * InvalidTarget
// The specified target does not exist or is not in the same VPC as the target
// group.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeregisterTargets
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DeregisterTargets(input *DeregisterTargetsInput) (*DeregisterTargetsOutput, error) {
req, out := c.DeregisterTargetsRequest(input)
err := req.Send()
return out, err
}
const opDescribeListeners = "DescribeListeners"
// DescribeListenersRequest generates a "aws/request.Request" representing the
// client's request for the DescribeListeners operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DescribeListeners for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeListeners method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeListenersRequest method.
// req, resp := client.DescribeListenersRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListeners
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeListenersRequest(input *DescribeListenersInput) (req *request.Request, output *DescribeListenersOutput) {
op := &request.Operation{
Name: opDescribeListeners,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"NextMarker"},
LimitToken: "",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeListenersInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeListenersOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// DescribeListeners API operation for Elastic Load Balancing.
//
2016-11-19 19:41:01 +01:00
// Describes the specified listeners or the listeners for the specified Application
// Load Balancer. You must specify either a load balancer or one or more listeners.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation DescribeListeners for usage and error information.
//
// Returned Error Codes:
// * ListenerNotFound
// The specified listener does not exist.
//
// * LoadBalancerNotFound
// The specified load balancer does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListeners
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeListeners(input *DescribeListenersInput) (*DescribeListenersOutput, error) {
req, out := c.DescribeListenersRequest(input)
err := req.Send()
return out, err
}
// DescribeListenersPages iterates over the pages of a DescribeListeners operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeListeners method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a DescribeListeners operation.
// pageNum := 0
// err := client.DescribeListenersPages(params,
// func(page *DescribeListenersOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *ELBV2) DescribeListenersPages(input *DescribeListenersInput, fn func(p *DescribeListenersOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeListenersRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeListenersOutput), lastPage)
})
}
const opDescribeLoadBalancerAttributes = "DescribeLoadBalancerAttributes"
// DescribeLoadBalancerAttributesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeLoadBalancerAttributes operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DescribeLoadBalancerAttributes for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeLoadBalancerAttributes method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeLoadBalancerAttributesRequest method.
// req, resp := client.DescribeLoadBalancerAttributesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancerAttributes
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerAttributesInput) (req *request.Request, output *DescribeLoadBalancerAttributesOutput) {
op := &request.Operation{
Name: opDescribeLoadBalancerAttributes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeLoadBalancerAttributesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeLoadBalancerAttributesOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// DescribeLoadBalancerAttributes API operation for Elastic Load Balancing.
//
2016-11-19 19:41:01 +01:00
// Describes the attributes for the specified Application Load Balancer.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation DescribeLoadBalancerAttributes for usage and error information.
//
// Returned Error Codes:
// * LoadBalancerNotFound
// The specified load balancer does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancerAttributes
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error) {
req, out := c.DescribeLoadBalancerAttributesRequest(input)
err := req.Send()
return out, err
}
const opDescribeLoadBalancers = "DescribeLoadBalancers"
// DescribeLoadBalancersRequest generates a "aws/request.Request" representing the
// client's request for the DescribeLoadBalancers operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DescribeLoadBalancers for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeLoadBalancers method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeLoadBalancersRequest method.
// req, resp := client.DescribeLoadBalancersRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancers
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *request.Request, output *DescribeLoadBalancersOutput) {
op := &request.Operation{
Name: opDescribeLoadBalancers,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"NextMarker"},
LimitToken: "",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeLoadBalancersInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeLoadBalancersOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// DescribeLoadBalancers API operation for Elastic Load Balancing.
//
2016-11-19 19:41:01 +01:00
// Describes the specified Application Load Balancers or all of your Application
// Load Balancers.
2016-08-11 23:19:56 +02:00
//
// To describe the listeners for a load balancer, use DescribeListeners. To
// describe the attributes for a load balancer, use DescribeLoadBalancerAttributes.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation DescribeLoadBalancers for usage and error information.
//
// Returned Error Codes:
// * LoadBalancerNotFound
// The specified load balancer does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancers
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) {
req, out := c.DescribeLoadBalancersRequest(input)
err := req.Send()
return out, err
}
// DescribeLoadBalancersPages iterates over the pages of a DescribeLoadBalancers operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeLoadBalancers method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a DescribeLoadBalancers operation.
// pageNum := 0
// err := client.DescribeLoadBalancersPages(params,
// func(page *DescribeLoadBalancersOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *ELBV2) DescribeLoadBalancersPages(input *DescribeLoadBalancersInput, fn func(p *DescribeLoadBalancersOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeLoadBalancersRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeLoadBalancersOutput), lastPage)
})
}
const opDescribeRules = "DescribeRules"
// DescribeRulesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeRules operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DescribeRules for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeRules method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeRulesRequest method.
// req, resp := client.DescribeRulesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeRules
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeRulesRequest(input *DescribeRulesInput) (req *request.Request, output *DescribeRulesOutput) {
op := &request.Operation{
Name: opDescribeRules,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeRulesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeRulesOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// DescribeRules API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Describes the specified rules or the rules for the specified listener. You
// must specify either a listener or one or more rules.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation DescribeRules for usage and error information.
//
// Returned Error Codes:
// * ListenerNotFound
// The specified listener does not exist.
//
// * RuleNotFound
// The specified rule does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeRules
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeRules(input *DescribeRulesInput) (*DescribeRulesOutput, error) {
req, out := c.DescribeRulesRequest(input)
err := req.Send()
return out, err
}
const opDescribeSSLPolicies = "DescribeSSLPolicies"
// DescribeSSLPoliciesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeSSLPolicies operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DescribeSSLPolicies for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeSSLPolicies method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeSSLPoliciesRequest method.
// req, resp := client.DescribeSSLPoliciesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeSSLPolicies
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeSSLPoliciesRequest(input *DescribeSSLPoliciesInput) (req *request.Request, output *DescribeSSLPoliciesOutput) {
op := &request.Operation{
Name: opDescribeSSLPolicies,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeSSLPoliciesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeSSLPoliciesOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// DescribeSSLPolicies API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Describes the specified policies or all policies used for SSL negotiation.
//
// Note that the only supported policy at this time is ELBSecurityPolicy-2015-05.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation DescribeSSLPolicies for usage and error information.
//
// Returned Error Codes:
// * SSLPolicyNotFound
// The specified SSL policy does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeSSLPolicies
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeSSLPolicies(input *DescribeSSLPoliciesInput) (*DescribeSSLPoliciesOutput, error) {
req, out := c.DescribeSSLPoliciesRequest(input)
err := req.Send()
return out, err
}
const opDescribeTags = "DescribeTags"
// DescribeTagsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeTags operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DescribeTags for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeTags method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeTagsRequest method.
// req, resp := client.DescribeTagsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTags
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
op := &request.Operation{
Name: opDescribeTags,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeTagsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeTagsOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// DescribeTags API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Describes the tags for the specified resources.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation DescribeTags for usage and error information.
//
// Returned Error Codes:
// * LoadBalancerNotFound
// The specified load balancer does not exist.
//
// * TargetGroupNotFound
// The specified target group does not exist.
//
// * ListenerNotFound
// The specified listener does not exist.
//
// * RuleNotFound
// The specified rule does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTags
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
req, out := c.DescribeTagsRequest(input)
err := req.Send()
return out, err
}
const opDescribeTargetGroupAttributes = "DescribeTargetGroupAttributes"
// DescribeTargetGroupAttributesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeTargetGroupAttributes operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DescribeTargetGroupAttributes for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeTargetGroupAttributes method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeTargetGroupAttributesRequest method.
// req, resp := client.DescribeTargetGroupAttributesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupAttributes
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeTargetGroupAttributesRequest(input *DescribeTargetGroupAttributesInput) (req *request.Request, output *DescribeTargetGroupAttributesOutput) {
op := &request.Operation{
Name: opDescribeTargetGroupAttributes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeTargetGroupAttributesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeTargetGroupAttributesOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// DescribeTargetGroupAttributes API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Describes the attributes for the specified target group.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation DescribeTargetGroupAttributes for usage and error information.
//
// Returned Error Codes:
// * TargetGroupNotFound
// The specified target group does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupAttributes
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeTargetGroupAttributes(input *DescribeTargetGroupAttributesInput) (*DescribeTargetGroupAttributesOutput, error) {
req, out := c.DescribeTargetGroupAttributesRequest(input)
err := req.Send()
return out, err
}
const opDescribeTargetGroups = "DescribeTargetGroups"
// DescribeTargetGroupsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeTargetGroups operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DescribeTargetGroups for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeTargetGroups method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeTargetGroupsRequest method.
// req, resp := client.DescribeTargetGroupsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroups
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeTargetGroupsRequest(input *DescribeTargetGroupsInput) (req *request.Request, output *DescribeTargetGroupsOutput) {
op := &request.Operation{
Name: opDescribeTargetGroups,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"NextMarker"},
LimitToken: "",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeTargetGroupsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeTargetGroupsOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// DescribeTargetGroups API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// 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.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation DescribeTargetGroups for usage and error information.
//
// Returned Error Codes:
// * LoadBalancerNotFound
// The specified load balancer does not exist.
//
// * TargetGroupNotFound
// The specified target group does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroups
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeTargetGroups(input *DescribeTargetGroupsInput) (*DescribeTargetGroupsOutput, error) {
req, out := c.DescribeTargetGroupsRequest(input)
err := req.Send()
return out, err
}
// DescribeTargetGroupsPages iterates over the pages of a DescribeTargetGroups operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeTargetGroups method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a DescribeTargetGroups operation.
// pageNum := 0
// err := client.DescribeTargetGroupsPages(params,
// func(page *DescribeTargetGroupsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *ELBV2) DescribeTargetGroupsPages(input *DescribeTargetGroupsInput, fn func(p *DescribeTargetGroupsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeTargetGroupsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeTargetGroupsOutput), lastPage)
})
}
const opDescribeTargetHealth = "DescribeTargetHealth"
// DescribeTargetHealthRequest generates a "aws/request.Request" representing the
// client's request for the DescribeTargetHealth operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DescribeTargetHealth for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeTargetHealth method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeTargetHealthRequest method.
// req, resp := client.DescribeTargetHealthRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetHealth
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeTargetHealthRequest(input *DescribeTargetHealthInput) (req *request.Request, output *DescribeTargetHealthOutput) {
op := &request.Operation{
Name: opDescribeTargetHealth,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeTargetHealthInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeTargetHealthOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// DescribeTargetHealth API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Describes the health of the specified targets or all of your targets.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation DescribeTargetHealth for usage and error information.
//
// Returned Error Codes:
// * InvalidTarget
// The specified target does not exist or is not in the same VPC as the target
// group.
//
// * TargetGroupNotFound
// The specified target group does not exist.
//
// * HealthUnavailable
// The health of the specified targets could not be retrieved due to an internal
// error.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetHealth
2016-08-11 23:19:56 +02:00
func (c *ELBV2) DescribeTargetHealth(input *DescribeTargetHealthInput) (*DescribeTargetHealthOutput, error) {
req, out := c.DescribeTargetHealthRequest(input)
err := req.Send()
return out, err
}
const opModifyListener = "ModifyListener"
// ModifyListenerRequest generates a "aws/request.Request" representing the
// client's request for the ModifyListener operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ModifyListener for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ModifyListener method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ModifyListenerRequest method.
// req, resp := client.ModifyListenerRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListener
2016-08-11 23:19:56 +02:00
func (c *ELBV2) ModifyListenerRequest(input *ModifyListenerInput) (req *request.Request, output *ModifyListenerOutput) {
op := &request.Operation{
Name: opModifyListener,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ModifyListenerInput{}
}
req = c.newRequest(op, input, output)
output = &ModifyListenerOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// ModifyListener API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Modifies the specified properties of the specified listener.
//
// Any properties that you do not specify retain their current values. However,
// changing the protocol from HTTPS to HTTP removes the security policy and
// SSL certificate properties. If you change the protocol from HTTP to HTTPS,
// you must add the security policy.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation ModifyListener for usage and error information.
//
// Returned Error Codes:
// * DuplicateListener
// A listener with the specified port already exists.
//
// * TooManyListeners
// You've reached the limit on the number of listeners per load balancer.
//
// * TooManyCertificates
// You've reached the limit on the number of certificates per listener.
//
// * ListenerNotFound
// The specified listener does not exist.
//
// * TargetGroupNotFound
// The specified target group does not exist.
//
// * TargetGroupAssociationLimit
// You've reached the limit on the number of load balancers per target group.
//
// * IncompatibleProtocols
// The specified configuration is not valid with this protocol.
//
// * SSLPolicyNotFound
// The specified SSL policy does not exist.
//
// * CertificateNotFound
// The specified certificate does not exist.
//
// * InvalidConfigurationRequest
// The requested configuration is not valid.
//
// * UnsupportedProtocol
// The specified protocol is not supported.
//
// * TooManyRegistrationsForTargetId
// You've reached the limit on the number of times a target can be registered
// with a load balancer.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListener
2016-08-11 23:19:56 +02:00
func (c *ELBV2) ModifyListener(input *ModifyListenerInput) (*ModifyListenerOutput, error) {
req, out := c.ModifyListenerRequest(input)
err := req.Send()
return out, err
}
const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes"
// ModifyLoadBalancerAttributesRequest generates a "aws/request.Request" representing the
// client's request for the ModifyLoadBalancerAttributes operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ModifyLoadBalancerAttributes for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ModifyLoadBalancerAttributes method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ModifyLoadBalancerAttributesRequest method.
// req, resp := client.ModifyLoadBalancerAttributesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyLoadBalancerAttributes
2016-08-11 23:19:56 +02:00
func (c *ELBV2) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) (req *request.Request, output *ModifyLoadBalancerAttributesOutput) {
op := &request.Operation{
Name: opModifyLoadBalancerAttributes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ModifyLoadBalancerAttributesInput{}
}
req = c.newRequest(op, input, output)
output = &ModifyLoadBalancerAttributesOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// ModifyLoadBalancerAttributes API operation for Elastic Load Balancing.
//
2016-11-19 19:41:01 +01:00
// Modifies the specified attributes of the specified Application Load Balancer.
2016-08-11 23:19:56 +02:00
//
// 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.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation ModifyLoadBalancerAttributes for usage and error information.
//
// Returned Error Codes:
// * LoadBalancerNotFound
// The specified load balancer does not exist.
//
// * InvalidConfigurationRequest
// The requested configuration is not valid.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyLoadBalancerAttributes
2016-08-11 23:19:56 +02:00
func (c *ELBV2) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error) {
req, out := c.ModifyLoadBalancerAttributesRequest(input)
err := req.Send()
return out, err
}
const opModifyRule = "ModifyRule"
// ModifyRuleRequest generates a "aws/request.Request" representing the
// client's request for the ModifyRule operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ModifyRule for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ModifyRule method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ModifyRuleRequest method.
// req, resp := client.ModifyRuleRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyRule
2016-08-11 23:19:56 +02:00
func (c *ELBV2) ModifyRuleRequest(input *ModifyRuleInput) (req *request.Request, output *ModifyRuleOutput) {
op := &request.Operation{
Name: opModifyRule,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ModifyRuleInput{}
}
req = c.newRequest(op, input, output)
output = &ModifyRuleOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// ModifyRule API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Modifies the specified rule.
//
// Any existing properties that you do not modify retain their current values.
//
// To modify the default action, use ModifyListener.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation ModifyRule for usage and error information.
//
// Returned Error Codes:
// * TargetGroupAssociationLimit
// You've reached the limit on the number of load balancers per target group.
//
// * RuleNotFound
// The specified rule does not exist.
//
// * OperationNotPermitted
// This operation is not allowed.
//
// * TooManyRegistrationsForTargetId
// You've reached the limit on the number of times a target can be registered
// with a load balancer.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyRule
2016-08-11 23:19:56 +02:00
func (c *ELBV2) ModifyRule(input *ModifyRuleInput) (*ModifyRuleOutput, error) {
req, out := c.ModifyRuleRequest(input)
err := req.Send()
return out, err
}
const opModifyTargetGroup = "ModifyTargetGroup"
// ModifyTargetGroupRequest generates a "aws/request.Request" representing the
// client's request for the ModifyTargetGroup operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ModifyTargetGroup for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ModifyTargetGroup method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ModifyTargetGroupRequest method.
// req, resp := client.ModifyTargetGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroup
2016-08-11 23:19:56 +02:00
func (c *ELBV2) ModifyTargetGroupRequest(input *ModifyTargetGroupInput) (req *request.Request, output *ModifyTargetGroupOutput) {
op := &request.Operation{
Name: opModifyTargetGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ModifyTargetGroupInput{}
}
req = c.newRequest(op, input, output)
output = &ModifyTargetGroupOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// ModifyTargetGroup API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// 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.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation ModifyTargetGroup for usage and error information.
//
// Returned Error Codes:
// * TargetGroupNotFound
// The specified target group does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroup
2016-08-11 23:19:56 +02:00
func (c *ELBV2) ModifyTargetGroup(input *ModifyTargetGroupInput) (*ModifyTargetGroupOutput, error) {
req, out := c.ModifyTargetGroupRequest(input)
err := req.Send()
return out, err
}
const opModifyTargetGroupAttributes = "ModifyTargetGroupAttributes"
// ModifyTargetGroupAttributesRequest generates a "aws/request.Request" representing the
// client's request for the ModifyTargetGroupAttributes operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ModifyTargetGroupAttributes for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ModifyTargetGroupAttributes method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ModifyTargetGroupAttributesRequest method.
// req, resp := client.ModifyTargetGroupAttributesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupAttributes
2016-08-11 23:19:56 +02:00
func (c *ELBV2) ModifyTargetGroupAttributesRequest(input *ModifyTargetGroupAttributesInput) (req *request.Request, output *ModifyTargetGroupAttributesOutput) {
op := &request.Operation{
Name: opModifyTargetGroupAttributes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ModifyTargetGroupAttributesInput{}
}
req = c.newRequest(op, input, output)
output = &ModifyTargetGroupAttributesOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// ModifyTargetGroupAttributes API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Modifies the specified attributes of the specified target group.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation ModifyTargetGroupAttributes for usage and error information.
//
// Returned Error Codes:
// * TargetGroupNotFound
// The specified target group does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupAttributes
2016-08-11 23:19:56 +02:00
func (c *ELBV2) ModifyTargetGroupAttributes(input *ModifyTargetGroupAttributesInput) (*ModifyTargetGroupAttributesOutput, error) {
req, out := c.ModifyTargetGroupAttributesRequest(input)
err := req.Send()
return out, err
}
const opRegisterTargets = "RegisterTargets"
// RegisterTargetsRequest generates a "aws/request.Request" representing the
// client's request for the RegisterTargets operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See RegisterTargets for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the RegisterTargets method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the RegisterTargetsRequest method.
// req, resp := client.RegisterTargetsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RegisterTargets
2016-08-11 23:19:56 +02:00
func (c *ELBV2) RegisterTargetsRequest(input *RegisterTargetsInput) (req *request.Request, output *RegisterTargetsOutput) {
op := &request.Operation{
Name: opRegisterTargets,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RegisterTargetsInput{}
}
req = c.newRequest(op, input, output)
output = &RegisterTargetsOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// RegisterTargets API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Registers the specified targets with the specified target group.
//
2016-11-19 19:41:01 +01:00
// By default, the load balancer routes requests to registered targets using
// the protocol and port number for the target group. Alternatively, you can
// override the port for a target when you register it.
//
2016-08-11 23:19:56 +02:00
// The target must be in the virtual private cloud (VPC) that you specified
2016-11-19 19:41:01 +01:00
// for the target group. If the target is an EC2 instance, it can't be in the
// stopped or running state when you register it.
2016-08-11 23:19:56 +02:00
//
// To remove a target from a target group, use DeregisterTargets.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation RegisterTargets for usage and error information.
//
// Returned Error Codes:
// * TargetGroupNotFound
// The specified target group does not exist.
//
// * TooManyTargets
// You've reached the limit on the number of targets.
//
// * InvalidTarget
// The specified target does not exist or is not in the same VPC as the target
// group.
//
// * TooManyRegistrationsForTargetId
// You've reached the limit on the number of times a target can be registered
// with a load balancer.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RegisterTargets
2016-08-11 23:19:56 +02:00
func (c *ELBV2) RegisterTargets(input *RegisterTargetsInput) (*RegisterTargetsOutput, error) {
req, out := c.RegisterTargetsRequest(input)
err := req.Send()
return out, err
}
const opRemoveTags = "RemoveTags"
// RemoveTagsRequest generates a "aws/request.Request" representing the
// client's request for the RemoveTags operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See RemoveTags for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the RemoveTags method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the RemoveTagsRequest method.
// req, resp := client.RemoveTagsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTags
2016-08-11 23:19:56 +02:00
func (c *ELBV2) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
op := &request.Operation{
Name: opRemoveTags,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RemoveTagsInput{}
}
req = c.newRequest(op, input, output)
output = &RemoveTagsOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// RemoveTags API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Removes the specified tags from the specified resource.
//
// To list the current tags for your resources, use DescribeTags.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation RemoveTags for usage and error information.
//
// Returned Error Codes:
// * LoadBalancerNotFound
// The specified load balancer does not exist.
//
// * TargetGroupNotFound
// The specified target group does not exist.
//
// * ListenerNotFound
// The specified listener does not exist.
//
// * RuleNotFound
// The specified rule does not exist.
//
// * TooManyTags
// You've reached the limit on the number of tags per load balancer.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTags
2016-08-11 23:19:56 +02:00
func (c *ELBV2) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
req, out := c.RemoveTagsRequest(input)
err := req.Send()
return out, err
}
const opSetRulePriorities = "SetRulePriorities"
// SetRulePrioritiesRequest generates a "aws/request.Request" representing the
// client's request for the SetRulePriorities operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See SetRulePriorities for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the SetRulePriorities method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the SetRulePrioritiesRequest method.
// req, resp := client.SetRulePrioritiesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetRulePriorities
2016-08-11 23:19:56 +02:00
func (c *ELBV2) SetRulePrioritiesRequest(input *SetRulePrioritiesInput) (req *request.Request, output *SetRulePrioritiesOutput) {
op := &request.Operation{
Name: opSetRulePriorities,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &SetRulePrioritiesInput{}
}
req = c.newRequest(op, input, output)
output = &SetRulePrioritiesOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// SetRulePriorities API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Sets the priorities of the specified rules.
//
2016-11-19 19:41:01 +01:00
// 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
2016-08-11 23:19:56 +02:00
// priority.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation SetRulePriorities for usage and error information.
//
// Returned Error Codes:
// * RuleNotFound
// The specified rule does not exist.
//
// * PriorityInUse
// The specified priority is in use.
//
// * OperationNotPermitted
// This operation is not allowed.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetRulePriorities
2016-08-11 23:19:56 +02:00
func (c *ELBV2) SetRulePriorities(input *SetRulePrioritiesInput) (*SetRulePrioritiesOutput, error) {
req, out := c.SetRulePrioritiesRequest(input)
err := req.Send()
return out, err
}
const opSetSecurityGroups = "SetSecurityGroups"
// SetSecurityGroupsRequest generates a "aws/request.Request" representing the
// client's request for the SetSecurityGroups operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See SetSecurityGroups for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the SetSecurityGroups method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the SetSecurityGroupsRequest method.
// req, resp := client.SetSecurityGroupsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroups
2016-08-11 23:19:56 +02:00
func (c *ELBV2) SetSecurityGroupsRequest(input *SetSecurityGroupsInput) (req *request.Request, output *SetSecurityGroupsOutput) {
op := &request.Operation{
Name: opSetSecurityGroups,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &SetSecurityGroupsInput{}
}
req = c.newRequest(op, input, output)
output = &SetSecurityGroupsOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// SetSecurityGroups API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Associates the specified security groups with the specified load balancer.
// The specified security groups override the previously associated security
// groups.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation SetSecurityGroups for usage and error information.
//
// Returned Error Codes:
// * LoadBalancerNotFound
// The specified load balancer does not exist.
//
// * InvalidConfigurationRequest
// The requested configuration is not valid.
//
// * InvalidSecurityGroup
// The specified security group does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroups
2016-08-11 23:19:56 +02:00
func (c *ELBV2) SetSecurityGroups(input *SetSecurityGroupsInput) (*SetSecurityGroupsOutput, error) {
req, out := c.SetSecurityGroupsRequest(input)
err := req.Send()
return out, err
}
const opSetSubnets = "SetSubnets"
// SetSubnetsRequest generates a "aws/request.Request" representing the
// client's request for the SetSubnets operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See SetSubnets for usage and error information.
//
2016-08-11 23:19:56 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the SetSubnets method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the SetSubnetsRequest method.
// req, resp := client.SetSubnetsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnets
2016-08-11 23:19:56 +02:00
func (c *ELBV2) SetSubnetsRequest(input *SetSubnetsInput) (req *request.Request, output *SetSubnetsOutput) {
op := &request.Operation{
Name: opSetSubnets,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &SetSubnetsInput{}
}
req = c.newRequest(op, input, output)
output = &SetSubnetsOutput{}
req.Data = output
return
}
2016-10-17 23:21:08 +02:00
// SetSubnets API operation for Elastic Load Balancing.
//
2016-08-11 23:19:56 +02:00
// Enables the Availability Zone for the specified subnets for the specified
// load balancer. The specified subnets replace the previously enabled subnets.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Elastic Load Balancing's
// API operation SetSubnets for usage and error information.
//
// Returned Error Codes:
// * LoadBalancerNotFound
// The specified load balancer does not exist.
//
// * InvalidConfigurationRequest
// The requested configuration is not valid.
//
// * SubnetNotFound
// The specified subnet does not exist.
//
// * InvalidSubnet
// The specified subnet is out of available addresses.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnets
2016-08-11 23:19:56 +02:00
func (c *ELBV2) SetSubnets(input *SetSubnetsInput) (*SetSubnetsOutput, error) {
req, out := c.SetSubnetsRequest(input)
err := req.Send()
return out, err
}
// Information about an action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Action
2016-08-11 23:19:56 +02:00
type Action struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the target group.
2016-10-17 23:21:08 +02:00
//
// TargetGroupArn is a required field
2016-08-11 23:19:56 +02:00
TargetGroupArn *string `type:"string" required:"true"`
// The type of action.
2016-10-17 23:21:08 +02:00
//
// Type is a required field
2016-08-11 23:19:56 +02:00
Type *string `type:"string" required:"true" enum:"ActionTypeEnum"`
}
// String returns the string representation
func (s Action) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Action) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Action) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "Action"}
if s.TargetGroupArn == nil {
invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
}
if s.Type == nil {
invalidParams.Add(request.NewErrParamRequired("Type"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetTargetGroupArn sets the TargetGroupArn field's value.
func (s *Action) SetTargetGroupArn(v string) *Action {
s.TargetGroupArn = &v
return s
}
// SetType sets the Type field's value.
func (s *Action) SetType(v string) *Action {
s.Type = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for AddTags.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTagsInput
2016-08-11 23:19:56 +02:00
type AddTagsInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the resource.
2016-10-17 23:21:08 +02:00
//
// ResourceArns is a required field
2016-08-11 23:19:56 +02:00
ResourceArns []*string `type:"list" required:"true"`
// The tags. Each resource can have a maximum of 10 tags.
2016-10-17 23:21:08 +02:00
//
// Tags is a required field
2016-08-11 23:19:56 +02:00
Tags []*Tag `min:"1" type:"list" required:"true"`
}
// String returns the string representation
func (s AddTagsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddTagsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AddTagsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"}
if s.ResourceArns == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArns"))
}
if s.Tags == nil {
invalidParams.Add(request.NewErrParamRequired("Tags"))
}
if s.Tags != nil && len(s.Tags) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
}
if s.Tags != nil {
for i, v := range s.Tags {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetResourceArns sets the ResourceArns field's value.
func (s *AddTagsInput) SetResourceArns(v []*string) *AddTagsInput {
s.ResourceArns = v
return s
}
// SetTags sets the Tags field's value.
func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput {
s.Tags = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of AddTags.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTagsOutput
2016-08-11 23:19:56 +02:00
type AddTagsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s AddTagsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddTagsOutput) GoString() string {
return s.String()
}
// Information about an Availability Zone.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AvailabilityZone
2016-08-11 23:19:56 +02:00
type AvailabilityZone struct {
_ struct{} `type:"structure"`
// The ID of the subnet.
SubnetId *string `type:"string"`
// The name of the Availability Zone.
ZoneName *string `type:"string"`
}
// String returns the string representation
func (s AvailabilityZone) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AvailabilityZone) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetSubnetId sets the SubnetId field's value.
func (s *AvailabilityZone) SetSubnetId(v string) *AvailabilityZone {
s.SubnetId = &v
return s
}
// SetZoneName sets the ZoneName field's value.
func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone {
s.ZoneName = &v
return s
}
2016-08-11 23:19:56 +02:00
// Information about an SSL server certificate deployed on a load balancer.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Certificate
2016-08-11 23:19:56 +02:00
type Certificate struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the certificate.
CertificateArn *string `type:"string"`
}
// String returns the string representation
func (s Certificate) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Certificate) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCertificateArn sets the CertificateArn field's value.
func (s *Certificate) SetCertificateArn(v string) *Certificate {
s.CertificateArn = &v
return s
}
2016-08-11 23:19:56 +02:00
// Information about a cipher used in a policy.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Cipher
2016-08-11 23:19:56 +02:00
type Cipher struct {
_ struct{} `type:"structure"`
// The name of the cipher.
Name *string `type:"string"`
// The priority of the cipher.
Priority *int64 `type:"integer"`
}
// String returns the string representation
func (s Cipher) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Cipher) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetName sets the Name field's value.
func (s *Cipher) SetName(v string) *Cipher {
s.Name = &v
return s
}
// SetPriority sets the Priority field's value.
func (s *Cipher) SetPriority(v int64) *Cipher {
s.Priority = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for CreateListener.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListenerInput
2016-08-11 23:19:56 +02:00
type CreateListenerInput struct {
_ struct{} `type:"structure"`
// The SSL server certificate. You must provide exactly one certificate if the
// protocol is HTTPS.
Certificates []*Certificate `type:"list"`
2016-11-19 19:41:01 +01:00
// The default action for the listener.
2016-10-17 23:21:08 +02:00
//
// DefaultActions is a required field
2016-08-11 23:19:56 +02:00
DefaultActions []*Action `type:"list" required:"true"`
// The Amazon Resource Name (ARN) of the load balancer.
2016-10-17 23:21:08 +02:00
//
// LoadBalancerArn is a required field
2016-08-11 23:19:56 +02:00
LoadBalancerArn *string `type:"string" required:"true"`
// The port on which the load balancer is listening.
2016-10-17 23:21:08 +02:00
//
// Port is a required field
2016-08-11 23:19:56 +02:00
Port *int64 `min:"1" type:"integer" required:"true"`
// The protocol for connections from clients to the load balancer.
2016-10-17 23:21:08 +02:00
//
// Protocol is a required field
2016-08-11 23:19:56 +02:00
Protocol *string `type:"string" required:"true" enum:"ProtocolEnum"`
// The security policy that defines which ciphers and protocols are supported.
// The default is the current predefined security policy.
SslPolicy *string `type:"string"`
}
// String returns the string representation
func (s CreateListenerInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateListenerInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateListenerInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateListenerInput"}
if s.DefaultActions == nil {
invalidParams.Add(request.NewErrParamRequired("DefaultActions"))
}
if s.LoadBalancerArn == nil {
invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn"))
}
if s.Port == nil {
invalidParams.Add(request.NewErrParamRequired("Port"))
}
if s.Port != nil && *s.Port < 1 {
invalidParams.Add(request.NewErrParamMinValue("Port", 1))
}
if s.Protocol == nil {
invalidParams.Add(request.NewErrParamRequired("Protocol"))
}
if s.DefaultActions != nil {
for i, v := range s.DefaultActions {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DefaultActions", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetCertificates sets the Certificates field's value.
func (s *CreateListenerInput) SetCertificates(v []*Certificate) *CreateListenerInput {
s.Certificates = v
return s
}
// SetDefaultActions sets the DefaultActions field's value.
func (s *CreateListenerInput) SetDefaultActions(v []*Action) *CreateListenerInput {
s.DefaultActions = v
return s
}
// SetLoadBalancerArn sets the LoadBalancerArn field's value.
func (s *CreateListenerInput) SetLoadBalancerArn(v string) *CreateListenerInput {
s.LoadBalancerArn = &v
return s
}
// SetPort sets the Port field's value.
func (s *CreateListenerInput) SetPort(v int64) *CreateListenerInput {
s.Port = &v
return s
}
// SetProtocol sets the Protocol field's value.
func (s *CreateListenerInput) SetProtocol(v string) *CreateListenerInput {
s.Protocol = &v
return s
}
// SetSslPolicy sets the SslPolicy field's value.
func (s *CreateListenerInput) SetSslPolicy(v string) *CreateListenerInput {
s.SslPolicy = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of CreateListener.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListenerOutput
2016-08-11 23:19:56 +02:00
type CreateListenerOutput struct {
_ struct{} `type:"structure"`
// Information about the listener.
Listeners []*Listener `type:"list"`
}
// String returns the string representation
func (s CreateListenerOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateListenerOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetListeners sets the Listeners field's value.
func (s *CreateListenerOutput) SetListeners(v []*Listener) *CreateListenerOutput {
s.Listeners = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for CreateLoadBalancer.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateLoadBalancerInput
2016-08-11 23:19:56 +02:00
type CreateLoadBalancerInput struct {
_ struct{} `type:"structure"`
// The name of the load balancer.
//
2016-11-19 19:41:01 +01:00
// This name must be unique within your AWS account, can have a maximum of 32
// characters, must contain only alphanumeric characters or hyphens, and must
// not begin or end with a hyphen.
2016-10-17 23:21:08 +02:00
//
// Name is a required field
2016-08-11 23:19:56 +02:00
Name *string `type:"string" required:"true"`
// The nodes of an Internet-facing load balancer have public IP addresses. The
// DNS name of an Internet-facing load balancer is publicly resolvable to the
// public IP addresses of the nodes. Therefore, Internet-facing load balancers
// can route requests from clients over the Internet.
//
// The nodes of an internal load balancer have only private IP addresses. The
// DNS name of an internal load balancer is publicly resolvable to the private
// IP addresses of the nodes. Therefore, internal load balancers can only route
// requests from clients with access to the VPC for the load balancer.
//
// The default is an Internet-facing load balancer.
Scheme *string `type:"string" enum:"LoadBalancerSchemeEnum"`
// The IDs of the security groups to assign to the load balancer.
SecurityGroups []*string `type:"list"`
// The IDs of the subnets to attach to the load balancer. You can specify only
// one subnet per Availability Zone. You must specify subnets from at least
// two Availability Zones.
2016-10-17 23:21:08 +02:00
//
// Subnets is a required field
2016-08-11 23:19:56 +02:00
Subnets []*string `type:"list" required:"true"`
// One or more tags to assign to the load balancer.
Tags []*Tag `min:"1" type:"list"`
}
// String returns the string representation
func (s CreateLoadBalancerInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateLoadBalancerInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateLoadBalancerInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerInput"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Subnets == nil {
invalidParams.Add(request.NewErrParamRequired("Subnets"))
}
if s.Tags != nil && len(s.Tags) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
}
if s.Tags != nil {
for i, v := range s.Tags {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetName sets the Name field's value.
func (s *CreateLoadBalancerInput) SetName(v string) *CreateLoadBalancerInput {
s.Name = &v
return s
}
// SetScheme sets the Scheme field's value.
func (s *CreateLoadBalancerInput) SetScheme(v string) *CreateLoadBalancerInput {
s.Scheme = &v
return s
}
// SetSecurityGroups sets the SecurityGroups field's value.
func (s *CreateLoadBalancerInput) SetSecurityGroups(v []*string) *CreateLoadBalancerInput {
s.SecurityGroups = v
return s
}
// SetSubnets sets the Subnets field's value.
func (s *CreateLoadBalancerInput) SetSubnets(v []*string) *CreateLoadBalancerInput {
s.Subnets = v
return s
}
// SetTags sets the Tags field's value.
func (s *CreateLoadBalancerInput) SetTags(v []*Tag) *CreateLoadBalancerInput {
s.Tags = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of CreateLoadBalancer.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateLoadBalancerOutput
2016-08-11 23:19:56 +02:00
type CreateLoadBalancerOutput struct {
_ struct{} `type:"structure"`
// Information about the load balancer.
LoadBalancers []*LoadBalancer `type:"list"`
}
// String returns the string representation
func (s CreateLoadBalancerOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateLoadBalancerOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetLoadBalancers sets the LoadBalancers field's value.
func (s *CreateLoadBalancerOutput) SetLoadBalancers(v []*LoadBalancer) *CreateLoadBalancerOutput {
s.LoadBalancers = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for CreateRule.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateRuleInput
2016-08-11 23:19:56 +02:00
type CreateRuleInput struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// An action. Each action has the type forward and specifies a target group.
2016-10-17 23:21:08 +02:00
//
// Actions is a required field
2016-08-11 23:19:56 +02:00
Actions []*Action `type:"list" required:"true"`
2016-11-19 19:41:01 +01:00
// A condition. Each condition has the field path-pattern and specifies one
// path pattern. A path pattern is case sensitive, can be up to 255 characters
// in length, and can contain any of the following characters:
//
// * A-Z, a-z, 0-9
//
// * _ - . $ / ~ " ' @ : +
//
// * & (using &)
//
// * * (matches 0 or more characters)
//
// * ? (matches exactly 1 character)
2016-10-17 23:21:08 +02:00
//
// Conditions is a required field
2016-08-11 23:19:56 +02:00
Conditions []*RuleCondition `type:"list" required:"true"`
// The Amazon Resource Name (ARN) of the listener.
2016-10-17 23:21:08 +02:00
//
// ListenerArn is a required field
2016-08-11 23:19:56 +02:00
ListenerArn *string `type:"string" required:"true"`
// The priority for the rule. A listener can't have multiple rules with the
// same priority.
2016-10-17 23:21:08 +02:00
//
// Priority is a required field
2016-08-11 23:19:56 +02:00
Priority *int64 `min:"1" type:"integer" required:"true"`
}
// String returns the string representation
func (s CreateRuleInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateRuleInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateRuleInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateRuleInput"}
if s.Actions == nil {
invalidParams.Add(request.NewErrParamRequired("Actions"))
}
if s.Conditions == nil {
invalidParams.Add(request.NewErrParamRequired("Conditions"))
}
if s.ListenerArn == nil {
invalidParams.Add(request.NewErrParamRequired("ListenerArn"))
}
if s.Priority == nil {
invalidParams.Add(request.NewErrParamRequired("Priority"))
}
if s.Priority != nil && *s.Priority < 1 {
invalidParams.Add(request.NewErrParamMinValue("Priority", 1))
}
if s.Actions != nil {
for i, v := range s.Actions {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetActions sets the Actions field's value.
func (s *CreateRuleInput) SetActions(v []*Action) *CreateRuleInput {
s.Actions = v
return s
}
// SetConditions sets the Conditions field's value.
func (s *CreateRuleInput) SetConditions(v []*RuleCondition) *CreateRuleInput {
s.Conditions = v
return s
}
// SetListenerArn sets the ListenerArn field's value.
func (s *CreateRuleInput) SetListenerArn(v string) *CreateRuleInput {
s.ListenerArn = &v
return s
}
// SetPriority sets the Priority field's value.
func (s *CreateRuleInput) SetPriority(v int64) *CreateRuleInput {
s.Priority = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of CreateRule.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateRuleOutput
2016-08-11 23:19:56 +02:00
type CreateRuleOutput struct {
_ struct{} `type:"structure"`
// Information about the rule.
Rules []*Rule `type:"list"`
}
// String returns the string representation
func (s CreateRuleOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateRuleOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetRules sets the Rules field's value.
func (s *CreateRuleOutput) SetRules(v []*Rule) *CreateRuleOutput {
s.Rules = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for CreateTargetGroup.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTargetGroupInput
2016-08-11 23:19:56 +02:00
type CreateTargetGroupInput struct {
_ struct{} `type:"structure"`
// The approximate amount of time, in seconds, between health checks of an individual
// target. The default is 30 seconds.
HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"`
// The ping path that is the destination on the targets for health checks. The
// default is /.
HealthCheckPath *string `min:"1" type:"string"`
// The port the load balancer uses when performing health checks on targets.
// The default is traffic-port, which indicates the port on which each target
// receives traffic from the load balancer.
HealthCheckPort *string `type:"string"`
// The protocol the load balancer uses when performing health checks on targets.
// The default is the HTTP protocol.
HealthCheckProtocol *string `type:"string" enum:"ProtocolEnum"`
// The amount of time, in seconds, during which no response from a target means
// a failed health check. The default is 5 seconds.
HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"`
// The number of consecutive health checks successes required before considering
// an unhealthy target healthy. The default is 5.
HealthyThresholdCount *int64 `min:"2" type:"integer"`
// The HTTP codes to use when checking for a successful response from a target.
// The default is 200.
Matcher *Matcher `type:"structure"`
// The name of the target group.
2016-10-17 23:21:08 +02:00
//
// Name is a required field
2016-08-11 23:19:56 +02:00
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.
2016-10-17 23:21:08 +02:00
//
// Port is a required field
2016-08-11 23:19:56 +02:00
Port *int64 `min:"1" type:"integer" required:"true"`
// The protocol to use for routing traffic to the targets.
2016-10-17 23:21:08 +02:00
//
// Protocol is a required field
2016-08-11 23:19:56 +02:00
Protocol *string `type:"string" required:"true" enum:"ProtocolEnum"`
// The number of consecutive health check failures required before considering
// a target unhealthy. The default is 2.
UnhealthyThresholdCount *int64 `min:"2" type:"integer"`
// The identifier of the virtual private cloud (VPC).
2016-10-17 23:21:08 +02:00
//
// VpcId is a required field
2016-08-11 23:19:56 +02:00
VpcId *string `type:"string" required:"true"`
}
// String returns the string representation
func (s CreateTargetGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateTargetGroupInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateTargetGroupInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateTargetGroupInput"}
if s.HealthCheckIntervalSeconds != nil && *s.HealthCheckIntervalSeconds < 5 {
invalidParams.Add(request.NewErrParamMinValue("HealthCheckIntervalSeconds", 5))
}
if s.HealthCheckPath != nil && len(*s.HealthCheckPath) < 1 {
invalidParams.Add(request.NewErrParamMinLen("HealthCheckPath", 1))
}
if s.HealthCheckTimeoutSeconds != nil && *s.HealthCheckTimeoutSeconds < 2 {
invalidParams.Add(request.NewErrParamMinValue("HealthCheckTimeoutSeconds", 2))
}
if s.HealthyThresholdCount != nil && *s.HealthyThresholdCount < 2 {
invalidParams.Add(request.NewErrParamMinValue("HealthyThresholdCount", 2))
}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Port == nil {
invalidParams.Add(request.NewErrParamRequired("Port"))
}
if s.Port != nil && *s.Port < 1 {
invalidParams.Add(request.NewErrParamMinValue("Port", 1))
}
if s.Protocol == nil {
invalidParams.Add(request.NewErrParamRequired("Protocol"))
}
if s.UnhealthyThresholdCount != nil && *s.UnhealthyThresholdCount < 2 {
invalidParams.Add(request.NewErrParamMinValue("UnhealthyThresholdCount", 2))
}
if s.VpcId == nil {
invalidParams.Add(request.NewErrParamRequired("VpcId"))
}
if s.Matcher != nil {
if err := s.Matcher.Validate(); err != nil {
invalidParams.AddNested("Matcher", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value.
func (s *CreateTargetGroupInput) SetHealthCheckIntervalSeconds(v int64) *CreateTargetGroupInput {
s.HealthCheckIntervalSeconds = &v
return s
}
// SetHealthCheckPath sets the HealthCheckPath field's value.
func (s *CreateTargetGroupInput) SetHealthCheckPath(v string) *CreateTargetGroupInput {
s.HealthCheckPath = &v
return s
}
// SetHealthCheckPort sets the HealthCheckPort field's value.
func (s *CreateTargetGroupInput) SetHealthCheckPort(v string) *CreateTargetGroupInput {
s.HealthCheckPort = &v
return s
}
// SetHealthCheckProtocol sets the HealthCheckProtocol field's value.
func (s *CreateTargetGroupInput) SetHealthCheckProtocol(v string) *CreateTargetGroupInput {
s.HealthCheckProtocol = &v
return s
}
// SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value.
func (s *CreateTargetGroupInput) SetHealthCheckTimeoutSeconds(v int64) *CreateTargetGroupInput {
s.HealthCheckTimeoutSeconds = &v
return s
}
// SetHealthyThresholdCount sets the HealthyThresholdCount field's value.
func (s *CreateTargetGroupInput) SetHealthyThresholdCount(v int64) *CreateTargetGroupInput {
s.HealthyThresholdCount = &v
return s
}
// SetMatcher sets the Matcher field's value.
func (s *CreateTargetGroupInput) SetMatcher(v *Matcher) *CreateTargetGroupInput {
s.Matcher = v
return s
}
// SetName sets the Name field's value.
func (s *CreateTargetGroupInput) SetName(v string) *CreateTargetGroupInput {
s.Name = &v
return s
}
// SetPort sets the Port field's value.
func (s *CreateTargetGroupInput) SetPort(v int64) *CreateTargetGroupInput {
s.Port = &v
return s
}
// SetProtocol sets the Protocol field's value.
func (s *CreateTargetGroupInput) SetProtocol(v string) *CreateTargetGroupInput {
s.Protocol = &v
return s
}
// SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value.
func (s *CreateTargetGroupInput) SetUnhealthyThresholdCount(v int64) *CreateTargetGroupInput {
s.UnhealthyThresholdCount = &v
return s
}
// SetVpcId sets the VpcId field's value.
func (s *CreateTargetGroupInput) SetVpcId(v string) *CreateTargetGroupInput {
s.VpcId = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of CreateTargetGroup.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTargetGroupOutput
2016-08-11 23:19:56 +02:00
type CreateTargetGroupOutput struct {
_ struct{} `type:"structure"`
// Information about the target group.
TargetGroups []*TargetGroup `type:"list"`
}
// String returns the string representation
func (s CreateTargetGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateTargetGroupOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetTargetGroups sets the TargetGroups field's value.
func (s *CreateTargetGroupOutput) SetTargetGroups(v []*TargetGroup) *CreateTargetGroupOutput {
s.TargetGroups = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for DeleteListener.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteListenerInput
2016-08-11 23:19:56 +02:00
type DeleteListenerInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the listener.
2016-10-17 23:21:08 +02:00
//
// ListenerArn is a required field
2016-08-11 23:19:56 +02:00
ListenerArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteListenerInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteListenerInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteListenerInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteListenerInput"}
if s.ListenerArn == nil {
invalidParams.Add(request.NewErrParamRequired("ListenerArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetListenerArn sets the ListenerArn field's value.
func (s *DeleteListenerInput) SetListenerArn(v string) *DeleteListenerInput {
s.ListenerArn = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of DeleteListener.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteListenerOutput
2016-08-11 23:19:56 +02:00
type DeleteListenerOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteListenerOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteListenerOutput) GoString() string {
return s.String()
}
// Contains the parameters for DeleteLoadBalancer.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteLoadBalancerInput
2016-08-11 23:19:56 +02:00
type DeleteLoadBalancerInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the load balancer.
2016-10-17 23:21:08 +02:00
//
// LoadBalancerArn is a required field
2016-08-11 23:19:56 +02:00
LoadBalancerArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteLoadBalancerInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteLoadBalancerInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteLoadBalancerInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerInput"}
if s.LoadBalancerArn == nil {
invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetLoadBalancerArn sets the LoadBalancerArn field's value.
func (s *DeleteLoadBalancerInput) SetLoadBalancerArn(v string) *DeleteLoadBalancerInput {
s.LoadBalancerArn = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of DeleteLoadBalancer.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteLoadBalancerOutput
2016-08-11 23:19:56 +02:00
type DeleteLoadBalancerOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteLoadBalancerOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteLoadBalancerOutput) GoString() string {
return s.String()
}
// Contains the parameters for DeleteRule.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteRuleInput
2016-08-11 23:19:56 +02:00
type DeleteRuleInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the rule.
2016-10-17 23:21:08 +02:00
//
// RuleArn is a required field
2016-08-11 23:19:56 +02:00
RuleArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteRuleInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteRuleInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteRuleInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteRuleInput"}
if s.RuleArn == nil {
invalidParams.Add(request.NewErrParamRequired("RuleArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetRuleArn sets the RuleArn field's value.
func (s *DeleteRuleInput) SetRuleArn(v string) *DeleteRuleInput {
s.RuleArn = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of DeleteRule.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteRuleOutput
2016-08-11 23:19:56 +02:00
type DeleteRuleOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteRuleOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteRuleOutput) GoString() string {
return s.String()
}
// Contains the parameters for DeleteTargetGroup.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTargetGroupInput
2016-08-11 23:19:56 +02:00
type DeleteTargetGroupInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the target group.
2016-10-17 23:21:08 +02:00
//
// TargetGroupArn is a required field
2016-08-11 23:19:56 +02:00
TargetGroupArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteTargetGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteTargetGroupInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteTargetGroupInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteTargetGroupInput"}
if s.TargetGroupArn == nil {
invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetTargetGroupArn sets the TargetGroupArn field's value.
func (s *DeleteTargetGroupInput) SetTargetGroupArn(v string) *DeleteTargetGroupInput {
s.TargetGroupArn = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of DeleteTargetGroup.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTargetGroupOutput
2016-08-11 23:19:56 +02:00
type DeleteTargetGroupOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteTargetGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteTargetGroupOutput) GoString() string {
return s.String()
}
// Contains the parameters for DeregisterTargets.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeregisterTargetsInput
2016-08-11 23:19:56 +02:00
type DeregisterTargetsInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the target group.
2016-10-17 23:21:08 +02:00
//
// TargetGroupArn is a required field
2016-08-11 23:19:56 +02:00
TargetGroupArn *string `type:"string" required:"true"`
2016-11-19 19:41:01 +01:00
// 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.
2016-10-17 23:21:08 +02:00
//
// Targets is a required field
2016-08-11 23:19:56 +02:00
Targets []*TargetDescription `type:"list" required:"true"`
}
// String returns the string representation
func (s DeregisterTargetsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeregisterTargetsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeregisterTargetsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeregisterTargetsInput"}
if s.TargetGroupArn == nil {
invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
}
if s.Targets == nil {
invalidParams.Add(request.NewErrParamRequired("Targets"))
}
if s.Targets != nil {
for i, v := range s.Targets {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetTargetGroupArn sets the TargetGroupArn field's value.
func (s *DeregisterTargetsInput) SetTargetGroupArn(v string) *DeregisterTargetsInput {
s.TargetGroupArn = &v
return s
}
// SetTargets sets the Targets field's value.
func (s *DeregisterTargetsInput) SetTargets(v []*TargetDescription) *DeregisterTargetsInput {
s.Targets = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of DeregisterTargets.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeregisterTargetsOutput
2016-08-11 23:19:56 +02:00
type DeregisterTargetsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeregisterTargetsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeregisterTargetsOutput) GoString() string {
return s.String()
}
// Contains the parameters for DescribeListeners.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListenersInput
2016-08-11 23:19:56 +02:00
type DescribeListenersInput struct {
_ struct{} `type:"structure"`
// 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"`
}
// String returns the string representation
func (s DescribeListenersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeListenersInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeListenersInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeListenersInput"}
if s.PageSize != nil && *s.PageSize < 1 {
invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetListenerArns sets the ListenerArns field's value.
func (s *DescribeListenersInput) SetListenerArns(v []*string) *DescribeListenersInput {
s.ListenerArns = v
return s
}
// SetLoadBalancerArn sets the LoadBalancerArn field's value.
func (s *DescribeListenersInput) SetLoadBalancerArn(v string) *DescribeListenersInput {
s.LoadBalancerArn = &v
return s
}
// SetMarker sets the Marker field's value.
func (s *DescribeListenersInput) SetMarker(v string) *DescribeListenersInput {
s.Marker = &v
return s
}
// SetPageSize sets the PageSize field's value.
func (s *DescribeListenersInput) SetPageSize(v int64) *DescribeListenersInput {
s.PageSize = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of DescribeListeners.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListenersOutput
2016-08-11 23:19:56 +02:00
type DescribeListenersOutput struct {
_ struct{} `type:"structure"`
// Information about the listeners.
Listeners []*Listener `type:"list"`
// The marker to use when requesting the next set of results. If there are no
// additional results, the string is empty.
NextMarker *string `type:"string"`
}
// String returns the string representation
func (s DescribeListenersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeListenersOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetListeners sets the Listeners field's value.
func (s *DescribeListenersOutput) SetListeners(v []*Listener) *DescribeListenersOutput {
s.Listeners = v
return s
}
// SetNextMarker sets the NextMarker field's value.
func (s *DescribeListenersOutput) SetNextMarker(v string) *DescribeListenersOutput {
s.NextMarker = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for DescribeLoadBalancerAttributes.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancerAttributesInput
2016-08-11 23:19:56 +02:00
type DescribeLoadBalancerAttributesInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the load balancer.
2016-10-17 23:21:08 +02:00
//
// LoadBalancerArn is a required field
2016-08-11 23:19:56 +02:00
LoadBalancerArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeLoadBalancerAttributesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeLoadBalancerAttributesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeLoadBalancerAttributesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancerAttributesInput"}
if s.LoadBalancerArn == nil {
invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetLoadBalancerArn sets the LoadBalancerArn field's value.
func (s *DescribeLoadBalancerAttributesInput) SetLoadBalancerArn(v string) *DescribeLoadBalancerAttributesInput {
s.LoadBalancerArn = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of DescribeLoadBalancerAttributes.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancerAttributesOutput
2016-08-11 23:19:56 +02:00
type DescribeLoadBalancerAttributesOutput struct {
_ struct{} `type:"structure"`
// Information about the load balancer attributes.
Attributes []*LoadBalancerAttribute `type:"list"`
}
// String returns the string representation
func (s DescribeLoadBalancerAttributesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeLoadBalancerAttributesOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetAttributes sets the Attributes field's value.
func (s *DescribeLoadBalancerAttributesOutput) SetAttributes(v []*LoadBalancerAttribute) *DescribeLoadBalancerAttributesOutput {
s.Attributes = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for DescribeLoadBalancers.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancersInput
2016-08-11 23:19:56 +02:00
type DescribeLoadBalancersInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Names (ARN) of the load balancers.
LoadBalancerArns []*string `type:"list"`
// The marker for the next set of results. (You received this marker from a
// previous call.)
Marker *string `type:"string"`
// The names of the load balancers.
Names []*string `type:"list"`
// The maximum number of results to return with this call.
PageSize *int64 `min:"1" type:"integer"`
}
// String returns the string representation
func (s DescribeLoadBalancersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeLoadBalancersInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeLoadBalancersInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancersInput"}
if s.PageSize != nil && *s.PageSize < 1 {
invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetLoadBalancerArns sets the LoadBalancerArns field's value.
func (s *DescribeLoadBalancersInput) SetLoadBalancerArns(v []*string) *DescribeLoadBalancersInput {
s.LoadBalancerArns = v
return s
}
// SetMarker sets the Marker field's value.
func (s *DescribeLoadBalancersInput) SetMarker(v string) *DescribeLoadBalancersInput {
s.Marker = &v
return s
}
// SetNames sets the Names field's value.
func (s *DescribeLoadBalancersInput) SetNames(v []*string) *DescribeLoadBalancersInput {
s.Names = v
return s
}
// SetPageSize sets the PageSize field's value.
func (s *DescribeLoadBalancersInput) SetPageSize(v int64) *DescribeLoadBalancersInput {
s.PageSize = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of DescribeLoadBalancers.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancersOutput
2016-08-11 23:19:56 +02:00
type DescribeLoadBalancersOutput struct {
_ struct{} `type:"structure"`
// Information about the load balancers.
LoadBalancers []*LoadBalancer `type:"list"`
// The marker to use when requesting the next set of results. If there are no
// additional results, the string is empty.
NextMarker *string `type:"string"`
}
// String returns the string representation
func (s DescribeLoadBalancersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeLoadBalancersOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetLoadBalancers sets the LoadBalancers field's value.
func (s *DescribeLoadBalancersOutput) SetLoadBalancers(v []*LoadBalancer) *DescribeLoadBalancersOutput {
s.LoadBalancers = v
return s
}
// SetNextMarker sets the NextMarker field's value.
func (s *DescribeLoadBalancersOutput) SetNextMarker(v string) *DescribeLoadBalancersOutput {
s.NextMarker = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for DescribeRules.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeRulesInput
2016-08-11 23:19:56 +02:00
type DescribeRulesInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the listener.
ListenerArn *string `type:"string"`
// The Amazon Resource Names (ARN) of the rules.
RuleArns []*string `type:"list"`
}
// String returns the string representation
func (s DescribeRulesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeRulesInput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetListenerArn sets the ListenerArn field's value.
func (s *DescribeRulesInput) SetListenerArn(v string) *DescribeRulesInput {
s.ListenerArn = &v
return s
}
// SetRuleArns sets the RuleArns field's value.
func (s *DescribeRulesInput) SetRuleArns(v []*string) *DescribeRulesInput {
s.RuleArns = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of DescribeRules.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeRulesOutput
2016-08-11 23:19:56 +02:00
type DescribeRulesOutput struct {
_ struct{} `type:"structure"`
// Information about the rules.
Rules []*Rule `type:"list"`
}
// String returns the string representation
func (s DescribeRulesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeRulesOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetRules sets the Rules field's value.
func (s *DescribeRulesOutput) SetRules(v []*Rule) *DescribeRulesOutput {
s.Rules = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for DescribeSSLPolicies.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeSSLPoliciesInput
2016-08-11 23:19:56 +02:00
type DescribeSSLPoliciesInput struct {
_ struct{} `type:"structure"`
// 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"`
}
// String returns the string representation
func (s DescribeSSLPoliciesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeSSLPoliciesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeSSLPoliciesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeSSLPoliciesInput"}
if s.PageSize != nil && *s.PageSize < 1 {
invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetMarker sets the Marker field's value.
func (s *DescribeSSLPoliciesInput) SetMarker(v string) *DescribeSSLPoliciesInput {
s.Marker = &v
return s
}
// SetNames sets the Names field's value.
func (s *DescribeSSLPoliciesInput) SetNames(v []*string) *DescribeSSLPoliciesInput {
s.Names = v
return s
}
// SetPageSize sets the PageSize field's value.
func (s *DescribeSSLPoliciesInput) SetPageSize(v int64) *DescribeSSLPoliciesInput {
s.PageSize = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of DescribeSSLPolicies.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeSSLPoliciesOutput
2016-08-11 23:19:56 +02:00
type DescribeSSLPoliciesOutput struct {
_ struct{} `type:"structure"`
// The marker to use when requesting the next set of results. If there are no
// additional results, the string is empty.
NextMarker *string `type:"string"`
// Information about the policies.
SslPolicies []*SslPolicy `type:"list"`
}
// String returns the string representation
func (s DescribeSSLPoliciesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeSSLPoliciesOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetNextMarker sets the NextMarker field's value.
func (s *DescribeSSLPoliciesOutput) SetNextMarker(v string) *DescribeSSLPoliciesOutput {
s.NextMarker = &v
return s
}
// SetSslPolicies sets the SslPolicies field's value.
func (s *DescribeSSLPoliciesOutput) SetSslPolicies(v []*SslPolicy) *DescribeSSLPoliciesOutput {
s.SslPolicies = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for DescribeTags.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTagsInput
2016-08-11 23:19:56 +02:00
type DescribeTagsInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Names (ARN) of the resources.
2016-10-17 23:21:08 +02:00
//
// ResourceArns is a required field
2016-08-11 23:19:56 +02:00
ResourceArns []*string `type:"list" required:"true"`
}
// String returns the string representation
func (s DescribeTagsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTagsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeTagsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"}
if s.ResourceArns == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArns"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetResourceArns sets the ResourceArns field's value.
func (s *DescribeTagsInput) SetResourceArns(v []*string) *DescribeTagsInput {
s.ResourceArns = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of DescribeTags.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTagsOutput
2016-08-11 23:19:56 +02:00
type DescribeTagsOutput struct {
_ struct{} `type:"structure"`
// Information about the tags.
TagDescriptions []*TagDescription `type:"list"`
}
// String returns the string representation
func (s DescribeTagsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTagsOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetTagDescriptions sets the TagDescriptions field's value.
func (s *DescribeTagsOutput) SetTagDescriptions(v []*TagDescription) *DescribeTagsOutput {
s.TagDescriptions = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for DescribeTargetGroupAttributes.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupAttributesInput
2016-08-11 23:19:56 +02:00
type DescribeTargetGroupAttributesInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the target group.
2016-10-17 23:21:08 +02:00
//
// TargetGroupArn is a required field
2016-08-11 23:19:56 +02:00
TargetGroupArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeTargetGroupAttributesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTargetGroupAttributesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeTargetGroupAttributesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeTargetGroupAttributesInput"}
if s.TargetGroupArn == nil {
invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetTargetGroupArn sets the TargetGroupArn field's value.
func (s *DescribeTargetGroupAttributesInput) SetTargetGroupArn(v string) *DescribeTargetGroupAttributesInput {
s.TargetGroupArn = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of DescribeTargetGroupAttributes.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupAttributesOutput
2016-08-11 23:19:56 +02:00
type DescribeTargetGroupAttributesOutput struct {
_ struct{} `type:"structure"`
// Information about the target group attributes
Attributes []*TargetGroupAttribute `type:"list"`
}
// String returns the string representation
func (s DescribeTargetGroupAttributesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTargetGroupAttributesOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetAttributes sets the Attributes field's value.
func (s *DescribeTargetGroupAttributesOutput) SetAttributes(v []*TargetGroupAttribute) *DescribeTargetGroupAttributesOutput {
s.Attributes = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for DescribeTargetGroups.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupsInput
2016-08-11 23:19:56 +02:00
type DescribeTargetGroupsInput struct {
_ struct{} `type:"structure"`
// 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"`
}
// String returns the string representation
func (s DescribeTargetGroupsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTargetGroupsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeTargetGroupsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeTargetGroupsInput"}
if s.PageSize != nil && *s.PageSize < 1 {
invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetLoadBalancerArn sets the LoadBalancerArn field's value.
func (s *DescribeTargetGroupsInput) SetLoadBalancerArn(v string) *DescribeTargetGroupsInput {
s.LoadBalancerArn = &v
return s
}
// SetMarker sets the Marker field's value.
func (s *DescribeTargetGroupsInput) SetMarker(v string) *DescribeTargetGroupsInput {
s.Marker = &v
return s
}
// SetNames sets the Names field's value.
func (s *DescribeTargetGroupsInput) SetNames(v []*string) *DescribeTargetGroupsInput {
s.Names = v
return s
}
// SetPageSize sets the PageSize field's value.
func (s *DescribeTargetGroupsInput) SetPageSize(v int64) *DescribeTargetGroupsInput {
s.PageSize = &v
return s
}
// SetTargetGroupArns sets the TargetGroupArns field's value.
func (s *DescribeTargetGroupsInput) SetTargetGroupArns(v []*string) *DescribeTargetGroupsInput {
s.TargetGroupArns = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of DescribeTargetGroups.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupsOutput
2016-08-11 23:19:56 +02:00
type DescribeTargetGroupsOutput struct {
_ struct{} `type:"structure"`
// The marker to use when requesting the next set of results. If there are no
// additional results, the string is empty.
NextMarker *string `type:"string"`
// Information about the target groups.
TargetGroups []*TargetGroup `type:"list"`
}
// String returns the string representation
func (s DescribeTargetGroupsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTargetGroupsOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetNextMarker sets the NextMarker field's value.
func (s *DescribeTargetGroupsOutput) SetNextMarker(v string) *DescribeTargetGroupsOutput {
s.NextMarker = &v
return s
}
// SetTargetGroups sets the TargetGroups field's value.
func (s *DescribeTargetGroupsOutput) SetTargetGroups(v []*TargetGroup) *DescribeTargetGroupsOutput {
s.TargetGroups = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for DescribeTargetHealth.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetHealthInput
2016-08-11 23:19:56 +02:00
type DescribeTargetHealthInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the target group.
2016-10-17 23:21:08 +02:00
//
// TargetGroupArn is a required field
2016-08-11 23:19:56 +02:00
TargetGroupArn *string `type:"string" required:"true"`
// The targets.
Targets []*TargetDescription `type:"list"`
}
// String returns the string representation
func (s DescribeTargetHealthInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTargetHealthInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeTargetHealthInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeTargetHealthInput"}
if s.TargetGroupArn == nil {
invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
}
if s.Targets != nil {
for i, v := range s.Targets {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetTargetGroupArn sets the TargetGroupArn field's value.
func (s *DescribeTargetHealthInput) SetTargetGroupArn(v string) *DescribeTargetHealthInput {
s.TargetGroupArn = &v
return s
}
// SetTargets sets the Targets field's value.
func (s *DescribeTargetHealthInput) SetTargets(v []*TargetDescription) *DescribeTargetHealthInput {
s.Targets = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of DescribeTargetHealth.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetHealthOutput
2016-08-11 23:19:56 +02:00
type DescribeTargetHealthOutput struct {
_ struct{} `type:"structure"`
// Information about the health of the targets.
TargetHealthDescriptions []*TargetHealthDescription `type:"list"`
}
// String returns the string representation
func (s DescribeTargetHealthOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTargetHealthOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetTargetHealthDescriptions sets the TargetHealthDescriptions field's value.
func (s *DescribeTargetHealthOutput) SetTargetHealthDescriptions(v []*TargetHealthDescription) *DescribeTargetHealthOutput {
s.TargetHealthDescriptions = v
return s
}
2016-08-11 23:19:56 +02:00
// Information about a listener.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Listener
2016-08-11 23:19:56 +02:00
type Listener struct {
_ struct{} `type:"structure"`
// The SSL server certificate. You must provide a certificate if the protocol
// is HTTPS.
Certificates []*Certificate `type:"list"`
// The default actions for the listener.
DefaultActions []*Action `type:"list"`
// The Amazon Resource Name (ARN) of the listener.
ListenerArn *string `type:"string"`
// The Amazon Resource Name (ARN) of the load balancer.
LoadBalancerArn *string `type:"string"`
// The port on which the load balancer is listening.
Port *int64 `min:"1" type:"integer"`
// The protocol for connections from clients to the load balancer.
Protocol *string `type:"string" enum:"ProtocolEnum"`
// The security policy that defines which ciphers and protocols are supported.
// The default is the current predefined security policy.
SslPolicy *string `type:"string"`
}
// String returns the string representation
func (s Listener) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Listener) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCertificates sets the Certificates field's value.
func (s *Listener) SetCertificates(v []*Certificate) *Listener {
s.Certificates = v
return s
}
// SetDefaultActions sets the DefaultActions field's value.
func (s *Listener) SetDefaultActions(v []*Action) *Listener {
s.DefaultActions = v
return s
}
// SetListenerArn sets the ListenerArn field's value.
func (s *Listener) SetListenerArn(v string) *Listener {
s.ListenerArn = &v
return s
}
// SetLoadBalancerArn sets the LoadBalancerArn field's value.
func (s *Listener) SetLoadBalancerArn(v string) *Listener {
s.LoadBalancerArn = &v
return s
}
// SetPort sets the Port field's value.
func (s *Listener) SetPort(v int64) *Listener {
s.Port = &v
return s
}
// SetProtocol sets the Protocol field's value.
func (s *Listener) SetProtocol(v string) *Listener {
s.Protocol = &v
return s
}
// SetSslPolicy sets the SslPolicy field's value.
func (s *Listener) SetSslPolicy(v string) *Listener {
s.SslPolicy = &v
return s
}
2016-08-11 23:19:56 +02:00
// Information about a load balancer.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/LoadBalancer
2016-08-11 23:19:56 +02:00
type LoadBalancer struct {
_ struct{} `type:"structure"`
// The Availability Zones for the load balancer.
AvailabilityZones []*AvailabilityZone `type:"list"`
// The ID of the Amazon Route 53 hosted zone associated with the load balancer.
CanonicalHostedZoneId *string `type:"string"`
// The date and time the load balancer was created.
CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The public DNS name of the load balancer.
DNSName *string `type:"string"`
// The Amazon Resource Name (ARN) of the load balancer.
LoadBalancerArn *string `type:"string"`
// The name of the load balancer.
LoadBalancerName *string `type:"string"`
// The nodes of an Internet-facing load balancer have public IP addresses. The
// DNS name of an Internet-facing load balancer is publicly resolvable to the
// public IP addresses of the nodes. Therefore, Internet-facing load balancers
// can route requests from clients over the Internet.
//
// The nodes of an internal load balancer have only private IP addresses. The
// DNS name of an internal load balancer is publicly resolvable to the private
// IP addresses of the nodes. Therefore, internal load balancers can only route
// requests from clients with access to the VPC for the load balancer.
Scheme *string `type:"string" enum:"LoadBalancerSchemeEnum"`
// The IDs of the security groups for the load balancer.
SecurityGroups []*string `type:"list"`
// The state of the load balancer.
State *LoadBalancerState `type:"structure"`
// The type of load balancer.
Type *string `type:"string" enum:"LoadBalancerTypeEnum"`
// The ID of the VPC for the load balancer.
VpcId *string `type:"string"`
}
// String returns the string representation
func (s LoadBalancer) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s LoadBalancer) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetAvailabilityZones sets the AvailabilityZones field's value.
func (s *LoadBalancer) SetAvailabilityZones(v []*AvailabilityZone) *LoadBalancer {
s.AvailabilityZones = v
return s
}
// SetCanonicalHostedZoneId sets the CanonicalHostedZoneId field's value.
func (s *LoadBalancer) SetCanonicalHostedZoneId(v string) *LoadBalancer {
s.CanonicalHostedZoneId = &v
return s
}
// SetCreatedTime sets the CreatedTime field's value.
func (s *LoadBalancer) SetCreatedTime(v time.Time) *LoadBalancer {
s.CreatedTime = &v
return s
}
// SetDNSName sets the DNSName field's value.
func (s *LoadBalancer) SetDNSName(v string) *LoadBalancer {
s.DNSName = &v
return s
}
// SetLoadBalancerArn sets the LoadBalancerArn field's value.
func (s *LoadBalancer) SetLoadBalancerArn(v string) *LoadBalancer {
s.LoadBalancerArn = &v
return s
}
// SetLoadBalancerName sets the LoadBalancerName field's value.
func (s *LoadBalancer) SetLoadBalancerName(v string) *LoadBalancer {
s.LoadBalancerName = &v
return s
}
// SetScheme sets the Scheme field's value.
func (s *LoadBalancer) SetScheme(v string) *LoadBalancer {
s.Scheme = &v
return s
}
// SetSecurityGroups sets the SecurityGroups field's value.
func (s *LoadBalancer) SetSecurityGroups(v []*string) *LoadBalancer {
s.SecurityGroups = v
return s
}
// SetState sets the State field's value.
func (s *LoadBalancer) SetState(v *LoadBalancerState) *LoadBalancer {
s.State = v
return s
}
// SetType sets the Type field's value.
func (s *LoadBalancer) SetType(v string) *LoadBalancer {
s.Type = &v
return s
}
// SetVpcId sets the VpcId field's value.
func (s *LoadBalancer) SetVpcId(v string) *LoadBalancer {
s.VpcId = &v
return s
}
2016-08-11 23:19:56 +02:00
// Information about a load balancer attribute.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/LoadBalancerAttribute
2016-08-11 23:19:56 +02:00
type LoadBalancerAttribute struct {
_ struct{} `type:"structure"`
// The name of the attribute.
//
2016-11-19 19:41:01 +01:00
// * access_logs.s3.enabled - Indicates whether access logs stored in Amazon
// S3 are enabled. The value is true or false.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * access_logs.s3.bucket - The name of the S3 bucket for the access logs.
// This attribute is required if access logs in Amazon S3 are enabled. The
// bucket must exist in the same region as the load balancer and have a bucket
// policy that grants Elastic Load Balancing permission to write to the bucket.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * access_logs.s3.prefix - The prefix for the location in the S3 bucket.
// If you don't specify a prefix, the access logs are stored in the root
// of the bucket.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * deletion_protection.enabled - Indicates whether deletion protection
// is enabled. The value is true or false.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * idle_timeout.timeout_seconds - The idle timeout value, in seconds. The
// valid range is 1-3600. The default is 60 seconds.
2016-08-11 23:19:56 +02:00
Key *string `type:"string"`
// The value of the attribute.
Value *string `type:"string"`
}
// String returns the string representation
func (s LoadBalancerAttribute) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s LoadBalancerAttribute) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetKey sets the Key field's value.
func (s *LoadBalancerAttribute) SetKey(v string) *LoadBalancerAttribute {
s.Key = &v
return s
}
// SetValue sets the Value field's value.
func (s *LoadBalancerAttribute) SetValue(v string) *LoadBalancerAttribute {
s.Value = &v
return s
}
2016-08-11 23:19:56 +02:00
// Information about the state of the load balancer.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/LoadBalancerState
2016-08-11 23:19:56 +02:00
type LoadBalancerState struct {
_ struct{} `type:"structure"`
// 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"`
}
// String returns the string representation
func (s LoadBalancerState) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s LoadBalancerState) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCode sets the Code field's value.
func (s *LoadBalancerState) SetCode(v string) *LoadBalancerState {
s.Code = &v
return s
}
// SetReason sets the Reason field's value.
func (s *LoadBalancerState) SetReason(v string) *LoadBalancerState {
s.Reason = &v
return s
}
2016-08-11 23:19:56 +02:00
// Information to use when checking for a successful response from a target.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Matcher
2016-08-11 23:19:56 +02:00
type Matcher struct {
_ struct{} `type:"structure"`
// The HTTP codes. The default value is 200. You can specify multiple values
// (for example, "200,202") or a range of values (for example, "200-299").
2016-10-17 23:21:08 +02:00
//
// HttpCode is a required field
2016-08-11 23:19:56 +02:00
HttpCode *string `type:"string" required:"true"`
}
// String returns the string representation
func (s Matcher) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Matcher) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Matcher) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "Matcher"}
if s.HttpCode == nil {
invalidParams.Add(request.NewErrParamRequired("HttpCode"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetHttpCode sets the HttpCode field's value.
func (s *Matcher) SetHttpCode(v string) *Matcher {
s.HttpCode = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for ModifyListener.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListenerInput
2016-08-11 23:19:56 +02:00
type ModifyListenerInput struct {
_ struct{} `type:"structure"`
// The SSL server certificate.
Certificates []*Certificate `type:"list"`
// The default actions.
DefaultActions []*Action `type:"list"`
// The Amazon Resource Name (ARN) of the listener.
2016-10-17 23:21:08 +02:00
//
// ListenerArn is a required field
2016-08-11 23:19:56 +02:00
ListenerArn *string `type:"string" required:"true"`
// The port for connections from clients to the load balancer.
Port *int64 `min:"1" type:"integer"`
// The protocol for connections from clients to the load balancer.
Protocol *string `type:"string" enum:"ProtocolEnum"`
// The security policy that defines which ciphers and protocols are supported.
SslPolicy *string `type:"string"`
}
// String returns the string representation
func (s ModifyListenerInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyListenerInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ModifyListenerInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ModifyListenerInput"}
if s.ListenerArn == nil {
invalidParams.Add(request.NewErrParamRequired("ListenerArn"))
}
if s.Port != nil && *s.Port < 1 {
invalidParams.Add(request.NewErrParamMinValue("Port", 1))
}
if s.DefaultActions != nil {
for i, v := range s.DefaultActions {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DefaultActions", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetCertificates sets the Certificates field's value.
func (s *ModifyListenerInput) SetCertificates(v []*Certificate) *ModifyListenerInput {
s.Certificates = v
return s
}
// SetDefaultActions sets the DefaultActions field's value.
func (s *ModifyListenerInput) SetDefaultActions(v []*Action) *ModifyListenerInput {
s.DefaultActions = v
return s
}
// SetListenerArn sets the ListenerArn field's value.
func (s *ModifyListenerInput) SetListenerArn(v string) *ModifyListenerInput {
s.ListenerArn = &v
return s
}
// SetPort sets the Port field's value.
func (s *ModifyListenerInput) SetPort(v int64) *ModifyListenerInput {
s.Port = &v
return s
}
// SetProtocol sets the Protocol field's value.
func (s *ModifyListenerInput) SetProtocol(v string) *ModifyListenerInput {
s.Protocol = &v
return s
}
// SetSslPolicy sets the SslPolicy field's value.
func (s *ModifyListenerInput) SetSslPolicy(v string) *ModifyListenerInput {
s.SslPolicy = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of ModifyListener.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListenerOutput
2016-08-11 23:19:56 +02:00
type ModifyListenerOutput struct {
_ struct{} `type:"structure"`
// Information about the modified listeners.
Listeners []*Listener `type:"list"`
}
// String returns the string representation
func (s ModifyListenerOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyListenerOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetListeners sets the Listeners field's value.
func (s *ModifyListenerOutput) SetListeners(v []*Listener) *ModifyListenerOutput {
s.Listeners = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for ModifyLoadBalancerAttributes.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyLoadBalancerAttributesInput
2016-08-11 23:19:56 +02:00
type ModifyLoadBalancerAttributesInput struct {
_ struct{} `type:"structure"`
// The load balancer attributes.
2016-10-17 23:21:08 +02:00
//
// Attributes is a required field
2016-08-11 23:19:56 +02:00
Attributes []*LoadBalancerAttribute `type:"list" required:"true"`
// The Amazon Resource Name (ARN) of the load balancer.
2016-10-17 23:21:08 +02:00
//
// LoadBalancerArn is a required field
2016-08-11 23:19:56 +02:00
LoadBalancerArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s ModifyLoadBalancerAttributesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyLoadBalancerAttributesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ModifyLoadBalancerAttributesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ModifyLoadBalancerAttributesInput"}
if s.Attributes == nil {
invalidParams.Add(request.NewErrParamRequired("Attributes"))
}
if s.LoadBalancerArn == nil {
invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetAttributes sets the Attributes field's value.
func (s *ModifyLoadBalancerAttributesInput) SetAttributes(v []*LoadBalancerAttribute) *ModifyLoadBalancerAttributesInput {
s.Attributes = v
return s
}
// SetLoadBalancerArn sets the LoadBalancerArn field's value.
func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerArn(v string) *ModifyLoadBalancerAttributesInput {
s.LoadBalancerArn = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of ModifyLoadBalancerAttributes.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyLoadBalancerAttributesOutput
2016-08-11 23:19:56 +02:00
type ModifyLoadBalancerAttributesOutput struct {
_ struct{} `type:"structure"`
// Information about the load balancer attributes.
Attributes []*LoadBalancerAttribute `type:"list"`
}
// String returns the string representation
func (s ModifyLoadBalancerAttributesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyLoadBalancerAttributesOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetAttributes sets the Attributes field's value.
func (s *ModifyLoadBalancerAttributesOutput) SetAttributes(v []*LoadBalancerAttribute) *ModifyLoadBalancerAttributesOutput {
s.Attributes = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for ModifyRules.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyRuleInput
2016-08-11 23:19:56 +02:00
type ModifyRuleInput struct {
_ struct{} `type:"structure"`
// The actions.
Actions []*Action `type:"list"`
// The conditions.
Conditions []*RuleCondition `type:"list"`
// The Amazon Resource Name (ARN) of the rule.
2016-10-17 23:21:08 +02:00
//
// RuleArn is a required field
2016-08-11 23:19:56 +02:00
RuleArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s ModifyRuleInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyRuleInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ModifyRuleInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ModifyRuleInput"}
if s.RuleArn == nil {
invalidParams.Add(request.NewErrParamRequired("RuleArn"))
}
if s.Actions != nil {
for i, v := range s.Actions {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetActions sets the Actions field's value.
func (s *ModifyRuleInput) SetActions(v []*Action) *ModifyRuleInput {
s.Actions = v
return s
}
// SetConditions sets the Conditions field's value.
func (s *ModifyRuleInput) SetConditions(v []*RuleCondition) *ModifyRuleInput {
s.Conditions = v
return s
}
// SetRuleArn sets the RuleArn field's value.
func (s *ModifyRuleInput) SetRuleArn(v string) *ModifyRuleInput {
s.RuleArn = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of ModifyRules.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyRuleOutput
2016-08-11 23:19:56 +02:00
type ModifyRuleOutput struct {
_ struct{} `type:"structure"`
// Information about the rule.
Rules []*Rule `type:"list"`
}
// String returns the string representation
func (s ModifyRuleOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyRuleOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetRules sets the Rules field's value.
func (s *ModifyRuleOutput) SetRules(v []*Rule) *ModifyRuleOutput {
s.Rules = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for ModifyTargetGroupAttributes.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupAttributesInput
2016-08-11 23:19:56 +02:00
type ModifyTargetGroupAttributesInput struct {
_ struct{} `type:"structure"`
// The attributes.
2016-10-17 23:21:08 +02:00
//
// Attributes is a required field
2016-08-11 23:19:56 +02:00
Attributes []*TargetGroupAttribute `type:"list" required:"true"`
// The Amazon Resource Name (ARN) of the target group.
2016-10-17 23:21:08 +02:00
//
// TargetGroupArn is a required field
2016-08-11 23:19:56 +02:00
TargetGroupArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s ModifyTargetGroupAttributesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyTargetGroupAttributesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ModifyTargetGroupAttributesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ModifyTargetGroupAttributesInput"}
if s.Attributes == nil {
invalidParams.Add(request.NewErrParamRequired("Attributes"))
}
if s.TargetGroupArn == nil {
invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetAttributes sets the Attributes field's value.
func (s *ModifyTargetGroupAttributesInput) SetAttributes(v []*TargetGroupAttribute) *ModifyTargetGroupAttributesInput {
s.Attributes = v
return s
}
// SetTargetGroupArn sets the TargetGroupArn field's value.
func (s *ModifyTargetGroupAttributesInput) SetTargetGroupArn(v string) *ModifyTargetGroupAttributesInput {
s.TargetGroupArn = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of ModifyTargetGroupAttributes.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupAttributesOutput
2016-08-11 23:19:56 +02:00
type ModifyTargetGroupAttributesOutput struct {
_ struct{} `type:"structure"`
// Information about the attributes.
Attributes []*TargetGroupAttribute `type:"list"`
}
// String returns the string representation
func (s ModifyTargetGroupAttributesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyTargetGroupAttributesOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetAttributes sets the Attributes field's value.
func (s *ModifyTargetGroupAttributesOutput) SetAttributes(v []*TargetGroupAttribute) *ModifyTargetGroupAttributesOutput {
s.Attributes = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for ModifyTargetGroup.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupInput
2016-08-11 23:19:56 +02:00
type ModifyTargetGroupInput struct {
_ struct{} `type:"structure"`
// The approximate amount of time, in seconds, between health checks of an individual
// target.
HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"`
// The ping path that is the destination for the health check request.
HealthCheckPath *string `min:"1" type:"string"`
// The port to use to connect with the target.
HealthCheckPort *string `type:"string"`
// The protocol to use to connect with the target.
HealthCheckProtocol *string `type:"string" enum:"ProtocolEnum"`
// The amount of time, in seconds, during which no response means a failed health
// check.
HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"`
// The number of consecutive health checks successes required before considering
// an unhealthy target healthy.
HealthyThresholdCount *int64 `min:"2" type:"integer"`
// The HTTP codes to use when checking for a successful response from a target.
Matcher *Matcher `type:"structure"`
// The Amazon Resource Name (ARN) of the target group.
2016-10-17 23:21:08 +02:00
//
// TargetGroupArn is a required field
2016-08-11 23:19:56 +02:00
TargetGroupArn *string `type:"string" required:"true"`
// The number of consecutive health check failures required before considering
// the target unhealthy.
UnhealthyThresholdCount *int64 `min:"2" type:"integer"`
}
// String returns the string representation
func (s ModifyTargetGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyTargetGroupInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ModifyTargetGroupInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ModifyTargetGroupInput"}
if s.HealthCheckIntervalSeconds != nil && *s.HealthCheckIntervalSeconds < 5 {
invalidParams.Add(request.NewErrParamMinValue("HealthCheckIntervalSeconds", 5))
}
if s.HealthCheckPath != nil && len(*s.HealthCheckPath) < 1 {
invalidParams.Add(request.NewErrParamMinLen("HealthCheckPath", 1))
}
if s.HealthCheckTimeoutSeconds != nil && *s.HealthCheckTimeoutSeconds < 2 {
invalidParams.Add(request.NewErrParamMinValue("HealthCheckTimeoutSeconds", 2))
}
if s.HealthyThresholdCount != nil && *s.HealthyThresholdCount < 2 {
invalidParams.Add(request.NewErrParamMinValue("HealthyThresholdCount", 2))
}
if s.TargetGroupArn == nil {
invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
}
if s.UnhealthyThresholdCount != nil && *s.UnhealthyThresholdCount < 2 {
invalidParams.Add(request.NewErrParamMinValue("UnhealthyThresholdCount", 2))
}
if s.Matcher != nil {
if err := s.Matcher.Validate(); err != nil {
invalidParams.AddNested("Matcher", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value.
func (s *ModifyTargetGroupInput) SetHealthCheckIntervalSeconds(v int64) *ModifyTargetGroupInput {
s.HealthCheckIntervalSeconds = &v
return s
}
// SetHealthCheckPath sets the HealthCheckPath field's value.
func (s *ModifyTargetGroupInput) SetHealthCheckPath(v string) *ModifyTargetGroupInput {
s.HealthCheckPath = &v
return s
}
// SetHealthCheckPort sets the HealthCheckPort field's value.
func (s *ModifyTargetGroupInput) SetHealthCheckPort(v string) *ModifyTargetGroupInput {
s.HealthCheckPort = &v
return s
}
// SetHealthCheckProtocol sets the HealthCheckProtocol field's value.
func (s *ModifyTargetGroupInput) SetHealthCheckProtocol(v string) *ModifyTargetGroupInput {
s.HealthCheckProtocol = &v
return s
}
// SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value.
func (s *ModifyTargetGroupInput) SetHealthCheckTimeoutSeconds(v int64) *ModifyTargetGroupInput {
s.HealthCheckTimeoutSeconds = &v
return s
}
// SetHealthyThresholdCount sets the HealthyThresholdCount field's value.
func (s *ModifyTargetGroupInput) SetHealthyThresholdCount(v int64) *ModifyTargetGroupInput {
s.HealthyThresholdCount = &v
return s
}
// SetMatcher sets the Matcher field's value.
func (s *ModifyTargetGroupInput) SetMatcher(v *Matcher) *ModifyTargetGroupInput {
s.Matcher = v
return s
}
// SetTargetGroupArn sets the TargetGroupArn field's value.
func (s *ModifyTargetGroupInput) SetTargetGroupArn(v string) *ModifyTargetGroupInput {
s.TargetGroupArn = &v
return s
}
// SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value.
func (s *ModifyTargetGroupInput) SetUnhealthyThresholdCount(v int64) *ModifyTargetGroupInput {
s.UnhealthyThresholdCount = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of ModifyTargetGroup.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupOutput
2016-08-11 23:19:56 +02:00
type ModifyTargetGroupOutput struct {
_ struct{} `type:"structure"`
// Information about the target group.
TargetGroups []*TargetGroup `type:"list"`
}
// String returns the string representation
func (s ModifyTargetGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyTargetGroupOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetTargetGroups sets the TargetGroups field's value.
func (s *ModifyTargetGroupOutput) SetTargetGroups(v []*TargetGroup) *ModifyTargetGroupOutput {
s.TargetGroups = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for RegisterTargets.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RegisterTargetsInput
2016-08-11 23:19:56 +02:00
type RegisterTargetsInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the target group.
2016-10-17 23:21:08 +02:00
//
// TargetGroupArn is a required field
2016-08-11 23:19:56 +02:00
TargetGroupArn *string `type:"string" required:"true"`
2016-11-19 19:41:01 +01:00
// The targets. The default port for a target is the port for the target group.
// You can specify a port override. If a target is already registered, you can
// register it again using a different port.
2016-10-17 23:21:08 +02:00
//
// Targets is a required field
2016-08-11 23:19:56 +02:00
Targets []*TargetDescription `type:"list" required:"true"`
}
// String returns the string representation
func (s RegisterTargetsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RegisterTargetsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RegisterTargetsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RegisterTargetsInput"}
if s.TargetGroupArn == nil {
invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
}
if s.Targets == nil {
invalidParams.Add(request.NewErrParamRequired("Targets"))
}
if s.Targets != nil {
for i, v := range s.Targets {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetTargetGroupArn sets the TargetGroupArn field's value.
func (s *RegisterTargetsInput) SetTargetGroupArn(v string) *RegisterTargetsInput {
s.TargetGroupArn = &v
return s
}
// SetTargets sets the Targets field's value.
func (s *RegisterTargetsInput) SetTargets(v []*TargetDescription) *RegisterTargetsInput {
s.Targets = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of RegisterTargets.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RegisterTargetsOutput
2016-08-11 23:19:56 +02:00
type RegisterTargetsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s RegisterTargetsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RegisterTargetsOutput) GoString() string {
return s.String()
}
// Contains the parameters for RemoveTags.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTagsInput
2016-08-11 23:19:56 +02:00
type RemoveTagsInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the resource.
2016-10-17 23:21:08 +02:00
//
// ResourceArns is a required field
2016-08-11 23:19:56 +02:00
ResourceArns []*string `type:"list" required:"true"`
// The tag keys for the tags to remove.
2016-10-17 23:21:08 +02:00
//
// TagKeys is a required field
2016-08-11 23:19:56 +02:00
TagKeys []*string `type:"list" required:"true"`
}
// String returns the string representation
func (s RemoveTagsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveTagsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RemoveTagsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RemoveTagsInput"}
if s.ResourceArns == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArns"))
}
if s.TagKeys == nil {
invalidParams.Add(request.NewErrParamRequired("TagKeys"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetResourceArns sets the ResourceArns field's value.
func (s *RemoveTagsInput) SetResourceArns(v []*string) *RemoveTagsInput {
s.ResourceArns = v
return s
}
// SetTagKeys sets the TagKeys field's value.
func (s *RemoveTagsInput) SetTagKeys(v []*string) *RemoveTagsInput {
s.TagKeys = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of RemoveTags.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTagsOutput
2016-08-11 23:19:56 +02:00
type RemoveTagsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s RemoveTagsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveTagsOutput) GoString() string {
return s.String()
}
// Information about a rule.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Rule
2016-08-11 23:19:56 +02:00
type Rule struct {
_ struct{} `type:"structure"`
// The actions.
Actions []*Action `type:"list"`
// The conditions.
Conditions []*RuleCondition `type:"list"`
// Indicates whether this is the default rule.
IsDefault *bool `type:"boolean"`
// The priority.
Priority *string `type:"string"`
// The Amazon Resource Name (ARN) of the rule.
RuleArn *string `type:"string"`
}
// String returns the string representation
func (s Rule) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Rule) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetActions sets the Actions field's value.
func (s *Rule) SetActions(v []*Action) *Rule {
s.Actions = v
return s
}
// SetConditions sets the Conditions field's value.
func (s *Rule) SetConditions(v []*RuleCondition) *Rule {
s.Conditions = v
return s
}
// SetIsDefault sets the IsDefault field's value.
func (s *Rule) SetIsDefault(v bool) *Rule {
s.IsDefault = &v
return s
}
// SetPriority sets the Priority field's value.
func (s *Rule) SetPriority(v string) *Rule {
s.Priority = &v
return s
}
// SetRuleArn sets the RuleArn field's value.
func (s *Rule) SetRuleArn(v string) *Rule {
s.RuleArn = &v
return s
}
2016-08-11 23:19:56 +02:00
// Information about a condition for a rule.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RuleCondition
2016-08-11 23:19:56 +02:00
type RuleCondition struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// The only possible value is path-pattern.
2016-08-11 23:19:56 +02:00
Field *string `type:"string"`
2016-11-19 19:41:01 +01:00
// The path pattern. You can specify a single path pattern.
2016-08-11 23:19:56 +02:00
//
// A path pattern is case sensitive, can be up to 255 characters in length,
// and can contain any of the following characters:
//
2016-11-19 19:41:01 +01:00
// * A-Z, a-z, 0-9
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * _ - . $ / ~ " ' @ : +
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * & (using &)
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * * (matches 0 or more characters)
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * ? (matches exactly 1 character)
2016-08-11 23:19:56 +02:00
Values []*string `type:"list"`
}
// String returns the string representation
func (s RuleCondition) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RuleCondition) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetField sets the Field field's value.
func (s *RuleCondition) SetField(v string) *RuleCondition {
s.Field = &v
return s
}
// SetValues sets the Values field's value.
func (s *RuleCondition) SetValues(v []*string) *RuleCondition {
s.Values = v
return s
}
2016-08-11 23:19:56 +02:00
// Information about the priorities for the rules for a listener.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RulePriorityPair
2016-08-11 23:19:56 +02:00
type RulePriorityPair struct {
_ struct{} `type:"structure"`
// The rule priority.
Priority *int64 `min:"1" type:"integer"`
// The Amazon Resource Name (ARN) of the rule.
RuleArn *string `type:"string"`
}
// String returns the string representation
func (s RulePriorityPair) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RulePriorityPair) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RulePriorityPair) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RulePriorityPair"}
if s.Priority != nil && *s.Priority < 1 {
invalidParams.Add(request.NewErrParamMinValue("Priority", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetPriority sets the Priority field's value.
func (s *RulePriorityPair) SetPriority(v int64) *RulePriorityPair {
s.Priority = &v
return s
}
// SetRuleArn sets the RuleArn field's value.
func (s *RulePriorityPair) SetRuleArn(v string) *RulePriorityPair {
s.RuleArn = &v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for SetRulePriorities.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetRulePrioritiesInput
2016-08-11 23:19:56 +02:00
type SetRulePrioritiesInput struct {
_ struct{} `type:"structure"`
// The rule priorities.
2016-10-17 23:21:08 +02:00
//
// RulePriorities is a required field
2016-08-11 23:19:56 +02:00
RulePriorities []*RulePriorityPair `type:"list" required:"true"`
}
// String returns the string representation
func (s SetRulePrioritiesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetRulePrioritiesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SetRulePrioritiesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SetRulePrioritiesInput"}
if s.RulePriorities == nil {
invalidParams.Add(request.NewErrParamRequired("RulePriorities"))
}
if s.RulePriorities != nil {
for i, v := range s.RulePriorities {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RulePriorities", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetRulePriorities sets the RulePriorities field's value.
func (s *SetRulePrioritiesInput) SetRulePriorities(v []*RulePriorityPair) *SetRulePrioritiesInput {
s.RulePriorities = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of SetRulePriorities.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetRulePrioritiesOutput
2016-08-11 23:19:56 +02:00
type SetRulePrioritiesOutput struct {
_ struct{} `type:"structure"`
// Information about the rules.
Rules []*Rule `type:"list"`
}
// String returns the string representation
func (s SetRulePrioritiesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetRulePrioritiesOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetRules sets the Rules field's value.
func (s *SetRulePrioritiesOutput) SetRules(v []*Rule) *SetRulePrioritiesOutput {
s.Rules = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for SetSecurityGroups.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroupsInput
2016-08-11 23:19:56 +02:00
type SetSecurityGroupsInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the load balancer.
2016-10-17 23:21:08 +02:00
//
// LoadBalancerArn is a required field
2016-08-11 23:19:56 +02:00
LoadBalancerArn *string `type:"string" required:"true"`
// The IDs of the security groups.
2016-10-17 23:21:08 +02:00
//
// SecurityGroups is a required field
2016-08-11 23:19:56 +02:00
SecurityGroups []*string `type:"list" required:"true"`
}
// String returns the string representation
func (s SetSecurityGroupsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetSecurityGroupsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SetSecurityGroupsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SetSecurityGroupsInput"}
if s.LoadBalancerArn == nil {
invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn"))
}
if s.SecurityGroups == nil {
invalidParams.Add(request.NewErrParamRequired("SecurityGroups"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetLoadBalancerArn sets the LoadBalancerArn field's value.
func (s *SetSecurityGroupsInput) SetLoadBalancerArn(v string) *SetSecurityGroupsInput {
s.LoadBalancerArn = &v
return s
}
// SetSecurityGroups sets the SecurityGroups field's value.
func (s *SetSecurityGroupsInput) SetSecurityGroups(v []*string) *SetSecurityGroupsInput {
s.SecurityGroups = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of SetSecurityGroups.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroupsOutput
2016-08-11 23:19:56 +02:00
type SetSecurityGroupsOutput struct {
_ struct{} `type:"structure"`
// The IDs of the security groups associated with the load balancer.
SecurityGroupIds []*string `type:"list"`
}
// String returns the string representation
func (s SetSecurityGroupsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetSecurityGroupsOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetSecurityGroupIds sets the SecurityGroupIds field's value.
func (s *SetSecurityGroupsOutput) SetSecurityGroupIds(v []*string) *SetSecurityGroupsOutput {
s.SecurityGroupIds = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the parameters for SetSubnets.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnetsInput
2016-08-11 23:19:56 +02:00
type SetSubnetsInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the load balancer.
2016-10-17 23:21:08 +02:00
//
// LoadBalancerArn is a required field
2016-08-11 23:19:56 +02:00
LoadBalancerArn *string `type:"string" required:"true"`
// The IDs of the subnets. You must specify at least two subnets. You can add
// only one subnet per Availability Zone.
2016-10-17 23:21:08 +02:00
//
// Subnets is a required field
2016-08-11 23:19:56 +02:00
Subnets []*string `type:"list" required:"true"`
}
// String returns the string representation
func (s SetSubnetsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetSubnetsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SetSubnetsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SetSubnetsInput"}
if s.LoadBalancerArn == nil {
invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn"))
}
if s.Subnets == nil {
invalidParams.Add(request.NewErrParamRequired("Subnets"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetLoadBalancerArn sets the LoadBalancerArn field's value.
func (s *SetSubnetsInput) SetLoadBalancerArn(v string) *SetSubnetsInput {
s.LoadBalancerArn = &v
return s
}
// SetSubnets sets the Subnets field's value.
func (s *SetSubnetsInput) SetSubnets(v []*string) *SetSubnetsInput {
s.Subnets = v
return s
}
2016-08-11 23:19:56 +02:00
// Contains the output of SetSubnets.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnetsOutput
2016-08-11 23:19:56 +02:00
type SetSubnetsOutput struct {
_ struct{} `type:"structure"`
// Information about the subnet and Availability Zone.
AvailabilityZones []*AvailabilityZone `type:"list"`
}
// String returns the string representation
func (s SetSubnetsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetSubnetsOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetAvailabilityZones sets the AvailabilityZones field's value.
func (s *SetSubnetsOutput) SetAvailabilityZones(v []*AvailabilityZone) *SetSubnetsOutput {
s.AvailabilityZones = v
return s
}
2016-08-11 23:19:56 +02:00
// Information about a policy used for SSL negotiation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SslPolicy
2016-08-11 23:19:56 +02:00
type SslPolicy struct {
_ struct{} `type:"structure"`
// The ciphers.
Ciphers []*Cipher `type:"list"`
// The name of the policy.
Name *string `type:"string"`
// The protocols.
SslProtocols []*string `type:"list"`
}
// String returns the string representation
func (s SslPolicy) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SslPolicy) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCiphers sets the Ciphers field's value.
func (s *SslPolicy) SetCiphers(v []*Cipher) *SslPolicy {
s.Ciphers = v
return s
}
// SetName sets the Name field's value.
func (s *SslPolicy) SetName(v string) *SslPolicy {
s.Name = &v
return s
}
// SetSslProtocols sets the SslProtocols field's value.
func (s *SslPolicy) SetSslProtocols(v []*string) *SslPolicy {
s.SslProtocols = v
return s
}
2016-08-11 23:19:56 +02:00
// Information about a tag.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Tag
2016-08-11 23:19:56 +02:00
type Tag struct {
_ struct{} `type:"structure"`
// The key of the tag.
2016-10-17 23:21:08 +02:00
//
// Key is a required field
2016-08-11 23:19:56 +02:00
Key *string `min:"1" type:"string" required:"true"`
// The value of the tag.
Value *string `type:"string"`
}
// String returns the string representation
func (s Tag) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Tag) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Tag) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "Tag"}
if s.Key == nil {
invalidParams.Add(request.NewErrParamRequired("Key"))
}
if s.Key != nil && len(*s.Key) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Key", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetKey sets the Key field's value.
func (s *Tag) SetKey(v string) *Tag {
s.Key = &v
return s
}
// SetValue sets the Value field's value.
func (s *Tag) SetValue(v string) *Tag {
s.Value = &v
return s
}
2016-08-11 23:19:56 +02:00
// The tags associated with a resource.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TagDescription
2016-08-11 23:19:56 +02:00
type TagDescription struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the resource.
ResourceArn *string `type:"string"`
// Information about the tags.
Tags []*Tag `min:"1" type:"list"`
}
// String returns the string representation
func (s TagDescription) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TagDescription) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetResourceArn sets the ResourceArn field's value.
func (s *TagDescription) SetResourceArn(v string) *TagDescription {
s.ResourceArn = &v
return s
}
// SetTags sets the Tags field's value.
func (s *TagDescription) SetTags(v []*Tag) *TagDescription {
s.Tags = v
return s
}
2016-08-11 23:19:56 +02:00
// Information about a target.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetDescription
2016-08-11 23:19:56 +02:00
type TargetDescription struct {
_ struct{} `type:"structure"`
// The ID of the target.
2016-10-17 23:21:08 +02:00
//
// Id is a required field
2016-08-11 23:19:56 +02:00
Id *string `type:"string" required:"true"`
// The port on which the target is listening.
Port *int64 `min:"1" type:"integer"`
}
// String returns the string representation
func (s TargetDescription) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TargetDescription) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TargetDescription) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TargetDescription"}
if s.Id == nil {
invalidParams.Add(request.NewErrParamRequired("Id"))
}
if s.Port != nil && *s.Port < 1 {
invalidParams.Add(request.NewErrParamMinValue("Port", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetId sets the Id field's value.
func (s *TargetDescription) SetId(v string) *TargetDescription {
s.Id = &v
return s
}
// SetPort sets the Port field's value.
func (s *TargetDescription) SetPort(v int64) *TargetDescription {
s.Port = &v
return s
}
2016-08-11 23:19:56 +02:00
// Information about a target group.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetGroup
2016-08-11 23:19:56 +02:00
type TargetGroup struct {
_ struct{} `type:"structure"`
// The approximate amount of time, in seconds, between health checks of an individual
// target.
HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"`
// The destination for the health check request.
HealthCheckPath *string `min:"1" type:"string"`
// The port to use to connect with the target.
HealthCheckPort *string `type:"string"`
// The protocol to use to connect with the target.
HealthCheckProtocol *string `type:"string" enum:"ProtocolEnum"`
// The amount of time, in seconds, during which no response means a failed health
// check.
HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"`
// The number of consecutive health checks successes required before considering
// an unhealthy target healthy.
HealthyThresholdCount *int64 `min:"2" type:"integer"`
// The Amazon Resource Names (ARN) of the load balancers that route traffic
// to this target group.
LoadBalancerArns []*string `type:"list"`
// The HTTP codes to use when checking for a successful response from a target.
Matcher *Matcher `type:"structure"`
// The port on which the targets are listening.
Port *int64 `min:"1" type:"integer"`
// The protocol to use for routing traffic to the targets.
Protocol *string `type:"string" enum:"ProtocolEnum"`
// The Amazon Resource Name (ARN) of the target group.
TargetGroupArn *string `type:"string"`
// The name of the target group.
TargetGroupName *string `type:"string"`
// The number of consecutive health check failures required before considering
// the target unhealthy.
UnhealthyThresholdCount *int64 `min:"2" type:"integer"`
// The ID of the VPC for the targets.
VpcId *string `type:"string"`
}
// String returns the string representation
func (s TargetGroup) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TargetGroup) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value.
func (s *TargetGroup) SetHealthCheckIntervalSeconds(v int64) *TargetGroup {
s.HealthCheckIntervalSeconds = &v
return s
}
// SetHealthCheckPath sets the HealthCheckPath field's value.
func (s *TargetGroup) SetHealthCheckPath(v string) *TargetGroup {
s.HealthCheckPath = &v
return s
}
// SetHealthCheckPort sets the HealthCheckPort field's value.
func (s *TargetGroup) SetHealthCheckPort(v string) *TargetGroup {
s.HealthCheckPort = &v
return s
}
// SetHealthCheckProtocol sets the HealthCheckProtocol field's value.
func (s *TargetGroup) SetHealthCheckProtocol(v string) *TargetGroup {
s.HealthCheckProtocol = &v
return s
}
// SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value.
func (s *TargetGroup) SetHealthCheckTimeoutSeconds(v int64) *TargetGroup {
s.HealthCheckTimeoutSeconds = &v
return s
}
// SetHealthyThresholdCount sets the HealthyThresholdCount field's value.
func (s *TargetGroup) SetHealthyThresholdCount(v int64) *TargetGroup {
s.HealthyThresholdCount = &v
return s
}
// SetLoadBalancerArns sets the LoadBalancerArns field's value.
func (s *TargetGroup) SetLoadBalancerArns(v []*string) *TargetGroup {
s.LoadBalancerArns = v
return s
}
// SetMatcher sets the Matcher field's value.
func (s *TargetGroup) SetMatcher(v *Matcher) *TargetGroup {
s.Matcher = v
return s
}
// SetPort sets the Port field's value.
func (s *TargetGroup) SetPort(v int64) *TargetGroup {
s.Port = &v
return s
}
// SetProtocol sets the Protocol field's value.
func (s *TargetGroup) SetProtocol(v string) *TargetGroup {
s.Protocol = &v
return s
}
// SetTargetGroupArn sets the TargetGroupArn field's value.
func (s *TargetGroup) SetTargetGroupArn(v string) *TargetGroup {
s.TargetGroupArn = &v
return s
}
// SetTargetGroupName sets the TargetGroupName field's value.
func (s *TargetGroup) SetTargetGroupName(v string) *TargetGroup {
s.TargetGroupName = &v
return s
}
// SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value.
func (s *TargetGroup) SetUnhealthyThresholdCount(v int64) *TargetGroup {
s.UnhealthyThresholdCount = &v
return s
}
// SetVpcId sets the VpcId field's value.
func (s *TargetGroup) SetVpcId(v string) *TargetGroup {
s.VpcId = &v
return s
}
2016-08-11 23:19:56 +02:00
// Information about a target group attribute.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetGroupAttribute
2016-08-11 23:19:56 +02:00
type TargetGroupAttribute struct {
_ struct{} `type:"structure"`
// The name of the attribute.
//
2016-11-19 19:41:01 +01:00
// * deregistration_delay.timeout_seconds - The amount time for Elastic Load
// Balancing to wait before changing the state of a deregistering target
// from draining to unused. The range is 0-3600 seconds. The default value
// is 300 seconds.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * stickiness.enabled - Indicates whether sticky sessions are enabled.
// The value is true or false.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * stickiness.type - The type of sticky sessions. The possible value is
// lb_cookie.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * stickiness.lb_cookie.duration_seconds - The time period, in seconds,
// during which requests from a client should be routed to the same target.
// After this time period expires, the load balancer-generated cookie is
// considered stale. The range is 1 second to 1 week (604800 seconds). The
// default value is 1 day (86400 seconds).
2016-08-11 23:19:56 +02:00
Key *string `type:"string"`
// The value of the attribute.
Value *string `type:"string"`
}
// String returns the string representation
func (s TargetGroupAttribute) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TargetGroupAttribute) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetKey sets the Key field's value.
func (s *TargetGroupAttribute) SetKey(v string) *TargetGroupAttribute {
s.Key = &v
return s
}
// SetValue sets the Value field's value.
func (s *TargetGroupAttribute) SetValue(v string) *TargetGroupAttribute {
s.Value = &v
return s
}
2016-08-11 23:19:56 +02:00
// Information about the current health of a target.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetHealth
2016-08-11 23:19:56 +02:00
type TargetHealth struct {
_ struct{} `type:"structure"`
// A description of the target health that provides additional details. If the
// state is healthy, a description is not provided.
Description *string `type:"string"`
// The reason code. If the target state is healthy, a reason code is not provided.
//
// If the target state is initial, the reason code can be one of the following
// values:
//
2016-11-19 19:41:01 +01:00
// * Elb.RegistrationInProgress - The target is in the process of being registered
// with the load balancer.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * Elb.InitialHealthChecking - The load balancer is still sending the target
// the minimum number of health checks required to determine its health status.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// If the target state is unhealthy, the reason code can be one of the following
2016-08-11 23:19:56 +02:00
// values:
//
2016-11-19 19:41:01 +01:00
// * Target.ResponseCodeMismatch - The health checks did not return an expected
// HTTP code.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * Target.Timeout - The health check requests timed out.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * Target.FailedHealthChecks - The health checks failed because the connection
// to the target timed out, the target response was malformed, or the target
// failed the health check for an unknown reason.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * Elb.InternalError - The health checks failed due to an internal error.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// If the target state is unused, the reason code can be one of the following
2016-08-11 23:19:56 +02:00
// values:
//
2016-11-19 19:41:01 +01:00
// * Target.NotRegistered - The target is not registered with the target
// group.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * Target.NotInUse - The target group is not used by any load balancer
// or the target is in an Availability Zone that is not enabled for its load
// balancer.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * Target.InvalidState - The target is in the stopped or terminated state.
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// If the target state is draining, the reason code can be the following value:
2016-08-11 23:19:56 +02:00
//
2016-11-19 19:41:01 +01:00
// * Target.DeregistrationInProgress - The target is in the process of being
// deregistered and the deregistration delay period has not expired.
2016-08-11 23:19:56 +02:00
Reason *string `type:"string" enum:"TargetHealthReasonEnum"`
// The state of the target.
State *string `type:"string" enum:"TargetHealthStateEnum"`
}
// String returns the string representation
func (s TargetHealth) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TargetHealth) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetDescription sets the Description field's value.
func (s *TargetHealth) SetDescription(v string) *TargetHealth {
s.Description = &v
return s
}
// SetReason sets the Reason field's value.
func (s *TargetHealth) SetReason(v string) *TargetHealth {
s.Reason = &v
return s
}
// SetState sets the State field's value.
func (s *TargetHealth) SetState(v string) *TargetHealth {
s.State = &v
return s
}
2016-08-11 23:19:56 +02:00
// Information about the health of a target.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetHealthDescription
2016-08-11 23:19:56 +02:00
type TargetHealthDescription struct {
_ struct{} `type:"structure"`
// The port to use to connect with the target.
HealthCheckPort *string `type:"string"`
// The description of the target.
Target *TargetDescription `type:"structure"`
// The health information for the target.
TargetHealth *TargetHealth `type:"structure"`
}
// String returns the string representation
func (s TargetHealthDescription) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TargetHealthDescription) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetHealthCheckPort sets the HealthCheckPort field's value.
func (s *TargetHealthDescription) SetHealthCheckPort(v string) *TargetHealthDescription {
s.HealthCheckPort = &v
return s
}
// SetTarget sets the Target field's value.
func (s *TargetHealthDescription) SetTarget(v *TargetDescription) *TargetHealthDescription {
s.Target = v
return s
}
// SetTargetHealth sets the TargetHealth field's value.
func (s *TargetHealthDescription) SetTargetHealth(v *TargetHealth) *TargetHealthDescription {
s.TargetHealth = v
return s
}
2016-08-11 23:19:56 +02:00
const (
2016-10-17 23:21:08 +02:00
// ActionTypeEnumForward is a ActionTypeEnum enum value
2016-08-11 23:19:56 +02:00
ActionTypeEnumForward = "forward"
)
const (
2016-10-17 23:21:08 +02:00
// LoadBalancerSchemeEnumInternetFacing is a LoadBalancerSchemeEnum enum value
2016-08-11 23:19:56 +02:00
LoadBalancerSchemeEnumInternetFacing = "internet-facing"
2016-10-17 23:21:08 +02:00
// LoadBalancerSchemeEnumInternal is a LoadBalancerSchemeEnum enum value
2016-08-11 23:19:56 +02:00
LoadBalancerSchemeEnumInternal = "internal"
)
const (
2016-10-17 23:21:08 +02:00
// LoadBalancerStateEnumActive is a LoadBalancerStateEnum enum value
2016-08-11 23:19:56 +02:00
LoadBalancerStateEnumActive = "active"
2016-10-17 23:21:08 +02:00
// LoadBalancerStateEnumProvisioning is a LoadBalancerStateEnum enum value
2016-08-11 23:19:56 +02:00
LoadBalancerStateEnumProvisioning = "provisioning"
2016-10-17 23:21:08 +02:00
// LoadBalancerStateEnumFailed is a LoadBalancerStateEnum enum value
2016-08-11 23:19:56 +02:00
LoadBalancerStateEnumFailed = "failed"
)
const (
2016-10-17 23:21:08 +02:00
// LoadBalancerTypeEnumApplication is a LoadBalancerTypeEnum enum value
2016-08-11 23:19:56 +02:00
LoadBalancerTypeEnumApplication = "application"
)
const (
2016-10-17 23:21:08 +02:00
// ProtocolEnumHttp is a ProtocolEnum enum value
2016-08-11 23:19:56 +02:00
ProtocolEnumHttp = "HTTP"
2016-10-17 23:21:08 +02:00
// ProtocolEnumHttps is a ProtocolEnum enum value
2016-08-11 23:19:56 +02:00
ProtocolEnumHttps = "HTTPS"
)
const (
2016-10-17 23:21:08 +02:00
// TargetHealthReasonEnumElbRegistrationInProgress is a TargetHealthReasonEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthReasonEnumElbRegistrationInProgress = "Elb.RegistrationInProgress"
2016-10-17 23:21:08 +02:00
// TargetHealthReasonEnumElbInitialHealthChecking is a TargetHealthReasonEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthReasonEnumElbInitialHealthChecking = "Elb.InitialHealthChecking"
2016-10-17 23:21:08 +02:00
// TargetHealthReasonEnumTargetResponseCodeMismatch is a TargetHealthReasonEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthReasonEnumTargetResponseCodeMismatch = "Target.ResponseCodeMismatch"
2016-10-17 23:21:08 +02:00
// TargetHealthReasonEnumTargetTimeout is a TargetHealthReasonEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthReasonEnumTargetTimeout = "Target.Timeout"
2016-10-17 23:21:08 +02:00
// TargetHealthReasonEnumTargetFailedHealthChecks is a TargetHealthReasonEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthReasonEnumTargetFailedHealthChecks = "Target.FailedHealthChecks"
2016-10-17 23:21:08 +02:00
// TargetHealthReasonEnumTargetNotRegistered is a TargetHealthReasonEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthReasonEnumTargetNotRegistered = "Target.NotRegistered"
2016-10-17 23:21:08 +02:00
// TargetHealthReasonEnumTargetNotInUse is a TargetHealthReasonEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthReasonEnumTargetNotInUse = "Target.NotInUse"
2016-10-17 23:21:08 +02:00
// TargetHealthReasonEnumTargetDeregistrationInProgress is a TargetHealthReasonEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthReasonEnumTargetDeregistrationInProgress = "Target.DeregistrationInProgress"
2016-10-17 23:21:08 +02:00
// TargetHealthReasonEnumTargetInvalidState is a TargetHealthReasonEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthReasonEnumTargetInvalidState = "Target.InvalidState"
2016-10-17 23:21:08 +02:00
// TargetHealthReasonEnumElbInternalError is a TargetHealthReasonEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthReasonEnumElbInternalError = "Elb.InternalError"
)
const (
2016-10-17 23:21:08 +02:00
// TargetHealthStateEnumInitial is a TargetHealthStateEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthStateEnumInitial = "initial"
2016-10-17 23:21:08 +02:00
// TargetHealthStateEnumHealthy is a TargetHealthStateEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthStateEnumHealthy = "healthy"
2016-10-17 23:21:08 +02:00
// TargetHealthStateEnumUnhealthy is a TargetHealthStateEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthStateEnumUnhealthy = "unhealthy"
2016-10-17 23:21:08 +02:00
// TargetHealthStateEnumUnused is a TargetHealthStateEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthStateEnumUnused = "unused"
2016-10-17 23:21:08 +02:00
// TargetHealthStateEnumDraining is a TargetHealthStateEnum enum value
2016-08-11 23:19:56 +02:00
TargetHealthStateEnumDraining = "draining"
)