aws-sdk-codegurusecurity 1.33.0 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -116,17 +116,17 @@ module Aws::CodeGuruSecurity
116
116
  AccessDeniedException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
117
117
  AccessDeniedException.struct_class = Types::AccessDeniedException
118
118
 
119
- AccountFindingsMetric.add_member(:closed_findings, Shapes::ShapeRef.new(shape: FindingMetricsValuePerSeverity, location_name: "closedFindings"))
120
119
  AccountFindingsMetric.add_member(:date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "date"))
121
- AccountFindingsMetric.add_member(:mean_time_to_close, Shapes::ShapeRef.new(shape: FindingMetricsValuePerSeverity, location_name: "meanTimeToClose"))
122
120
  AccountFindingsMetric.add_member(:new_findings, Shapes::ShapeRef.new(shape: FindingMetricsValuePerSeverity, location_name: "newFindings"))
121
+ AccountFindingsMetric.add_member(:closed_findings, Shapes::ShapeRef.new(shape: FindingMetricsValuePerSeverity, location_name: "closedFindings"))
123
122
  AccountFindingsMetric.add_member(:open_findings, Shapes::ShapeRef.new(shape: FindingMetricsValuePerSeverity, location_name: "openFindings"))
123
+ AccountFindingsMetric.add_member(:mean_time_to_close, Shapes::ShapeRef.new(shape: FindingMetricsValuePerSeverity, location_name: "meanTimeToClose"))
124
124
  AccountFindingsMetric.struct_class = Types::AccountFindingsMetric
125
125
 
126
- BatchGetFindingsError.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, required: true, location_name: "errorCode"))
126
+ BatchGetFindingsError.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location_name: "scanName"))
127
127
  BatchGetFindingsError.add_member(:finding_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "findingId"))
128
+ BatchGetFindingsError.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, required: true, location_name: "errorCode"))
128
129
  BatchGetFindingsError.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
129
- BatchGetFindingsError.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location_name: "scanName"))
130
130
  BatchGetFindingsError.struct_class = Types::BatchGetFindingsError
131
131
 
132
132
  BatchGetFindingsErrors.member = Shapes::ShapeRef.new(shape: BatchGetFindingsError)
@@ -134,8 +134,8 @@ module Aws::CodeGuruSecurity
134
134
  BatchGetFindingsRequest.add_member(:finding_identifiers, Shapes::ShapeRef.new(shape: FindingIdentifiers, required: true, location_name: "findingIdentifiers"))
135
135
  BatchGetFindingsRequest.struct_class = Types::BatchGetFindingsRequest
136
136
 
137
- BatchGetFindingsResponse.add_member(:failed_findings, Shapes::ShapeRef.new(shape: BatchGetFindingsErrors, required: true, location_name: "failedFindings"))
138
137
  BatchGetFindingsResponse.add_member(:findings, Shapes::ShapeRef.new(shape: Findings, required: true, location_name: "findings"))
138
+ BatchGetFindingsResponse.add_member(:failed_findings, Shapes::ShapeRef.new(shape: BatchGetFindingsErrors, required: true, location_name: "failedFindings"))
139
139
  BatchGetFindingsResponse.struct_class = Types::BatchGetFindingsResponse
140
140
 
141
141
  CategoriesWithMostFindings.member = Shapes::ShapeRef.new(shape: CategoryWithFindingNum)
@@ -144,8 +144,8 @@ module Aws::CodeGuruSecurity
144
144
  CategoryWithFindingNum.add_member(:finding_number, Shapes::ShapeRef.new(shape: Integer, location_name: "findingNumber"))
145
145
  CategoryWithFindingNum.struct_class = Types::CategoryWithFindingNum
146
146
 
147
- CodeLine.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "content"))
148
147
  CodeLine.add_member(:number, Shapes::ShapeRef.new(shape: Integer, location_name: "number"))
148
+ CodeLine.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "content"))
149
149
  CodeLine.struct_class = Types::CodeLine
150
150
 
151
151
  CodeSnippet.member = Shapes::ShapeRef.new(shape: CodeLine)
@@ -156,27 +156,27 @@ module Aws::CodeGuruSecurity
156
156
  ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
