aws-sdk-securityagent 1.1.0 → 1.2.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.
@@ -55,7 +55,7 @@ module Aws::SecurityAgent
55
55
  autoload :EndpointProvider, 'aws-sdk-securityagent/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-securityagent/endpoints'
57
57
 
58
- GEM_VERSION = '1.1.0'
58
+ GEM_VERSION = '1.2.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -91,6 +91,18 @@ module Aws
91
91
  ) -> _AddArtifactResponseSuccess
92
92
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AddArtifactResponseSuccess
93
93
 
94
+ interface _BatchDeleteCodeReviewsResponseSuccess
95
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchDeleteCodeReviewsOutput]
96
+ def deleted: () -> ::Array[::String]
97
+ def failed: () -> ::Array[Types::DeleteCodeReviewFailure]
98
+ end
99
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#batch_delete_code_reviews-instance_method
100
+ def batch_delete_code_reviews: (
101
+ code_review_ids: Array[::String],
102
+ agent_space_id: ::String
103
+ ) -> _BatchDeleteCodeReviewsResponseSuccess
104
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchDeleteCodeReviewsResponseSuccess
105
+
94
106
  interface _BatchDeletePentestsResponseSuccess
95
107
  include ::Seahorse::Client::_ResponseSuccess[Types::BatchDeletePentestsOutput]
96
108
  def deleted: () -> ::Array[Types::Pentest]
@@ -125,6 +137,42 @@ module Aws
125
137
  ) -> _BatchGetArtifactMetadataResponseSuccess
126
138
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetArtifactMetadataResponseSuccess
127
139
 
140
+ interface _BatchGetCodeReviewJobTasksResponseSuccess
141
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchGetCodeReviewJobTasksOutput]
142
+ def code_review_job_tasks: () -> ::Array[Types::CodeReviewJobTask]
143
+ def not_found: () -> ::Array[::String]
144
+ end
145
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#batch_get_code_review_job_tasks-instance_method
146
+ def batch_get_code_review_job_tasks: (
147
+ agent_space_id: ::String,
148
+ code_review_job_task_ids: Array[::String]
149
+ ) -> _BatchGetCodeReviewJobTasksResponseSuccess
150
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetCodeReviewJobTasksResponseSuccess
151
+
152
+ interface _BatchGetCodeReviewJobsResponseSuccess
153
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchGetCodeReviewJobsOutput]
154
+ def code_review_jobs: () -> ::Array[Types::CodeReviewJob]
155
+ def not_found: () -> ::Array[::String]
156
+ end
157
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#batch_get_code_review_jobs-instance_method
158
+ def batch_get_code_review_jobs: (
159
+ code_review_job_ids: Array[::String],
160
+ agent_space_id: ::String
161
+ ) -> _BatchGetCodeReviewJobsResponseSuccess
162
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetCodeReviewJobsResponseSuccess
163
+
164
+ interface _BatchGetCodeReviewsResponseSuccess
165
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchGetCodeReviewsOutput]
166
+ def code_reviews: () -> ::Array[Types::CodeReview]
167
+ def not_found: () -> ::Array[::String]
168
+ end
169
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#batch_get_code_reviews-instance_method
170
+ def batch_get_code_reviews: (
171
+ code_review_ids: Array[::String],
172
+ agent_space_id: ::String
173
+ ) -> _BatchGetCodeReviewsResponseSuccess
174
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetCodeReviewsResponseSuccess
175
+
128
176
  interface _BatchGetFindingsResponseSuccess
129
177
  include ::Seahorse::Client::_ResponseSuccess[Types::BatchGetFindingsOutput]
130
178
  def findings: () -> ::Array[Types::Finding]
@@ -237,6 +285,66 @@ module Aws
237
285
  ) -> _CreateApplicationResponseSuccess
238
286
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateApplicationResponseSuccess
239
287
 
