describe_maintenance_windows_for_target
¶
describe_maintenance_windows_for_target(
targets: Targets,
resource_type: MaintenanceWindowResourceType,
*,
config_overrides: Optional[SSMClientConfig] = None,
max_results: Optional[MaintenanceWindowSearchMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> DescribeMaintenanceWindowsForTargetResult
Retrieves information about the maintenance window targets or tasks that a managed node is associated with.
Parameters:
-
targets(Targets) –The managed node ID or key-value pair to retrieve information about.
-
resource_type(MaintenanceWindowResourceType) –The type of resource you want to retrieve information about. For example,
INSTANCE. -
max_results(Optional[MaintenanceWindowSearchMaxResults], default:None) –The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
-
next_token(Optional[NextToken], default:None) –The token for the next set of items to return. (You received this token from a previous call.)
Raises:
-
InternalServerError–An error occurred on the server side.
-
UnknownServiceError–The service returned an error code this client does not model.