Skip to content

describe_contributor_insights async

describe_contributor_insights(
    table_name: TableArn,
    *,
    config_overrides: Optional[AsyncDynamoDBClientConfig] = None,
    index_name: Optional[IndexName] = None,
) -> DescribeContributorInsightsOutput

Returns information about contributor insights for a given table or global secondary index.

Parameters:

  • table_name (TableArn) –

    The name of the table to describe. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.

  • index_name (Optional[IndexName], default: None ) –

    The name of the global secondary index to describe, if applicable.

Raises:

  • InternalServerError –

    An error occurred on the server side.

  • ResourceNotFoundException –

    The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be ACTIVE.

  • UnknownServiceError –

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

Source code in docs_src/capo_dynamodb/_services/async_dynamo_db.py
async def describe_contributor_insights(
    self,
    table_name: "capo_dynamodb.types.table_arn.TableArn",
    *,
    config_overrides: Optional[AsyncDynamoDBClientConfig] = None,
    index_name: Optional["capo_dynamodb.types.index_name.IndexName"] = None,
) -> "capo_dynamodb.types.describe_contributor_insights_output.DescribeContributorInsightsOutput":
    """<p>Returns information about contributor insights for a given table or global secondary index.</p>

    Args:
        table_name: <p>The name of the table to describe. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
        index_name: <p>The name of the global secondary index to describe, if applicable.</p>

    Raises:
        capo_dynamodb.errors.internal_server_error.InternalServerError: <p>An error occurred on the server side.</p>
        capo_dynamodb.errors.resource_not_found_exception.ResourceNotFoundException: <p>The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be <code>ACTIVE</code>.</p>
        capo_dynamodb.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_dynamodb.types.describe_contributor_insights_input.DescribeContributorInsightsInput]",
    ) -> AsyncOperationResponse[
        "capo_dynamodb.types.describe_contributor_insights_output.DescribeContributorInsightsOutput"
    ]:
        import capo_dynamodb._operations.dynamo_db_20120810.describe_contributor_insights

        (
            output,
            http_response,
        ) = await capo_dynamodb._operations.dynamo_db_20120810.describe_contributor_insights.async_describe_contributor_insights(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeContributorInsights")
    )
    input_: capo_dynamodb.types.describe_contributor_insights_input.DescribeContributorInsightsInput = {
        "table_name": table_name
    }
    if index_name is not None:
        input_["index_name"] = index_name

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