288
+ interface _CreateCodeReviewResponseSuccess
289
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateCodeReviewOutput]
290
+ def code_review_id: () -> ::String
291
+ def title: () -> ::String
292
+ def created_at: () -> ::Time
293
+ def updated_at: () -> ::Time
294
+ def assets: () -> Types::Assets
295
+ def service_role: () -> ::String
296
+ def log_config: () -> Types::CloudWatchLog
297
+ def agent_space_id: () -> ::String
298
+ def code_remediation_strategy: () -> ("AUTOMATIC" | "DISABLED")
299
+ end
300
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#create_code_review-instance_method
301
+ def create_code_review: (
302
+ title: ::String,
303
+ agent_space_id: ::String,
304
+ assets: {
305
+ endpoints: Array[
306
+ {
307
+ uri: ::String?
308
+ },
309
+ ]?,
310
+ actors: Array[
311
+ {
312
+ identifier: ::String?,
313
+ uris: Array[::String]?,
314
+ authentication: {
315
+ provider_type: ("SECRETS_MANAGER" | "AWS_LAMBDA" | "AWS_IAM_ROLE" | "AWS_INTERNAL")?,
316
+ value: ::String?
317
+ }?,
318
+ description: ::String?
319
+ },
320
+ ]?,
321
+ documents: Array[
322
+ {
323
+ s3_location: ::String?,
324
+ artifact_id: ::String?
325
+ },
326
+ ]?,
327
+ source_code: Array[
328
+ {
329
+ s3_location: ::String?
330
+ },
331
+ ]?,
332
+ integrated_repositories: Array[
333
+ {
334
+ integration_id: ::String,
335
+ provider_resource_id: ::String
336
+ },
337
+ ]?
338
+ },
339
+ ?service_role: ::String,
340
+ ?log_config: {
341
+ log_group: ::String?,
342
+ log_stream: ::String?
343
+ },
344
+ ?code_remediation_strategy: ("AUTOMATIC" | "DISABLED")
345
+ ) -> _CreateCodeReviewResponseSuccess
346
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCodeReviewResponseSuccess
347
+
240
348
  interface _CreateIntegrationResponseSuccess
241
349
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateIntegrationOutput]
242
350
  def integration_id: () -> ::String
@@ -523,6 +631,49 @@ module Aws
523
631
  ) -> _ListArtifactsResponseSuccess
524
632
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListArtifactsResponseSuccess
525
633
 
634
+ interface _ListCodeReviewJobTasksResponseSuccess
635
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCodeReviewJobTasksOutput]
636
+ def code_review_job_task_summaries: () -> ::Array[Types::CodeReviewJobTaskSummary]
637
+ def next_token: () -> ::String
638
+ end
639
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#list_code_review_job_tasks-instance_method
640
+ def list_code_review_job_tasks: (
641
+ agent_space_id: ::String,
642
+ ?max_results: ::Integer,
643
+ ?code_review_job_id: ::String,
644
+ ?step_name: ("PREFLIGHT" | "STATIC_ANALYSIS" | "PENTEST" | "FINALIZING"),
645
+ ?category_name: ::String,
646
+ ?next_token: ::String
647
+ ) -> _ListCodeReviewJobTasksResponseSuccess
648
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCodeReviewJobTasksResponseSuccess
649
+
650
+ interface _ListCodeReviewJobsForCodeReviewResponseSuccess
651
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCodeReviewJobsForCodeReviewOutput]
652
+ def code_review_job_summaries: () -> ::Array[Types::CodeReviewJobSummary]
653
+ def next_token: () -> ::String
654
+ end
655
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#list_code_review_jobs_for_code_review-instance_method
656
+ def list_code_review_jobs_for_code_review: (
657
+ ?max_results: ::Integer,
658
+ code_review_id: ::String,
659
+ agent_space_id: ::String,
660
+ ?next_token: ::String
661
+ ) -> _ListCodeReviewJobsForCodeReviewResponseSuccess
662
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCodeReviewJobsForCodeReviewResponseSuccess
663
+
664
+ interface _ListCodeReviewsResponseSuccess
665
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCodeReviewsOutput]
666
+ def code_review_summaries: () -> ::Array[Types::CodeReviewSummary]
667
+ def next_token: () -> ::String
668
+ end
669
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#list_code_reviews-instance_method
670
+ def list_code_reviews: (
671
+ ?max_results: ::Integer,
672
+ ?next_token: ::String,
673
+ agent_space_id: ::String
674
+ ) -> _ListCodeReviewsResponseSuccess
675
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCodeReviewsResponseSuccess
676
+
526
677
  interface _ListDiscoveredEndpointsResponseSuccess
