Skip to content

RepositoryAssociation

Source code in docs_src/capo_codeguru_reviewer/types/repository_association.py
class RepositoryAssociation(TypedDict, closed=True):
    association_id: NotRequired[
        "capo_codeguru_reviewer.types.association_id.AssociationId"
    ]
    """<p>The ID of the repository association.</p>"""
    association_arn: NotRequired["capo_codeguru_reviewer.types.arn.Arn"]
    """<p>The Amazon Resource Name (ARN) identifying the repository association.</p>"""
    connection_arn: NotRequired[
        "capo_codeguru_reviewer.types.connection_arn.ConnectionArn"
    ]
    """<p>The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections connection. Its format is <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>. For more information, see <a href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a> in the <i>Amazon Web Services CodeStar Connections API Reference</i>.</p>"""
    name: NotRequired["capo_codeguru_reviewer.types.name.Name"]
    """<p>The name of the repository.</p>"""
    owner: NotRequired["capo_codeguru_reviewer.types.owner.Owner"]
    """<p>The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, this is the username for the account that owns the repository. For an S3 repository, it can be the username or Amazon Web Services account ID.</p>"""
    provider_type: NotRequired[
        "capo_codeguru_reviewer.types.provider_type.ProviderType"
    ]
    """<p>The provider type of the repository association.</p>"""
    state: NotRequired[
        "capo_codeguru_reviewer.types.repository_association_state.RepositoryAssociationState"
    ]
    """<p>The state of the repository association.</p> <p>The valid repository association states are:</p> <ul> <li> <p> <b>Associated</b>: The repository association is complete.</p> </li> <li> <p> <b>Associating</b>: CodeGuru Reviewer is:</p> <ul> <li> <p>Setting up pull request notifications. This is required for pull requests to trigger a CodeGuru Reviewer review.</p> <note> <p>If your repository <code>ProviderType</code> is <code>GitHub</code>, <code>GitHub Enterprise Server</code>, or <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code in your repository cannot be triggered.</p> </note> </li> <li> <p>Setting up source code access. This is required for CodeGuru Reviewer to securely clone code in your repository.</p> </li> </ul> </li> <li> <p> <b>Failed</b>: The repository failed to associate or disassociate.</p> </li> <li> <p> <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull request notifications and source code access.</p> </li> <li> <p> <b>Disassociated</b>: CodeGuru Reviewer successfully disassociated the repository. You can create a new association with this repository if you want to review source code in it later. You can control access to code reviews created in anassociated repository with tags after it has been disassociated. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html">Using tags to control access to associated repositories</a> in the <i>Amazon CodeGuru Reviewer User Guide</i>.</p> </li> </ul>"""
    state_reason: NotRequired["capo_codeguru_reviewer.types.state_reason.StateReason"]
    """<p>A description of why the repository association is in the current state.</p>"""
    last_updated_time_stamp: NotRequired[
        "capo_codeguru_reviewer.types.time_stamp.TimeStamp"
    ]
    """<p>The time, in milliseconds since the epoch, when the repository association was last updated.</p>"""
    created_time_stamp: NotRequired["capo_codeguru_reviewer.types.time_stamp.TimeStamp"]
    """<p>The time, in milliseconds since the epoch, when the repository association was created.</p>"""
    kms_key_details: NotRequired[
        "capo_codeguru_reviewer.types.kms_key_details.KMSKeyDetails"
    ]
    """<p>A <code>KMSKeyDetails</code> object that contains:</p> <ul> <li> <p>The encryption option for this repository association. It is either owned by Amazon Web Services Key Management Service (KMS) (<code>AWS_OWNED_CMK</code>) or customer managed (<code>CUSTOMER_MANAGED_CMK</code>).</p> </li> <li> <p>The ID of the Amazon Web Services KMS key that is associated with this repository association.</p> </li> </ul>"""
    s3_repository_details: NotRequired[
        "capo_codeguru_reviewer.types.s3_repository_details.S3RepositoryDetails"
    ]

association_arn instance-attribute

association_arn: NotRequired[Arn]

The Amazon Resource Name (ARN) identifying the repository association.

association_id instance-attribute

association_id: NotRequired[AssociationId]

The ID of the repository association.

connection_arn instance-attribute

connection_arn: NotRequired[ConnectionArn]

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections connection. Its format is arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more information, see Connection in the Amazon Web Services CodeStar Connections API Reference.

created_time_stamp instance-attribute

created_time_stamp: NotRequired[TimeStamp]

The time, in milliseconds since the epoch, when the repository association was created.

kms_key_details instance-attribute

kms_key_details: NotRequired[KMSKeyDetails]

A KMSKeyDetails object that contains:

  • The encryption option for this repository association. It is either owned by Amazon Web Services Key Management Service (KMS) (AWS_OWNED_CMK) or customer managed (CUSTOMER_MANAGED_CMK).

  • The ID of the Amazon Web Services KMS key that is associated with this repository association.

last_updated_time_stamp instance-attribute

last_updated_time_stamp: NotRequired[TimeStamp]

The time, in milliseconds since the epoch, when the repository association was last updated.

name instance-attribute

name: NotRequired[Name]

The name of the repository.

owner instance-attribute

owner: NotRequired[Owner]

The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, this is the username for the account that owns the repository. For an S3 repository, it can be the username or Amazon Web Services account ID.

provider_type instance-attribute

provider_type: NotRequired[ProviderType]

The provider type of the repository association.

s3_repository_details instance-attribute

s3_repository_details: NotRequired[S3RepositoryDetails]

state instance-attribute

state: NotRequired[RepositoryAssociationState]

The state of the repository association.

The valid repository association states are:

  • Associated: The repository association is complete.

  • Associating: CodeGuru Reviewer is:

    • Setting up pull request notifications. This is required for pull requests to trigger a CodeGuru Reviewer review.

      If your repository ProviderType is GitHub, GitHub Enterprise Server, or Bitbucket, CodeGuru Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code in your repository cannot be triggered.

    • Setting up source code access. This is required for CodeGuru Reviewer to securely clone code in your repository.

  • Failed: The repository failed to associate or disassociate.

  • Disassociating: CodeGuru Reviewer is removing the repository's pull request notifications and source code access.

  • Disassociated: CodeGuru Reviewer successfully disassociated the repository. You can create a new association with this repository if you want to review source code in it later. You can control access to code reviews created in anassociated repository with tags after it has been disassociated. For more information, see Using tags to control access to associated repositories in the Amazon CodeGuru Reviewer User Guide.

state_reason instance-attribute

state_reason: NotRequired[StateReason]

A description of why the repository association is in the current state.