157
157
  ConflictException.struct_class = Types::ConflictException
158
158
 
159
- CreateScanRequest.add_member(:analysis_type, Shapes::ShapeRef.new(shape: AnalysisType, location_name: "analysisType"))
160
159
  CreateScanRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
161
160
  CreateScanRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
162
161
  CreateScanRequest.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location_name: "scanName"))
163
162
  CreateScanRequest.add_member(:scan_type, Shapes::ShapeRef.new(shape: ScanType, location_name: "scanType"))
163
+ CreateScanRequest.add_member(:analysis_type, Shapes::ShapeRef.new(shape: AnalysisType, location_name: "analysisType"))
164
164
  CreateScanRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
165
165
  CreateScanRequest.struct_class = Types::CreateScanRequest
166
166
 
167
- CreateScanResponse.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
168
- CreateScanResponse.add_member(:run_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "runId"))
169
167
  CreateScanResponse.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location_name: "scanName"))
170
- CreateScanResponse.add_member(:scan_name_arn, Shapes::ShapeRef.new(shape: ScanNameArn, location_name: "scanNameArn"))
168
+ CreateScanResponse.add_member(:run_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "runId"))
169
+ CreateScanResponse.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
171
170
  CreateScanResponse.add_member(:scan_state, Shapes::ShapeRef.new(shape: ScanState, required: true, location_name: "scanState"))
171
+ CreateScanResponse.add_member(:scan_name_arn, Shapes::ShapeRef.new(shape: ScanNameArn, location_name: "scanNameArn"))
172
172
  CreateScanResponse.struct_class = Types::CreateScanResponse
173
173
 
174
174
  CreateUploadUrlRequest.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location_name: "scanName"))
175
175
  CreateUploadUrlRequest.struct_class = Types::CreateUploadUrlRequest
176
176
 
177
- CreateUploadUrlResponse.add_member(:code_artifact_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "codeArtifactId"))
178
- CreateUploadUrlResponse.add_member(:request_headers, Shapes::ShapeRef.new(shape: RequestHeaderMap, required: true, location_name: "requestHeaders"))
179
177
  CreateUploadUrlResponse.add_member(:s3_url, Shapes::ShapeRef.new(shape: S3Url, required: true, location_name: "s3Url"))
178
+ CreateUploadUrlResponse.add_member(:request_headers, Shapes::ShapeRef.new(shape: RequestHeaderMap, required: true, location_name: "requestHeaders"))
179
+ CreateUploadUrlResponse.add_member(:code_artifact_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "codeArtifactId"))
180
180
  CreateUploadUrlResponse.struct_class = Types::CreateUploadUrlResponse
181
181
 
182
182
  DetectorTags.member = Shapes::ShapeRef.new(shape: String)
@@ -184,42 +184,42 @@ module Aws::CodeGuruSecurity
184
184
  EncryptionConfig.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "kmsKeyArn"))
185
185
  EncryptionConfig.struct_class = Types::EncryptionConfig
186
186
 
187
- FilePath.add_member(:code_snippet, Shapes::ShapeRef.new(shape: CodeSnippet, location_name: "codeSnippet"))
188
- FilePath.add_member(:end_line, Shapes::ShapeRef.new(shape: Integer, location_name: "endLine"))
189
187
  FilePath.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
190
188
  FilePath.add_member(:path, Shapes::ShapeRef.new(shape: String, location_name: "path"))
191
189
  FilePath.add_member(:start_line, Shapes::ShapeRef.new(shape: Integer, location_name: "startLine"))
190
+ FilePath.add_member(:end_line, Shapes::ShapeRef.new(shape: Integer, location_name: "endLine"))
191
+ FilePath.add_member(:code_snippet, Shapes::ShapeRef.new(shape: CodeSnippet, location_name: "codeSnippet"))
192
192
  FilePath.struct_class = Types::FilePath
193
193
 
194
194
  Finding.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
195
195
  Finding.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