527
678
  include ::Seahorse::Client::_ResponseSuccess[Types::ListDiscoveredEndpointsOutput]
528
679
  def discovered_endpoints: () -> ::Array[Types::DiscoveredEndpoint]
@@ -546,7 +697,8 @@ module Aws
546
697
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#list_findings-instance_method
547
698
  def list_findings: (
548
699
  ?max_results: ::Integer,
549
- pentest_job_id: ::String,
700
+ ?pentest_job_id: ::String,
701
+ ?code_review_job_id: ::String,
550
702
  agent_space_id: ::String,
551
703
  ?next_token: ::String,
552
704
  ?risk_type: ::String,
@@ -674,11 +826,29 @@ module Aws
674
826
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#start_code_remediation-instance_method
675
827
  def start_code_remediation: (
676
828
  agent_space_id: ::String,
677
- pentest_job_id: ::String,
829
+ ?pentest_job_id: ::String,
830
+ ?code_review_job_id: ::String,
678
831
  finding_ids: Array[::String]
679
832
  ) -> _StartCodeRemediationResponseSuccess
680
833
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartCodeRemediationResponseSuccess
681
834
 
835
+ interface _StartCodeReviewJobResponseSuccess
836
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartCodeReviewJobOutput]
837
+ def title: () -> ::String
838
+ def status: () -> ("IN_PROGRESS" | "STOPPING" | "STOPPED" | "FAILED" | "COMPLETED")
839
+ def created_at: () -> ::Time
840
+ def updated_at: () -> ::Time
841
+ def code_review_id: () -> ::String
842
+ def code_review_job_id: () -> ::String
843
+ def agent_space_id: () -> ::String
844
+ end
845
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#start_code_review_job-instance_method
846
+ def start_code_review_job: (
847
+ agent_space_id: ::String,
848
+ code_review_id: ::String
849
+ ) -> _StartCodeReviewJobResponseSuccess
850
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartCodeReviewJobResponseSuccess
851
+
682
852
  interface _StartPentestJobResponseSuccess
683
853
  include ::Seahorse::Client::_ResponseSuccess[Types::StartPentestJobOutput]
684
854
  def title: () -> ::String
@@ -696,6 +866,16 @@ module Aws
696
866
  ) -> _StartPentestJobResponseSuccess
697
867
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartPentestJobResponseSuccess
698
868
 
869
+ interface _StopCodeReviewJobResponseSuccess
870
+ include ::Seahorse::Client::_ResponseSuccess[Types::StopCodeReviewJobOutput]
871
+ end
872
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#stop_code_review_job-instance_method
873
+ def stop_code_review_job: (
874
+ agent_space_id: ::String,
875
+ code_review_job_id: ::String
876
+ ) -> _StopCodeReviewJobResponseSuccess
877
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopCodeReviewJobResponseSuccess
878
+
699
879
  interface _StopPentestJobResponseSuccess
700
880
  include ::Seahorse::Client::_ResponseSuccess[Types::StopPentestJobOutput]
701
881
  end
@@ -776,6 +956,67 @@ module Aws
776
956
  ) -> _UpdateApplicationResponseSuccess
777
957
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateApplicationResponseSuccess
778
958
 
