Skip to content

describe_repository_association async

describe_repository_association(
    association_arn: AssociationArn,
    *,
    config_overrides: Optional[AsyncCodeGuruReviewerClientConfig] = None,
) -> DescribeRepositoryAssociationResponse

Returns a RepositoryAssociation object that contains information about the requested repository association.

Parameters:

Raises:

Source code in docs_src/capo_codeguru_reviewer/_services/async_code_guru_reviewer.py
async def describe_repository_association(
    self,
    association_arn: "capo_codeguru_reviewer.types.association_arn.AssociationArn",
    *,
    config_overrides: Optional[AsyncCodeGuruReviewerClientConfig] = None,
) -> "capo_codeguru_reviewer.types.describe_repository_association_response.DescribeRepositoryAssociationResponse":
    """<p>Returns a <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">RepositoryAssociation</a> object that contains information about the requested repository association.</p>

    Args:
        association_arn: <p>The Amazon Resource Name (ARN) of the <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">RepositoryAssociation</a> object. You can retrieve this ARN by calling <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html">ListRepositoryAssociations</a>.</p>

    Raises:
        capo_codeguru_reviewer.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_codeguru_reviewer.errors.internal_server_exception.InternalServerException: <p>The server encountered an internal error and is unable to complete the request.</p>
        capo_codeguru_reviewer.errors.not_found_exception.NotFoundException: <p>The resource specified in the request was not found.</p>
        capo_codeguru_reviewer.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_codeguru_reviewer.errors.validation_exception.ValidationException: <p>The input fails to satisfy the specified constraints.</p>
        capo_codeguru_reviewer.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_codeguru_reviewer.types.describe_repository_association_request.DescribeRepositoryAssociationRequest]",
    ) -> AsyncOperationResponse[
        "capo_codeguru_reviewer.types.describe_repository_association_response.DescribeRepositoryAssociationResponse"
    ]:
        import capo_codeguru_reviewer._operations.aws_guru_frontend_service.describe_repository_association

        (
            output,
            http_response,
        ) = await capo_codeguru_reviewer._operations.aws_guru_frontend_service.describe_repository_association.async_describe_repository_association(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeRepositoryAssociation")
    )
    input_: capo_codeguru_reviewer.types.describe_repository_association_request.DescribeRepositoryAssociationRequest = {
        "association_arn": association_arn
    }

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