// PutPermissionRequest generates a "aws/request.Request" representing the
// client's request for the PutPermission operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See PutPermission for more information on using the PutPermission
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
//    // Example sending a request using the PutPermissionRequest method.
//    req, resp := client.PutPermissionRequest(params)
//
//    err := req.Send()
//    if err == nil { // resp is now filled
//        fmt.Println(resp)
//    }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission
PutPermissionRequest generates a "aws/request.Request" representing the
client's request for the PutPermission operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

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

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

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

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

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


// PutPermissionRequest generates a " aws / request . Request " representing the // client ' s request for the PutPermission operation . The " output " return // value will be populated with the request ' s response once the request completes // successfully . // // Use " Send " method on the returned Request to send the API call to the service . // the " output " return value is not valid until after Send returns without error . // // See PutPermission for more information on using the PutPermission // API call and error handling . // // This method is useful when you want to inject custom logic or configuration // into the SDK ' s request lifecycle . Such as custom headers or retry logic . // // // // Example sending a request using the PutPermissionRequest method . // req resp : = client . PutPermissionRequest ( params ) // // err : = req . Send () // if err == nil { // resp is now filled // fmt . Println ( resp ) // } // // See also https : // docs . aws . amazon . com / goto / WebAPI / events - 2015 - 10 - 07 / PutPermission
func (c *CloudWatchEvents) PutPermissionRequest(input *PutPermissionInput) (req *request.Request, output *PutPermissionOutput) {
	op := &request.Operation{
		Name:       opPutPermission,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}
	if input == nil {
		input = &PutPermissionInput{}
	}
	output = &PutPermissionOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}
func ( c * CloudWatchEvents ) PutPermissionRequest ( input * PutPermissionInput ) ( req * request . Request , output * PutPermissionOutput ) { op := & request . Operation { Name : opPutPermission , HTTPMethod : " " , HTTPPath : " " , } if input == nil { input = & PutPermissionInput { } } output = & PutPermissionOutput { } req = c . newRequest ( op , input , output ) req . Handlers . Unmarshal . Swap ( jsonrpc . UnmarshalHandler . Name , protocol . UnmarshalDiscardBodyHandler ) return }
PutPermissionRequest generates a "aws/request.Request" representing the
client's request for the PutPermission operation.
PutPermissionRequest generates a " aws / request . Request " representing the client ' s request for the PutPermission operation .