959
+ interface _UpdateCodeReviewResponseSuccess
960
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateCodeReviewOutput]
961
+ def code_review_id: () -> ::String
962
+ def title: () -> ::String
963
+ def created_at: () -> ::Time
964
+ def updated_at: () -> ::Time
965
+ def assets: () -> Types::Assets
966
+ def service_role: () -> ::String
967
+ def log_config: () -> Types::CloudWatchLog
968
+ def agent_space_id: () -> ::String
969
+ def code_remediation_strategy: () -> ("AUTOMATIC" | "DISABLED")
970
+ end
971
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#update_code_review-instance_method
972
+ def update_code_review: (
973
+ code_review_id: ::String,
974
+ agent_space_id: ::String,
975
+ ?title: ::String,
976
+ ?assets: {
977
+ endpoints: Array[
978
+ {
979
+ uri: ::String?
980
+ },
981
+ ]?,
982
+ actors: Array[
983
+ {
984
+ identifier: ::String?,
985
+ uris: Array[::String]?,
986
+ authentication: {
987
+ provider_type: ("SECRETS_MANAGER" | "AWS_LAMBDA" | "AWS_IAM_ROLE" | "AWS_INTERNAL")?,
988
+ value: ::String?
989
+ }?,
990
+ description: ::String?
991
+ },
992
+ ]?,
993
+ documents: Array[
994
+ {
995
+ s3_location: ::String?,
996
+ artifact_id: ::String?
997
+ },
998
+ ]?,
999
+ source_code: Array[
1000
+ {
1001
+ s3_location: ::String?
1002
+ },
1003
+ ]?,
1004
+ integrated_repositories: Array[
1005
+ {
1006
+ integration_id: ::String,
1007
+ provider_resource_id: ::String
1008
+ },
1009
+ ]?
1010
+ },
1011
+ ?service_role: ::String,
1012
+ ?log_config: {
1013
+ log_group: ::String?,
1014
+ log_stream: ::String?
1015
+ },
1016
+ ?code_remediation_strategy: ("AUTOMATIC" | "DISABLED")
1017
+ ) -> _UpdateCodeReviewResponseSuccess
1018
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateCodeReviewResponseSuccess
1019
+
779
1020
  interface _UpdateFindingResponseSuccess
780
1021
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateFindingOutput]
781
1022
  end
data/sig/types.rbs CHANGED
@@ -109,6 +109,18 @@ module Aws::SecurityAgent
109
109
  SENSITIVE: []
110
110
  end
111
111
 
112
+ class BatchDeleteCodeReviewsInput
113
+ attr_accessor code_review_ids: ::Array[::String]
114
+ attr_accessor agent_space_id: ::String
115
+ SENSITIVE: []
116
+ end
117
+
118
+ class BatchDeleteCodeReviewsOutput
119
+ attr_accessor deleted: ::Array[::String]
120
+ attr_accessor failed: ::Array[Types::DeleteCodeReviewFailure]
121
+ SENSITIVE: []
122
+ end
123
+
112
124
  class BatchDeletePentestsInput
113
125
  attr_accessor pentest_ids: ::Array[::String]
114
126
  attr_accessor agent_space_id: ::String
@@ -143,6 +155,42 @@ module Aws::SecurityAgent
143
155
  SENSITIVE: []
144
156
  end
145
157
 
158
+ class BatchGetCodeReviewJobTasksInput
159
+ attr_accessor agent_space_id: ::String
160
+ attr_accessor code_review_job_task_ids: ::Array[::String]
161
+ SENSITIVE: []
162
+ end
163
+
164
+ class BatchGetCodeReviewJobTasksOutput
165
+ attr_accessor code_review_job_tasks: ::Array[Types::CodeReviewJobTask]
166
+ attr_accessor not_found: ::Array[::String]
167
+ SENSITIVE: []
168
+ end
169
+
170
+ class BatchGetCodeReviewJobsInput
171
+ attr_accessor code_review_job_ids: ::Array[::String]
172
+ attr_accessor agent_space_id: ::String
173
+ SENSITIVE: []
174
+ end
175
+
176
+ class BatchGetCodeReviewJobsOutput
177
+ attr_accessor code_review_jobs: ::Array[Types::CodeReviewJob]
178
+ attr_accessor not_found: ::Array[::String]
179
+ SENSITIVE: []
180
+ end
181
+
182
+ class BatchGetCodeReviewsInput
183
+ attr_accessor code_review_ids: ::Array[::String]
184
+ attr_accessor agent_space_id: ::String
185
+ SENSITIVE: []
186
+ end
187
+
188
+ class BatchGetCodeReviewsOutput
189
+ attr_accessor code_reviews: ::Array[Types::CodeReview]
190
+ attr_accessor not_found: ::Array[::String]
191
+ SENSITIVE: []
192
+ end
193
+
146
194
  class BatchGetFindingsInput
147
195
  attr_accessor finding_ids: ::Array[::String]
148
196
  attr_accessor agent_space_id: ::String
@@ -214,6 +262,14 @@ module Aws::SecurityAgent
214
262
  SENSITIVE: []
215
263
  end
216
264
 
265
+ class CodeLocation
266
+ attr_accessor file_path: ::String
267
+ attr_accessor line_start: ::Integer
268
+ attr_accessor line_end: ::Integer
269
+ attr_accessor label: ::String
270
+ SENSITIVE: []
271
+ end
272
+
217
273
  class CodeRemediationTask
