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.
@@ -0,0 +1,15 @@
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
+ require 'aws-sdk-core/waiters'
11
+
12
+ module Aws::CodeGuruSecurity
13
+ module Waiters
14
+ end
15
+ end
@@ -49,12 +49,13 @@ module Aws::CodeGuruSecurity
49
49
  end
50
50
  autoload :Client, 'aws-sdk-codegurusecurity/client'
51
51
  autoload :Errors, 'aws-sdk-codegurusecurity/errors'
52
+ autoload :Waiters, 'aws-sdk-codegurusecurity/waiters'
52
53
  autoload :Resource, 'aws-sdk-codegurusecurity/resource'
53
54
  autoload :EndpointParameters, 'aws-sdk-codegurusecurity/endpoint_parameters'
54
55
  autoload :EndpointProvider, 'aws-sdk-codegurusecurity/endpoint_provider'
55
56
  autoload :Endpoints, 'aws-sdk-codegurusecurity/endpoints'
56
57
 
57
- GEM_VERSION = '1.33.0'
58
+ GEM_VERSION = '1.34.0'
58
59
 
59
60
  end
60
61
 
data/sig/client.rbs CHANGED
@@ -80,15 +80,15 @@ module Aws
80
80
 
81
81
  interface _BatchGetFindingsResponseSuccess
82
82
  include ::Seahorse::Client::_ResponseSuccess[Types::BatchGetFindingsResponse]
83
- def failed_findings: () -> ::Array[Types::BatchGetFindingsError]
84
83
  def findings: () -> ::Array[Types::Finding]
84
+ def failed_findings: () -> ::Array[Types::BatchGetFindingsError]
85
85
  end
86
86
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CodeGuruSecurity/Client.html#batch_get_findings-instance_method
87
87
  def batch_get_findings: (
88
88
  finding_identifiers: Array[
89
89
  {
90
- finding_id: ::String,
91
- scan_name: ::String
90
+ scan_name: ::String,
91
+ finding_id: ::String
92
92
  },
93
93
  ]
94
94
  ) -> _BatchGetFindingsResponseSuccess
@@ -96,30 +96,30 @@ module Aws
96
96
 
97
97
  interface _CreateScanResponseSuccess
98
98
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateScanResponse]
99
- def resource_id: () -> Types::ResourceId
100
- def run_id: () -> ::String
101
99
  def scan_name: () -> ::String
102
- def scan_name_arn: () -> ::String
100
+ def run_id: () -> ::String
101
+ def resource_id: () -> Types::ResourceId
103
102
  def scan_state: () -> ("InProgress" | "Successful" | "Failed")
103
+ def scan_name_arn: () -> ::String
104
104
  end
105
105
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CodeGuruSecurity/Client.html#create_scan-instance_method
106
106
  def create_scan: (
107
- ?analysis_type: ("Security" | "All"),
108
107
  ?client_token: ::String,
109
108
  resource_id: {
110
109
  code_artifact_id: ::String?
111
110
  },
112
111
  scan_name: ::String,
113
112
  ?scan_type: ("Standard" | "Express"),
113
+ ?analysis_type: ("Security" | "All"),
114
114
  ?tags: Hash[::String, ::String]
115
115
  ) -> _CreateScanResponseSuccess
116
116
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateScanResponseSuccess
117
117
 
118
118
  interface _CreateUploadUrlResponseSuccess
119
119
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateUploadUrlResponse]
120
- def code_artifact_id: () -> ::String
121
- def request_headers: () -> ::Hash[::String, ::String]
122
120
  def s3_url: () -> ::String
121
+ def request_headers: () -> ::Hash[::String, ::String]
122
+ def code_artifact_id: () -> ::String
123
123
  end
