describe_maintenance_window_tasks
async
¶
describe_maintenance_window_tasks(
window_id: MaintenanceWindowId,
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
filters: Optional[MaintenanceWindowFilterList] = None,
max_results: Optional[MaintenanceWindowMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> DescribeMaintenanceWindowTasksResult
Lists the tasks in a maintenance window.
For maintenance window tasks without a specified target, you can't supply values for --max-errors and --max-concurrency. Instead, the system inserts a placeholder value of 1, which may be reported in the response to this command. These values don't affect the running of your task and can be ignored.
Parameters:
-
window_id(MaintenanceWindowId) –The ID of the maintenance window whose tasks should be retrieved.
-
filters(Optional[MaintenanceWindowFilterList], default:None) –Optional filters used to narrow down the scope of the returned tasks. The supported filter keys are
WindowTaskId,TaskArn,Priority, andTaskType. -
max_results(Optional[MaintenanceWindowMaxResults], 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:
-
DoesNotExistException–Error returned when the ID specified for a resource, such as a maintenance window or patch baseline, doesn't exist.
For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the Amazon Web Services General Reference.
-
InternalServerError–An error occurred on the server side.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/async_ssm.py
5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 | |