218
274
  attr_accessor status: ("IN_PROGRESS" | "COMPLETED" | "FAILED")
219
275
  attr_accessor status_reason: ::String
@@ -228,12 +284,93 @@ module Aws::SecurityAgent
228
284
  SENSITIVE: []
229
285
  end
230
286
 
287
+ class CodeReview
288
+ attr_accessor code_review_id: ::String
289
+ attr_accessor agent_space_id: ::String
290
+ attr_accessor title: ::String
291
+ attr_accessor assets: Types::Assets
292
+ attr_accessor service_role: ::String
293
+ attr_accessor log_config: Types::CloudWatchLog
294
+ attr_accessor code_remediation_strategy: ("AUTOMATIC" | "DISABLED")
295
+ attr_accessor created_at: ::Time
296
+ attr_accessor updated_at: ::Time
297
+ SENSITIVE: []
298
+ end
299
+
300
+ class CodeReviewJob
301
+ attr_accessor code_review_job_id: ::String
302
+ attr_accessor code_review_id: ::String
303
+ attr_accessor title: ::String
304
+ attr_accessor overview: ::String
305
+ attr_accessor status: ("IN_PROGRESS" | "STOPPING" | "STOPPED" | "FAILED" | "COMPLETED")
306
+ attr_accessor documents: ::Array[Types::DocumentInfo]
307
+ attr_accessor source_code: ::Array[Types::SourceCodeRepository]
308
+ attr_accessor steps: ::Array[Types::Step]
309
+ attr_accessor execution_context: ::Array[Types::ExecutionContext]
310
+ attr_accessor service_role: ::String
311
+ attr_accessor log_config: Types::CloudWatchLog
312
+ attr_accessor error_information: Types::ErrorInformation
313
+ attr_accessor integrated_repositories: ::Array[Types::IntegratedRepository]
314
+ attr_accessor code_remediation_strategy: ("AUTOMATIC" | "DISABLED")
315
+ attr_accessor created_at: ::Time
316
+ attr_accessor updated_at: ::Time
317
+ SENSITIVE: []
318
+ end
319
+
320
+ class CodeReviewJobSummary
321
+ attr_accessor code_review_job_id: ::String
322
+ attr_accessor code_review_id: ::String
323
+ attr_accessor title: ::String
324
+ attr_accessor status: ("IN_PROGRESS" | "STOPPING" | "STOPPED" | "FAILED" | "COMPLETED")
325
+ attr_accessor created_at: ::Time
326
+ attr_accessor updated_at: ::Time
327
+ SENSITIVE: []
328
+ end
329
+
330
+ class CodeReviewJobTask
331
+ attr_accessor task_id: ::String
332
+ attr_accessor code_review_id: ::String
333
+ attr_accessor code_review_job_id: ::String
334
+ attr_accessor agent_space_id: ::String
335
+ attr_accessor title: ::String
336
+ attr_accessor description: ::String
337
+ attr_accessor categories: ::Array[Types::Category]
338
+ attr_accessor risk_type: ("CROSS_SITE_SCRIPTING" | "DEFAULT_CREDENTIALS" | "INSECURE_DIRECT_OBJECT_REFERENCE" | "PRIVILEGE_ESCALATION" | "SERVER_SIDE_TEMPLATE_INJECTION" | "COMMAND_INJECTION" | "CODE_INJECTION" | "SQL_INJECTION" | "ARBITRARY_FILE_UPLOAD" | "INSECURE_DESERIALIZATION" | "LOCAL_FILE_INCLUSION" | "INFORMATION_DISCLOSURE" | "PATH_TRAVERSAL" | "SERVER_SIDE_REQUEST_FORGERY" | "JSON_WEB_TOKEN_VULNERABILITIES" | "XML_EXTERNAL_ENTITY" | "FILE_DELETION" | "OTHER" | "GRAPHQL_VULNERABILITIES" | "BUSINESS_LOGIC_VULNERABILITIES" | "CRYPTOGRAPHIC_VULNERABILITIES" | "DENIAL_OF_SERVICE" | "FILE_ACCESS" | "FILE_CREATION" | "DATABASE_MODIFICATION" | "DATABASE_ACCESS" | "OUTBOUND_SERVICE_REQUEST" | "UNKNOWN")
339
+ attr_accessor execution_status: ("IN_PROGRESS" | "ABORTED" | "COMPLETED" | "INTERNAL_ERROR" | "FAILED")
340
+ attr_accessor logs_location: Types::LogLocation
341
+ attr_accessor created_at: ::Time
342
+ attr_accessor updated_at: ::Time
343
+ SENSITIVE: []
344
+ end
345
+
346
+ class CodeReviewJobTaskSummary
347
+ attr_accessor task_id: ::String
348
+ attr_accessor code_review_id: ::String
349
+ attr_accessor code_review_job_id: ::String
350
+ attr_accessor agent_space_id: ::String
351
+ attr_accessor title: ::String
352
+ attr_accessor risk_type: ("CROSS_SITE_SCRIPTING" | "DEFAULT_CREDENTIALS" | "INSECURE_DIRECT_OBJECT_REFERENCE" | "PRIVILEGE_ESCALATION" | "SERVER_SIDE_TEMPLATE_INJECTION" | "COMMAND_INJECTION" | "CODE_INJECTION" | "SQL_INJECTION" | "ARBITRARY_FILE_UPLOAD" | "INSECURE_DESERIALIZATION" | "LOCAL_FILE_INCLUSION" | "INFORMATION_DISCLOSURE" | "PATH_TRAVERSAL" | "SERVER_SIDE_REQUEST_FORGERY" | "JSON_WEB_TOKEN_VULNERABILITIES" | "XML_EXTERNAL_ENTITY" | "FILE_DELETION" | "OTHER" | "GRAPHQL_VULNERABILITIES" | "BUSINESS_LOGIC_VULNERABILITIES" | "CRYPTOGRAPHIC_VULNERABILITIES" | "DENIAL_OF_SERVICE" | "FILE_ACCESS" | "FILE_CREATION" | "DATABASE_MODIFICATION" | "DATABASE_ACCESS" | "OUTBOUND_SERVICE_REQUEST" | "UNKNOWN")
353
+ attr_accessor execution_status: ("IN_PROGRESS" | "ABORTED" | "COMPLETED" | "INTERNAL_ERROR" | "FAILED")
354
+ attr_accessor created_at: ::Time
355
+ attr_accessor updated_at: ::Time
356
+ SENSITIVE: []
357
+ end
358
+
231
359
  class CodeReviewSettings