196
- Finding.add_member(:detector_id, Shapes::ShapeRef.new(shape: String, location_name: "detectorId"))
197
- Finding.add_member(:detector_name, Shapes::ShapeRef.new(shape: String, location_name: "detectorName"))
198
- Finding.add_member(:detector_tags, Shapes::ShapeRef.new(shape: DetectorTags, location_name: "detectorTags"))
199
196
  Finding.add_member(:generator_id, Shapes::ShapeRef.new(shape: String, location_name: "generatorId"))
200
197
  Finding.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
201
- Finding.add_member(:remediation, Shapes::ShapeRef.new(shape: Remediation, location_name: "remediation"))
198
+ Finding.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
199
+ Finding.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "type"))
200
+ Finding.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
202
201
  Finding.add_member(:resource, Shapes::ShapeRef.new(shape: Resource, location_name: "resource"))
203
- Finding.add_member(:rule_id, Shapes::ShapeRef.new(shape: String, location_name: "ruleId"))
202
+ Finding.add_member(:vulnerability, Shapes::ShapeRef.new(shape: Vulnerability, location_name: "vulnerability"))
204
203
  Finding.add_member(:severity, Shapes::ShapeRef.new(shape: Severity, location_name: "severity"))
205
- Finding.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
204
+ Finding.add_member(:remediation, Shapes::ShapeRef.new(shape: Remediation, location_name: "remediation"))
206
205
  Finding.add_member(:title, Shapes::ShapeRef.new(shape: String, location_name: "title"))
207
- Finding.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "type"))
208
- Finding.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
209
- Finding.add_member(:vulnerability, Shapes::ShapeRef.new(shape: Vulnerability, location_name: "vulnerability"))
206
+ Finding.add_member(:detector_tags, Shapes::ShapeRef.new(shape: DetectorTags, location_name: "detectorTags"))
207
+ Finding.add_member(:detector_id, Shapes::ShapeRef.new(shape: String, location_name: "detectorId"))
208
+ Finding.add_member(:detector_name, Shapes::ShapeRef.new(shape: String, location_name: "detectorName"))
209
+ Finding.add_member(:rule_id, Shapes::ShapeRef.new(shape: String, location_name: "ruleId"))
210
210
  Finding.struct_class = Types::Finding
211
211
 
212
- FindingIdentifier.add_member(:finding_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "findingId"))
213
212
  FindingIdentifier.add_member(:scan_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "scanName"))
213
+ FindingIdentifier.add_member(:finding_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "findingId"))
214
214
  FindingIdentifier.struct_class = Types::FindingIdentifier
215
215
 
216
216
  FindingIdentifiers.member = Shapes::ShapeRef.new(shape: FindingIdentifier)
217
217
 
218
- FindingMetricsValuePerSeverity.add_member(:critical, Shapes::ShapeRef.new(shape: Double, location_name: "critical"))
219
- FindingMetricsValuePerSeverity.add_member(:high, Shapes::ShapeRef.new(shape: Double, location_name: "high"))
220
218
  FindingMetricsValuePerSeverity.add_member(:info, Shapes::ShapeRef.new(shape: Double, location_name: "info"))
221
219
  FindingMetricsValuePerSeverity.add_member(:low, Shapes::ShapeRef.new(shape: Double, location_name: "low"))
222
220
  FindingMetricsValuePerSeverity.add_member(:medium, Shapes::ShapeRef.new(shape: Double, location_name: "medium"))
221
+ FindingMetricsValuePerSeverity.add_member(:high, Shapes::ShapeRef.new(shape: Double, location_name: "high"))
222
+ FindingMetricsValuePerSeverity.add_member(:critical, Shapes::ShapeRef.new(shape: Double, location_name: "critical"))
223
223
  FindingMetricsValuePerSeverity.struct_class = Types::FindingMetricsValuePerSeverity
224
224
 
225
225
  Findings.member = Shapes::ShapeRef.new(shape: Finding)
@@ -231,9 +231,9 @@ module Aws::CodeGuruSecurity
231
231
  GetAccountConfigurationResponse.add_member(:encryption_config, Shapes::ShapeRef.new(shape: EncryptionConfig, required: true, location_name: "encryptionConfig"))
232
232
  GetAccountConfigurationResponse.struct_class = Types::GetAccountConfigurationResponse
233
233
 
