123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703 |
- {
- "version": "2.0",
- "metadata": {
- "apiVersion": "2018-05-10",
- "endpointPrefix": "codeguru-security",
- "jsonVersion": "1.1",
- "protocol": "rest-json",
- "serviceFullName": "Amazon CodeGuru Security",
- "serviceId": "CodeGuru Security",
- "signatureVersion": "v4",
- "signingName": "codeguru-security",
- "uid": "codeguru-security-2018-05-10"
- },
- "operations": {
- "BatchGetFindings": {
- "http": {
- "requestUri": "/batchGetFindings",
- "responseCode": 200
- },
- "input": {
- "type": "structure",
- "required": [
- "findingIdentifiers"
- ],
- "members": {
- "findingIdentifiers": {
- "type": "list",
- "member": {
- "type": "structure",
- "required": [
- "findingId",
- "scanName"
- ],
- "members": {
- "findingId": {},
- "scanName": {}
- }
- }
- }
- }
- },
- "output": {
- "type": "structure",
- "required": [
- "failedFindings",
- "findings"
- ],
- "members": {
- "failedFindings": {
- "type": "list",
- "member": {
- "type": "structure",
- "required": [
- "errorCode",
- "findingId",
- "message",
- "scanName"
- ],
- "members": {
- "errorCode": {},
- "findingId": {},
- "message": {},
- "scanName": {}
- }
- }
- },
- "findings": {
- "shape": "Sa"
- }
- }
- }
- },
- "CreateScan": {
- "http": {
- "requestUri": "/scans",
- "responseCode": 200
- },
- "input": {
- "type": "structure",
- "required": [
- "resourceId",
- "scanName"
- ],
- "members": {
- "analysisType": {},
- "clientToken": {
- "idempotencyToken": true
- },
- "resourceId": {
- "shape": "Sv"
- },
- "scanName": {},
- "scanType": {},
- "tags": {
- "shape": "Sy"
- }
- }
- },
- "output": {
- "type": "structure",
- "required": [
- "resourceId",
- "runId",
- "scanName",
- "scanState"
- ],
- "members": {
- "resourceId": {
- "shape": "Sv"
- },
- "runId": {},
- "scanName": {},
- "scanNameArn": {},
- "scanState": {}
- }
- }
- },
- "CreateUploadUrl": {
- "http": {
- "requestUri": "/uploadUrl",
- "responseCode": 200
- },
- "input": {
- "type": "structure",
- "required": [
- "scanName"
- ],
- "members": {
- "scanName": {}
- }
- },
- "output": {
- "type": "structure",
- "required": [
- "codeArtifactId",
- "requestHeaders",
- "s3Url"
- ],
- "members": {
- "codeArtifactId": {},
- "requestHeaders": {
- "type": "map",
- "key": {},
- "value": {},
- "sensitive": true
- },
- "s3Url": {
- "type": "string",
- "sensitive": true
- }
- }
- }
- },
- "GetAccountConfiguration": {
- "http": {
- "method": "GET",
- "requestUri": "/accountConfiguration/get",
- "responseCode": 200
- },
- "input": {
- "type": "structure",
- "members": {}
- },
- "output": {
- "type": "structure",
- "required": [
- "encryptionConfig"
- ],
- "members": {
- "encryptionConfig": {
- "shape": "S1c"
- }
- }
- }
- },
- "GetFindings": {
- "http": {
- "method": "GET",
- "requestUri": "/findings/{scanName}",
- "responseCode": 200
- },
- "input": {
- "type": "structure",
- "required": [
- "scanName"
- ],
- "members": {
- "maxResults": {
- "location": "querystring",
- "locationName": "maxResults",
- "type": "integer"
- },
- "nextToken": {
- "location": "querystring",
- "locationName": "nextToken"
- },
- "scanName": {
- "location": "uri",
- "locationName": "scanName"
- },
- "status": {
- "location": "querystring",
- "locationName": "status"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "findings": {
- "shape": "Sa"
- },
- "nextToken": {}
- }
- }
- },
- "GetMetricsSummary": {
- "http": {
- "method": "GET",
- "requestUri": "/metrics/summary",
- "responseCode": 200
- },
- "input": {
- "type": "structure",
- "required": [
- "date"
- ],
- "members": {
- "date": {
- "location": "querystring",
- "locationName": "date",
- "type": "timestamp"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "metricsSummary": {
- "type": "structure",
- "members": {
- "categoriesWithMostFindings": {
- "type": "list",
- "member": {
- "type": "structure",
- "members": {
- "categoryName": {},
- "findingNumber": {
- "type": "integer"
- }
- }
- }
- },
- "date": {
- "type": "timestamp"
- },
- "openFindings": {
- "shape": "S1n"
- },
- "scansWithMostOpenCriticalFindings": {
- "type": "list",
- "member": {
- "shape": "S1q"
- }
- },
- "scansWithMostOpenFindings": {
- "type": "list",
- "member": {
- "shape": "S1q"
- }
- }
- }
- }
- }
- }
- },
- "GetScan": {
- "http": {
- "method": "GET",
- "requestUri": "/scans/{scanName}",
- "responseCode": 200
- },
- "input": {
- "type": "structure",
- "required": [
- "scanName"
- ],
- "members": {
- "runId": {
- "location": "querystring",
- "locationName": "runId"
- },
- "scanName": {
- "location": "uri",
- "locationName": "scanName"
- }
- }
- },
- "output": {
- "type": "structure",
- "required": [
- "analysisType",
- "createdAt",
- "runId",
- "scanName",
- "scanState"
- ],
- "members": {
- "analysisType": {},
- "createdAt": {
- "type": "timestamp"
- },
- "numberOfRevisions": {
- "type": "long"
- },
- "runId": {},
- "scanName": {},
- "scanNameArn": {},
- "scanState": {},
- "updatedAt": {
- "type": "timestamp"
- }
- }
- }
- },
- "ListFindingsMetrics": {
- "http": {
- "method": "GET",
- "requestUri": "/metrics/findings",
- "responseCode": 200
- },
- "input": {
- "type": "structure",
- "required": [
- "endDate",
- "startDate"
- ],
- "members": {
- "endDate": {
- "location": "querystring",
- "locationName": "endDate",
- "type": "timestamp"
- },
- "maxResults": {
- "location": "querystring",
- "locationName": "maxResults",
- "type": "integer"
- },
- "nextToken": {
- "location": "querystring",
- "locationName": "nextToken"
- },
- "startDate": {
- "location": "querystring",
- "locationName": "startDate",
- "type": "timestamp"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "findingsMetrics": {
- "type": "list",
- "member": {
- "type": "structure",
- "members": {
- "closedFindings": {
- "shape": "S1n"
- },
- "date": {
- "type": "timestamp"
- },
- "meanTimeToClose": {
- "shape": "S1n"
- },
- "newFindings": {
- "shape": "S1n"
- },
- "openFindings": {
- "shape": "S1n"
- }
- }
- }
- },
- "nextToken": {}
- }
- }
- },
- "ListScans": {
- "http": {
- "method": "GET",
- "requestUri": "/scans",
- "responseCode": 200
- },
- "input": {
- "type": "structure",
- "members": {
- "maxResults": {
- "location": "querystring",
- "locationName": "maxResults",
- "type": "integer"
- },
- "nextToken": {
- "location": "querystring",
- "locationName": "nextToken"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "nextToken": {},
- "summaries": {
- "type": "list",
- "member": {
- "type": "structure",
- "required": [
- "createdAt",
- "runId",
- "scanName",
- "scanState"
- ],
- "members": {
- "createdAt": {
- "type": "timestamp"
- },
- "runId": {},
- "scanName": {},
- "scanNameArn": {},
- "scanState": {},
- "updatedAt": {
- "type": "timestamp"
- }
- }
- }
- }
- }
- }
- },
- "ListTagsForResource": {
- "http": {
- "method": "GET",
- "requestUri": "/tags/{resourceArn}",
- "responseCode": 200
- },
- "input": {
- "type": "structure",
- "required": [
- "resourceArn"
- ],
- "members": {
- "resourceArn": {
- "location": "uri",
- "locationName": "resourceArn"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "tags": {
- "shape": "Sy"
- }
- }
- }
- },
- "TagResource": {
- "http": {
- "requestUri": "/tags/{resourceArn}",
- "responseCode": 204
- },
- "input": {
- "type": "structure",
- "required": [
- "resourceArn",
- "tags"
- ],
- "members": {
- "resourceArn": {
- "location": "uri",
- "locationName": "resourceArn"
- },
- "tags": {
- "shape": "Sy"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {}
- }
- },
- "UntagResource": {
- "http": {
- "method": "DELETE",
- "requestUri": "/tags/{resourceArn}",
- "responseCode": 204
- },
- "input": {
- "type": "structure",
- "required": [
- "resourceArn",
- "tagKeys"
- ],
- "members": {
- "resourceArn": {
- "location": "uri",
- "locationName": "resourceArn"
- },
- "tagKeys": {
- "location": "querystring",
- "locationName": "tagKeys",
- "type": "list",
- "member": {}
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {}
- },
- "idempotent": true
- },
- "UpdateAccountConfiguration": {
- "http": {
- "method": "PUT",
- "requestUri": "/updateAccountConfiguration",
- "responseCode": 200
- },
- "input": {
- "type": "structure",
- "required": [
- "encryptionConfig"
- ],
- "members": {
- "encryptionConfig": {
- "shape": "S1c"
- }
- }
- },
- "output": {
- "type": "structure",
- "required": [
- "encryptionConfig"
- ],
- "members": {
- "encryptionConfig": {
- "shape": "S1c"
- }
- }
- }
- }
- },
- "shapes": {
- "Sa": {
- "type": "list",
- "member": {
- "type": "structure",
- "members": {
- "createdAt": {
- "type": "timestamp"
- },
- "description": {},
- "detectorId": {},
- "detectorName": {},
- "detectorTags": {
- "type": "list",
- "member": {}
- },
- "generatorId": {},
- "id": {},
- "remediation": {
- "type": "structure",
- "members": {
- "recommendation": {
- "type": "structure",
- "members": {
- "text": {},
- "url": {}
- }
- },
- "suggestedFixes": {
- "type": "list",
- "member": {
- "type": "structure",
- "members": {
- "code": {},
- "description": {}
- }
- }
- }
- }
- },
- "resource": {
- "type": "structure",
- "members": {
- "id": {},
- "subResourceId": {}
- }
- },
- "ruleId": {},
- "severity": {},
- "status": {},
- "title": {},
- "type": {},
- "updatedAt": {
- "type": "timestamp"
- },
- "vulnerability": {
- "type": "structure",
- "members": {
- "filePath": {
- "type": "structure",
- "members": {
- "codeSnippet": {
- "type": "list",
- "member": {
- "type": "structure",
- "members": {
- "content": {},
- "number": {
- "type": "integer"
- }
- }
- }
- },
- "endLine": {
- "type": "integer"
- },
- "name": {},
- "path": {},
- "startLine": {
- "type": "integer"
- }
- }
- },
- "id": {},
- "itemCount": {
- "type": "integer"
- },
- "referenceUrls": {
- "type": "list",
- "member": {}
- },
- "relatedVulnerabilities": {
- "type": "list",
- "member": {}
- }
- }
- }
- }
- }
- },
- "Sv": {
- "type": "structure",
- "members": {
- "codeArtifactId": {}
- },
- "union": true
- },
- "Sy": {
- "type": "map",
- "key": {},
- "value": {}
- },
- "S1c": {
- "type": "structure",
- "members": {
- "kmsKeyArn": {}
- }
- },
- "S1n": {
- "type": "structure",
- "members": {
- "critical": {
- "type": "double"
- },
- "high": {
- "type": "double"
- },
- "info": {
- "type": "double"
- },
- "low": {
- "type": "double"
- },
- "medium": {
- "type": "double"
- }
- }
- },
- "S1q": {
- "type": "structure",
- "members": {
- "findingNumber": {
- "type": "integer"
- },
- "scanName": {}
- }
- }
- }
- }
|