• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "version":"2.0",
3  "metadata":{
4    "apiVersion":"2023-08-08",
5    "endpointPrefix":"inspector-scan",
6    "jsonVersion":"1.1",
7    "protocol":"rest-json",
8    "serviceAbbreviation":"inspector-scan",
9    "serviceFullName":"Inspector Scan",
10    "serviceId":"Inspector Scan",
11    "signatureVersion":"v4",
12    "signingName":"inspector-scan",
13    "uid":"inspector-scan-2023-08-08"
14  },
15  "operations":{
16    "ScanSbom":{
17      "name":"ScanSbom",
18      "http":{
19        "method":"POST",
20        "requestUri":"/scan/sbom",
21        "responseCode":200
22      },
23      "input":{"shape":"ScanSbomRequest"},
24      "output":{"shape":"ScanSbomResponse"},
25      "errors":[
26        {"shape":"InternalServerException"},
27        {"shape":"ThrottlingException"},
28        {"shape":"ValidationException"},
29        {"shape":"AccessDeniedException"}
30      ],
31      "documentation":"<p>Scans a provided CycloneDX 1.5 SBOM and reports on any vulnerabilities discovered in that SBOM. You can generate compatible SBOMs for your resources using the <a href=\"\">Amazon Inspector SBOM generator</a>.</p>",
32      "idempotent":true
33    }
34  },
35  "shapes":{
36    "AccessDeniedException":{
37      "type":"structure",
38      "required":["message"],
39      "members":{
40        "message":{"shape":"String"}
41      },
42      "documentation":"<p>You do not have sufficient access to perform this action. </p>",
43      "error":{
44        "httpStatusCode":403,
45        "senderFault":true
46      },
47      "exception":true
48    },
49    "Integer":{
50      "type":"integer",
51      "box":true
52    },
53    "InternalServerException":{
54      "type":"structure",
55      "required":[
56        "message",
57        "reason"
58      ],
59      "members":{
60        "message":{"shape":"String"},
61        "reason":{
62          "shape":"InternalServerExceptionReason",
63          "documentation":"<p>The reason for the validation failure.</p>"
64        },
65        "retryAfterSeconds":{
66          "shape":"Integer",
67          "documentation":"<p>The number of seconds to wait before retrying the request.</p>",
68          "location":"header",
69          "locationName":"Retry-After"
70        }
71      },
72      "documentation":"<p>The request processing has failed because of an unknown error, exception or failure. </p>",
73      "error":{"httpStatusCode":500},
74      "exception":true,
75      "fault":true,
76      "retryable":{"throttling":false}
77    },
78    "InternalServerExceptionReason":{
79      "type":"string",
80      "enum":[
81        "FAILED_TO_GENERATE_SBOM",
82        "OTHER"
83      ]
84    },
85    "OutputFormat":{
86      "type":"string",
87      "enum":[
88        "CYCLONE_DX_1_5",
89        "INSPECTOR"
90      ]
91    },
92    "Sbom":{
93      "type":"structure",
94      "members":{
95      },
96      "document":true
97    },
98    "ScanSbomRequest":{
99      "type":"structure",
100      "required":["sbom"],
101      "members":{
102        "sbom":{
103          "shape":"Sbom",
104          "documentation":"<p>The JSON file for the SBOM you want to scan. The SBOM must be in CycloneDX 1.5 format.</p>"
105        },
106        "outputFormat":{
107          "shape":"OutputFormat",
108          "documentation":"<p>The output format for the vulnerability report.</p>"
109        }
110      }
111    },
112    "ScanSbomResponse":{
113      "type":"structure",
114      "members":{
115        "sbom":{
116          "shape":"Sbom",
117          "documentation":"<p>The vulnerability report for the scanned SBOM.</p>"
118        }
119      }
120    },
121    "String":{"type":"string"},
122    "ThrottlingException":{
123      "type":"structure",
124      "required":["message"],
125      "members":{
126        "message":{"shape":"String"},
127        "retryAfterSeconds":{
128          "shape":"Integer",
129          "documentation":"<p>The number of seconds to wait before retrying the request.</p>",
130          "location":"header",
131          "locationName":"Retry-After"
132        }
133      },
134      "documentation":"<p>The request was denied due to request throttling. </p>",
135      "error":{
136        "httpStatusCode":429,
137        "senderFault":true
138      },
139      "exception":true,
140      "retryable":{"throttling":true}
141    },
142    "ValidationException":{
143      "type":"structure",
144      "required":[
145        "message",
146        "reason"
147      ],
148      "members":{
149        "message":{"shape":"String"},
150        "reason":{
151          "shape":"ValidationExceptionReason",
152          "documentation":"<p>The reason for the validation failure.</p>"
153        },
154        "fields":{
155          "shape":"ValidationExceptionFields",
156          "documentation":"<p>The fields that failed validation.</p>"
157        }
158      },
159      "documentation":"<p>The request has failed validation due to missing required fields or having invalid inputs.</p>",
160      "error":{
161        "httpStatusCode":400,
162        "senderFault":true
163      },
164      "exception":true
165    },
166    "ValidationExceptionField":{
167      "type":"structure",
168      "required":[
169        "name",
170        "message"
171      ],
172      "members":{
173        "name":{
174          "shape":"String",
175          "documentation":"<p>The name of the validation exception. </p>"
176        },
177        "message":{
178          "shape":"String",
179          "documentation":"<p>The validation exception message. </p>"
180        }
181      },
182      "documentation":"<p>The request has failed validation due to missing required fields or having invalid inputs. </p>"
183    },
184    "ValidationExceptionFields":{
185      "type":"list",
186      "member":{"shape":"ValidationExceptionField"}
187    },
188    "ValidationExceptionReason":{
189      "type":"string",
190      "enum":[
191        "UNKNOWN_OPERATION",
192        "CANNOT_PARSE",
193        "FIELD_VALIDATION_FAILED",
194        "UNSUPPORTED_SBOM_TYPE",
195        "OTHER"
196      ]
197    }
198  },
199  "documentation":"<p>Amazon Inspector Scan is a vulnerability discovery service that scans a provided Software Bill of Materials (SBOM) for security vulnerabilities.</p>"
200}
201