Skip to content

list_data_lake_exceptions

list_data_lake_exceptions(
    *,
    config_overrides: Optional[SecurityLakeClientConfig] = None,
    regions: Optional[RegionList] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListDataLakeExceptionsResponse

Lists the Amazon Security Lake exceptions that you can use to find the source of problems and fix them.

Parameters:

  • regions (Optional[RegionList], default: None ) –

    The Amazon Web Services Regions from which exceptions are retrieved.

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

    Lists the maximum number of failures in Security Lake.

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

    Lists if there are more results available. The value of nextToken is a unique pagination token for each page. Repeat the call using the returned token to retrieve the next page. Keep all other arguments unchanged.

    Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

Raises:

  • AccessDeniedException –

    You do not have sufficient access to perform this action. Access denied errors appear when Amazon Security Lake explicitly or implicitly denies an authorization request. An explicit denial occurs when a policy contains a Deny statement for the specific Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also no applicable Allow statement.

  • BadRequestException –

    The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.

  • ConflictException –

    Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.

  • InternalServerException –

    Internal service exceptions are sometimes caused by transient issues. Before you start troubleshooting, perform the operation again.

  • ResourceNotFoundException –

    The resource could not be found.

  • ThrottlingException –

    The limit on the number of requests per second was exceeded.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_securitylake/_services/security_lake.py
def list_data_lake_exceptions(
    self,
    *,
    config_overrides: Optional[SecurityLakeClientConfig] = None,
    regions: Optional["capo_securitylake.types.region_list.RegionList"] = None,
    max_results: Optional["capo_securitylake.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_securitylake.types.next_token.NextToken"] = None,
) -> "capo_securitylake.types.list_data_lake_exceptions_response.ListDataLakeExceptionsResponse":
    """<p>Lists the Amazon Security Lake exceptions that you can use to find the source of problems and fix them.</p>

    Args:
        regions: <p>The Amazon Web Services Regions from which exceptions are retrieved.</p>
        max_results: <p>Lists the maximum number of failures in Security Lake.</p>
        next_token: <p>Lists if there are more results available. The value of nextToken is a unique pagination token for each page. Repeat the call using the returned token to retrieve the next page. Keep all other arguments unchanged.</p> <p>Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.</p>

    Raises:
        capo_securitylake.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action. Access denied errors appear when Amazon Security Lake explicitly or implicitly denies an authorization request. An explicit denial occurs when a policy contains a Deny statement for the specific Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also no applicable Allow statement.</p>
        capo_securitylake.errors.bad_request_exception.BadRequestException: <p>The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.</p>
        capo_securitylake.errors.conflict_exception.ConflictException: <p>Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.</p>
        capo_securitylake.errors.internal_server_exception.InternalServerException: <p>Internal service exceptions are sometimes caused by transient issues. Before you start troubleshooting, perform the operation again.</p>
        capo_securitylake.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
        capo_securitylake.errors.throttling_exception.ThrottlingException: <p>The limit on the number of requests per second was exceeded.</p>
        capo_securitylake.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_securitylake.types.list_data_lake_exceptions_request.ListDataLakeExceptionsRequest]",
    ) -> OperationResponse[
        "capo_securitylake.types.list_data_lake_exceptions_response.ListDataLakeExceptionsResponse"
    ]:
        import capo_securitylake._operations.security_lake.list_data_lake_exceptions

        output, http_response = (
            capo_securitylake._operations.security_lake.list_data_lake_exceptions.list_data_lake_exceptions(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListDataLakeExceptions")
    )
    input_: capo_securitylake.types.list_data_lake_exceptions_request.ListDataLakeExceptionsRequest = {}
    if regions is not None:
        input_["regions"] = regions
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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