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

Validate is referenced in 1 repository


//   An unexpected error has occurred.
func (c *IoT) ListCertificatesByCA(input *ListCertificatesByCAInput) (*ListCertificatesByCAOutput, error) {
	req, out := c.ListCertificatesByCARequest(input)
	err := req.Send()
	return out, err

const opListOutgoingCertificates = "ListOutgoingCertificates"

// ListOutgoingCertificatesRequest generates a "aws/request.Request" representing the
// client's request for the ListOutgoingCertificates operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
// See ListOutgoingCertificates 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 ListOutgoingCertificates 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 ListOutgoingCertificatesRequest method.
//    req, resp := client.ListOutgoingCertificatesRequest(params)
//    err := req.Send()
//    if err == nil { // resp is now filled
//        fmt.Println(resp)
//    }
func (c *IoT) ListOutgoingCertificatesRequest(input *ListOutgoingCertificatesInput) (req *request.Request, output *ListOutgoingCertificatesOutput) {
	op := &request.Operation{
		Name:       opListOutgoingCertificates,
		HTTPMethod: "GET",
		HTTPPath:   "/certificates-out-going",

	if input == nil {
		input = &ListOutgoingCertificatesInput{}

	req = c.newRequest(op, input, output)
	output = &ListOutgoingCertificatesOutput{}
	req.Data = output

// ListOutgoingCertificates API operation for AWS IoT.
// Lists certificates that are being transfered but not yet accepted.
// 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 AWS IoT's
// API operation ListOutgoingCertificates for usage and error information.
// Returned Error Codes: