Skip to content

SSMClient.update_maintenance_window_target

rboto-ssm==0.4.0 · Service index · Types

Model summary (excerpt): 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.

Install and imports

python -m pip install "rboto[ssm]==0.4.0"
from rboto import SSMClient
from collections.abc import Sequence
from rboto_ssm.types import (
    Target,
    UpdateMaintenanceWindowTargetOutput,
)

Signature

async def update_maintenance_window_target(
    *,
    window_id: str,
    window_target_id: str,
    targets: Sequence[Target] | None = None,
    owner_information: str | None = None,
    name: str | None = None,
    description: str | None = None,
    replace: bool | None = None,
) -> UpdateMaintenanceWindowTargetOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
window_id Yes The maintenance window ID with which to modify the target.
window_target_id Yes The target ID to modify.
targets No The targets to add or replace.
owner_information No User-provided value that will be included in any Amazon CloudWatch Events events raised while running tasks for these targets in this maintenance window.
name No A name for the update.
description No An optional description for the update.
replace No 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.

Output

UpdateMaintenanceWindowTargetOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
window_id str | None Always present —
window_target_id str | None Always present —
targets list[TargetOutput] | None Always present TargetOutput
owner_information str | None Always present —
name str | None Always present —
description str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

Target, UpdateMaintenanceWindowTargetOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_ssm.exceptions:

DoesNotExistError, InternalServerError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model