aws-sdk-codegurusecurity 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-codegurusecurity/client.rb +1060 -0
- data/lib/aws-sdk-codegurusecurity/client_api.rb +605 -0
- data/lib/aws-sdk-codegurusecurity/customizations.rb +0 -0
- data/lib/aws-sdk-codegurusecurity/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-codegurusecurity/endpoint_provider.rb +54 -0
- data/lib/aws-sdk-codegurusecurity/endpoints.rb +197 -0
- data/lib/aws-sdk-codegurusecurity/errors.rb +226 -0
- data/lib/aws-sdk-codegurusecurity/plugins/endpoints.rb +94 -0
- data/lib/aws-sdk-codegurusecurity/resource.rb +26 -0
- data/lib/aws-sdk-codegurusecurity/types.rb +1311 -0
- data/lib/aws-sdk-codegurusecurity.rb +57 -0
- metadata +94 -0
@@ -0,0 +1,605 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::CodeGuruSecurity
|
11
|
+
# @api private
|
12
|
+
module ClientApi
|
13
|
+
|
14
|
+
include Seahorse::Model
|
15
|
+
|
16
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
|
+
AccountFindingsMetric = Shapes::StructureShape.new(name: 'AccountFindingsMetric')
|
18
|
+
AnalysisType = Shapes::StringShape.new(name: 'AnalysisType')
|
19
|
+
BatchGetFindingsError = Shapes::StructureShape.new(name: 'BatchGetFindingsError')
|
20
|
+
BatchGetFindingsErrors = Shapes::ListShape.new(name: 'BatchGetFindingsErrors')
|
21
|
+
BatchGetFindingsRequest = Shapes::StructureShape.new(name: 'BatchGetFindingsRequest')
|
22
|
+
BatchGetFindingsResponse = Shapes::StructureShape.new(name: 'BatchGetFindingsResponse')
|
23
|
+
CategoriesWithMostFindings = Shapes::ListShape.new(name: 'CategoriesWithMostFindings')
|
24
|
+
CategoryWithFindingNum = Shapes::StructureShape.new(name: 'CategoryWithFindingNum')
|
25
|
+
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
26
|
+
CodeLine = Shapes::StructureShape.new(name: 'CodeLine')
|
27
|
+
CodeSnippet = Shapes::ListShape.new(name: 'CodeSnippet')
|
28
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
29
|
+
CreateScanRequest = Shapes::StructureShape.new(name: 'CreateScanRequest')
|
30
|
+
CreateScanResponse = Shapes::StructureShape.new(name: 'CreateScanResponse')
|
31
|
+
CreateUploadUrlRequest = Shapes::StructureShape.new(name: 'CreateUploadUrlRequest')
|
32
|
+
CreateUploadUrlResponse = Shapes::StructureShape.new(name: 'CreateUploadUrlResponse')
|
33
|
+
DetectorTags = Shapes::ListShape.new(name: 'DetectorTags')
|
34
|
+
Double = Shapes::FloatShape.new(name: 'Double')
|
35
|
+
EncryptionConfig = Shapes::StructureShape.new(name: 'EncryptionConfig')
|
36
|
+
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
37
|
+
FilePath = Shapes::StructureShape.new(name: 'FilePath')
|
38
|
+
Finding = Shapes::StructureShape.new(name: 'Finding')
|
39
|
+
FindingIdentifier = Shapes::StructureShape.new(name: 'FindingIdentifier')
|
40
|
+
FindingIdentifiers = Shapes::ListShape.new(name: 'FindingIdentifiers')
|
41
|
+
FindingMetricsValuePerSeverity = Shapes::StructureShape.new(name: 'FindingMetricsValuePerSeverity')
|
42
|
+
Findings = Shapes::ListShape.new(name: 'Findings')
|
43
|
+
FindingsMetricList = Shapes::ListShape.new(name: 'FindingsMetricList')
|
44
|
+
GetAccountConfigurationRequest = Shapes::StructureShape.new(name: 'GetAccountConfigurationRequest')
|
45
|
+
GetAccountConfigurationResponse = Shapes::StructureShape.new(name: 'GetAccountConfigurationResponse')
|
46
|
+
GetFindingsRequest = Shapes::StructureShape.new(name: 'GetFindingsRequest')
|
47
|
+
GetFindingsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'GetFindingsRequestMaxResultsInteger')
|
48
|
+
GetFindingsResponse = Shapes::StructureShape.new(name: 'GetFindingsResponse')
|
49
|
+
GetMetricsSummaryRequest = Shapes::StructureShape.new(name: 'GetMetricsSummaryRequest')
|
50
|
+
GetMetricsSummaryResponse = Shapes::StructureShape.new(name: 'GetMetricsSummaryResponse')
|
51
|
+
GetScanRequest = Shapes::StructureShape.new(name: 'GetScanRequest')
|
52
|
+
GetScanResponse = Shapes::StructureShape.new(name: 'GetScanResponse')
|
53
|
+
HeaderKey = Shapes::StringShape.new(name: 'HeaderKey')
|
54
|
+
HeaderValue = Shapes::StringShape.new(name: 'HeaderValue')
|
55
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
56
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
57
|
+
KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
|
58
|
+
ListFindingsMetricsRequest = Shapes::StructureShape.new(name: 'ListFindingsMetricsRequest')
|
59
|
+
ListFindingsMetricsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListFindingsMetricsRequestMaxResultsInteger')
|
60
|
+
ListFindingsMetricsResponse = Shapes::StructureShape.new(name: 'ListFindingsMetricsResponse')
|
61
|
+
ListScansRequest = Shapes::StructureShape.new(name: 'ListScansRequest')
|
62
|
+
ListScansRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListScansRequestMaxResultsInteger')
|
63
|
+
ListScansResponse = Shapes::StructureShape.new(name: 'ListScansResponse')
|
64
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
65
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
66
|
+
Long = Shapes::IntegerShape.new(name: 'Long')
|
67
|
+
MetricsSummary = Shapes::StructureShape.new(name: 'MetricsSummary')
|
68
|
+
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
69
|
+
Recommendation = Shapes::StructureShape.new(name: 'Recommendation')
|
70
|
+
ReferenceUrls = Shapes::ListShape.new(name: 'ReferenceUrls')
|
71
|
+
RelatedVulnerabilities = Shapes::ListShape.new(name: 'RelatedVulnerabilities')
|
72
|
+
Remediation = Shapes::StructureShape.new(name: 'Remediation')
|
73
|
+
RequestHeaderMap = Shapes::MapShape.new(name: 'RequestHeaderMap')
|
74
|
+
Resource = Shapes::StructureShape.new(name: 'Resource')
|
75
|
+
ResourceId = Shapes::UnionShape.new(name: 'ResourceId')
|
76
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
77
|
+
S3Url = Shapes::StringShape.new(name: 'S3Url')
|
78
|
+
ScanName = Shapes::StringShape.new(name: 'ScanName')
|
79
|
+
ScanNameArn = Shapes::StringShape.new(name: 'ScanNameArn')
|
80
|
+
ScanNameWithFindingNum = Shapes::StructureShape.new(name: 'ScanNameWithFindingNum')
|
81
|
+
ScanState = Shapes::StringShape.new(name: 'ScanState')
|
82
|
+
ScanSummaries = Shapes::ListShape.new(name: 'ScanSummaries')
|
83
|
+
ScanSummary = Shapes::StructureShape.new(name: 'ScanSummary')
|
84
|
+
ScanType = Shapes::StringShape.new(name: 'ScanType')
|
85
|
+
ScansWithMostOpenCriticalFindings = Shapes::ListShape.new(name: 'ScansWithMostOpenCriticalFindings')
|
86
|
+
ScansWithMostOpenFindings = Shapes::ListShape.new(name: 'ScansWithMostOpenFindings')
|
87
|
+
Severity = Shapes::StringShape.new(name: 'Severity')
|
88
|
+
Status = Shapes::StringShape.new(name: 'Status')
|
89
|
+
String = Shapes::StringShape.new(name: 'String')
|
90
|
+
SuggestedFix = Shapes::StructureShape.new(name: 'SuggestedFix')
|
91
|
+
SuggestedFixes = Shapes::ListShape.new(name: 'SuggestedFixes')
|
92
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
93
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
94
|
+
TagMap = Shapes::MapShape.new(name: 'TagMap')
|
95
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
96
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
97
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
98
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
99
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
100
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
101
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
102
|
+
UpdateAccountConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateAccountConfigurationRequest')
|
103
|
+
UpdateAccountConfigurationResponse = Shapes::StructureShape.new(name: 'UpdateAccountConfigurationResponse')
|
104
|
+
Uuid = Shapes::StringShape.new(name: 'Uuid')
|
105
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
106
|
+
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
107
|
+
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
108
|
+
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
109
|
+
Vulnerability = Shapes::StructureShape.new(name: 'Vulnerability')
|
110
|
+
|
111
|
+
AccessDeniedException.add_member(:error_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "errorCode"))
|
112
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
113
|
+
AccessDeniedException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, location_name: "resourceId"))
|
114
|
+
AccessDeniedException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
|
115
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
116
|
+
|
117
|
+
AccountFindingsMetric.add_member(:closed_findings, Shapes::ShapeRef.new(shape: FindingMetricsValuePerSeverity, location_name: "closedFindings"))
|
118
|
+
AccountFindingsMetric.add_member(:date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "date"))
|
119
|
+
AccountFindingsMetric.add_member(:mean_time_to_close, Shapes::ShapeRef.new(shape: FindingMetricsValuePerSeverity, location_name: "meanTimeToClose"))
|
120
|
+
AccountFindingsMetric.add_member(:new_findings, Shapes::ShapeRef.new(shape: FindingMetricsValuePerSeverity, location_name: "newFindings"))
|
121
|
+
AccountFindingsMetric.add_member(:open_findings, Shapes::ShapeRef.new(shape: FindingMetricsValuePerSeverity, location_name: "openFindings"))
|
122
|
+
AccountFindingsMetric.struct_class = Types::AccountFindingsMetric
|
123
|
+
|
124
|
+
BatchGetFindingsError.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, required: true, location_name: "errorCode"))
|
125
|
+
BatchGetFindingsError.add_member(:finding_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "findingId"))
|
126
|
+
BatchGetFindingsError.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
127
|
+
BatchGetFindingsError.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location_name: "scanName"))
|
128
|
+
BatchGetFindingsError.struct_class = Types::BatchGetFindingsError
|
129
|
+
|
130
|
+
BatchGetFindingsErrors.member = Shapes::ShapeRef.new(shape: BatchGetFindingsError)
|
131
|
+
|
132
|
+
BatchGetFindingsRequest.add_member(:finding_identifiers, Shapes::ShapeRef.new(shape: FindingIdentifiers, required: true, location_name: "findingIdentifiers"))
|
133
|
+
BatchGetFindingsRequest.struct_class = Types::BatchGetFindingsRequest
|
134
|
+
|
135
|
+
BatchGetFindingsResponse.add_member(:failed_findings, Shapes::ShapeRef.new(shape: BatchGetFindingsErrors, required: true, location_name: "failedFindings"))
|
136
|
+
BatchGetFindingsResponse.add_member(:findings, Shapes::ShapeRef.new(shape: Findings, required: true, location_name: "findings"))
|
137
|
+
BatchGetFindingsResponse.struct_class = Types::BatchGetFindingsResponse
|
138
|
+
|
139
|
+
CategoriesWithMostFindings.member = Shapes::ShapeRef.new(shape: CategoryWithFindingNum)
|
140
|
+
|
141
|
+
CategoryWithFindingNum.add_member(:category_name, Shapes::ShapeRef.new(shape: String, location_name: "categoryName"))
|
142
|
+
CategoryWithFindingNum.add_member(:finding_number, Shapes::ShapeRef.new(shape: Integer, location_name: "findingNumber"))
|
143
|
+
CategoryWithFindingNum.struct_class = Types::CategoryWithFindingNum
|
144
|
+
|
145
|
+
CodeLine.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "content"))
|
146
|
+
CodeLine.add_member(:number, Shapes::ShapeRef.new(shape: Integer, location_name: "number"))
|
147
|
+
CodeLine.struct_class = Types::CodeLine
|
148
|
+
|
149
|
+
CodeSnippet.member = Shapes::ShapeRef.new(shape: CodeLine)
|
150
|
+
|
151
|
+
ConflictException.add_member(:error_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "errorCode"))
|
152
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
153
|
+
ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
154
|
+
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
155
|
+
ConflictException.struct_class = Types::ConflictException
|
156
|
+
|
157
|
+
CreateScanRequest.add_member(:analysis_type, Shapes::ShapeRef.new(shape: AnalysisType, location_name: "analysisType"))
|
158
|
+
CreateScanRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
159
|
+
CreateScanRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
|
160
|
+
CreateScanRequest.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location_name: "scanName"))
|
161
|
+
CreateScanRequest.add_member(:scan_type, Shapes::ShapeRef.new(shape: ScanType, location_name: "scanType"))
|
162
|
+
CreateScanRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
163
|
+
CreateScanRequest.struct_class = Types::CreateScanRequest
|
164
|
+
|
165
|
+
CreateScanResponse.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
|
166
|
+
CreateScanResponse.add_member(:run_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "runId"))
|
167
|
+
CreateScanResponse.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location_name: "scanName"))
|
168
|
+
CreateScanResponse.add_member(:scan_name_arn, Shapes::ShapeRef.new(shape: ScanNameArn, location_name: "scanNameArn"))
|
169
|
+
CreateScanResponse.add_member(:scan_state, Shapes::ShapeRef.new(shape: ScanState, required: true, location_name: "scanState"))
|
170
|
+
CreateScanResponse.struct_class = Types::CreateScanResponse
|
171
|
+
|
172
|
+
CreateUploadUrlRequest.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location_name: "scanName"))
|
173
|
+
CreateUploadUrlRequest.struct_class = Types::CreateUploadUrlRequest
|
174
|
+
|
175
|
+
CreateUploadUrlResponse.add_member(:code_artifact_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "codeArtifactId"))
|
176
|
+
CreateUploadUrlResponse.add_member(:request_headers, Shapes::ShapeRef.new(shape: RequestHeaderMap, required: true, location_name: "requestHeaders"))
|
177
|
+
CreateUploadUrlResponse.add_member(:s3_url, Shapes::ShapeRef.new(shape: S3Url, required: true, location_name: "s3Url"))
|
178
|
+
CreateUploadUrlResponse.struct_class = Types::CreateUploadUrlResponse
|
179
|
+
|
180
|
+
DetectorTags.member = Shapes::ShapeRef.new(shape: String)
|
181
|
+
|
182
|
+
EncryptionConfig.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "kmsKeyArn"))
|
183
|
+
EncryptionConfig.struct_class = Types::EncryptionConfig
|
184
|
+
|
185
|
+
FilePath.add_member(:code_snippet, Shapes::ShapeRef.new(shape: CodeSnippet, location_name: "codeSnippet"))
|
186
|
+
FilePath.add_member(:end_line, Shapes::ShapeRef.new(shape: Integer, location_name: "endLine"))
|
187
|
+
FilePath.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
|
188
|
+
FilePath.add_member(:path, Shapes::ShapeRef.new(shape: String, location_name: "path"))
|
189
|
+
FilePath.add_member(:start_line, Shapes::ShapeRef.new(shape: Integer, location_name: "startLine"))
|
190
|
+
FilePath.struct_class = Types::FilePath
|
191
|
+
|
192
|
+
Finding.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
|
193
|
+
Finding.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
|
194
|
+
Finding.add_member(:detector_id, Shapes::ShapeRef.new(shape: String, location_name: "detectorId"))
|
195
|
+
Finding.add_member(:detector_name, Shapes::ShapeRef.new(shape: String, location_name: "detectorName"))
|
196
|
+
Finding.add_member(:detector_tags, Shapes::ShapeRef.new(shape: DetectorTags, location_name: "detectorTags"))
|
197
|
+
Finding.add_member(:generator_id, Shapes::ShapeRef.new(shape: String, location_name: "generatorId"))
|
198
|
+
Finding.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
|
199
|
+
Finding.add_member(:remediation, Shapes::ShapeRef.new(shape: Remediation, location_name: "remediation"))
|
200
|
+
Finding.add_member(:resource, Shapes::ShapeRef.new(shape: Resource, location_name: "resource"))
|
201
|
+
Finding.add_member(:rule_id, Shapes::ShapeRef.new(shape: String, location_name: "ruleId"))
|
202
|
+
Finding.add_member(:severity, Shapes::ShapeRef.new(shape: Severity, location_name: "severity"))
|
203
|
+
Finding.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
|
204
|
+
Finding.add_member(:title, Shapes::ShapeRef.new(shape: String, location_name: "title"))
|
205
|
+
Finding.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "type"))
|
206
|
+
Finding.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
|
207
|
+
Finding.add_member(:vulnerability, Shapes::ShapeRef.new(shape: Vulnerability, location_name: "vulnerability"))
|
208
|
+
Finding.struct_class = Types::Finding
|
209
|
+
|
210
|
+
FindingIdentifier.add_member(:finding_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "findingId"))
|
211
|
+
FindingIdentifier.add_member(:scan_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "scanName"))
|
212
|
+
FindingIdentifier.struct_class = Types::FindingIdentifier
|
213
|
+
|
214
|
+
FindingIdentifiers.member = Shapes::ShapeRef.new(shape: FindingIdentifier)
|
215
|
+
|
216
|
+
FindingMetricsValuePerSeverity.add_member(:critical, Shapes::ShapeRef.new(shape: Double, location_name: "critical"))
|
217
|
+
FindingMetricsValuePerSeverity.add_member(:high, Shapes::ShapeRef.new(shape: Double, location_name: "high"))
|
218
|
+
FindingMetricsValuePerSeverity.add_member(:info, Shapes::ShapeRef.new(shape: Double, location_name: "info"))
|
219
|
+
FindingMetricsValuePerSeverity.add_member(:low, Shapes::ShapeRef.new(shape: Double, location_name: "low"))
|
220
|
+
FindingMetricsValuePerSeverity.add_member(:medium, Shapes::ShapeRef.new(shape: Double, location_name: "medium"))
|
221
|
+
FindingMetricsValuePerSeverity.struct_class = Types::FindingMetricsValuePerSeverity
|
222
|
+
|
223
|
+
Findings.member = Shapes::ShapeRef.new(shape: Finding)
|
224
|
+
|
225
|
+
FindingsMetricList.member = Shapes::ShapeRef.new(shape: AccountFindingsMetric)
|
226
|
+
|
227
|
+
GetAccountConfigurationRequest.struct_class = Types::GetAccountConfigurationRequest
|
228
|
+
|
229
|
+
GetAccountConfigurationResponse.add_member(:encryption_config, Shapes::ShapeRef.new(shape: EncryptionConfig, required: true, location_name: "encryptionConfig"))
|
230
|
+
GetAccountConfigurationResponse.struct_class = Types::GetAccountConfigurationResponse
|
231
|
+
|
232
|
+
GetFindingsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: GetFindingsRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
|
233
|
+
GetFindingsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
234
|
+
GetFindingsRequest.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location: "uri", location_name: "scanName"))
|
235
|
+
GetFindingsRequest.add_member(:status, Shapes::ShapeRef.new(shape: Status, location: "querystring", location_name: "status"))
|
236
|
+
GetFindingsRequest.struct_class = Types::GetFindingsRequest
|
237
|
+
|
238
|
+
GetFindingsResponse.add_member(:findings, Shapes::ShapeRef.new(shape: Findings, location_name: "findings"))
|
239
|
+
GetFindingsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
240
|
+
GetFindingsResponse.struct_class = Types::GetFindingsResponse
|
241
|
+
|
242
|
+
GetMetricsSummaryRequest.add_member(:date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location: "querystring", location_name: "date"))
|
243
|
+
GetMetricsSummaryRequest.struct_class = Types::GetMetricsSummaryRequest
|
244
|
+
|
245
|
+
GetMetricsSummaryResponse.add_member(:metrics_summary, Shapes::ShapeRef.new(shape: MetricsSummary, location_name: "metricsSummary"))
|
246
|
+
GetMetricsSummaryResponse.struct_class = Types::GetMetricsSummaryResponse
|
247
|
+
|
248
|
+
GetScanRequest.add_member(:run_id, Shapes::ShapeRef.new(shape: Uuid, location: "querystring", location_name: "runId"))
|
249
|
+
GetScanRequest.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location: "uri", location_name: "scanName"))
|
250
|
+
GetScanRequest.struct_class = Types::GetScanRequest
|
251
|
+
|
252
|
+
GetScanResponse.add_member(:analysis_type, Shapes::ShapeRef.new(shape: AnalysisType, required: true, location_name: "analysisType"))
|
253
|
+
GetScanResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
254
|
+
GetScanResponse.add_member(:number_of_revisions, Shapes::ShapeRef.new(shape: Long, location_name: "numberOfRevisions"))
|
255
|
+
GetScanResponse.add_member(:run_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "runId"))
|
256
|
+
GetScanResponse.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location_name: "scanName"))
|
257
|
+
GetScanResponse.add_member(:scan_name_arn, Shapes::ShapeRef.new(shape: ScanNameArn, location_name: "scanNameArn"))
|
258
|
+
GetScanResponse.add_member(:scan_state, Shapes::ShapeRef.new(shape: ScanState, required: true, location_name: "scanState"))
|
259
|
+
GetScanResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
|
260
|
+
GetScanResponse.struct_class = Types::GetScanResponse
|
261
|
+
|
262
|
+
InternalServerException.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
|
263
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
264
|
+
InternalServerException.struct_class = Types::InternalServerException
|
265
|
+
|
266
|
+
ListFindingsMetricsRequest.add_member(:end_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location: "querystring", location_name: "endDate"))
|
267
|
+
ListFindingsMetricsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListFindingsMetricsRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
|
268
|
+
ListFindingsMetricsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
269
|
+
ListFindingsMetricsRequest.add_member(:start_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location: "querystring", location_name: "startDate"))
|
270
|
+
ListFindingsMetricsRequest.struct_class = Types::ListFindingsMetricsRequest
|
271
|
+
|
272
|
+
ListFindingsMetricsResponse.add_member(:findings_metrics, Shapes::ShapeRef.new(shape: FindingsMetricList, location_name: "findingsMetrics"))
|
273
|
+
ListFindingsMetricsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
274
|
+
ListFindingsMetricsResponse.struct_class = Types::ListFindingsMetricsResponse
|
275
|
+
|
276
|
+
ListScansRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListScansRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
|
277
|
+
ListScansRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
278
|
+
ListScansRequest.struct_class = Types::ListScansRequest
|
279
|
+
|
280
|
+
ListScansResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
281
|
+
ListScansResponse.add_member(:summaries, Shapes::ShapeRef.new(shape: ScanSummaries, location_name: "summaries"))
|
282
|
+
ListScansResponse.struct_class = Types::ListScansResponse
|
283
|
+
|
284
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ScanNameArn, required: true, location: "uri", location_name: "resourceArn"))
|
285
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
286
|
+
|
287
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
288
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
289
|
+
|
290
|
+
MetricsSummary.add_member(:categories_with_most_findings, Shapes::ShapeRef.new(shape: CategoriesWithMostFindings, location_name: "categoriesWithMostFindings"))
|
291
|
+
MetricsSummary.add_member(:date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "date"))
|
292
|
+
MetricsSummary.add_member(:open_findings, Shapes::ShapeRef.new(shape: FindingMetricsValuePerSeverity, location_name: "openFindings"))
|
293
|
+
MetricsSummary.add_member(:scans_with_most_open_critical_findings, Shapes::ShapeRef.new(shape: ScansWithMostOpenCriticalFindings, location_name: "scansWithMostOpenCriticalFindings"))
|
294
|
+
MetricsSummary.add_member(:scans_with_most_open_findings, Shapes::ShapeRef.new(shape: ScansWithMostOpenFindings, location_name: "scansWithMostOpenFindings"))
|
295
|
+
MetricsSummary.struct_class = Types::MetricsSummary
|
296
|
+
|
297
|
+
Recommendation.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
|
298
|
+
Recommendation.add_member(:url, Shapes::ShapeRef.new(shape: String, location_name: "url"))
|
299
|
+
Recommendation.struct_class = Types::Recommendation
|
300
|
+
|
301
|
+
ReferenceUrls.member = Shapes::ShapeRef.new(shape: String)
|
302
|
+
|
303
|
+
RelatedVulnerabilities.member = Shapes::ShapeRef.new(shape: String)
|
304
|
+
|
305
|
+
Remediation.add_member(:recommendation, Shapes::ShapeRef.new(shape: Recommendation, location_name: "recommendation"))
|
306
|
+
Remediation.add_member(:suggested_fixes, Shapes::ShapeRef.new(shape: SuggestedFixes, location_name: "suggestedFixes"))
|
307
|
+
Remediation.struct_class = Types::Remediation
|
308
|
+
|
309
|
+
RequestHeaderMap.key = Shapes::ShapeRef.new(shape: HeaderKey)
|
310
|
+
RequestHeaderMap.value = Shapes::ShapeRef.new(shape: HeaderValue)
|
311
|
+
|
312
|
+
Resource.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
|
313
|
+
Resource.add_member(:sub_resource_id, Shapes::ShapeRef.new(shape: String, location_name: "subResourceId"))
|
314
|
+
Resource.struct_class = Types::Resource
|
315
|
+
|
316
|
+
ResourceId.add_member(:code_artifact_id, Shapes::ShapeRef.new(shape: Uuid, location_name: "codeArtifactId"))
|
317
|
+
ResourceId.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
318
|
+
ResourceId.add_member_subclass(:code_artifact_id, Types::ResourceId::CodeArtifactId)
|
319
|
+
ResourceId.add_member_subclass(:unknown, Types::ResourceId::Unknown)
|
320
|
+
ResourceId.struct_class = Types::ResourceId
|
321
|
+
|
322
|
+
ResourceNotFoundException.add_member(:error_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "errorCode"))
|
323
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
324
|
+
ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
325
|
+
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
326
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
327
|
+
|
328
|
+
ScanNameWithFindingNum.add_member(:finding_number, Shapes::ShapeRef.new(shape: Integer, location_name: "findingNumber"))
|
329
|
+
ScanNameWithFindingNum.add_member(:scan_name, Shapes::ShapeRef.new(shape: String, location_name: "scanName"))
|
330
|
+
ScanNameWithFindingNum.struct_class = Types::ScanNameWithFindingNum
|
331
|
+
|
332
|
+
ScanSummaries.member = Shapes::ShapeRef.new(shape: ScanSummary)
|
333
|
+
|
334
|
+
ScanSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
335
|
+
ScanSummary.add_member(:run_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "runId"))
|
336
|
+
ScanSummary.add_member(:scan_name, Shapes::ShapeRef.new(shape: ScanName, required: true, location_name: "scanName"))
|
337
|
+
ScanSummary.add_member(:scan_name_arn, Shapes::ShapeRef.new(shape: ScanNameArn, location_name: "scanNameArn"))
|
338
|
+
ScanSummary.add_member(:scan_state, Shapes::ShapeRef.new(shape: ScanState, required: true, location_name: "scanState"))
|
339
|
+
ScanSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
|
340
|
+
ScanSummary.struct_class = Types::ScanSummary
|
341
|
+
|
342
|
+
ScansWithMostOpenCriticalFindings.member = Shapes::ShapeRef.new(shape: ScanNameWithFindingNum)
|
343
|
+
|
344
|
+
ScansWithMostOpenFindings.member = Shapes::ShapeRef.new(shape: ScanNameWithFindingNum)
|
345
|
+
|
346
|
+
SuggestedFix.add_member(:code, Shapes::ShapeRef.new(shape: String, location_name: "code"))
|
347
|
+
SuggestedFix.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
|
348
|
+
SuggestedFix.struct_class = Types::SuggestedFix
|
349
|
+
|
350
|
+
SuggestedFixes.member = Shapes::ShapeRef.new(shape: SuggestedFix)
|
351
|
+
|
352
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
353
|
+
|
354
|
+
TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
|
355
|
+
TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
|
356
|
+
|
357
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ScanNameArn, required: true, location: "uri", location_name: "resourceArn"))
|
358
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
|
359
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
360
|
+
|
361
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
362
|
+
|
363
|
+
ThrottlingException.add_member(:error_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "errorCode"))
|
364
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
365
|
+
ThrottlingException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "quotaCode"))
|
366
|
+
ThrottlingException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "serviceCode"))
|
367
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
368
|
+
|
369
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ScanNameArn, required: true, location: "uri", location_name: "resourceArn"))
|
370
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
|
371
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
372
|
+
|
373
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
374
|
+
|
375
|
+
UpdateAccountConfigurationRequest.add_member(:encryption_config, Shapes::ShapeRef.new(shape: EncryptionConfig, required: true, location_name: "encryptionConfig"))
|
376
|
+
UpdateAccountConfigurationRequest.struct_class = Types::UpdateAccountConfigurationRequest
|
377
|
+
|
378
|
+
UpdateAccountConfigurationResponse.add_member(:encryption_config, Shapes::ShapeRef.new(shape: EncryptionConfig, required: true, location_name: "encryptionConfig"))
|
379
|
+
UpdateAccountConfigurationResponse.struct_class = Types::UpdateAccountConfigurationResponse
|
380
|
+
|
381
|
+
ValidationException.add_member(:error_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "errorCode"))
|
382
|
+
ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
|
383
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
384
|
+
ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
|
385
|
+
ValidationException.struct_class = Types::ValidationException
|
386
|
+
|
387
|
+
ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
388
|
+
ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
389
|
+
ValidationExceptionField.struct_class = Types::ValidationExceptionField
|
390
|
+
|
391
|
+
ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
|
392
|
+
|
393
|
+
Vulnerability.add_member(:file_path, Shapes::ShapeRef.new(shape: FilePath, location_name: "filePath"))
|
394
|
+
Vulnerability.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
|
395
|
+
Vulnerability.add_member(:item_count, Shapes::ShapeRef.new(shape: Integer, location_name: "itemCount"))
|
396
|
+
Vulnerability.add_member(:reference_urls, Shapes::ShapeRef.new(shape: ReferenceUrls, location_name: "referenceUrls"))
|
397
|
+
Vulnerability.add_member(:related_vulnerabilities, Shapes::ShapeRef.new(shape: RelatedVulnerabilities, location_name: "relatedVulnerabilities"))
|
398
|
+
Vulnerability.struct_class = Types::Vulnerability
|
399
|
+
|
400
|
+
|
401
|
+
# @api private
|
402
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
403
|
+
|
404
|
+
api.version = "2018-05-10"
|
405
|
+
|
406
|
+
api.metadata = {
|
407
|
+
"apiVersion" => "2018-05-10",
|
408
|
+
"endpointPrefix" => "codeguru-security",
|
409
|
+
"jsonVersion" => "1.1",
|
410
|
+
"protocol" => "rest-json",
|
411
|
+
"serviceFullName" => "Amazon CodeGuru Security",
|
412
|
+
"serviceId" => "CodeGuru Security",
|
413
|
+
"signatureVersion" => "v4",
|
414
|
+
"signingName" => "codeguru-security",
|
415
|
+
"uid" => "codeguru-security-2018-05-10",
|
416
|
+
}
|
417
|
+
|
418
|
+
api.add_operation(:batch_get_findings, Seahorse::Model::Operation.new.tap do |o|
|
419
|
+
o.name = "BatchGetFindings"
|
420
|
+
o.http_method = "POST"
|
421
|
+
o.http_request_uri = "/batchGetFindings"
|
422
|
+
o.input = Shapes::ShapeRef.new(shape: BatchGetFindingsRequest)
|
423
|
+
o.output = Shapes::ShapeRef.new(shape: BatchGetFindingsResponse)
|
424
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
425
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
426
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
427
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
428
|
+
end)
|
429
|
+
|
430
|
+
api.add_operation(:create_scan, Seahorse::Model::Operation.new.tap do |o|
|
431
|
+
o.name = "CreateScan"
|
432
|
+
o.http_method = "POST"
|
433
|
+
o.http_request_uri = "/scans"
|
434
|
+
o.input = Shapes::ShapeRef.new(shape: CreateScanRequest)
|
435
|
+
o.output = Shapes::ShapeRef.new(shape: CreateScanResponse)
|
436
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
437
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
438
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
439
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
440
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
441
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
442
|
+
end)
|
443
|
+
|
444
|
+
api.add_operation(:create_upload_url, Seahorse::Model::Operation.new.tap do |o|
|
445
|
+
o.name = "CreateUploadUrl"
|
446
|
+
o.http_method = "POST"
|
447
|
+
o.http_request_uri = "/uploadUrl"
|
448
|
+
o.input = Shapes::ShapeRef.new(shape: CreateUploadUrlRequest)
|
449
|
+
o.output = Shapes::ShapeRef.new(shape: CreateUploadUrlResponse)
|
450
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
451
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
452
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
453
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
454
|
+
end)
|
455
|
+
|
456
|
+
api.add_operation(:get_account_configuration, Seahorse::Model::Operation.new.tap do |o|
|
457
|
+
o.name = "GetAccountConfiguration"
|
458
|
+
o.http_method = "GET"
|
459
|
+
o.http_request_uri = "/accountConfiguration/get"
|
460
|
+
o.input = Shapes::ShapeRef.new(shape: GetAccountConfigurationRequest)
|
461
|
+
o.output = Shapes::ShapeRef.new(shape: GetAccountConfigurationResponse)
|
462
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
463
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
464
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
465
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
466
|
+
end)
|
467
|
+
|
468
|
+
api.add_operation(:get_findings, Seahorse::Model::Operation.new.tap do |o|
|
469
|
+
o.name = "GetFindings"
|
470
|
+
o.http_method = "GET"
|
471
|
+
o.http_request_uri = "/findings/{scanName}"
|
472
|
+
o.input = Shapes::ShapeRef.new(shape: GetFindingsRequest)
|
473
|
+
o.output = Shapes::ShapeRef.new(shape: GetFindingsResponse)
|
474
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
475
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
476
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
477
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
478
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
479
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
480
|
+
o[:pager] = Aws::Pager.new(
|
481
|
+
limit_key: "max_results",
|
482
|
+
tokens: {
|
483
|
+
"next_token" => "next_token"
|
484
|
+
}
|
485
|
+
)
|
486
|
+
end)
|
487
|
+
|
488
|
+
api.add_operation(:get_metrics_summary, Seahorse::Model::Operation.new.tap do |o|
|
489
|
+
o.name = "GetMetricsSummary"
|
490
|
+
o.http_method = "GET"
|
491
|
+
o.http_request_uri = "/metrics/summary"
|
492
|
+
o.input = Shapes::ShapeRef.new(shape: GetMetricsSummaryRequest)
|
493
|
+
o.output = Shapes::ShapeRef.new(shape: GetMetricsSummaryResponse)
|
494
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
495
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
496
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
497
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
498
|
+
end)
|
499
|
+
|
500
|
+
api.add_operation(:get_scan, Seahorse::Model::Operation.new.tap do |o|
|
501
|
+
o.name = "GetScan"
|
502
|
+
o.http_method = "GET"
|
503
|
+
o.http_request_uri = "/scans/{scanName}"
|
504
|
+
o.input = Shapes::ShapeRef.new(shape: GetScanRequest)
|
505
|
+
o.output = Shapes::ShapeRef.new(shape: GetScanResponse)
|
506
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
507
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
508
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
509
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
510
|
+
end)
|
511
|
+
|
512
|
+
api.add_operation(:list_findings_metrics, Seahorse::Model::Operation.new.tap do |o|
|
513
|
+
o.name = "ListFindingsMetrics"
|
514
|
+
o.http_method = "GET"
|
515
|
+
o.http_request_uri = "/metrics/findings"
|
516
|
+
o.input = Shapes::ShapeRef.new(shape: ListFindingsMetricsRequest)
|
517
|
+
o.output = Shapes::ShapeRef.new(shape: ListFindingsMetricsResponse)
|
518
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
519
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
520
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
521
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
522
|
+
o[:pager] = Aws::Pager.new(
|
523
|
+
limit_key: "max_results",
|
524
|
+
tokens: {
|
525
|
+
"next_token" => "next_token"
|
526
|
+
}
|
527
|
+
)
|
528
|
+
end)
|
529
|
+
|
530
|
+
api.add_operation(:list_scans, Seahorse::Model::Operation.new.tap do |o|
|
531
|
+
o.name = "ListScans"
|
532
|
+
o.http_method = "GET"
|
533
|
+
o.http_request_uri = "/scans"
|
534
|
+
o.input = Shapes::ShapeRef.new(shape: ListScansRequest)
|
535
|
+
o.output = Shapes::ShapeRef.new(shape: ListScansResponse)
|
536
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
537
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
538
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
539
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
540
|
+
o[:pager] = Aws::Pager.new(
|
541
|
+
limit_key: "max_results",
|
542
|
+
tokens: {
|
543
|
+
"next_token" => "next_token"
|
544
|
+
}
|
545
|
+
)
|
546
|
+
end)
|
547
|
+
|
548
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
549
|
+
o.name = "ListTagsForResource"
|
550
|
+
o.http_method = "GET"
|
551
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
552
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
553
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
554
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
555
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
556
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
557
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
558
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
559
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
560
|
+
end)
|
561
|
+
|
562
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
563
|
+
o.name = "TagResource"
|
564
|
+
o.http_method = "POST"
|
565
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
566
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
567
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
568
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
569
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
570
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
571
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
572
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
573
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
574
|
+
end)
|
575
|
+
|
576
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
577
|
+
o.name = "UntagResource"
|
578
|
+
o.http_method = "DELETE"
|
579
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
580
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
581
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
582
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
583
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
584
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
585
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
586
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
587
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
588
|
+
end)
|
589
|
+
|
590
|
+
api.add_operation(:update_account_configuration, Seahorse::Model::Operation.new.tap do |o|
|
591
|
+
o.name = "UpdateAccountConfiguration"
|
592
|
+
o.http_method = "PUT"
|
593
|
+
o.http_request_uri = "/updateAccountConfiguration"
|
594
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateAccountConfigurationRequest)
|
595
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateAccountConfigurationResponse)
|
596
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
597
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
598
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
599
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
600
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
601
|
+
end)
|
602
|
+
end
|
603
|
+
|
604
|
+
end
|
605
|
+
end
|
File without changes
|