// Use this operation to run a canary that has already been created. The frequency
// of the canary runs is determined by the value of the canary's Schedule. To see a
// canary's schedule, use GetCanary
// (https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanary.html).
Use this operation to run a canary that has already been created. The frequency
of the canary runs is determined by the value of the canary's Schedule. To see a
canary's schedule, use GetCanary
.
// Use this operation to run a canary that has already been created . The frequency // of the canary runs is determined by the value of the canary ' s Schedule . To see a // canary ' s schedule use GetCanary // ( https : // docs . aws . amazon . com / AmazonSynthetics / latest / APIReference / API_GetCanary . html ) .
func (c *Client) StartCanary(ctx context.Context, params *StartCanaryInput, optFns ...func(*Options)) (*StartCanaryOutput, error) {
	if params == nil {
		params = &StartCanaryInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "StartCanary", params, optFns, addOperationStartCanaryMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*StartCanaryOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) StartCanary ( ctx context . Context , params * StartCanaryInput , optFns ... func ( * Options ) ) ( * StartCanaryOutput , error ) { if params == nil { params = & StartCanaryInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationStartCanaryMiddlewares ) if err != nil { return nil , err } out := result . ( * StartCanaryOutput ) out . ResultMetadata = metadata return out , nil }
Use this operation to run a canary that has already been created.
Use this operation to run a canary that has already been created .