Skip to content

/AWS1/CL_SSM=>UPDMAINTENANCEWINDOWTARGET()

About UpdateMaintenanceWindowTarget

Modifies the target of an existing maintenance window. You can change the following:

  • Name

  • Description

  • Owner

  • IDs for an ID target

  • Tags for a Tag target

  • From any supported tag type to another. The three supported tag types are ID target, Tag target, and resource group. For more information, see Target.

If a parameter is null, then the corresponding field isn't modified.

Method Signature

IMPORTING

Required arguments:

IV_WINDOWID TYPE /AWS1/SSMMAINTENANCEWINDOWID /AWS1/SSMMAINTENANCEWINDOWID

The maintenance window ID with which to modify the target.

IV_WINDOWTARGETID TYPE /AWS1/SSMMAINTENANCEWINDOWTG00 /AWS1/SSMMAINTENANCEWINDOWTG00

The target ID to modify.

Optional arguments:

IT_TARGETS TYPE /AWS1/CL_SSMTARGET=>TT_TARGETS TT_TARGETS

The targets to add or replace.

IV_OWNERINFORMATION TYPE /AWS1/SSMOWNERINFORMATION /AWS1/SSMOWNERINFORMATION

User-provided value that will be included in any Amazon CloudWatch Events events raised while running tasks for these targets in this maintenance window.

IV_NAME TYPE /AWS1/SSMMAINTENANCEWINDOWNAME /AWS1/SSMMAINTENANCEWINDOWNAME

A name for the update.

IV_DESCRIPTION TYPE /AWS1/SSMMAINTENANCEWINDOWDESC /AWS1/SSMMAINTENANCEWINDOWDESC

An optional description for the update.

IV_REPLACE TYPE /AWS1/SSMBOOLEAN /AWS1/SSMBOOLEAN

If True, then all fields that are required by the RegisterTargetWithMaintenanceWindow operation are also required for this API request. Optional fields that aren't specified are set to null.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SSMUPMAINTENANCEWIN03 /AWS1/CL_SSMUPMAINTENANCEWIN03