aws-sdk-codegurusecurity 1.32.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-codegurusecurity/client.rb +154 -157
- data/lib/aws-sdk-codegurusecurity/client_api.rb +66 -66
- data/lib/aws-sdk-codegurusecurity/errors.rb +9 -9
- data/lib/aws-sdk-codegurusecurity/types.rb +297 -297
- data/lib/aws-sdk-codegurusecurity/waiters.rb +15 -0
- data/lib/aws-sdk-codegurusecurity.rb +2 -1
- data/sig/client.rbs +25 -25
- data/sig/errors.rbs +2 -2
- data/sig/types.rbs +53 -53
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b3ba5a9b0ec89ac7093b18e2468cde6e06e2b04cc551fec9bf1e79653ea3ea0
|
4
|
+
data.tar.gz: e5f058e752ce5faca679ab7c9d6ebf4b853e0bcc3660370438723e3137f79b27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c65932cca4dad60d01b9bb75d75223ee54a9b6914759c4dddbc0baeeb33aaa17fc8484e602a67436b912a7daa7b67c4d354d4a1dafd3082d221286d7541a06b1
|
7
|
+
data.tar.gz: c1346de4838011666ebfe35dd67e17c479dc4dd3544277730bc9590de285956d0a2210a284662cae9cc8265a193cec12b494cab44f3ec8873b17bf06c0e1c85b
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.34.0 (2025-08-25)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Documentation update to notify users of the discontinuation of Amazon CodeGuru Security.
|
8
|
+
|
9
|
+
1.33.0 (2025-08-04)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.32.0 (2025-07-31)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.34.0
|
@@ -95,8 +95,8 @@ module Aws::CodeGuruSecurity
|
|
95
95
|
# class name or an instance of a plugin class.
|
96
96
|
#
|
97
97
|
# @option options [required, Aws::CredentialProvider] :credentials
|
98
|
-
# Your AWS credentials used for authentication. This can be
|
99
|
-
# following classes:
|
98
|
+
# Your AWS credentials used for authentication. This can be any class that includes and implements
|
99
|
+
# `Aws::CredentialProvider`, or instance of any one of the following classes:
|
100
100
|
#
|
101
101
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
102
102
|
# credentials.
|
@@ -124,8 +124,7 @@ module Aws::CodeGuruSecurity
|
|
124
124
|
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
125
125
|
# from the Cognito Identity service.
|
126
126
|
#
|
127
|
-
# When `:credentials` are not configured directly, the following
|
128
|
-
# locations will be searched for credentials:
|
127
|
+
# When `:credentials` are not configured directly, the following locations will be searched for credentials:
|
129
128
|
#
|
130
129
|
# * `Aws.config[:credentials]`
|
131
130
|
#
|
@@ -139,12 +138,10 @@ module Aws::CodeGuruSecurity
|
|
139
138
|
#
|
140
139
|
# * `~/.aws/config`
|
141
140
|
#
|
142
|
-
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
143
|
-
#
|
144
|
-
#
|
145
|
-
#
|
146
|
-
# fetching can be disabled by setting `ENV['AWS_EC2_METADATA_DISABLED']`
|
147
|
-
# to `true`.
|
141
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive.
|
142
|
+
# Construct and pass an instance of `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
143
|
+
# enable retries and extended timeouts. Instance profile credential fetching can be disabled by
|
144
|
+
# setting `ENV['AWS_EC2_METADATA_DISABLED']` to `true`.
|
148
145
|
#
|
149
146
|
# @option options [required, String] :region
|
150
147
|
# The AWS region to connect to. The configured `:region` is
|
@@ -377,8 +374,8 @@ module Aws::CodeGuruSecurity
|
|
377
374
|
# `Aws::Telemetry::OTelProvider` for telemetry provider.
|
378
375
|
#
|
379
376
|
# @option options [Aws::TokenProvider] :token_provider
|
380
|
-
# Your Bearer token used for authentication. This can be
|
381
|
-
# following classes:
|
377
|
+
# Your Bearer token used for authentication. This can be any class that includes and implements
|
378
|
+
# `Aws::TokenProvider`, or instance of any one of the following classes:
|
382
379
|
#
|
383
380
|
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
384
381
|
# tokens.
|
@@ -488,62 +485,62 @@ module Aws::CodeGuruSecurity
|
|
488
485
|
#
|
489
486
|
# @return [Types::BatchGetFindingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
490
487
|
#
|
491
|
-
# * {Types::BatchGetFindingsResponse#failed_findings #failed_findings} => Array<Types::BatchGetFindingsError>
|
492
488
|
# * {Types::BatchGetFindingsResponse#findings #findings} => Array<Types::Finding>
|
489
|
+
# * {Types::BatchGetFindingsResponse#failed_findings #failed_findings} => Array<Types::BatchGetFindingsError>
|
493
490
|
#
|
494
491
|
# @example Request syntax with placeholder values
|
495
492
|
#
|
496
493
|
# resp = client.batch_get_findings({
|
497
494
|
# finding_identifiers: [ # required
|
498
495
|
# {
|
499
|
-
# finding_id: "String", # required
|
500
496
|
# scan_name: "String", # required
|
497
|
+
# finding_id: "String", # required
|
501
498
|
# },
|
502
499
|
# ],
|
503
500
|
# })
|
504
501
|
#
|
505
502
|
# @example Response structure
|
506
503
|
#
|
507
|
-
# resp.failed_findings #=> Array
|
508
|
-
# resp.failed_findings[0].error_code #=> String, one of "DUPLICATE_IDENTIFIER", "ITEM_DOES_NOT_EXIST", "INTERNAL_ERROR", "INVALID_FINDING_ID", "INVALID_SCAN_NAME"
|
509
|
-
# resp.failed_findings[0].finding_id #=> String
|
510
|
-
# resp.failed_findings[0].message #=> String
|
511
|
-
# resp.failed_findings[0].scan_name #=> String
|
512
504
|
# resp.findings #=> Array
|
513
505
|
# resp.findings[0].created_at #=> Time
|
514
506
|
# resp.findings[0].description #=> String
|
515
|
-
# resp.findings[0].detector_id #=> String
|
516
|
-
# resp.findings[0].detector_name #=> String
|
517
|
-
# resp.findings[0].detector_tags #=> Array
|
518
|
-
# resp.findings[0].detector_tags[0] #=> String
|
519
507
|
# resp.findings[0].generator_id #=> String
|
520
508
|
# resp.findings[0].id #=> String
|
521
|
-
# resp.findings[0].
|
522
|
-
# resp.findings[0].
|
523
|
-
# resp.findings[0].
|
524
|
-
# resp.findings[0].remediation.suggested_fixes[0].code #=> String
|
525
|
-
# resp.findings[0].remediation.suggested_fixes[0].description #=> String
|
509
|
+
# resp.findings[0].updated_at #=> Time
|
510
|
+
# resp.findings[0].type #=> String
|
511
|
+
# resp.findings[0].status #=> String, one of "Closed", "Open", "All"
|
526
512
|
# resp.findings[0].resource.id #=> String
|
527
513
|
# resp.findings[0].resource.sub_resource_id #=> String
|
528
|
-
# resp.findings[0].rule_id #=> String
|
529
|
-
# resp.findings[0].severity #=> String, one of "Critical", "High", "Medium", "Low", "Info"
|
530
|
-
# resp.findings[0].status #=> String, one of "Closed", "Open", "All"
|
531
|
-
# resp.findings[0].title #=> String
|
532
|
-
# resp.findings[0].type #=> String
|
533
|
-
# resp.findings[0].updated_at #=> Time
|
534
|
-
# resp.findings[0].vulnerability.file_path.code_snippet #=> Array
|
535
|
-
# resp.findings[0].vulnerability.file_path.code_snippet[0].content #=> String
|
536
|
-
# resp.findings[0].vulnerability.file_path.code_snippet[0].number #=> Integer
|
537
|
-
# resp.findings[0].vulnerability.file_path.end_line #=> Integer
|
538
|
-
# resp.findings[0].vulnerability.file_path.name #=> String
|
539
|
-
# resp.findings[0].vulnerability.file_path.path #=> String
|
540
|
-
# resp.findings[0].vulnerability.file_path.start_line #=> Integer
|
541
|
-
# resp.findings[0].vulnerability.id #=> String
|
542
|
-
# resp.findings[0].vulnerability.item_count #=> Integer
|
543
514
|
# resp.findings[0].vulnerability.reference_urls #=> Array
|
544
515
|
# resp.findings[0].vulnerability.reference_urls[0] #=> String
|
545
516
|
# resp.findings[0].vulnerability.related_vulnerabilities #=> Array
|
546
517
|
# resp.findings[0].vulnerability.related_vulnerabilities[0] #=> String
|
518
|
+
# resp.findings[0].vulnerability.id #=> String
|
519
|
+
# resp.findings[0].vulnerability.file_path.name #=> String
|
520
|
+
# resp.findings[0].vulnerability.file_path.path #=> String
|
521
|
+
# resp.findings[0].vulnerability.file_path.start_line #=> Integer
|
522
|
+
# resp.findings[0].vulnerability.file_path.end_line #=> Integer
|
523
|
+
# resp.findings[0].vulnerability.file_path.code_snippet #=> Array
|
524
|
+
# resp.findings[0].vulnerability.file_path.code_snippet[0].number #=> Integer
|
525
|
+
# resp.findings[0].vulnerability.file_path.code_snippet[0].content #=> String
|
526
|
+
# resp.findings[0].vulnerability.item_count #=> Integer
|
527
|
+
# resp.findings[0].severity #=> String, one of "Critical", "High", "Medium", "Low", "Info"
|
528
|
+
# resp.findings[0].remediation.recommendation.text #=> String
|
529
|
+
# resp.findings[0].remediation.recommendation.url #=> String
|
530
|
+
# resp.findings[0].remediation.suggested_fixes #=> Array
|
531
|
+
# resp.findings[0].remediation.suggested_fixes[0].description #=> String
|
532
|
+
# resp.findings[0].remediation.suggested_fixes[0].code #=> String
|
533
|
+
# resp.findings[0].title #=> String
|
534
|
+
# resp.findings[0].detector_tags #=> Array
|
535
|
+
# resp.findings[0].detector_tags[0] #=> String
|
536
|
+
# resp.findings[0].detector_id #=> String
|
537
|
+
# resp.findings[0].detector_name #=> String
|
538
|
+
# resp.findings[0].rule_id #=> String
|
539
|
+
# resp.failed_findings #=> Array
|
540
|
+
# resp.failed_findings[0].scan_name #=> String
|
541
|
+
# resp.failed_findings[0].finding_id #=> String
|
542
|
+
# resp.failed_findings[0].error_code #=> String, one of "DUPLICATE_IDENTIFIER", "ITEM_DOES_NOT_EXIST", "INTERNAL_ERROR", "INVALID_FINDING_ID", "INVALID_SCAN_NAME"
|
543
|
+
# resp.failed_findings[0].message #=> String
|
547
544
|
#
|
548
545
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-security-2018-05-10/BatchGetFindings AWS API Documentation
|
549
546
|
#
|
@@ -556,12 +553,6 @@ module Aws::CodeGuruSecurity
|
|
556
553
|
|
557
554
|
# Use to create a scan using code uploaded to an Amazon S3 bucket.
|
558
555
|
#
|
559
|
-
# @option params [String] :analysis_type
|
560
|
-
# The type of analysis you want CodeGuru Security to perform in the
|
561
|
-
# scan, either `Security` or `All`. The `Security` type only generates
|
562
|
-
# findings related to security. The `All` type generates both security
|
563
|
-
# findings and quality findings. Defaults to `Security` type if missing.
|
564
|
-
#
|
565
556
|
# @option params [String] :client_token
|
566
557
|
# The idempotency token for the request. Amazon CodeGuru Security uses
|
567
558
|
# this value to prevent the accidental creation of duplicate scans if
|
@@ -587,6 +578,12 @@ module Aws::CodeGuruSecurity
|
|
587
578
|
# have standard resource limits and use the full set of detectors to
|
588
579
|
# analyze your code.
|
589
580
|
#
|
581
|
+
# @option params [String] :analysis_type
|
582
|
+
# The type of analysis you want CodeGuru Security to perform in the
|
583
|
+
# scan, either `Security` or `All`. The `Security` type only generates
|
584
|
+
# findings related to security. The `All` type generates both security
|
585
|
+
# findings and quality findings. Defaults to `Security` type if missing.
|
586
|
+
#
|
590
587
|
# @option params [Hash<String,String>] :tags
|
591
588
|
# An array of key-value pairs used to tag a scan. A tag is a custom
|
592
589
|
# attribute label with two parts:
|
@@ -600,22 +597,22 @@ module Aws::CodeGuruSecurity
|
|
600
597
|
#
|
601
598
|
# @return [Types::CreateScanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
602
599
|
#
|
603
|
-
# * {Types::CreateScanResponse#resource_id #resource_id} => Types::ResourceId
|
604
|
-
# * {Types::CreateScanResponse#run_id #run_id} => String
|
605
600
|
# * {Types::CreateScanResponse#scan_name #scan_name} => String
|
606
|
-
# * {Types::CreateScanResponse#
|
601
|
+
# * {Types::CreateScanResponse#run_id #run_id} => String
|
602
|
+
# * {Types::CreateScanResponse#resource_id #resource_id} => Types::ResourceId
|
607
603
|
# * {Types::CreateScanResponse#scan_state #scan_state} => String
|
604
|
+
# * {Types::CreateScanResponse#scan_name_arn #scan_name_arn} => String
|
608
605
|
#
|
609
606
|
# @example Request syntax with placeholder values
|
610
607
|
#
|
611
608
|
# resp = client.create_scan({
|
612
|
-
# analysis_type: "Security", # accepts Security, All
|
613
609
|
# client_token: "ClientToken",
|
614
610
|
# resource_id: { # required
|
615
611
|
# code_artifact_id: "Uuid",
|
616
612
|
# },
|
617
613
|
# scan_name: "ScanName", # required
|
618
614
|
# scan_type: "Standard", # accepts Standard, Express
|
615
|
+
# analysis_type: "Security", # accepts Security, All
|
619
616
|
# tags: {
|
620
617
|
# "TagKey" => "TagValue",
|
621
618
|
# },
|
@@ -623,11 +620,11 @@ module Aws::CodeGuruSecurity
|
|
623
620
|
#
|
624
621
|
# @example Response structure
|
625
622
|
#
|
626
|
-
# resp.resource_id.code_artifact_id #=> String
|
627
|
-
# resp.run_id #=> String
|
628
623
|
# resp.scan_name #=> String
|
629
|
-
# resp.
|
624
|
+
# resp.run_id #=> String
|
625
|
+
# resp.resource_id.code_artifact_id #=> String
|
630
626
|
# resp.scan_state #=> String, one of "InProgress", "Successful", "Failed"
|
627
|
+
# resp.scan_name_arn #=> String
|
631
628
|
#
|
632
629
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-security-2018-05-10/CreateScan AWS API Documentation
|
633
630
|
#
|
@@ -652,9 +649,9 @@ module Aws::CodeGuruSecurity
|
|
652
649
|
#
|
653
650
|
# @return [Types::CreateUploadUrlResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
654
651
|
#
|
655
|
-
# * {Types::CreateUploadUrlResponse#code_artifact_id #code_artifact_id} => String
|
656
|
-
# * {Types::CreateUploadUrlResponse#request_headers #request_headers} => Hash<String,String>
|
657
652
|
# * {Types::CreateUploadUrlResponse#s3_url #s3_url} => String
|
653
|
+
# * {Types::CreateUploadUrlResponse#request_headers #request_headers} => Hash<String,String>
|
654
|
+
# * {Types::CreateUploadUrlResponse#code_artifact_id #code_artifact_id} => String
|
658
655
|
#
|
659
656
|
# @example Request syntax with placeholder values
|
660
657
|
#
|
@@ -664,10 +661,10 @@ module Aws::CodeGuruSecurity
|
|
664
661
|
#
|
665
662
|
# @example Response structure
|
666
663
|
#
|
667
|
-
# resp.
|
664
|
+
# resp.s3_url #=> String
|
668
665
|
# resp.request_headers #=> Hash
|
669
666
|
# resp.request_headers["HeaderKey"] #=> String
|
670
|
-
# resp.
|
667
|
+
# resp.code_artifact_id #=> String
|
671
668
|
#
|
672
669
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-security-2018-05-10/CreateUploadUrl AWS API Documentation
|
673
670
|
#
|
@@ -699,12 +696,8 @@ module Aws::CodeGuruSecurity
|
|
699
696
|
|
700
697
|
# Returns a list of all findings generated by a particular scan.
|
701
698
|
#
|
702
|
-
# @option params [
|
703
|
-
# The
|
704
|
-
# parameter when paginating results. If additional results exist beyond
|
705
|
-
# the number you specify, the `nextToken` element is returned in the
|
706
|
-
# response. Use `nextToken` in a subsequent request to retrieve
|
707
|
-
# additional results. If not specified, returns 1000 results.
|
699
|
+
# @option params [required, String] :scan_name
|
700
|
+
# The name of the scan you want to retrieve findings from.
|
708
701
|
#
|
709
702
|
# @option params [String] :next_token
|
710
703
|
# A token to use for paginating results that are returned in the
|
@@ -712,8 +705,12 @@ module Aws::CodeGuruSecurity
|
|
712
705
|
# request. For subsequent calls, use the `nextToken` value returned from
|
713
706
|
# the previous request to continue listing results after the first page.
|
714
707
|
#
|
715
|
-
# @option params [
|
716
|
-
# The
|
708
|
+
# @option params [Integer] :max_results
|
709
|
+
# The maximum number of results to return in the response. Use this
|
710
|
+
# parameter when paginating results. If additional results exist beyond
|
711
|
+
# the number you specify, the `nextToken` element is returned in the
|
712
|
+
# response. Use `nextToken` in a subsequent request to retrieve
|
713
|
+
# additional results. If not specified, returns 1000 results.
|
717
714
|
#
|
718
715
|
# @option params [String] :status
|
719
716
|
# The status of the findings you want to get. Pass either `Open`,
|
@@ -729,9 +726,9 @@ module Aws::CodeGuruSecurity
|
|
729
726
|
# @example Request syntax with placeholder values
|
730
727
|
#
|
731
728
|
# resp = client.get_findings({
|
732
|
-
# max_results: 1,
|
733
|
-
# next_token: "NextToken",
|
734
729
|
# scan_name: "ScanName", # required
|
730
|
+
# next_token: "NextToken",
|
731
|
+
# max_results: 1,
|
735
732
|
# status: "Closed", # accepts Closed, Open, All
|
736
733
|
# })
|
737
734
|
#
|
@@ -740,38 +737,38 @@ module Aws::CodeGuruSecurity
|
|
740
737
|
# resp.findings #=> Array
|
741
738
|
# resp.findings[0].created_at #=> Time
|
742
739
|
# resp.findings[0].description #=> String
|
743
|
-
# resp.findings[0].detector_id #=> String
|
744
|
-
# resp.findings[0].detector_name #=> String
|
745
|
-
# resp.findings[0].detector_tags #=> Array
|
746
|
-
# resp.findings[0].detector_tags[0] #=> String
|
747
740
|
# resp.findings[0].generator_id #=> String
|
748
741
|
# resp.findings[0].id #=> String
|
749
|
-
# resp.findings[0].
|
750
|
-
# resp.findings[0].
|
751
|
-
# resp.findings[0].
|
752
|
-
# resp.findings[0].remediation.suggested_fixes[0].code #=> String
|
753
|
-
# resp.findings[0].remediation.suggested_fixes[0].description #=> String
|
742
|
+
# resp.findings[0].updated_at #=> Time
|
743
|
+
# resp.findings[0].type #=> String
|
744
|
+
# resp.findings[0].status #=> String, one of "Closed", "Open", "All"
|
754
745
|
# resp.findings[0].resource.id #=> String
|
755
746
|
# resp.findings[0].resource.sub_resource_id #=> String
|
756
|
-
# resp.findings[0].rule_id #=> String
|
757
|
-
# resp.findings[0].severity #=> String, one of "Critical", "High", "Medium", "Low", "Info"
|
758
|
-
# resp.findings[0].status #=> String, one of "Closed", "Open", "All"
|
759
|
-
# resp.findings[0].title #=> String
|
760
|
-
# resp.findings[0].type #=> String
|
761
|
-
# resp.findings[0].updated_at #=> Time
|
762
|
-
# resp.findings[0].vulnerability.file_path.code_snippet #=> Array
|
763
|
-
# resp.findings[0].vulnerability.file_path.code_snippet[0].content #=> String
|
764
|
-
# resp.findings[0].vulnerability.file_path.code_snippet[0].number #=> Integer
|
765
|
-
# resp.findings[0].vulnerability.file_path.end_line #=> Integer
|
766
|
-
# resp.findings[0].vulnerability.file_path.name #=> String
|
767
|
-
# resp.findings[0].vulnerability.file_path.path #=> String
|
768
|
-
# resp.findings[0].vulnerability.file_path.start_line #=> Integer
|
769
|
-
# resp.findings[0].vulnerability.id #=> String
|
770
|
-
# resp.findings[0].vulnerability.item_count #=> Integer
|
771
747
|
# resp.findings[0].vulnerability.reference_urls #=> Array
|
772
748
|
# resp.findings[0].vulnerability.reference_urls[0] #=> String
|
773
749
|
# resp.findings[0].vulnerability.related_vulnerabilities #=> Array
|
774
750
|
# resp.findings[0].vulnerability.related_vulnerabilities[0] #=> String
|
751
|
+
# resp.findings[0].vulnerability.id #=> String
|
752
|
+
# resp.findings[0].vulnerability.file_path.name #=> String
|
753
|
+
# resp.findings[0].vulnerability.file_path.path #=> String
|
754
|
+
# resp.findings[0].vulnerability.file_path.start_line #=> Integer
|
755
|
+
# resp.findings[0].vulnerability.file_path.end_line #=> Integer
|
756
|
+
# resp.findings[0].vulnerability.file_path.code_snippet #=> Array
|
757
|
+
# resp.findings[0].vulnerability.file_path.code_snippet[0].number #=> Integer
|
758
|
+
# resp.findings[0].vulnerability.file_path.code_snippet[0].content #=> String
|
759
|
+
# resp.findings[0].vulnerability.item_count #=> Integer
|
760
|
+
# resp.findings[0].severity #=> String, one of "Critical", "High", "Medium", "Low", "Info"
|
761
|
+
# resp.findings[0].remediation.recommendation.text #=> String
|
762
|
+
# resp.findings[0].remediation.recommendation.url #=> String
|
763
|
+
# resp.findings[0].remediation.suggested_fixes #=> Array
|
764
|
+
# resp.findings[0].remediation.suggested_fixes[0].description #=> String
|
765
|
+
# resp.findings[0].remediation.suggested_fixes[0].code #=> String
|
766
|
+
# resp.findings[0].title #=> String
|
767
|
+
# resp.findings[0].detector_tags #=> Array
|
768
|
+
# resp.findings[0].detector_tags[0] #=> String
|
769
|
+
# resp.findings[0].detector_id #=> String
|
770
|
+
# resp.findings[0].detector_name #=> String
|
771
|
+
# resp.findings[0].rule_id #=> String
|
775
772
|
# resp.next_token #=> String
|
776
773
|
#
|
777
774
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-security-2018-05-10/GetFindings AWS API Documentation
|
@@ -804,21 +801,21 @@ module Aws::CodeGuruSecurity
|
|
804
801
|
#
|
805
802
|
# @example Response structure
|
806
803
|
#
|
807
|
-
# resp.metrics_summary.categories_with_most_findings #=> Array
|
808
|
-
# resp.metrics_summary.categories_with_most_findings[0].category_name #=> String
|
809
|
-
# resp.metrics_summary.categories_with_most_findings[0].finding_number #=> Integer
|
810
804
|
# resp.metrics_summary.date #=> Time
|
811
|
-
# resp.metrics_summary.open_findings.critical #=> Float
|
812
|
-
# resp.metrics_summary.open_findings.high #=> Float
|
813
805
|
# resp.metrics_summary.open_findings.info #=> Float
|
814
806
|
# resp.metrics_summary.open_findings.low #=> Float
|
815
807
|
# resp.metrics_summary.open_findings.medium #=> Float
|
816
|
-
# resp.metrics_summary.
|
817
|
-
# resp.metrics_summary.
|
818
|
-
# resp.metrics_summary.
|
808
|
+
# resp.metrics_summary.open_findings.high #=> Float
|
809
|
+
# resp.metrics_summary.open_findings.critical #=> Float
|
810
|
+
# resp.metrics_summary.categories_with_most_findings #=> Array
|
811
|
+
# resp.metrics_summary.categories_with_most_findings[0].category_name #=> String
|
812
|
+
# resp.metrics_summary.categories_with_most_findings[0].finding_number #=> Integer
|
819
813
|
# resp.metrics_summary.scans_with_most_open_findings #=> Array
|
820
|
-
# resp.metrics_summary.scans_with_most_open_findings[0].finding_number #=> Integer
|
821
814
|
# resp.metrics_summary.scans_with_most_open_findings[0].scan_name #=> String
|
815
|
+
# resp.metrics_summary.scans_with_most_open_findings[0].finding_number #=> Integer
|
816
|
+
# resp.metrics_summary.scans_with_most_open_critical_findings #=> Array
|
817
|
+
# resp.metrics_summary.scans_with_most_open_critical_findings[0].scan_name #=> String
|
818
|
+
# resp.metrics_summary.scans_with_most_open_critical_findings[0].finding_number #=> Integer
|
822
819
|
#
|
823
820
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-security-2018-05-10/GetMetricsSummary AWS API Documentation
|
824
821
|
#
|
@@ -832,44 +829,44 @@ module Aws::CodeGuruSecurity
|
|
832
829
|
# Returns details about a scan, including whether or not a scan has
|
833
830
|
# completed.
|
834
831
|
#
|
832
|
+
# @option params [required, String] :scan_name
|
833
|
+
# The name of the scan you want to view details about.
|
834
|
+
#
|
835
835
|
# @option params [String] :run_id
|
836
836
|
# UUID that identifies the individual scan run you want to view details
|
837
837
|
# about. You retrieve this when you call the `CreateScan` operation.
|
838
838
|
# Defaults to the latest scan run if missing.
|
839
839
|
#
|
840
|
-
# @option params [required, String] :scan_name
|
841
|
-
# The name of the scan you want to view details about.
|
842
|
-
#
|
843
840
|
# @return [Types::GetScanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
844
841
|
#
|
845
|
-
# * {Types::GetScanResponse#analysis_type #analysis_type} => String
|
846
|
-
# * {Types::GetScanResponse#created_at #created_at} => Time
|
847
|
-
# * {Types::GetScanResponse#error_message #error_message} => String
|
848
|
-
# * {Types::GetScanResponse#number_of_revisions #number_of_revisions} => Integer
|
849
|
-
# * {Types::GetScanResponse#run_id #run_id} => String
|
850
842
|
# * {Types::GetScanResponse#scan_name #scan_name} => String
|
851
|
-
# * {Types::GetScanResponse#
|
843
|
+
# * {Types::GetScanResponse#run_id #run_id} => String
|
852
844
|
# * {Types::GetScanResponse#scan_state #scan_state} => String
|
845
|
+
# * {Types::GetScanResponse#created_at #created_at} => Time
|
846
|
+
# * {Types::GetScanResponse#analysis_type #analysis_type} => String
|
853
847
|
# * {Types::GetScanResponse#updated_at #updated_at} => Time
|
848
|
+
# * {Types::GetScanResponse#number_of_revisions #number_of_revisions} => Integer
|
849
|
+
# * {Types::GetScanResponse#scan_name_arn #scan_name_arn} => String
|
850
|
+
# * {Types::GetScanResponse#error_message #error_message} => String
|
854
851
|
#
|
855
852
|
# @example Request syntax with placeholder values
|
856
853
|
#
|
857
854
|
# resp = client.get_scan({
|
858
|
-
# run_id: "Uuid",
|
859
855
|
# scan_name: "ScanName", # required
|
856
|
+
# run_id: "Uuid",
|
860
857
|
# })
|
861
858
|
#
|
862
859
|
# @example Response structure
|
863
860
|
#
|
864
|
-
# resp.analysis_type #=> String, one of "Security", "All"
|
865
|
-
# resp.created_at #=> Time
|
866
|
-
# resp.error_message #=> String
|
867
|
-
# resp.number_of_revisions #=> Integer
|
868
|
-
# resp.run_id #=> String
|
869
861
|
# resp.scan_name #=> String
|
870
|
-
# resp.
|
862
|
+
# resp.run_id #=> String
|
871
863
|
# resp.scan_state #=> String, one of "InProgress", "Successful", "Failed"
|
864
|
+
# resp.created_at #=> Time
|
865
|
+
# resp.analysis_type #=> String, one of "Security", "All"
|
872
866
|
# resp.updated_at #=> Time
|
867
|
+
# resp.number_of_revisions #=> Integer
|
868
|
+
# resp.scan_name_arn #=> String
|
869
|
+
# resp.error_message #=> String
|
873
870
|
#
|
874
871
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-security-2018-05-10/GetScan AWS API Documentation
|
875
872
|
#
|
@@ -883,9 +880,11 @@ module Aws::CodeGuruSecurity
|
|
883
880
|
# Returns metrics about all findings in an account within a specified
|
884
881
|
# time range.
|
885
882
|
#
|
886
|
-
# @option params [
|
887
|
-
#
|
888
|
-
#
|
883
|
+
# @option params [String] :next_token
|
884
|
+
# A token to use for paginating results that are returned in the
|
885
|
+
# response. Set the value of this parameter to null for the first
|
886
|
+
# request. For subsequent calls, use the `nextToken` value returned from
|
887
|
+
# the previous request to continue listing results after the first page.
|
889
888
|
#
|
890
889
|
# @option params [Integer] :max_results
|
891
890
|
# The maximum number of results to return in the response. Use this
|
@@ -894,16 +893,14 @@ module Aws::CodeGuruSecurity
|
|
894
893
|
# response. Use `nextToken` in a subsequent request to retrieve
|
895
894
|
# additional results. If not specified, returns 1000 results.
|
896
895
|
#
|
897
|
-
# @option params [String] :next_token
|
898
|
-
# A token to use for paginating results that are returned in the
|
899
|
-
# response. Set the value of this parameter to null for the first
|
900
|
-
# request. For subsequent calls, use the `nextToken` value returned from
|
901
|
-
# the previous request to continue listing results after the first page.
|
902
|
-
#
|
903
896
|
# @option params [required, Time,DateTime,Date,Integer,String] :start_date
|
904
897
|
# The start date of the interval which you want to retrieve metrics
|
905
898
|
# from. Rounds to the nearest day.
|
906
899
|
#
|
900
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :end_date
|
901
|
+
# The end date of the interval which you want to retrieve metrics from.
|
902
|
+
# Round to the nearest day.
|
903
|
+
#
|
907
904
|
# @return [Types::ListFindingsMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
908
905
|
#
|
909
906
|
# * {Types::ListFindingsMetricsResponse#findings_metrics #findings_metrics} => Array<Types::AccountFindingsMetric>
|
@@ -914,36 +911,36 @@ module Aws::CodeGuruSecurity
|
|
914
911
|
# @example Request syntax with placeholder values
|
915
912
|
#
|
916
913
|
# resp = client.list_findings_metrics({
|
917
|
-
# end_date: Time.now, # required
|
918
|
-
# max_results: 1,
|
919
914
|
# next_token: "NextToken",
|
915
|
+
# max_results: 1,
|
920
916
|
# start_date: Time.now, # required
|
917
|
+
# end_date: Time.now, # required
|
921
918
|
# })
|
922
919
|
#
|
923
920
|
# @example Response structure
|
924
921
|
#
|
925
922
|
# resp.findings_metrics #=> Array
|
926
|
-
# resp.findings_metrics[0].closed_findings.critical #=> Float
|
927
|
-
# resp.findings_metrics[0].closed_findings.high #=> Float
|
928
|
-
# resp.findings_metrics[0].closed_findings.info #=> Float
|
929
|
-
# resp.findings_metrics[0].closed_findings.low #=> Float
|
930
|
-
# resp.findings_metrics[0].closed_findings.medium #=> Float
|
931
923
|
# resp.findings_metrics[0].date #=> Time
|
932
|
-
# resp.findings_metrics[0].mean_time_to_close.critical #=> Float
|
933
|
-
# resp.findings_metrics[0].mean_time_to_close.high #=> Float
|
934
|
-
# resp.findings_metrics[0].mean_time_to_close.info #=> Float
|
935
|
-
# resp.findings_metrics[0].mean_time_to_close.low #=> Float
|
936
|
-
# resp.findings_metrics[0].mean_time_to_close.medium #=> Float
|
937
|
-
# resp.findings_metrics[0].new_findings.critical #=> Float
|
938
|
-
# resp.findings_metrics[0].new_findings.high #=> Float
|
939
924
|
# resp.findings_metrics[0].new_findings.info #=> Float
|
940
925
|
# resp.findings_metrics[0].new_findings.low #=> Float
|
941
926
|
# resp.findings_metrics[0].new_findings.medium #=> Float
|
942
|
-
# resp.findings_metrics[0].
|
943
|
-
# resp.findings_metrics[0].
|
927
|
+
# resp.findings_metrics[0].new_findings.high #=> Float
|
928
|
+
# resp.findings_metrics[0].new_findings.critical #=> Float
|
929
|
+
# resp.findings_metrics[0].closed_findings.info #=> Float
|
930
|
+
# resp.findings_metrics[0].closed_findings.low #=> Float
|
931
|
+
# resp.findings_metrics[0].closed_findings.medium #=> Float
|
932
|
+
# resp.findings_metrics[0].closed_findings.high #=> Float
|
933
|
+
# resp.findings_metrics[0].closed_findings.critical #=> Float
|
944
934
|
# resp.findings_metrics[0].open_findings.info #=> Float
|
945
935
|
# resp.findings_metrics[0].open_findings.low #=> Float
|
946
936
|
# resp.findings_metrics[0].open_findings.medium #=> Float
|
937
|
+
# resp.findings_metrics[0].open_findings.high #=> Float
|
938
|
+
# resp.findings_metrics[0].open_findings.critical #=> Float
|
939
|
+
# resp.findings_metrics[0].mean_time_to_close.info #=> Float
|
940
|
+
# resp.findings_metrics[0].mean_time_to_close.low #=> Float
|
941
|
+
# resp.findings_metrics[0].mean_time_to_close.medium #=> Float
|
942
|
+
# resp.findings_metrics[0].mean_time_to_close.high #=> Float
|
943
|
+
# resp.findings_metrics[0].mean_time_to_close.critical #=> Float
|
947
944
|
# resp.next_token #=> String
|
948
945
|
#
|
949
946
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-security-2018-05-10/ListFindingsMetrics AWS API Documentation
|
@@ -958,6 +955,12 @@ module Aws::CodeGuruSecurity
|
|
958
955
|
# Returns a list of all scans in an account. Does not return `EXPRESS`
|
959
956
|
# scans.
|
960
957
|
#
|
958
|
+
# @option params [String] :next_token
|
959
|
+
# A token to use for paginating results that are returned in the
|
960
|
+
# response. Set the value of this parameter to null for the first
|
961
|
+
# request. For subsequent calls, use the `nextToken` value returned from
|
962
|
+
# the previous request to continue listing results after the first page.
|
963
|
+
#
|
961
964
|
# @option params [Integer] :max_results
|
962
965
|
# The maximum number of results to return in the response. Use this
|
963
966
|
# parameter when paginating results. If additional results exist beyond
|
@@ -965,36 +968,30 @@ module Aws::CodeGuruSecurity
|
|
965
968
|
# response. Use `nextToken` in a subsequent request to retrieve
|
966
969
|
# additional results. If not specified, returns 100 results.
|
967
970
|
#
|
968
|
-
# @option params [String] :next_token
|
969
|
-
# A token to use for paginating results that are returned in the
|
970
|
-
# response. Set the value of this parameter to null for the first
|
971
|
-
# request. For subsequent calls, use the `nextToken` value returned from
|
972
|
-
# the previous request to continue listing results after the first page.
|
973
|
-
#
|
974
971
|
# @return [Types::ListScansResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
975
972
|
#
|
976
|
-
# * {Types::ListScansResponse#next_token #next_token} => String
|
977
973
|
# * {Types::ListScansResponse#summaries #summaries} => Array<Types::ScanSummary>
|
974
|
+
# * {Types::ListScansResponse#next_token #next_token} => String
|
978
975
|
#
|
979
976
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
980
977
|
#
|
981
978
|
# @example Request syntax with placeholder values
|
982
979
|
#
|
983
980
|
# resp = client.list_scans({
|
984
|
-
# max_results: 1,
|
985
981
|
# next_token: "NextToken",
|
982
|
+
# max_results: 1,
|
986
983
|
# })
|
987
984
|
#
|
988
985
|
# @example Response structure
|
989
986
|
#
|
990
|
-
# resp.next_token #=> String
|
991
987
|
# resp.summaries #=> Array
|
988
|
+
# resp.summaries[0].scan_state #=> String, one of "InProgress", "Successful", "Failed"
|
992
989
|
# resp.summaries[0].created_at #=> Time
|
993
|
-
# resp.summaries[0].
|
990
|
+
# resp.summaries[0].updated_at #=> Time
|
994
991
|
# resp.summaries[0].scan_name #=> String
|
992
|
+
# resp.summaries[0].run_id #=> String
|
995
993
|
# resp.summaries[0].scan_name_arn #=> String
|
996
|
-
# resp.
|
997
|
-
# resp.summaries[0].updated_at #=> Time
|
994
|
+
# resp.next_token #=> String
|
998
995
|
#
|
999
996
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-security-2018-05-10/ListScans AWS API Documentation
|
1000
997
|
#
|
@@ -1151,7 +1148,7 @@ module Aws::CodeGuruSecurity
|
|
1151
1148
|
tracer: tracer
|
1152
1149
|
)
|
1153
1150
|
context[:gem_name] = 'aws-sdk-codegurusecurity'
|
1154
|
-
context[:gem_version] = '1.
|
1151
|
+
context[:gem_version] = '1.34.0'
|
1155
1152
|
Seahorse::Client::Request.new(handlers, context)
|
1156
1153
|
end
|
1157
1154
|
|