124
124
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CodeGuruSecurity/Client.html#create_upload_url-instance_method
125
125
  def create_upload_url: (
@@ -143,9 +143,9 @@ module Aws
143
143
  end
144
144
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CodeGuruSecurity/Client.html#get_findings-instance_method
145
145
  def get_findings: (
146
- ?max_results: ::Integer,
147
- ?next_token: ::String,
148
146
  scan_name: ::String,
147
+ ?next_token: ::String,
148
+ ?max_results: ::Integer,
149
149
  ?status: ("Closed" | "Open" | "All")
150
150
  ) -> _GetFindingsResponseSuccess
151
151
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFindingsResponseSuccess
@@ -162,20 +162,20 @@ module Aws
162
162
 
163
163
  interface _GetScanResponseSuccess
164
164
  include ::Seahorse::Client::_ResponseSuccess[Types::GetScanResponse]
165
- def analysis_type: () -> ("Security" | "All")
166
- def created_at: () -> ::Time
167
- def error_message: () -> ::String
168
- def number_of_revisions: () -> ::Integer
169
- def run_id: () -> ::String
170
165
  def scan_name: () -> ::String
171
- def scan_name_arn: () -> ::String
166
+ def run_id: () -> ::String
172
167
  def scan_state: () -> ("InProgress" | "Successful" | "Failed")
168
+ def created_at: () -> ::Time
169
+ def analysis_type: () -> ("Security" | "All")
173
170
  def updated_at: () -> ::Time
171
+ def number_of_revisions: () -> ::Integer
172
+ def scan_name_arn: () -> ::String
173
+ def error_message: () -> ::String
174
174
  end
175
175
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CodeGuruSecurity/Client.html#get_scan-instance_method
176
176
  def get_scan: (
177
- ?run_id: ::String,
178
- scan_name: ::String
177
+ scan_name: ::String,
178
+ ?run_id: ::String
179
179
  ) -> _GetScanResponseSuccess
180
180
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetScanResponseSuccess
181
181
 
@@ -186,22 +186,22 @@ module Aws
186
186
  end
187
187
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CodeGuruSecurity/Client.html#list_findings_metrics-instance_method
188
188
  def list_findings_metrics: (
189
- end_date: ::Time,
190
- ?max_results: ::Integer,
191
189
  ?next_token: ::String,
192
- start_date: ::Time
190
+ ?max_results: ::Integer,
191
+ start_date: ::Time,
192
+ end_date: ::Time
193
193
  ) -> _ListFindingsMetricsResponseSuccess
194
194
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFindingsMetricsResponseSuccess
195
195
 
196
196
  interface _ListScansResponseSuccess
197
197
  include ::Seahorse::Client::_ResponseSuccess[Types::ListScansResponse]
198
- def next_token: () -> ::String
199
198
  def summaries: () -> ::Array[Types::ScanSummary]
199
+ def next_token: () -> ::String
200
200
  end
201
201
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CodeGuruSecurity/Client.html#list_scans-instance_method
202
202
  def list_scans: (
203
- ?max_results: ::Integer,
204
- ?next_token: ::String
203
+ ?next_token: ::String,
204
+ ?max_results: ::Integer
205
205
  ) -> _ListScansResponseSuccess
206
206
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListScansResponseSuccess
207
207
 
data/sig/errors.rbs CHANGED
@@ -36,14 +36,14 @@ module Aws
36
36
  class ThrottlingException < ::Aws::Errors::ServiceError
37
37
  def error_code: () -> ::String
38
38
  def message: () -> ::String
39
- def quota_code: () -> ::String
40
39
  def service_code: () -> ::String
40
+ def quota_code: () -> ::String
41
41
  end
42
42
  class ValidationException < ::Aws::Errors::ServiceError
43
43
  def error_code: () -> ::String
44
- def field_list: () -> ::String
45
44
  def message: () -> ::String
46
45
  def reason: () -> ::String
46
+ def field_list: () -> ::String
47
47
  end
48
48
  end
49
49
  end
data/sig/types.rbs CHANGED
@@ -17,19 +17,19 @@ module Aws::CodeGuruSecurity
17
17
  end
18
18
 
19
19
  class AccountFindingsMetric
20
- attr_accessor closed_findings: Types::FindingMetricsValuePerSeverity
21
20
  attr_accessor date: ::Time
22
- attr_accessor mean_time_to_close: Types::FindingMetricsValuePerSeverity
23
21
  attr_accessor new_findings: Types::FindingMetricsValuePerSeverity
22
+ attr_accessor closed_findings: Types::FindingMetricsValuePerSeverity
24
23
  attr_accessor open_findings: Types::FindingMetricsValuePerSeverity
24
+ attr_accessor mean_time_to_close: Types::FindingMetricsValuePerSeverity
25
25
  SENSITIVE: []
26
26
  end
27
27
 
28
28
  class BatchGetFindingsError
29
- attr_accessor error_code: ("DUPLICATE_IDENTIFIER" | "ITEM_DOES_NOT_EXIST" | "INTERNAL_ERROR" | "INVALID_FINDING_ID" | "INVALID_SCAN_NAME")
29
+ attr_accessor scan_name: ::String
30
30
  attr_accessor finding_id: ::String
31
+ attr_accessor error_code: ("DUPLICATE_IDENTIFIER" | "ITEM_DOES_NOT_EXIST" | "INTERNAL_ERROR" | "INVALID_FINDING_ID" | "INVALID_SCAN_NAME")
31
32
  attr_accessor message: ::String
32
- attr_accessor scan_name: ::String
33
33
  SENSITIVE: []
34
34
  end
35
35
 
@@ -39,8 +39,8 @@ module Aws::CodeGuruSecurity
39
39
  end
40
40
 
41
41
  class BatchGetFindingsResponse
42
- attr_accessor failed_findings: ::Array[Types::BatchGetFindingsError]
43
42
  attr_accessor findings: ::Array[Types::Finding]
43
+ attr_accessor failed_findings: ::Array[Types::BatchGetFindingsError]
44
44
  SENSITIVE: []
45
45
  end
46
46
 
@@ -51,8 +51,8 @@ module Aws::CodeGuruSecurity
51
51
  end
52
52
 
53
53
  class CodeLine
54
- attr_accessor content: ::String
55
54
  attr_accessor number: ::Integer
55
+ attr_accessor content: ::String
56
56
  SENSITIVE: []
57
57
  end
58
58
 
@@ -65,21 +65,21 @@ module Aws::CodeGuruSecurity
65
65
  end
66
66
 
67
67
  class CreateScanRequest
68
- attr_accessor analysis_type: ("Security" | "All")
69
68
  attr_accessor client_token: ::String
70
69
  attr_accessor resource_id: Types::ResourceId
71
70
  attr_accessor scan_name: ::String
72
71
  attr_accessor scan_type: ("Standard" | "Express")
72
+ attr_accessor analysis_type: ("Security" | "All")
73
73
  attr_accessor tags: ::Hash[::String, ::String]
74
74
  SENSITIVE: []
75
75
  end
76
76
 
77
77
  class CreateScanResponse
78
- attr_accessor resource_id: Types::ResourceId
79
- attr_accessor run_id: ::String
80
78
  attr_accessor scan_name: ::String
81
- attr_accessor scan_name_arn: ::String
79
+ attr_accessor run_id: ::String
80
+ attr_accessor resource_id: Types::ResourceId
82
81
  attr_accessor scan_state: ("InProgress" | "Successful" | "Failed")
82
+ attr_accessor scan_name_arn: ::String
83
83
  SENSITIVE: []
84
84
  end
85
85
 
@@ -89,10 +89,10 @@ module Aws::CodeGuruSecurity
89
89
  end
90
90
 
91
91
  class CreateUploadUrlResponse
92
- attr_accessor code_artifact_id: ::String
93
- attr_accessor request_headers: ::Hash[::String, ::String]
94
92
  attr_accessor s3_url: ::String
95
- SENSITIVE: [:request_headers, :s3_url]
93
+ attr_accessor request_headers: ::Hash[::String, ::String]
94
+ attr_accessor code_artifact_id: ::String
95
+ SENSITIVE: [:s3_url, :request_headers]
96
96
  end
97
97
 
98
98
  class EncryptionConfig
@@ -101,46 +101,46 @@ module Aws::CodeGuruSecurity
101
101
  end
102
102
 
103
103
  class FilePath
104
- attr_accessor code_snippet: ::Array[Types::CodeLine]
105
- attr_accessor end_line: ::Integer
106
104
  attr_accessor name: ::String
107
105
  attr_accessor path: ::String
108
106
  attr_accessor start_line: ::Integer
107
+ attr_accessor end_line: ::Integer
108
+ attr_accessor code_snippet: ::Array[Types::CodeLine]
109
109
  SENSITIVE: []
110
110
  end
111
111
 
112
112
  class Finding
113
113
  attr_accessor created_at: ::Time
114
114
  attr_accessor description: ::String
115
- attr_accessor detector_id: ::String
116
- attr_accessor detector_name: ::String
117
- attr_accessor detector_tags: ::Array[::String]
118
115
  attr_accessor generator_id: ::String
119
116
  attr_accessor id: ::String
120
- attr_accessor remediation: Types::Remediation
117
+ attr_accessor updated_at: ::Time
118
+ attr_accessor type: ::String
119
+ attr_accessor status: ("Closed" | "Open" | "All")
121
120
  attr_accessor resource: Types::Resource
122
- attr_accessor rule_id: ::String
121
+ attr_accessor vulnerability: Types::Vulnerability
123
122
  attr_accessor severity: ("Critical" | "High" | "Medium" | "Low" | "Info")
124
- attr_accessor status: ("Closed" | "Open" | "All")
123
+ attr_accessor remediation: Types::Remediation
125
124
  attr_accessor title: ::String
126
- attr_accessor type: ::String
127
- attr_accessor updated_at: ::Time
128
- attr_accessor vulnerability: Types::Vulnerability
125
+ attr_accessor detector_tags: ::Array[::String]
126
+ attr_accessor detector_id: ::String
127
+ attr_accessor detector_name: ::String
128
+ attr_accessor rule_id: ::String
129
129
  SENSITIVE: []
130
130
  end
131
131
 
132
132
  class FindingIdentifier
133
- attr_accessor finding_id: ::String
134
133
  attr_accessor scan_name: ::String
134
+ attr_accessor finding_id: ::String
135
135
  SENSITIVE: []
136
136
  end
137
137
 
138
138
  class FindingMetricsValuePerSeverity
139
- attr_accessor critical: ::Float
140
- attr_accessor high: ::Float
141
139
  attr_accessor info: ::Float
142
140
  attr_accessor low: ::Float
143
141
  attr_accessor medium: ::Float
142
+ attr_accessor high: ::Float
143
+ attr_accessor critical: ::Float
144
144
  SENSITIVE: []
145
145
  end
146
146
 
@@ -153,9 +153,9 @@ module Aws::CodeGuruSecurity
153
153
  end
154
154
 
155
155
  class GetFindingsRequest
156
- attr_accessor max_results: ::Integer
157
- attr_accessor next_token: ::String
158
156
  attr_accessor scan_name: ::String
157
+ attr_accessor next_token: ::String
158
+ attr_accessor max_results: ::Integer
159
159
  attr_accessor status: ("Closed" | "Open" | "All")
160
160
  SENSITIVE: []
161
161
  end
@@ -177,21 +177,21 @@ module Aws::CodeGuruSecurity
177
177
  end
178
178
 
179
179
  class GetScanRequest
180
- attr_accessor run_id: ::String
181
180
  attr_accessor scan_name: ::String
181
+ attr_accessor run_id: ::String
182
182
  SENSITIVE: []
183
183
  end
184
184
 
185
185
  class GetScanResponse
186
- attr_accessor analysis_type: ("Security" | "All")
187
- attr_accessor created_at: ::Time
188
- attr_accessor error_message: ::String
189
- attr_accessor number_of_revisions: ::Integer
190
- attr_accessor run_id: ::String
191
186
  attr_accessor scan_name: ::String
192
- attr_accessor scan_name_arn: ::String
187
+ attr_accessor run_id: ::String
193
188
  attr_accessor scan_state: ("InProgress" | "Successful" | "Failed")
189
+ attr_accessor created_at: ::Time
190
+ attr_accessor analysis_type: ("Security" | "All")
194
191
  attr_accessor updated_at: ::Time
192
+ attr_accessor number_of_revisions: ::Integer
193
+ attr_accessor scan_name_arn: ::String
194
+ attr_accessor error_message: ::String
195
195
  SENSITIVE: []
196
196
  end
197
197
 
@@ -202,10 +202,10 @@ module Aws::CodeGuruSecurity
202
202
  end
203
203
 
204
204
  class ListFindingsMetricsRequest
205
- attr_accessor end_date: ::Time
206
- attr_accessor max_results: ::Integer
207
205
  attr_accessor next_token: ::String
206
+ attr_accessor max_results: ::Integer
208
207
  attr_accessor start_date: ::Time
208
+ attr_accessor end_date: ::Time
209
209
  SENSITIVE: []
210
210
  end
211
211
 
@@ -216,14 +216,14 @@ module Aws::CodeGuruSecurity
216
216
  end
217
217
 
218
218
  class ListScansRequest
219
- attr_accessor max_results: ::Integer
220
219
  attr_accessor next_token: ::String
220
+ attr_accessor max_results: ::Integer
221
221
  SENSITIVE: []
222
222
  end
223
223
 
224
224
  class ListScansResponse
225
- attr_accessor next_token: ::String
226
225
  attr_accessor summaries: ::Array[Types::ScanSummary]
226
+ attr_accessor next_token: ::String
227
227
  SENSITIVE: []
228
228
  end
229
229
 
@@ -238,11 +238,11 @@ module Aws::CodeGuruSecurity
238
238
  end
239
239
 
240
240
  class MetricsSummary
241
- attr_accessor categories_with_most_findings: ::Array[Types::CategoryWithFindingNum]
242
241
  attr_accessor date: ::Time
243
242
  attr_accessor open_findings: Types::FindingMetricsValuePerSeverity
244
- attr_accessor scans_with_most_open_critical_findings: ::Array[Types::ScanNameWithFindingNum]
243
+ attr_accessor categories_with_most_findings: ::Array[Types::CategoryWithFindingNum]
245
244
  attr_accessor scans_with_most_open_findings: ::Array[Types::ScanNameWithFindingNum]
245
+ attr_accessor scans_with_most_open_critical_findings: ::Array[Types::ScanNameWithFindingNum]
246
246
  SENSITIVE: []
247
247
  end
248
248
 
@@ -284,24 +284,24 @@ module Aws::CodeGuruSecurity
284
284
  end
285
285
 
286
286
  class ScanNameWithFindingNum
287
- attr_accessor finding_number: ::Integer
288
287
  attr_accessor scan_name: ::String
288
+ attr_accessor finding_number: ::Integer
289
289
  SENSITIVE: []
290
290
  end
291
291
 
292
292
  class ScanSummary
293
+ attr_accessor scan_state: ("InProgress" | "Successful" | "Failed")
293
294
  attr_accessor created_at: ::Time
294
- attr_accessor run_id: ::String
295
+ attr_accessor updated_at: ::Time
295
296
  attr_accessor scan_name: ::String
297
+ attr_accessor run_id: ::String
296
298
  attr_accessor scan_name_arn: ::String
297
- attr_accessor scan_state: ("InProgress" | "Successful" | "Failed")
298
- attr_accessor updated_at: ::Time
299
299
  SENSITIVE: []
300
300
  end
301
301
 
302
302
  class SuggestedFix
303
- attr_accessor code: ::String
304
303
  attr_accessor description: ::String
304
+ attr_accessor code: ::String
305
305
  SENSITIVE: []
306
306
  end
307
307
 
@@ -317,8 +317,8 @@ module Aws::CodeGuruSecurity
317
317
  class ThrottlingException
318
318
  attr_accessor error_code: ::String
319
319
  attr_accessor message: ::String
320
- attr_accessor quota_code: ::String
321
320
  attr_accessor service_code: ::String
321
+ attr_accessor quota_code: ::String
322
322
  SENSITIVE: []
323
323
  end
324
324
 
@@ -343,24 +343,24 @@ module Aws::CodeGuruSecurity
343
343
 
344
344
  class ValidationException
345
345
  attr_accessor error_code: ::String
346
- attr_accessor field_list: ::Array[Types::ValidationExceptionField]
347
346
  attr_accessor message: ::String
348
347
  attr_accessor reason: ("unknownOperation" | "cannotParse" | "fieldValidationFailed" | "other" | "lambdaCodeShaMisMatch")
348
+ attr_accessor field_list: ::Array[Types::ValidationExceptionField]
349
349
  SENSITIVE: []
350
350
  end
351
351
 
352
352
  class ValidationExceptionField
353
- attr_accessor message: ::String
354
353
  attr_accessor name: ::String
354
+ attr_accessor message: ::String
355
355
  SENSITIVE: []
356
356
  end
357
357
 
358
358
  class Vulnerability
359
- attr_accessor file_path: Types::FilePath
360
- attr_accessor id: ::String
361
- attr_accessor item_count: ::Integer
362
359
  attr_accessor reference_urls: ::Array[::String]
363
360
  attr_accessor related_vulnerabilities: ::Array[::String]
361
+ attr_accessor id: ::String
362
+ attr_accessor file_path: Types::FilePath
363
+ attr_accessor item_count: ::Integer
364
364
  SENSITIVE: []
365
365
  end
366
366
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-codegurusecurity
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.33.0
4
+ version: 1.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -35,14 +35,14 @@ dependencies:
35
35
  requirements:
36
36
  - - "~>"
37
37
  - !ruby/object:Gem::Version
38
- version: '1.1'
38
+ version: '1.5'
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
42
42
  requirements:
43
43
  - - "~>"
44
44
  - !ruby/object:Gem::Version
45
- version: '1.1'
45
+ version: '1.5'
46
46
  description: Official AWS Ruby gem for Amazon CodeGuru Security. This gem is part
47
47
  of the AWS SDK for Ruby.
48
48
  email:
@@ -65,6 +65,7 @@ files:
65
65
  - lib/aws-sdk-codegurusecurity/plugins/endpoints.rb
66
66
  - lib/aws-sdk-codegurusecurity/resource.rb
67
67
  - lib/aws-sdk-codegurusecurity/types.rb
68
+ - lib/aws-sdk-codegurusecurity/waiters.rb
68
69
  - sig/client.rbs
69
70
  - sig/errors.rbs
70
71
  - sig/resource.rbs