Skip to content

get_maintenance_window_execution async

get_maintenance_window_execution(
    window_execution_id: MaintenanceWindowExecutionId,
    *,
    config_overrides: Optional[AsyncSSMClientConfig] = None,
) -> GetMaintenanceWindowExecutionResult

Retrieves details about a specific a maintenance window execution.

Parameters:

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
async def get_maintenance_window_execution(
    self,
    window_execution_id: "capo_ssm.types.maintenance_window_execution_id.MaintenanceWindowExecutionId",
    *,
    config_overrides: Optional[AsyncSSMClientConfig] = None,
) -> "capo_ssm.types.get_maintenance_window_execution_result.GetMaintenanceWindowExecutionResult":
    """<p>Retrieves details about a specific a maintenance window execution.</p>

    Args:
        window_execution_id: <p>The ID of the maintenance window execution that includes the task.</p>

    Raises:
        capo_ssm.errors.does_not_exist_exception.DoesNotExistException: <p>Error returned when the ID specified for a resource, such as a maintenance window or patch baseline, doesn't exist.</p> <p>For information about resource quotas in Amazon Web Services Systems Manager, see <a href="https://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm">Systems Manager service quotas</a> in the <i>Amazon Web Services General Reference</i>.</p>
        capo_ssm.errors.internal_server_error.InternalServerError: <p>An error occurred on the server side.</p>
        capo_ssm.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ssm.types.get_maintenance_window_execution_request.GetMaintenanceWindowExecutionRequest]",
    ) -> AsyncOperationResponse[
        "capo_ssm.types.get_maintenance_window_execution_result.GetMaintenanceWindowExecutionResult"
    ]:
        import capo_ssm._operations.amazon_ssm.get_maintenance_window_execution

        (
            output,
            http_response,
        ) = await capo_ssm._operations.amazon_ssm.get_maintenance_window_execution.async_get_maintenance_window_execution(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetMaintenanceWindowExecution")
    )
    input_: capo_ssm.types.get_maintenance_window_execution_request.GetMaintenanceWindowExecutionRequest = {
        "window_execution_id": window_execution_id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output