232
360
  attr_accessor controls_scanning: bool
233
361
  attr_accessor general_purpose_scanning: bool
234
362
  SENSITIVE: []
235
363
  end
236
364
 
365
+ class CodeReviewSummary
366
+ attr_accessor code_review_id: ::String
367
+ attr_accessor agent_space_id: ::String
368
+ attr_accessor title: ::String
369
+ attr_accessor created_at: ::Time
370
+ attr_accessor updated_at: ::Time
371
+ SENSITIVE: []
372
+ end
373
+
237
374
  class ConflictException
238
375
  attr_accessor message: ::String
239
376
  SENSITIVE: []
@@ -276,6 +413,29 @@ module Aws::SecurityAgent
276
413
  SENSITIVE: []
277
414
  end
278
415
 
416
+ class CreateCodeReviewInput
417
+ attr_accessor title: ::String
418
+ attr_accessor agent_space_id: ::String
419
+ attr_accessor assets: Types::Assets
420
+ attr_accessor service_role: ::String
421
+ attr_accessor log_config: Types::CloudWatchLog
422
+ attr_accessor code_remediation_strategy: ("AUTOMATIC" | "DISABLED")
423
+ SENSITIVE: []
424
+ end
425
+
426
+ class CreateCodeReviewOutput
427
+ attr_accessor code_review_id: ::String
428
+ attr_accessor title: ::String
429
+ attr_accessor created_at: ::Time
430
+ attr_accessor updated_at: ::Time
431
+ attr_accessor assets: Types::Assets
432
+ attr_accessor service_role: ::String
433
+ attr_accessor log_config: Types::CloudWatchLog
434
+ attr_accessor agent_space_id: ::String
435
+ attr_accessor code_remediation_strategy: ("AUTOMATIC" | "DISABLED")
436
+ SENSITIVE: []
437
+ end
438
+
279
439
  class CreateIntegrationInput
