// Adds a new task to a maintenance window.
Adds a new task to a maintenance window.
// Adds a new task to a maintenance window .
func (c *Client) RegisterTaskWithMaintenanceWindow(ctx context.Context, params *RegisterTaskWithMaintenanceWindowInput, optFns ...func(*Options)) (*RegisterTaskWithMaintenanceWindowOutput, error) {
	if params == nil {
		params = &RegisterTaskWithMaintenanceWindowInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "RegisterTaskWithMaintenanceWindow", params, optFns, addOperationRegisterTaskWithMaintenanceWindowMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*RegisterTaskWithMaintenanceWindowOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) RegisterTaskWithMaintenanceWindow ( ctx context . Context , params * RegisterTaskWithMaintenanceWindowInput , optFns ... func ( * Options ) ) ( * RegisterTaskWithMaintenanceWindowOutput , error ) { if params == nil { params = & RegisterTaskWithMaintenanceWindowInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationRegisterTaskWithMaintenanceWindowMiddlewares ) if err != nil { return nil , err } out := result . ( * RegisterTaskWithMaintenanceWindowOutput ) out . ResultMetadata = metadata return out , nil }
Adds a new task to a maintenance window.
Adds a new task to a maintenance window .