234
- GetFindingsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: GetFindingsRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
235
- GetFindingsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
236
234
  GetFindingsRequest.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location: "uri", location_name: "scanName"))
235
+ GetFindingsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
236
+ GetFindingsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: GetFindingsRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
237
237
  GetFindingsRequest.add_member(:status, Shapes::ShapeRef.new(shape: Status, location: "querystring", location_name: "status"))
238
238
  GetFindingsRequest.struct_class = Types::GetFindingsRequest
239
239
 
@@ -247,41 +247,41 @@ module Aws::CodeGuruSecurity
247
247
  GetMetricsSummaryResponse.add_member(:metrics_summary, Shapes::ShapeRef.new(shape: MetricsSummary, location_name: "metricsSummary"))
248
248
  GetMetricsSummaryResponse.struct_class = Types::GetMetricsSummaryResponse
249
249
 
250
- GetScanRequest.add_member(:run_id, Shapes::ShapeRef.new(shape: Uuid, location: "querystring", location_name: "runId"))
251
250
  GetScanRequest.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location: "uri", location_name: "scanName"))
251
+ GetScanRequest.add_member(:run_id, Shapes::ShapeRef.new(shape: Uuid, location: "querystring", location_name: "runId"))
252
252
  GetScanRequest.struct_class = Types::GetScanRequest
253
253
 
254
- GetScanResponse.add_member(:analysis_type, Shapes::ShapeRef.new(shape: AnalysisType, required: true, location_name: "analysisType"))
255
- GetScanResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
256
- GetScanResponse.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "errorMessage"))
257
- GetScanResponse.add_member(:number_of_revisions, Shapes::ShapeRef.new(shape: Long, location_name: "numberOfRevisions"))
258
- GetScanResponse.add_member(:run_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "runId"))
259
254
  GetScanResponse.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location_name: "scanName"))
260
- GetScanResponse.add_member(:scan_name_arn, Shapes::ShapeRef.new(shape: ScanNameArn, location_name: "scanNameArn"))
255
+ GetScanResponse.add_member(:run_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "runId"))
261
256
  GetScanResponse.add_member(:scan_state, Shapes::ShapeRef.new(shape: ScanState, required: true, location_name: "scanState"))
257
+ GetScanResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
258
+ GetScanResponse.add_member(:analysis_type, Shapes::ShapeRef.new(shape: AnalysisType, required: true, location_name: "analysisType"))
262
259
  GetScanResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
260
+ GetScanResponse.add_member(:number_of_revisions, Shapes::ShapeRef.new(shape: Long, location_name: "numberOfRevisions"))
261
+ GetScanResponse.add_member(:scan_name_arn, Shapes::ShapeRef.new(shape: ScanNameArn, location_name: "scanNameArn"))
262
+ GetScanResponse.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "errorMessage"))
263
263
  GetScanResponse.struct_class = Types::GetScanResponse
264
264
 
265
265
  InternalServerException.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
266
266
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
267
267
  InternalServerException.struct_class = Types::InternalServerException
268
268
 
269
- ListFindingsMetricsRequest.add_member(:end_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location: "querystring", location_name: "endDate"))
270
- ListFindingsMetricsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListFindingsMetricsRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
271
269
  ListFindingsMetricsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
270
+ ListFindingsMetricsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListFindingsMetricsRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
272
271
  ListFindingsMetricsRequest.add_member(:start_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location: "querystring", location_name: "startDate"))
272
+ ListFindingsMetricsRequest.add_member(:end_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location: "querystring", location_name: "endDate"))
273
273
  ListFindingsMetricsRequest.struct_class = Types::ListFindingsMetricsRequest
274
274
 
275
275
  ListFindingsMetricsResponse.add_member(:findings_metrics, Shapes::ShapeRef.new(shape: FindingsMetricList, location_name: "findingsMetrics"))
276
276
  ListFindingsMetricsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
277
277
  ListFindingsMetricsResponse.struct_class = Types::ListFindingsMetricsResponse
278
278
 
279
- ListScansRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListScansRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
280
279
  ListScansRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
280
+ ListScansRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListScansRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
281
281
  ListScansRequest.struct_class = Types::ListScansRequest
