Code artifacts are source code artifacts and build artifacts used in a repository analysis or a pull request review.
Source code artifacts are source code files in a Git repository that are compressed into a .zip file.
Build artifacts are .jar or .class files that are compressed in a .zip file.
Type: objectProperties: 2Required: 1
AmazonAmazon Web ServicesCode ReviewSecurityDevOpsMachine LearningDeveloper Tools
CodeArtifacts is a JSON Structure definition published by Amazon CodeGuru Reviewer, describing 2 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$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-code-artifacts-structure.json",
"name": "CodeArtifacts",
"description": "<p>Code artifacts are source code artifacts and build artifacts used in a repository analysis or a pull request review.</p> <ul> <li> <p>Source code artifacts are source code files in a Git repository that are compressed into a .zip file.</p> </li> <li> <p>Build artifacts are .jar or .class files that are compressed in a .zip file.</p> </li> </ul>",
"type": "object",
"properties": {
"SourceCodeArtifactsObjectKey": {
"allOf": [
{
"$ref": "#/components/schemas/SourceCodeArtifactsObjectKey"
},
{
"description": "The S3 object key for a source code .zip file. This is required for all code reviews."
}
]
},
"BuildArtifactsObjectKey": {
"allOf": [
{
"$ref": "#/components/schemas/BuildArtifactsObjectKey"
},
{
"description": "The S3 object key for a build artifacts .zip file that contains .jar or .class files. This is required for a code review with security analysis. For more information, see <a href=\"https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/working-with-cicd.html\">Create code reviews with GitHub Actions</a> in the <i>Amazon CodeGuru Reviewer User Guide</i>."
}
]
}
},
"required": [
"SourceCodeArtifactsObjectKey"
]
}
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.