Skip to content

list_sources_for_s3_table_integration async

list_sources_for_s3_table_integration(
    integration_arn: Arn,
    *,
    config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = None,
    max_results: Optional[ListSourcesForS3TableIntegrationMaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListSourcesForS3TableIntegrationResponse

Returns a list of data source associations for a specified S3 Table Integration, showing which data sources are currently associated for query access.

Parameters:

  • integration_arn (Arn) –

    The Amazon Resource Name (ARN) of the S3 Table Integration to list associations for.

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

    The maximum number of associations to return in a single call. Valid range is 1 to 100.

Raises:

Source code in docs_src/capo_cloudwatch_logs/_services/async_cloud_watch_logs.py
async def list_sources_for_s3_table_integration(
    self,
    integration_arn: "capo_cloudwatch_logs.types.arn.Arn",
    *,
    config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = None,
    max_results: Optional[
        "capo_cloudwatch_logs.types.list_sources_for_s3_table_integration_max_results.ListSourcesForS3TableIntegrationMaxResults"
    ] = None,
    next_token: Optional["capo_cloudwatch_logs.types.next_token.NextToken"] = None,
) -> "capo_cloudwatch_logs.types.list_sources_for_s3_table_integration_response.ListSourcesForS3TableIntegrationResponse":
    """<p>Returns a list of data source associations for a specified S3 Table Integration, showing which data sources are currently associated for query access.</p>

    Args:
        integration_arn: <p>The Amazon Resource Name (ARN) of the S3 Table Integration to list associations for.</p>
        max_results: <p>The maximum number of associations to return in a single call. Valid range is 1 to 100.</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.internal_server_exception.InternalServerException: <p>An internal server error occurred while processing the request. This exception is returned when the service encounters an unexpected condition that prevents it from fulfilling the request.</p>
        capo_cloudwatch_logs.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
        capo_cloudwatch_logs.errors.throttling_exception.ThrottlingException: <p>The request was throttled because of quota limits.</p>
        capo_cloudwatch_logs.errors.validation_exception.ValidationException: <p>One of the parameters for the request is not valid.</p>
        capo_cloudwatch_logs.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cloudwatch_logs.types.list_sources_for_s3_table_integration_request.ListSourcesForS3TableIntegrationRequest]",
    ) -> AsyncOperationResponse[
        "capo_cloudwatch_logs.types.list_sources_for_s3_table_integration_response.ListSourcesForS3TableIntegrationResponse"
    ]:
        import capo_cloudwatch_logs._operations.logs_20140328.list_sources_for_s3_table_integration

        (
            output,
            http_response,
        ) = await capo_cloudwatch_logs._operations.logs_20140328.list_sources_for_s3_table_integration.async_list_sources_for_s3_table_integration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListSourcesForS3TableIntegration")
    )
    input_: capo_cloudwatch_logs.types.list_sources_for_s3_table_integration_request.ListSourcesForS3TableIntegrationRequest = {
        "integration_arn": integration_arn
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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