// Modifies a task assigned to a maintenance window. You can't change the task
// type, but you can change the following values:
//
// * TaskARN. For example, you can
// change a RUN_COMMAND task from AWS-RunPowerShellScript to AWS-RunShellScript.
//
// *
// ServiceRoleArn
//
// * TaskInvocationParameters
//
// * Priority
//
// * MaxConcurrency
//
// *
// MaxErrors
//
// If the value for a parameter in UpdateMaintenanceWindowTask is null,
// then the corresponding field is not modified. If you set Replace to true, then
// all fields required by the RegisterTaskWithMaintenanceWindow action are required
// for this request. Optional fields that aren't specified are set to null. When
// you update a maintenance window task that has options specified in
// TaskInvocationParameters, you must provide again all the
// TaskInvocationParameters values that you want to retain. The values you do not
// specify again are removed. For example, suppose that when you registered a Run
// Command task, you specified TaskInvocationParameters values for Comment,
// NotificationConfig, and OutputS3BucketName. If you update the maintenance window
// task and specify only a different OutputS3BucketName value, the values for
// Comment and NotificationConfig are removed.
Modifies a task assigned to a maintenance window. You can't change the task
type, but you can change the following values.

TaskARN. For example, you can
change a RUN_COMMAND task from AWS-RunPowerShellScript to AWS-RunShellScript.

ServiceRoleArn

TaskInvocationParameters

Priority

MaxConcurrency

MaxErrors

If the value for a parameter in UpdateMaintenanceWindowTask is null,
then the corresponding field is not modified. If you set Replace to true, then
all fields required by the RegisterTaskWithMaintenanceWindow action are required
for this request. Optional fields that aren't specified are set to null. When
you update a maintenance window task that has options specified in
TaskInvocationParameters, you must provide again all the
TaskInvocationParameters values that you want to retain. The values you do not
specify again are removed. For example, suppose that when you registered a Run
Command task, you specified TaskInvocationParameters values for Comment,
NotificationConfig, and OutputS3BucketName. If you update the maintenance window
task and specify only a different OutputS3BucketName value, the values for
Comment and NotificationConfig are removed.
// Modifies a task assigned to a maintenance window . You can ' t change the task // type but you can change the following values : // // * TaskARN . For example you can // change a RUN_COMMAND task from AWS - RunPowerShellScript to AWS - RunShellScript . // // * // ServiceRoleArn // // * TaskInvocationParameters // // * Priority // // * MaxConcurrency // // * // MaxErrors // // If the value for a parameter in UpdateMaintenanceWindowTask is null // then the corresponding field is not modified . If you set Replace to true then // all fields required by the RegisterTaskWithMaintenanceWindow action are required // for this request . Optional fields that aren ' t specified are set to null . When // you update a maintenance window task that has options specified in // TaskInvocationParameters you must provide again all the // TaskInvocationParameters values that you want to retain . The values you do not // specify again are removed . For example suppose that when you registered a Run // Command task you specified TaskInvocationParameters values for Comment // NotificationConfig and OutputS3BucketName . If you update the maintenance window // task and specify only a different OutputS3BucketName value the values for // Comment and NotificationConfig are removed .
func (c *Client) UpdateMaintenanceWindowTask(ctx context.Context, params *UpdateMaintenanceWindowTaskInput, optFns ...func(*Options)) (*UpdateMaintenanceWindowTaskOutput, error) {
	if params == nil {
		params = &UpdateMaintenanceWindowTaskInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "UpdateMaintenanceWindowTask", params, optFns, addOperationUpdateMaintenanceWindowTaskMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*UpdateMaintenanceWindowTaskOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) UpdateMaintenanceWindowTask ( ctx context . Context , params * UpdateMaintenanceWindowTaskInput , optFns ... func ( * Options ) ) ( * UpdateMaintenanceWindowTaskOutput , error ) { if params == nil { params = & UpdateMaintenanceWindowTaskInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationUpdateMaintenanceWindowTaskMiddlewares ) if err != nil { return nil , err } out := result . ( * UpdateMaintenanceWindowTaskOutput ) out . ResultMetadata = metadata return out , nil }
Modifies a task assigned to a maintenance window.
Modifies a task assigned to a maintenance window .