Skip to content

get_lookup_table

get_lookup_table(
    lookup_table_arn: Arn,
    *,
    config_overrides: Optional[CloudWatchLogsClientConfig] = None,
) -> GetLookupTableResponse

Retrieves the full content of a lookup table, including the CSV data.

Parameters:

  • lookup_table_arn (Arn) –

    The ARN of the lookup table to retrieve.

Raises:

Source code in docs_src/capo_cloudwatch_logs/_services/cloud_watch_logs.py
def get_lookup_table(
    self,
    lookup_table_arn: "capo_cloudwatch_logs.types.arn.Arn",
    *,
    config_overrides: Optional[CloudWatchLogsClientConfig] = None,
) -> "capo_cloudwatch_logs.types.get_lookup_table_response.GetLookupTableResponse":
    """<p>Retrieves the full content of a lookup table, including the CSV data.</p>

    Args:
        lookup_table_arn: <p>The ARN of the lookup table to retrieve.</p>

    Raises:
        capo_cloudwatch_logs.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient permissions to perform this action.</p>
        capo_cloudwatch_logs.errors.invalid_parameter_exception.InvalidParameterException: <p>A parameter is specified incorrectly.</p>
        capo_cloudwatch_logs.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
        capo_cloudwatch_logs.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service cannot complete the request.</p>
        capo_cloudwatch_logs.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_cloudwatch_logs.types.get_lookup_table_request.GetLookupTableRequest]",
    ) -> OperationResponse[
        "capo_cloudwatch_logs.types.get_lookup_table_response.GetLookupTableResponse"
    ]:
        import capo_cloudwatch_logs._operations.logs_20140328.get_lookup_table

        output, http_response = (
            capo_cloudwatch_logs._operations.logs_20140328.get_lookup_table.get_lookup_table(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetLookupTable")
    )
    input_: capo_cloudwatch_logs.types.get_lookup_table_request.GetLookupTableRequest = {
        "lookup_table_arn": lookup_table_arn
    }

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