// Cancels the execution of a job for a given thing.
Cancels the execution of a job for a given thing.
// Cancels the execution of a job for a given thing .
func (c *Client) CancelJobExecution(ctx context.Context, params *CancelJobExecutionInput, optFns ...func(*Options)) (*CancelJobExecutionOutput, error) {
	if params == nil {
		params = &CancelJobExecutionInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CancelJobExecution", params, optFns, addOperationCancelJobExecutionMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CancelJobExecutionOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CancelJobExecution ( ctx context . Context , params * CancelJobExecutionInput , optFns ... func ( * Options ) ) ( * CancelJobExecutionOutput , error ) { if params == nil { params = & CancelJobExecutionInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCancelJobExecutionMiddlewares ) if err != nil { return nil , err } out := result . ( * CancelJobExecutionOutput ) out . ResultMetadata = metadata return out , nil }
Cancels the execution of a job for a given thing.
Cancels the execution of a job for a given thing .