280
440
  attr_accessor provider: ("GITHUB")
281
441
  attr_accessor input: Types::ProviderInput
@@ -376,6 +536,12 @@ module Aws::SecurityAgent
376
536
  class DeleteArtifactOutput < Aws::EmptyStructure
377
537
  end
378
538
 
539
+ class DeleteCodeReviewFailure
540
+ attr_accessor code_review_id: ::String
541
+ attr_accessor reason: ::String
542
+ SENSITIVE: []
543
+ end
544
+
379
545
  class DeleteIntegrationInput
380
546
  attr_accessor integration_id: ::String
381
547
  SENSITIVE: []
@@ -458,6 +624,8 @@ module Aws::SecurityAgent
458
624
  attr_accessor agent_space_id: ::String
459
625
  attr_accessor pentest_id: ::String
460
626
  attr_accessor pentest_job_id: ::String
627
+ attr_accessor code_review_id: ::String
628
+ attr_accessor code_review_job_id: ::String
461
629
  attr_accessor task_id: ::String
462
630
  attr_accessor name: ::String
463
631
  attr_accessor description: ::String
@@ -470,6 +638,7 @@ module Aws::SecurityAgent
470
638
  attr_accessor attack_script: ::String
471
639
  attr_accessor code_remediation_task: Types::CodeRemediationTask
472
640
  attr_accessor last_updated_by: ::String
641
+ attr_accessor code_locations: ::Array[Types::CodeLocation]
473
642
  attr_accessor created_at: ::Time
474
643
  attr_accessor updated_at: ::Time
475
644
  SENSITIVE: []
@@ -480,6 +649,8 @@ module Aws::SecurityAgent
480
649
  attr_accessor agent_space_id: ::String
481
650
  attr_accessor pentest_id: ::String
482
651
  attr_accessor pentest_job_id: ::String
652
+ attr_accessor code_review_id: ::String
653
+ attr_accessor code_review_job_id: ::String
483
654
  attr_accessor name: ::String
484
655
  attr_accessor status: ("ACTIVE" | "RESOLVED" | "ACCEPTED" | "FALSE_POSITIVE")
485
656
  attr_accessor risk_type: ::String
@@ -691,6 +862,49 @@ module Aws::SecurityAgent
691
862
  SENSITIVE: []
692
863
  end
693
864
 
865
+ class ListCodeReviewJobTasksInput
866
+ attr_accessor agent_space_id: ::String
867
+ attr_accessor max_results: ::Integer
868
+ attr_accessor code_review_job_id: ::String
869
+ attr_accessor step_name: ("PREFLIGHT" | "STATIC_ANALYSIS" | "PENTEST" | "FINALIZING")
870
+ attr_accessor category_name: ::String
871
+ attr_accessor next_token: ::String
872
+ SENSITIVE: []
873
+ end
874
+
875
+ class ListCodeReviewJobTasksOutput
876
+ attr_accessor code_review_job_task_summaries: ::Array[Types::CodeReviewJobTaskSummary]
877
+ attr_accessor next_token: ::String
878
+ SENSITIVE: []
879
+ end
880
+
881
+ class ListCodeReviewJobsForCodeReviewInput
882
+ attr_accessor max_results: ::Integer
883
+ attr_accessor code_review_id: ::String
884
+ attr_accessor agent_space_id: ::String
885
+ attr_accessor next_token: ::String
886
+ SENSITIVE: []
887
+ end
888
+
889
+ class ListCodeReviewJobsForCodeReviewOutput
890
+ attr_accessor code_review_job_summaries: ::Array[Types::CodeReviewJobSummary]
891
+ attr_accessor next_token: ::String
892
+ SENSITIVE: []
893
+ end
894
+
895
+ class ListCodeReviewsInput
896
+ attr_accessor max_results: ::Integer
897
+ attr_accessor next_token: ::String
898
+ attr_accessor agent_space_id: ::String
899
+ SENSITIVE: []
900
+ end
901
+
902
+ class ListCodeReviewsOutput
903
+ attr_accessor code_review_summaries: ::Array[Types::CodeReviewSummary]
904
+ attr_accessor next_token: ::String
905
+ SENSITIVE: []
906
+ end
907
+
694
908
  class ListDiscoveredEndpointsInput