282
282
 
283
- ListScansResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
284
283
  ListScansResponse.add_member(:summaries, Shapes::ShapeRef.new(shape: ScanSummaries, location_name: "summaries"))
284
+ ListScansResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
285
285
  ListScansResponse.struct_class = Types::ListScansResponse
286
286
 
287
287
  ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ScanNameArn, required: true, location: "uri", location_name: "resourceArn"))
@@ -290,11 +290,11 @@ module Aws::CodeGuruSecurity
290
290
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
291
291
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
292
292
 
293
- MetricsSummary.add_member(:categories_with_most_findings, Shapes::ShapeRef.new(shape: CategoriesWithMostFindings, location_name: "categoriesWithMostFindings"))
294
293
  MetricsSummary.add_member(:date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "date"))
295
294
  MetricsSummary.add_member(:open_findings, Shapes::ShapeRef.new(shape: FindingMetricsValuePerSeverity, location_name: "openFindings"))
296
- MetricsSummary.add_member(:scans_with_most_open_critical_findings, Shapes::ShapeRef.new(shape: ScansWithMostOpenCriticalFindings, location_name: "scansWithMostOpenCriticalFindings"))
295
+ MetricsSummary.add_member(:categories_with_most_findings, Shapes::ShapeRef.new(shape: CategoriesWithMostFindings, location_name: "categoriesWithMostFindings"))
297
296
  MetricsSummary.add_member(:scans_with_most_open_findings, Shapes::ShapeRef.new(shape: ScansWithMostOpenFindings, location_name: "scansWithMostOpenFindings"))
297
+ MetricsSummary.add_member(:scans_with_most_open_critical_findings, Shapes::ShapeRef.new(shape: ScansWithMostOpenCriticalFindings, location_name: "scansWithMostOpenCriticalFindings"))
298
298
  MetricsSummary.struct_class = Types::MetricsSummary
299
299
 
300
300
  Recommendation.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
@@ -328,26 +328,26 @@ module Aws::CodeGuruSecurity
328
328
  ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
329
329
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
330
330
 
331
- ScanNameWithFindingNum.add_member(:finding_number, Shapes::ShapeRef.new(shape: Integer, location_name: "findingNumber"))
332
331
  ScanNameWithFindingNum.add_member(:scan_name, Shapes::ShapeRef.new(shape: String, location_name: "scanName"))
332
+ ScanNameWithFindingNum.add_member(:finding_number, Shapes::ShapeRef.new(shape: Integer, location_name: "findingNumber"))
333
333
  ScanNameWithFindingNum.struct_class = Types::ScanNameWithFindingNum
334
334
 
335
335
  ScanSummaries.member = Shapes::ShapeRef.new(shape: ScanSummary)
336
336
 
337
+ ScanSummary.add_member(:scan_state, Shapes::ShapeRef.new(shape: ScanState, required: true, location_name: "scanState"))
337
338
  ScanSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
338
- ScanSummary.add_member(:run_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "runId"))
339
+ ScanSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
339
340
  ScanSummary.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location_name: "scanName"))
341
+ ScanSummary.add_member(:run_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "runId"))
340
342
  ScanSummary.add_member(:scan_name_arn, Shapes::ShapeRef.new(shape: ScanNameArn, location_name: "scanNameArn"))
341
- ScanSummary.add_member(:scan_state, Shapes::ShapeRef.new(shape: ScanState, required: true, location_name: "scanState"))
342
- ScanSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
343
343
  ScanSummary.struct_class = Types::ScanSummary
344
344
 
345
345
  ScansWithMostOpenCriticalFindings.member = Shapes::ShapeRef.new(shape: ScanNameWithFindingNum)
346
346
 
347
347
  ScansWithMostOpenFindings.member = Shapes::ShapeRef.new(shape: ScanNameWithFindingNum)
348
348
 
349
- SuggestedFix.add_member(:code, Shapes::ShapeRef.new(shape: String, location_name: "code"))
350
349
  SuggestedFix.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
350
+ SuggestedFix.add_member(:code, Shapes::ShapeRef.new(shape: String, location_name: "code"))
351
351
  SuggestedFix.struct_class = Types::SuggestedFix
