SSMClient.register_target_with_maintenance_window
rboto-ssm==0.4.0 · Service index · Types
Model summary (excerpt): Registers a target with a maintenance window.
Install and imports
from rboto import SSMClient
from collections.abc import Sequence
from rboto_ssm.types import (
MaintenanceWindowResourceType,
RegisterTargetWithMaintenanceWindowOutput,
Target,
)
Signature
async def register_target_with_maintenance_window(
*,
window_id: str,
resource_type: MaintenanceWindowResourceType,
targets: Sequence[Target],
owner_information: str | None = None,
name: str | None = None,
description: str | None = None,
client_token: str | None = None,
) -> RegisterTargetWithMaintenanceWindowOutput: ...
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 ID of the maintenance window the target should be registered with. |
resource_type |
Yes | The type of target being registered with the maintenance window. |
targets |
Yes | The targets to register with the maintenance window. In other words, the managed nodes to run commands on when the maintenance window runs. If a single maintenance window task is registered with multiple targets, its task invocations occur sequentially and not in parallel. If your task must run on multiple targets at the same time, register a task for each target individually and assign each... |
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 | An optional name for the target. |
description |
No | An optional description for the target. |
client_token |
No | User-provided idempotency token. |
Output
RegisterTargetWithMaintenanceWindowOutput.
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_target_id |
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.
Related types
MaintenanceWindowResourceType, RegisterTargetWithMaintenanceWindowOutput, Target
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, IdempotentParameterMismatchError, InternalServerError, ResourceLimitExceededError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.