Skip to content

get_pending_maintenance_action

get_pending_maintenance_action(
    resource_arn: InputString,
    *,
    config_overrides: Optional[DocDBElasticClientConfig] = None,
) -> GetPendingMaintenanceActionOutput

Retrieves all maintenance actions that are pending.

Parameters:

  • resource_arn (InputString) –

    Retrieves pending maintenance actions for a specific Amazon Resource Name (ARN).

Raises:

Source code in docs_src/capo_docdb_elastic/_services/doc_db_elastic.py
def get_pending_maintenance_action(
    self,
    resource_arn: "capo_docdb_elastic.types.input_string.InputString",
    *,
    config_overrides: Optional[DocDBElasticClientConfig] = None,
) -> "capo_docdb_elastic.types.get_pending_maintenance_action_output.GetPendingMaintenanceActionOutput":
    """<p>Retrieves all maintenance actions that are pending.</p>

    Args:
        resource_arn: <p>Retrieves pending maintenance actions for a specific Amazon Resource Name (ARN).</p>

    Raises:
        capo_docdb_elastic.errors.access_denied_exception.AccessDeniedException: <p>An exception that occurs when there are not sufficient permissions to perform an action.</p>
        capo_docdb_elastic.errors.conflict_exception.ConflictException: <p>There was an access conflict.</p>
        capo_docdb_elastic.errors.internal_server_exception.InternalServerException: <p>There was an internal server error.</p>
        capo_docdb_elastic.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource could not be located.</p>
        capo_docdb_elastic.errors.throttling_exception.ThrottlingException: <p>ThrottlingException will be thrown when request was denied due to request throttling.</p>
        capo_docdb_elastic.errors.validation_exception.ValidationException: <p>A structure defining a validation exception.</p>
        capo_docdb_elastic.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_docdb_elastic.types.get_pending_maintenance_action_input.GetPendingMaintenanceActionInput]",
    ) -> OperationResponse[
        "capo_docdb_elastic.types.get_pending_maintenance_action_output.GetPendingMaintenanceActionOutput"
    ]:
        import capo_docdb_elastic._operations.chimera_db_lionfish_service_lambda.get_pending_maintenance_action

        output, http_response = (
            capo_docdb_elastic._operations.chimera_db_lionfish_service_lambda.get_pending_maintenance_action.get_pending_maintenance_action(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetPendingMaintenanceAction")
    )
    input_: capo_docdb_elastic.types.get_pending_maintenance_action_input.GetPendingMaintenanceActionInput = {
        "resource_arn": resource_arn
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output