aws-sdk-securityagent 1.0.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.0.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
@@ -360,6 +468,7 @@ module Aws
360
468
  def target_domain_id: () -> ::String
361
469
  def domain_name: () -> ::String
362
470
  def verification_status: () -> ("PENDING" | "VERIFIED" | "FAILED" | "UNREACHABLE")
471
+ def verification_status_reason: () -> ::String
363
472
  def verification_details: () -> Types::VerificationDetails
364
473
  def created_at: () -> ::Time
365
474
  def verified_at: () -> ::Time
@@ -367,7 +476,7 @@ module Aws
367
476
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#create_target_domain-instance_method
368
477
  def create_target_domain: (
369
478
  target_domain_name: ::String,
370
- verification_method: ("DNS_TXT" | "HTTP_ROUTE"),
479
+ verification_method: ("DNS_TXT" | "HTTP_ROUTE" | "PRIVATE_VPC"),
371
480
  ?tags: Hash[::String, ::String]
372
481
  ) -> _CreateTargetDomainResponseSuccess
373
482
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateTargetDomainResponseSuccess
@@ -522,6 +631,49 @@ module Aws
522
631
  ) -> _ListArtifactsResponseSuccess
523
632
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListArtifactsResponseSuccess
524
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
+
525
677
  interface _ListDiscoveredEndpointsResponseSuccess
526
678
  include ::Seahorse::Client::_ResponseSuccess[Types::ListDiscoveredEndpointsOutput]
527
679
  def discovered_endpoints: () -> ::Array[Types::DiscoveredEndpoint]
@@ -545,7 +697,8 @@ module Aws
545
697
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#list_findings-instance_method
546
698
  def list_findings: (
547
699
  ?max_results: ::Integer,
548
- pentest_job_id: ::String,
700
+ ?pentest_job_id: ::String,
701
+ ?code_review_job_id: ::String,
549
702
  agent_space_id: ::String,
550
703
  ?next_token: ::String,
551
704
  ?risk_type: ::String,
@@ -673,11 +826,29 @@ module Aws
673
826
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#start_code_remediation-instance_method
674
827
  def start_code_remediation: (
675
828
  agent_space_id: ::String,
676
- pentest_job_id: ::String,
829
+ ?pentest_job_id: ::String,
830
+ ?code_review_job_id: ::String,
677
831
  finding_ids: Array[::String]
678
832
  ) -> _StartCodeRemediationResponseSuccess
679
833
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartCodeRemediationResponseSuccess
680
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
+
681
852
  interface _StartPentestJobResponseSuccess
682
853
  include ::Seahorse::Client::_ResponseSuccess[Types::StartPentestJobOutput]
683
854
  def title: () -> ::String
@@ -695,6 +866,16 @@ module Aws
695
866
  ) -> _StartPentestJobResponseSuccess
696
867
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartPentestJobResponseSuccess
697
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
+
698
879
  interface _StopPentestJobResponseSuccess
699
880
  include ::Seahorse::Client::_ResponseSuccess[Types::StopPentestJobOutput]
700
881
  end
@@ -775,6 +956,67 @@ module Aws
775
956
  ) -> _UpdateApplicationResponseSuccess
776
957
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateApplicationResponseSuccess
777
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
+
778
1020
  interface _UpdateFindingResponseSuccess
779
1021
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateFindingOutput]
780
1022
  end
@@ -900,6 +1142,7 @@ module Aws
900
1142
  def target_domain_id: () -> ::String
901
1143
  def domain_name: () -> ::String
902
1144
  def verification_status: () -> ("PENDING" | "VERIFIED" | "FAILED" | "UNREACHABLE")
1145
+ def verification_status_reason: () -> ::String
903
1146
  def verification_details: () -> Types::VerificationDetails
904
1147
  def created_at: () -> ::Time
905
1148
  def verified_at: () -> ::Time
@@ -907,7 +1150,7 @@ module Aws
907
1150
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#update_target_domain-instance_method
908
1151
  def update_target_domain: (
909
1152
  target_domain_id: ::String,
910
- verification_method: ("DNS_TXT" | "HTTP_ROUTE")
1153
+ verification_method: ("DNS_TXT" | "HTTP_ROUTE" | "PRIVATE_VPC")
911
1154
  ) -> _UpdateTargetDomainResponseSuccess
912
1155
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateTargetDomainResponseSuccess
913
1156
 
@@ -919,6 +1162,7 @@ module Aws
919
1162
  def updated_at: () -> ::Time
920
1163
  def verified_at: () -> ::Time
921
1164
  def status: () -> ("PENDING" | "VERIFIED" | "FAILED" | "UNREACHABLE")
1165
+ def verification_status_reason: () -> ::String
922
1166
  end
923
1167
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityAgent/Client.html#verify_target_domain-instance_method
924
1168
  def verify_target_domain: (