Skip to content

list_case_edits

list_case_edits(
    case_id: CaseId,
    *,
    config_overrides: Optional[SecurityIRClientConfig] = None,
    next_token: Optional[str] = None,
    max_results: Optional[int] = None,
) -> ListCaseEditsResponse

Views the case history for edits made to a designated case.

Parameters:

  • next_token (Optional[str], default: None ) –

    An optional string that, if supplied, must be copied from the output of a previous call to ListCaseEdits. When provided in this manner, the API fetches the next page of results.

  • max_results (Optional[int], default: None ) –

    Optional element to identify how many results to obtain. There is a maximum value of 25.

  • case_id (CaseId) –

    Required element used with ListCaseEdits to identify the case to query.

Raises:

Examples:

Invoke ListCaseEdits

>>> client.list_case_edits(case_id='8403556009')
Source code in docs_src/capo_security_ir/_services/security_ir.py
def list_case_edits(
    self,
    case_id: "capo_security_ir.types.case_id.CaseId",
    *,
    config_overrides: Optional[SecurityIRClientConfig] = None,
    next_token: Optional[str] = None,
    max_results: Optional[int] = None,
) -> "capo_security_ir.types.list_case_edits_response.ListCaseEditsResponse":
    """<p>Views the case history for edits made to a designated case.</p>

    Args:
        next_token: <p>An optional string that, if supplied, must be copied from the output of a previous call to ListCaseEdits. When provided in this manner, the API fetches the next page of results. </p>
        max_results: <p>Optional element to identify how many results to obtain. There is a maximum value of 25.</p>
        case_id: <p>Required element used with ListCaseEdits to identify the case to query.</p>

    Raises:
        capo_security_ir.errors.access_denied_exception.AccessDeniedException: <p/>
        capo_security_ir.errors.conflict_exception.ConflictException: <p/>
        capo_security_ir.errors.internal_server_exception.InternalServerException: <p/>
        capo_security_ir.errors.invalid_token_exception.InvalidTokenException: <p/>
        capo_security_ir.errors.resource_not_found_exception.ResourceNotFoundException: <p/>
        capo_security_ir.errors.security_incident_response_not_active_exception.SecurityIncidentResponseNotActiveException: <p/>
        capo_security_ir.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p/>
        capo_security_ir.errors.throttling_exception.ThrottlingException: <p/>
        capo_security_ir.errors.validation_exception.ValidationException: <p/>
        capo_security_ir.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Invoke ListCaseEdits

        >>> client.list_case_edits(case_id='8403556009')
    """

    def _handler(
        req: "OperationRequest[capo_security_ir.types.list_case_edits_request.ListCaseEditsRequest]",
    ) -> OperationResponse[
        "capo_security_ir.types.list_case_edits_response.ListCaseEditsResponse"
    ]:
        import capo_security_ir._operations.security_incident_response.list_case_edits

        output, http_response = (
            capo_security_ir._operations.security_incident_response.list_case_edits.list_case_edits(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListCaseEdits")
    )
    input_: capo_security_ir.types.list_case_edits_request.ListCaseEditsRequest = {
        "case_id": case_id
    }
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

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