352
352
 
353
353
  SuggestedFixes.member = Shapes::ShapeRef.new(shape: SuggestedFix)
@@ -365,8 +365,8 @@ module Aws::CodeGuruSecurity
365
365
 
366
366
  ThrottlingException.add_member(:error_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "errorCode"))
367
367
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
368
- ThrottlingException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "quotaCode"))
369
368
  ThrottlingException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "serviceCode"))
369
+ ThrottlingException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "quotaCode"))
370
370
  ThrottlingException.struct_class = Types::ThrottlingException
371
371
 
372
372
  UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ScanNameArn, required: true, location: "uri", location_name: "resourceArn"))
@@ -382,22 +382,22 @@ module Aws::CodeGuruSecurity
382
382
  UpdateAccountConfigurationResponse.struct_class = Types::UpdateAccountConfigurationResponse
383
383
 
384
384
  ValidationException.add_member(:error_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "errorCode"))
385
- ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
386
385
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
387
386
  ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
387
+ ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
388
388
  ValidationException.struct_class = Types::ValidationException
389
389
 
390
- ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
391
390
  ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
391
+ ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
392
392
  ValidationExceptionField.struct_class = Types::ValidationExceptionField
393
393
 
394
394
  ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
395
395
 
396
- Vulnerability.add_member(:file_path, Shapes::ShapeRef.new(shape: FilePath, location_name: "filePath"))
397
- Vulnerability.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
398
- Vulnerability.add_member(:item_count, Shapes::ShapeRef.new(shape: Integer, deprecated: true, location_name: "itemCount", metadata: {"deprecatedMessage" => "This shape is not used."}))
399
396
  Vulnerability.add_member(:reference_urls, Shapes::ShapeRef.new(shape: ReferenceUrls, location_name: "referenceUrls"))
400
397
  Vulnerability.add_member(:related_vulnerabilities, Shapes::ShapeRef.new(shape: RelatedVulnerabilities, location_name: "relatedVulnerabilities"))
398
+ Vulnerability.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
399
+ Vulnerability.add_member(:file_path, Shapes::ShapeRef.new(shape: FilePath, location_name: "filePath"))
400
+ Vulnerability.add_member(:item_count, Shapes::ShapeRef.new(shape: Integer, deprecated: true, location_name: "itemCount", metadata: {"deprecatedMessage" => "This shape is not used."}))
401
401
  Vulnerability.struct_class = Types::Vulnerability
402
402
 
403
403
 
@@ -408,8 +408,8 @@ module Aws::CodeGuruSecurity
408
408
 
409
409
  api.metadata = {
410
410
  "apiVersion" => "2018-05-10",
411
+ "auth" => ["aws.auth#sigv4"],
411
412
  "endpointPrefix" => "codeguru-security",
412
- "jsonVersion" => "1.1",
413
413
  "protocol" => "rest-json",
414
414
  "protocols" => ["rest-json"],
415
415
  "serviceFullName" => "Amazon CodeGuru Security",
@@ -427,8 +427,8 @@ module Aws::CodeGuruSecurity
427
427
  o.output = Shapes::ShapeRef.new(shape: BatchGetFindingsResponse)
428
428
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
429
429
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
430
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
431
430
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
431
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
432
432
  end)
433
433
 
434
434
  api.add_operation(:create_scan, Seahorse::Model::Operation.new.tap do |o|
@@ -441,8 +441,8 @@ module Aws::CodeGuruSecurity
441
441
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
442
442
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
443
443
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
444
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
445
444
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
445
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
446
446
  end)
447
447
 
448
448
  api.add_operation(:create_upload_url, Seahorse::Model::Operation.new.tap do |o|
@@ -453,8 +453,8 @@ module Aws::CodeGuruSecurity
453
453
  o.output = Shapes::ShapeRef.new(shape: CreateUploadUrlResponse)
454
454
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
455
455
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
456
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
457
456
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
457
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
458
458
  end)
459
459
 