695
909
  attr_accessor max_results: ::Integer
696
910
  attr_accessor pentest_job_id: ::String
@@ -709,6 +923,7 @@ module Aws::SecurityAgent
709
923
  class ListFindingsInput
710
924
  attr_accessor max_results: ::Integer
711
925
  attr_accessor pentest_job_id: ::String
926
+ attr_accessor code_review_job_id: ::String
712
927
  attr_accessor agent_space_id: ::String
713
928
  attr_accessor next_token: ::String
714
929
  attr_accessor risk_type: ::String
@@ -985,6 +1200,7 @@ module Aws::SecurityAgent
985
1200
  class StartCodeRemediationInput
986
1201
  attr_accessor agent_space_id: ::String
987
1202
  attr_accessor pentest_job_id: ::String
1203
+ attr_accessor code_review_job_id: ::String
988
1204
  attr_accessor finding_ids: ::Array[::String]
989
1205
  SENSITIVE: []
990
1206
  end
@@ -992,6 +1208,23 @@ module Aws::SecurityAgent
992
1208
  class StartCodeRemediationOutput < Aws::EmptyStructure
993
1209
  end
994
1210
 
1211
+ class StartCodeReviewJobInput
1212
+ attr_accessor agent_space_id: ::String
1213
+ attr_accessor code_review_id: ::String
1214
+ SENSITIVE: []
1215
+ end
1216
+
1217
+ class StartCodeReviewJobOutput
1218
+ attr_accessor title: ::String
1219
+ attr_accessor status: ("IN_PROGRESS" | "STOPPING" | "STOPPED" | "FAILED" | "COMPLETED")
1220
+ attr_accessor created_at: ::Time
1221
+ attr_accessor updated_at: ::Time
1222
+ attr_accessor code_review_id: ::String
1223
+ attr_accessor code_review_job_id: ::String
1224
+ attr_accessor agent_space_id: ::String
1225
+ SENSITIVE: []
1226
+ end
1227
+
995
1228
  class StartPentestJobInput
996
1229
  attr_accessor agent_space_id: ::String
997
1230
  attr_accessor pentest_id: ::String
@@ -1017,6 +1250,15 @@ module Aws::SecurityAgent
1017
1250
  SENSITIVE: []
1018
1251
  end
1019
1252
 
1253
+ class StopCodeReviewJobInput
1254
+ attr_accessor agent_space_id: ::String
1255
+ attr_accessor code_review_job_id: ::String
1256
+ SENSITIVE: []
1257
+ end
1258
+
1259
+ class StopCodeReviewJobOutput < Aws::EmptyStructure
1260
+ end
1261
+
1020
1262
  class StopPentestJobInput
1021
1263
  attr_accessor agent_space_id: ::String
1022
1264
  attr_accessor pentest_job_id: ::String
@@ -1133,6 +1375,30 @@ module Aws::SecurityAgent
1133
1375
  SENSITIVE: []
1134
1376
  end
1135
1377
 
1378
+ class UpdateCodeReviewInput
1379
+ attr_accessor code_review_id: ::String
1380
+ attr_accessor agent_space_id: ::String
1381
+ attr_accessor title: ::String
1382
+ attr_accessor assets: Types::Assets
1383
+ attr_accessor service_role: ::String
1384
+ attr_accessor log_config: Types::CloudWatchLog
1385
+ attr_accessor code_remediation_strategy: ("AUTOMATIC" | "DISABLED")
1386
+ SENSITIVE: []
1387
+ end
1388
+
1389
+ class UpdateCodeReviewOutput
1390
+ attr_accessor code_review_id: ::String
1391
+ attr_accessor title: ::String
1392
+ attr_accessor created_at: ::Time
1393
+ attr_accessor updated_at: ::Time
1394
+ attr_accessor assets: Types::Assets
1395
+ attr_accessor service_role: ::String
1396
+ attr_accessor log_config: Types::CloudWatchLog
1397
+ attr_accessor agent_space_id: ::String
1398
+ attr_accessor code_remediation_strategy: ("AUTOMATIC" | "DISABLED")
1399
+ SENSITIVE: []
1400
+ end
1401
+
1136
1402
  class UpdateFindingInput
1137
1403
  attr_accessor finding_id: ::String
1138
1404
  attr_accessor agent_space_id: ::String