View definition


Defined in


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

Validate is referenced in 0 repositories


// For more information, see Instance Protection (
// in the Auto Scaling User Guide.
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
// See the AWS API reference guide for Auto Scaling's
// API operation SetInstanceProtection for usage and error information.
// Returned Error Codes:
//   * LimitExceeded
//   You have already reached a limit for your Auto Scaling resources (for example,
//   groups, launch configurations, or lifecycle hooks). For more information,
//   see DescribeAccountLimits.
//   * ResourceContention
//   You already have a pending update to an Auto Scaling resource (for example,
//   a group, instance, or load balancer).
func (c *AutoScaling) SetInstanceProtection(input *SetInstanceProtectionInput) (*SetInstanceProtectionOutput, error) {
	req, out := c.SetInstanceProtectionRequest(input)
	err := req.Send()
	return out, err

const opSuspendProcesses = "SuspendProcesses"

// SuspendProcessesRequest generates a "aws/request.Request" representing the
// client's request for the SuspendProcesses operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
// See SuspendProcesses for usage and error information.
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the SuspendProcesses 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 SuspendProcessesRequest method.
//    req, resp := client.SuspendProcessesRequest(params)
//    err := req.Send()
//    if err == nil { // resp is now filled
//        fmt.Println(resp)
//    }
func (c *AutoScaling) SuspendProcessesRequest(input *ScalingProcessQuery) (req *request.Request, output *SuspendProcessesOutput) {