460
460
  api.add_operation(:get_account_configuration, Seahorse::Model::Operation.new.tap do |o|
@@ -465,8 +465,8 @@ module Aws::CodeGuruSecurity
465
465
  o.output = Shapes::ShapeRef.new(shape: GetAccountConfigurationResponse)
466
466
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
467
467
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
468
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
469
468
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
469
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
470
470
  end)
471
471
 
472
472
  api.add_operation(:get_findings, Seahorse::Model::Operation.new.tap do |o|
@@ -479,8 +479,8 @@ module Aws::CodeGuruSecurity
479
479
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
480
480
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
481
481
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
482
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
483
482
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
483
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
484
484
  o[:pager] = Aws::Pager.new(
485
485
  limit_key: "max_results",
486
486
  tokens: {
@@ -497,8 +497,8 @@ module Aws::CodeGuruSecurity
497
497
  o.output = Shapes::ShapeRef.new(shape: GetMetricsSummaryResponse)
498
498
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
499
499
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
500
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
501
500
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
501
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
502
502
  end)
503
503
 
504
504
  api.add_operation(:get_scan, Seahorse::Model::Operation.new.tap do |o|
@@ -510,8 +510,8 @@ module Aws::CodeGuruSecurity
510
510
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
511
511
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
512
512
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
513
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
514
513
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
514
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
515
515
  end)
516
516
 
517
517
  api.add_operation(:list_findings_metrics, Seahorse::Model::Operation.new.tap do |o|
@@ -522,8 +522,8 @@ module Aws::CodeGuruSecurity
522
522
  o.output = Shapes::ShapeRef.new(shape: ListFindingsMetricsResponse)
523
523
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
524
524
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
525
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
526
525
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
526
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
527
527
  o[:pager] = Aws::Pager.new(
528
528
  limit_key: "max_results",
529
529
  tokens: {
@@ -540,8 +540,8 @@ module Aws::CodeGuruSecurity
540
540
  o.output = Shapes::ShapeRef.new(shape: ListScansResponse)
541
541
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
542
542
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
543
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
544
543
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
544
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
545
545
  o[:pager] = Aws::Pager.new(
546
546
  limit_key: "max_results",
547
547
  tokens: {
@@ -560,8 +560,8 @@ module Aws::CodeGuruSecurity
560
560
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
561
561
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
562
562
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
563
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
564
563
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
564
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
565
565
  end)
566
566
 
567
567
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -574,8 +574,8 @@ module Aws::CodeGuruSecurity
574
574
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
575
575
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
576
576
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
577
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
578
577
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
578
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
579
579
  end)
580
580
 
581
581
  api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -588,8 +588,8 @@ module Aws::CodeGuruSecurity
588
588
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
589
589
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
590
590
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
591
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
592
591
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
592
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
593
593
  end)
594
594
 
595
595
  api.add_operation(:update_account_configuration, Seahorse::Model::Operation.new.tap do |o|
@@ -601,8 +601,8 @@ module Aws::CodeGuruSecurity
601
601
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
602
602
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
603
603
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
604
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
605
604
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
605
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
606
606
  end)
607
607
  end
608
608
 
@@ -174,13 +174,13 @@ module Aws::CodeGuruSecurity
174
174
  end
175
175
 
176
176
  # @return [String]
177
- def quota_code
178
- @data[:quota_code]
177
+ def service_code
178
+ @data[:service_code]
179
179
  end
180
180
 
181
181
  # @return [String]
182
- def service_code
183
- @data[:service_code]
182
+ def quota_code
183
+ @data[:quota_code]
184
184
  end
185
185
 
186
186
  def retryable?
@@ -206,11 +206,6 @@ module Aws::CodeGuruSecurity
206
206
  @data[:error_code]
207
207
  end
208
208
 
209
- # @return [String]
210
- def field_list
211
- @data[:field_list]
212
- end
213
-
214
209
  # @return [String]
215
210
  def message
216
211
  @message || @data[:message]
@@ -220,6 +215,11 @@ module Aws::CodeGuruSecurity
220
215
  def reason
221
216
  @data[:reason]
222
217
  end
218
+
219
+ # @return [String]
220
+ def field_list
221
+ @data[:field_list]
222
+ end
223
223
  end
224
224
 
225
225
  end