Amazon CodeGuru Reviewer · JSON Structure
Amazon Codeguru Reviewer Repository Association Structure
Information about a repository association. The DescribeRepositoryAssociation operation returns a RepositoryAssociation object.
Type: object
Properties: 12
AmazonCode ReviewSecurityDevOpsMachine LearningDeveloper Tools
RepositoryAssociation is a JSON Structure definition published by Amazon CodeGuru Reviewer, describing 12 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
Properties
AssociationId
AssociationArn
ConnectionArn
Name
Owner
ProviderType
State
StateReason
LastUpdatedTimeStamp
CreatedTimeStamp
KMSKeyDetails
S3RepositoryDetails
Meta-schema: https://json-structure.org/meta/core/v0/#
JSON Structure
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codeguru-reviewer/refs/heads/main/json-structure/amazon-codeguru-reviewer-repository-association-structure.json",
"name": "RepositoryAssociation",
"description": "Information about a repository association. The <a href=\"https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_DescribeRepositoryAssociation.html\">DescribeRepositoryAssociation</a> operation returns a <code>RepositoryAssociation</code> object.",
"type": "object",
"properties": {
"AssociationId": {
"allOf": [
{
"$ref": "#/components/schemas/AssociationId"
},
{
"description": "The ID of the repository association."
}
]
},
"AssociationArn": {
"allOf": [
{
"$ref": "#/components/schemas/Arn"
},
{
"description": "The Amazon Resource Name (ARN) identifying the repository association."
}
]
},
"ConnectionArn": {
"allOf": [
{
"$ref": "#/components/schemas/ConnectionArn"
},
{
"description": "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>."
}
]
},
"Name": {
"allOf": [
{
"$ref": "#/components/schemas/Name"
},
{
"description": "The name of the repository."
}
]
},
"Owner": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
},
{
"description": "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."
}
]
},
"ProviderType": {
"allOf": [
{
"$ref": "#/components/schemas/ProviderType"
},
{
"description": "The provider type of the repository association."
}
]
},
"State": {
"allOf": [
{
"$ref": "#/components/schemas/RepositoryAssociationState"
},
{
"description": "<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>"
}
]
},
"StateReason": {
"allOf": [
{
"$ref": "#/components/schemas/StateReason"
},
{
"description": "A description of why the repository association is in the current state."
}
]
},
"LastUpdatedTimeStamp": {
"allOf": [
{
"$ref": "#/components/schemas/TimeStamp"
},
{
"description": "The time, in milliseconds since the epoch, when the repository association was last updated."
}
]
},
"CreatedTimeStamp": {
"allOf": [
{
"$ref": "#/components/schemas/TimeStamp"
},
{
"description": "The time, in milliseconds since the epoch, when the repository association was created."
}
]
},
"KMSKeyDetails": {
"allOf": [
{
"$ref": "#/components/schemas/KMSKeyDetails"
},
{
"description": "<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>"
}
]
},
"S3RepositoryDetails": {
"$ref": "#/components/schemas/S3RepositoryDetails"
}
}
}