aws-sdk-inspector2 1.53.0 → 1.55.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.
@@ -95,7 +95,7 @@ module Aws::Inspector2
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. This can be an instance of any one of the
98
+ # Your AWS credentials used for authentication. This can be an instance of any one of the
99
99
  # following classes:
100
100
  #
101
101
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
@@ -128,18 +128,23 @@ module Aws::Inspector2
128
128
  # locations will be searched for credentials:
129
129
  #
130
130
  # * `Aws.config[:credentials]`
131
+ #
131
132
  # * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
132
133
  # `:account_id` options.
133
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
134
- # ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
134
+ #
135
+ # * `ENV['AWS_ACCESS_KEY_ID']`, `ENV['AWS_SECRET_ACCESS_KEY']`,
136
+ # `ENV['AWS_SESSION_TOKEN']`, and `ENV['AWS_ACCOUNT_ID']`.
137
+ #
135
138
  # * `~/.aws/credentials`
139
+ #
136
140
  # * `~/.aws/config`
141
+ #
137
142
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
138
143
  # are very aggressive. Construct and pass an instance of
139
144
  # `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
140
145
  # enable retries and extended timeouts. Instance profile credential
141
- # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
142
- # to true.
146
+ # fetching can be disabled by setting `ENV['AWS_EC2_METADATA_DISABLED']`
147
+ # to `true`.
143
148
  #
144
149
  # @option options [required, String] :region
145
150
  # The AWS region to connect to. The configured `:region` is
@@ -167,6 +172,11 @@ module Aws::Inspector2
167
172
  # When false, the request will raise a `RetryCapacityNotAvailableError` and will
168
173
  # not retry instead of sleeping.
169
174
  #
175
+ # @option options [Array<String>] :auth_scheme_preference
176
+ # A list of preferred authentication schemes to use when making a request. Supported values are:
177
+ # `sigv4`, `sigv4a`, `httpBearerAuth`, and `noAuth`. When set using `ENV['AWS_AUTH_SCHEME_PREFERENCE']` or in
178
+ # shared config as `auth_scheme_preference`, the value should be a comma-separated list.
179
+ #
170
180
  # @option options [Boolean] :client_side_monitoring (false)
171
181
  # When `true`, client-side metrics will be collected for all API requests from
172
182
  # this client.
@@ -253,8 +263,8 @@ module Aws::Inspector2
253
263
  # 4 times. Used in `standard` and `adaptive` retry modes.
254
264
  #
255
265
  # @option options [String] :profile ("default")
256
- # Used when loading credentials from the shared credentials file
257
- # at HOME/.aws/credentials. When not specified, 'default' is used.
266
+ # Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
267
+ # When not specified, 'default' is used.
258
268
  #
259
269
  # @option options [String] :request_checksum_calculation ("when_supported")
260
270
  # Determines when a checksum will be calculated for request payloads. Values are:
@@ -367,7 +377,7 @@ module Aws::Inspector2
367
377
  # `Aws::Telemetry::OTelProvider` for telemetry provider.
368
378
  #
369
379
  # @option options [Aws::TokenProvider] :token_provider
370
- # A Bearer Token Provider. This can be an instance of any one of the
380
+ # Your Bearer token used for authentication. This can be an instance of any one of the
371
381
  # following classes:
372
382
  #
373
383
  # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
@@ -508,6 +518,96 @@ module Aws::Inspector2
508
518
  req.send_request(options)
509
519
  end
510
520
 
521
+ # Associates multiple code repositories with an Amazon Inspector code
522
+ # security scan configuration.
523
+ #
524
+ # @option params [required, Array<Types::AssociateConfigurationRequest>] :associate_configuration_requests
525
+ # A list of code repositories to associate with the specified scan
526
+ # configuration.
527
+ #
528
+ # @return [Types::BatchAssociateCodeSecurityScanConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
529
+ #
530
+ # * {Types::BatchAssociateCodeSecurityScanConfigurationResponse#failed_associations #failed_associations} => Array&lt;Types::FailedAssociationResult&gt;
531
+ # * {Types::BatchAssociateCodeSecurityScanConfigurationResponse#successful_associations #successful_associations} => Array&lt;Types::SuccessfulAssociationResult&gt;
532
+ #
533
+ # @example Request syntax with placeholder values
534
+ #
535
+ # resp = client.batch_associate_code_security_scan_configuration({
536
+ # associate_configuration_requests: [ # required
537
+ # {
538
+ # resource: { # required
539
+ # project_id: "ProjectId",
540
+ # },
541
+ # scan_configuration_arn: "ScanConfigurationArn", # required
542
+ # },
543
+ # ],
544
+ # })
545
+ #
546
+ # @example Response structure
547
+ #
548
+ # resp.failed_associations #=> Array
549
+ # resp.failed_associations[0].resource.project_id #=> String
550
+ # resp.failed_associations[0].scan_configuration_arn #=> String
551
+ # resp.failed_associations[0].status_code #=> String, one of "INTERNAL_ERROR", "ACCESS_DENIED", "SCAN_CONFIGURATION_NOT_FOUND", "INVALID_INPUT", "RESOURCE_NOT_FOUND", "QUOTA_EXCEEDED"
552
+ # resp.failed_associations[0].status_message #=> String
553
+ # resp.successful_associations #=> Array
554
+ # resp.successful_associations[0].resource.project_id #=> String
555
+ # resp.successful_associations[0].scan_configuration_arn #=> String
556
+ #
557
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/BatchAssociateCodeSecurityScanConfiguration AWS API Documentation
558
+ #
559
+ # @overload batch_associate_code_security_scan_configuration(params = {})
560
+ # @param [Hash] params ({})
561
+ def batch_associate_code_security_scan_configuration(params = {}, options = {})
562
+ req = build_request(:batch_associate_code_security_scan_configuration, params)
563
+ req.send_request(options)
564
+ end
565
+
566
+ # Disassociates multiple code repositories from an Amazon Inspector code
567
+ # security scan configuration.
568
+ #
569
+ # @option params [required, Array<Types::DisassociateConfigurationRequest>] :disassociate_configuration_requests
570
+ # A list of code repositories to disassociate from the specified scan
571
+ # configuration.
572
+ #
573
+ # @return [Types::BatchDisassociateCodeSecurityScanConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
574
+ #
575
+ # * {Types::BatchDisassociateCodeSecurityScanConfigurationResponse#failed_associations #failed_associations} => Array&lt;Types::FailedAssociationResult&gt;
576
+ # * {Types::BatchDisassociateCodeSecurityScanConfigurationResponse#successful_associations #successful_associations} => Array&lt;Types::SuccessfulAssociationResult&gt;
577
+ #
578
+ # @example Request syntax with placeholder values
579
+ #
580
+ # resp = client.batch_disassociate_code_security_scan_configuration({
581
+ # disassociate_configuration_requests: [ # required
582
+ # {
583
+ # resource: { # required
584
+ # project_id: "ProjectId",
585
+ # },
586
+ # scan_configuration_arn: "ScanConfigurationArn", # required
587
+ # },
588
+ # ],
589
+ # })
590
+ #
591
+ # @example Response structure
592
+ #
593
+ # resp.failed_associations #=> Array
594
+ # resp.failed_associations[0].resource.project_id #=> String
595
+ # resp.failed_associations[0].scan_configuration_arn #=> String
596
+ # resp.failed_associations[0].status_code #=> String, one of "INTERNAL_ERROR", "ACCESS_DENIED", "SCAN_CONFIGURATION_NOT_FOUND", "INVALID_INPUT", "RESOURCE_NOT_FOUND", "QUOTA_EXCEEDED"
597
+ # resp.failed_associations[0].status_message #=> String
598
+ # resp.successful_associations #=> Array
599
+ # resp.successful_associations[0].resource.project_id #=> String
600
+ # resp.successful_associations[0].scan_configuration_arn #=> String
601
+ #
602
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/BatchDisassociateCodeSecurityScanConfiguration AWS API Documentation
603
+ #
604
+ # @overload batch_disassociate_code_security_scan_configuration(params = {})
605
+ # @param [Hash] params ({})
606
+ def batch_disassociate_code_security_scan_configuration(params = {}, options = {})
607
+ req = build_request(:batch_disassociate_code_security_scan_configuration, params)
608
+ req.send_request(options)
609
+ end
610
+
511
611
  # Retrieves the Amazon Inspector status of multiple Amazon Web Services
512
612
  # accounts within your environment.
513
613
  #
@@ -530,6 +630,9 @@ module Aws::Inspector2
530
630
  #
531
631
  # resp.accounts #=> Array
532
632
  # resp.accounts[0].account_id #=> String
633
+ # resp.accounts[0].resource_state.code_repository.error_code #=> String, one of "ALREADY_ENABLED", "ENABLE_IN_PROGRESS", "DISABLE_IN_PROGRESS", "SUSPEND_IN_PROGRESS", "RESOURCE_NOT_FOUND", "ACCESS_DENIED", "INTERNAL_ERROR", "SSM_UNAVAILABLE", "SSM_THROTTLED", "EVENTBRIDGE_UNAVAILABLE", "EVENTBRIDGE_THROTTLED", "RESOURCE_SCAN_NOT_DISABLED", "DISASSOCIATE_ALL_MEMBERS", "ACCOUNT_IS_ISOLATED", "EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED", "EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED"
634
+ # resp.accounts[0].resource_state.code_repository.error_message #=> String
635
+ # resp.accounts[0].resource_state.code_repository.status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
533
636
  # resp.accounts[0].resource_state.ec2.error_code #=> String, one of "ALREADY_ENABLED", "ENABLE_IN_PROGRESS", "DISABLE_IN_PROGRESS", "SUSPEND_IN_PROGRESS", "RESOURCE_NOT_FOUND", "ACCESS_DENIED", "INTERNAL_ERROR", "SSM_UNAVAILABLE", "SSM_THROTTLED", "EVENTBRIDGE_UNAVAILABLE", "EVENTBRIDGE_THROTTLED", "RESOURCE_SCAN_NOT_DISABLED", "DISASSOCIATE_ALL_MEMBERS", "ACCOUNT_IS_ISOLATED", "EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED", "EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED"
534
637
  # resp.accounts[0].resource_state.ec2.error_message #=> String
535
638
  # resp.accounts[0].resource_state.ec2.status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -549,6 +652,7 @@ module Aws::Inspector2
549
652
  # resp.failed_accounts[0].account_id #=> String
550
653
  # resp.failed_accounts[0].error_code #=> String, one of "ALREADY_ENABLED", "ENABLE_IN_PROGRESS", "DISABLE_IN_PROGRESS", "SUSPEND_IN_PROGRESS", "RESOURCE_NOT_FOUND", "ACCESS_DENIED", "INTERNAL_ERROR", "SSM_UNAVAILABLE", "SSM_THROTTLED", "EVENTBRIDGE_UNAVAILABLE", "EVENTBRIDGE_THROTTLED", "RESOURCE_SCAN_NOT_DISABLED", "DISASSOCIATE_ALL_MEMBERS", "ACCOUNT_IS_ISOLATED", "EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED", "EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED"
551
654
  # resp.failed_accounts[0].error_message #=> String
655
+ # resp.failed_accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
552
656
  # resp.failed_accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
553
657
  # resp.failed_accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
554
658
  # resp.failed_accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -685,7 +789,7 @@ module Aws::Inspector2
685
789
  # resp.accounts[0].free_trial_info[0].end #=> Time
686
790
  # resp.accounts[0].free_trial_info[0].start #=> Time
687
791
  # resp.accounts[0].free_trial_info[0].status #=> String, one of "ACTIVE", "INACTIVE"
688
- # resp.accounts[0].free_trial_info[0].type #=> String, one of "EC2", "ECR", "LAMBDA", "LAMBDA_CODE"
792
+ # resp.accounts[0].free_trial_info[0].type #=> String, one of "EC2", "ECR", "LAMBDA", "LAMBDA_CODE", "CODE_REPOSITORY"
689
793
  # resp.failed_accounts #=> Array
690
794
  # resp.failed_accounts[0].account_id #=> String
691
795
  # resp.failed_accounts[0].code #=> String, one of "ACCESS_DENIED", "INTERNAL_ERROR"
@@ -708,7 +812,6 @@ module Aws::Inspector2
708
812
  # @option params [Array<String>] :account_ids
709
813
  # The unique identifiers for the Amazon Web Services accounts to
710
814
  # retrieve Amazon Inspector deep inspection activation status for.
711
- # </p>
712
815
  #
713
816
  # @return [Types::BatchGetMemberEc2DeepInspectionStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
714
817
  #
@@ -917,6 +1020,127 @@ module Aws::Inspector2
917
1020
  req.send_request(options)
918
1021
  end
919
1022
 
1023
+ # Creates a code security integration with a source code repository
1024
+ # provider.
1025
+ #
1026
+ # After calling the `CreateCodeSecurityIntegration` operation, you
1027
+ # complete authentication and authorization with your provider. Next you
1028
+ # call the `UpdateCodeSecurityIntegration` operation to provide the
1029
+ # `details` to complete the integration setup
1030
+ #
1031
+ # @option params [Types::CreateIntegrationDetail] :details
1032
+ # The integration details specific to the repository provider type.
1033
+ #
1034
+ # @option params [required, String] :name
1035
+ # The name of the code security integration.
1036
+ #
1037
+ # @option params [Hash<String,String>] :tags
1038
+ # The tags to apply to the code security integration.
1039
+ #
1040
+ # @option params [required, String] :type
1041
+ # The type of repository provider for the integration.
1042
+ #
1043
+ # @return [Types::CreateCodeSecurityIntegrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1044
+ #
1045
+ # * {Types::CreateCodeSecurityIntegrationResponse#authorization_url #authorization_url} => String
1046
+ # * {Types::CreateCodeSecurityIntegrationResponse#integration_arn #integration_arn} => String
1047
+ # * {Types::CreateCodeSecurityIntegrationResponse#status #status} => String
1048
+ #
1049
+ # @example Request syntax with placeholder values
1050
+ #
1051
+ # resp = client.create_code_security_integration({
1052
+ # details: {
1053
+ # gitlab_self_managed: {
1054
+ # access_token: "GitLabAccessToken", # required
1055
+ # instance_url: "InstanceUrl", # required
1056
+ # },
1057
+ # },
1058
+ # name: "IntegrationName", # required
1059
+ # tags: {
1060
+ # "MapKey" => "MapValue",
1061
+ # },
1062
+ # type: "GITLAB_SELF_MANAGED", # required, accepts GITLAB_SELF_MANAGED, GITHUB
1063
+ # })
1064
+ #
1065
+ # @example Response structure
1066
+ #
1067
+ # resp.authorization_url #=> String
1068
+ # resp.integration_arn #=> String
1069
+ # resp.status #=> String, one of "PENDING", "IN_PROGRESS", "ACTIVE", "INACTIVE", "DISABLING"
1070
+ #
1071
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CreateCodeSecurityIntegration AWS API Documentation
1072
+ #
1073
+ # @overload create_code_security_integration(params = {})
1074
+ # @param [Hash] params ({})
1075
+ def create_code_security_integration(params = {}, options = {})
1076
+ req = build_request(:create_code_security_integration, params)
1077
+ req.send_request(options)
1078
+ end
1079
+
1080
+ # Creates a scan configuration for code security scanning.
1081
+ #
1082
+ # @option params [required, Types::CodeSecurityScanConfiguration] :configuration
1083
+ # The configuration settings for the code security scan.
1084
+ #
1085
+ # @option params [required, String] :level
1086
+ # The security level for the scan configuration.
1087
+ #
1088
+ # @option params [required, String] :name
1089
+ # The name of the scan configuration.
1090
+ #
1091
+ # @option params [Types::ScopeSettings] :scope_settings
1092
+ # The scope settings that define which repositories will be scanned.
1093
+ # Include this parameter to create a default scan configuration.
1094
+ # Otherwise Amazon Inspector creates a general scan configuration.
1095
+ #
1096
+ # A default scan configuration automatically applies to all existing and
1097
+ # future projects imported into Amazon Inspector. Use the
1098
+ # `BatchAssociateCodeSecurityScanConfiguration` operation to associate a
1099
+ # general scan configuration with projects.
1100
+ #
1101
+ # @option params [Hash<String,String>] :tags
1102
+ # The tags to apply to the scan configuration.
1103
+ #
1104
+ # @return [Types::CreateCodeSecurityScanConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1105
+ #
1106
+ # * {Types::CreateCodeSecurityScanConfigurationResponse#scan_configuration_arn #scan_configuration_arn} => String
1107
+ #
1108
+ # @example Request syntax with placeholder values
1109
+ #
1110
+ # resp = client.create_code_security_scan_configuration({
1111
+ # configuration: { # required
1112
+ # continuous_integration_scan_configuration: {
1113
+ # supported_events: ["PULL_REQUEST"], # required, accepts PULL_REQUEST, PUSH
1114
+ # },
1115
+ # periodic_scan_configuration: {
1116
+ # frequency: "WEEKLY", # accepts WEEKLY, MONTHLY, NEVER
1117
+ # frequency_expression: "FrequencyExpression",
1118
+ # },
1119
+ # rule_set_categories: ["SAST"], # required, accepts SAST, IAC, SCA
1120
+ # },
1121
+ # level: "ORGANIZATION", # required, accepts ORGANIZATION, ACCOUNT
1122
+ # name: "ScanConfigurationName", # required
1123
+ # scope_settings: {
1124
+ # project_selection_scope: "ALL", # accepts ALL
1125
+ # },
1126
+ # tags: {
1127
+ # "MapKey" => "MapValue",
1128
+ # },
1129
+ # })
1130
+ #
1131
+ # @example Response structure
1132
+ #
1133
+ # resp.scan_configuration_arn #=> String
1134
+ #
1135
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CreateCodeSecurityScanConfiguration AWS API Documentation
1136
+ #
1137
+ # @overload create_code_security_scan_configuration(params = {})
1138
+ # @param [Hash] params ({})
1139
+ def create_code_security_scan_configuration(params = {}, options = {})
1140
+ req = build_request(:create_code_security_scan_configuration, params)
1141
+ req.send_request(options)
1142
+ end
1143
+
920
1144
  # Creates a filter resource using specified filter criteria. When the
921
1145
  # filter action is set to `SUPPRESS` this action creates a suppression
922
1146
  # rule.
@@ -958,6 +1182,18 @@ module Aws::Inspector2
958
1182
  # value: "StringInput", # required
959
1183
  # },
960
1184
  # ],
1185
+ # code_repository_project_name: [
1186
+ # {
1187
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
1188
+ # value: "StringInput", # required
1189
+ # },
1190
+ # ],
1191
+ # code_repository_provider_type: [
1192
+ # {
1193
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
1194
+ # value: "StringInput", # required
1195
+ # },
1196
+ # ],
961
1197
  # code_vulnerability_detector_name: [
962
1198
  # {
963
1199
  # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
@@ -1295,6 +1531,18 @@ module Aws::Inspector2
1295
1531
  # value: "StringInput", # required
1296
1532
  # },
1297
1533
  # ],
1534
+ # code_repository_project_name: [
1535
+ # {
1536
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
1537
+ # value: "StringInput", # required
1538
+ # },
1539
+ # ],
1540
+ # code_repository_provider_type: [
1541
+ # {
1542
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
1543
+ # value: "StringInput", # required
1544
+ # },
1545
+ # ],
1298
1546
  # code_vulnerability_detector_name: [
1299
1547
  # {
1300
1548
  # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
@@ -1727,6 +1975,63 @@ module Aws::Inspector2
1727
1975
  req.send_request(options)
1728
1976
  end
1729
1977
 
1978
+ # Deletes a code security integration.
1979
+ #
1980
+ # @option params [required, String] :integration_arn
1981
+ # The Amazon Resource Name (ARN) of the code security integration to
1982
+ # delete.
1983
+ #
1984
+ # @return [Types::DeleteCodeSecurityIntegrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1985
+ #
1986
+ # * {Types::DeleteCodeSecurityIntegrationResponse#integration_arn #integration_arn} => String
1987
+ #
1988
+ # @example Request syntax with placeholder values
1989
+ #
1990
+ # resp = client.delete_code_security_integration({
1991
+ # integration_arn: "CodeSecurityIntegrationArn", # required
1992
+ # })
1993
+ #
1994
+ # @example Response structure
1995
+ #
1996
+ # resp.integration_arn #=> String
1997
+ #
1998
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/DeleteCodeSecurityIntegration AWS API Documentation
1999
+ #
2000
+ # @overload delete_code_security_integration(params = {})
2001
+ # @param [Hash] params ({})
2002
+ def delete_code_security_integration(params = {}, options = {})
2003
+ req = build_request(:delete_code_security_integration, params)
2004
+ req.send_request(options)
2005
+ end
2006
+
2007
+ # Deletes a code security scan configuration.
2008
+ #
2009
+ # @option params [required, String] :scan_configuration_arn
2010
+ # The Amazon Resource Name (ARN) of the scan configuration to delete.
2011
+ #
2012
+ # @return [Types::DeleteCodeSecurityScanConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2013
+ #
2014
+ # * {Types::DeleteCodeSecurityScanConfigurationResponse#scan_configuration_arn #scan_configuration_arn} => String
2015
+ #
2016
+ # @example Request syntax with placeholder values
2017
+ #
2018
+ # resp = client.delete_code_security_scan_configuration({
2019
+ # scan_configuration_arn: "ScanConfigurationArn", # required
2020
+ # })
2021
+ #
2022
+ # @example Response structure
2023
+ #
2024
+ # resp.scan_configuration_arn #=> String
2025
+ #
2026
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/DeleteCodeSecurityScanConfiguration AWS API Documentation
2027
+ #
2028
+ # @overload delete_code_security_scan_configuration(params = {})
2029
+ # @param [Hash] params ({})
2030
+ def delete_code_security_scan_configuration(params = {}, options = {})
2031
+ req = build_request(:delete_code_security_scan_configuration, params)
2032
+ req.send_request(options)
2033
+ end
2034
+
1730
2035
  # Deletes a filter resource.
1731
2036
  #
1732
2037
  # @option params [required, String] :arn
@@ -1765,6 +2070,7 @@ module Aws::Inspector2
1765
2070
  #
1766
2071
  # @example Response structure
1767
2072
  #
2073
+ # resp.auto_enable.code_repository #=> Boolean
1768
2074
  # resp.auto_enable.ec2 #=> Boolean
1769
2075
  # resp.auto_enable.ecr #=> Boolean
1770
2076
  # resp.auto_enable.lambda #=> Boolean
@@ -1800,13 +2106,14 @@ module Aws::Inspector2
1800
2106
  #
1801
2107
  # resp = client.disable({
1802
2108
  # account_ids: ["AccountId"],
1803
- # resource_types: ["EC2"], # accepts EC2, ECR, LAMBDA, LAMBDA_CODE
2109
+ # resource_types: ["EC2"], # accepts EC2, ECR, LAMBDA, LAMBDA_CODE, CODE_REPOSITORY
1804
2110
  # })
1805
2111
  #
1806
2112
  # @example Response structure
1807
2113
  #
1808
2114
  # resp.accounts #=> Array
1809
2115
  # resp.accounts[0].account_id #=> String
2116
+ # resp.accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1810
2117
  # resp.accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1811
2118
  # resp.accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1812
2119
  # resp.accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -1816,6 +2123,7 @@ module Aws::Inspector2
1816
2123
  # resp.failed_accounts[0].account_id #=> String
1817
2124
  # resp.failed_accounts[0].error_code #=> String, one of "ALREADY_ENABLED", "ENABLE_IN_PROGRESS", "DISABLE_IN_PROGRESS", "SUSPEND_IN_PROGRESS", "RESOURCE_NOT_FOUND", "ACCESS_DENIED", "INTERNAL_ERROR", "SSM_UNAVAILABLE", "SSM_THROTTLED", "EVENTBRIDGE_UNAVAILABLE", "EVENTBRIDGE_THROTTLED", "RESOURCE_SCAN_NOT_DISABLED", "DISASSOCIATE_ALL_MEMBERS", "ACCOUNT_IS_ISOLATED", "EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED", "EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED"
1818
2125
  # resp.failed_accounts[0].error_message #=> String
2126
+ # resp.failed_accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1819
2127
  # resp.failed_accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1820
2128
  # resp.failed_accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1821
2129
  # resp.failed_accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -1916,13 +2224,14 @@ module Aws::Inspector2
1916
2224
  # resp = client.enable({
1917
2225
  # account_ids: ["AccountId"],
1918
2226
  # client_token: "ClientToken",
1919
- # resource_types: ["EC2"], # required, accepts EC2, ECR, LAMBDA, LAMBDA_CODE
2227
+ # resource_types: ["EC2"], # required, accepts EC2, ECR, LAMBDA, LAMBDA_CODE, CODE_REPOSITORY
1920
2228
  # })
1921
2229
  #
1922
2230
  # @example Response structure
1923
2231
  #
1924
2232
  # resp.accounts #=> Array
1925
2233
  # resp.accounts[0].account_id #=> String
2234
+ # resp.accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1926
2235
  # resp.accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1927
2236
  # resp.accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1928
2237
  # resp.accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -1932,6 +2241,7 @@ module Aws::Inspector2
1932
2241
  # resp.failed_accounts[0].account_id #=> String
1933
2242
  # resp.failed_accounts[0].error_code #=> String, one of "ALREADY_ENABLED", "ENABLE_IN_PROGRESS", "DISABLE_IN_PROGRESS", "SUSPEND_IN_PROGRESS", "RESOURCE_NOT_FOUND", "ACCESS_DENIED", "INTERNAL_ERROR", "SSM_UNAVAILABLE", "SSM_THROTTLED", "EVENTBRIDGE_UNAVAILABLE", "EVENTBRIDGE_THROTTLED", "RESOURCE_SCAN_NOT_DISABLED", "DISASSOCIATE_ALL_MEMBERS", "ACCOUNT_IS_ISOLATED", "EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED", "EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED"
1934
2243
  # resp.failed_accounts[0].error_message #=> String
2244
+ # resp.failed_accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1935
2245
  # resp.failed_accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1936
2246
  # resp.failed_accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1937
2247
  # resp.failed_accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -2183,6 +2493,154 @@ module Aws::Inspector2
2183
2493
  req.send_request(options)
2184
2494
  end
2185
2495
 
2496
+ # Retrieves information about a code security integration.
2497
+ #
2498
+ # @option params [required, String] :integration_arn
2499
+ # The Amazon Resource Name (ARN) of the code security integration to
2500
+ # retrieve.
2501
+ #
2502
+ # @option params [Hash<String,String>] :tags
2503
+ # The tags associated with the code security integration.
2504
+ #
2505
+ # @return [Types::GetCodeSecurityIntegrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2506
+ #
2507
+ # * {Types::GetCodeSecurityIntegrationResponse#authorization_url #authorization_url} => String
2508
+ # * {Types::GetCodeSecurityIntegrationResponse#created_on #created_on} => Time
2509
+ # * {Types::GetCodeSecurityIntegrationResponse#integration_arn #integration_arn} => String
2510
+ # * {Types::GetCodeSecurityIntegrationResponse#last_update_on #last_update_on} => Time
2511
+ # * {Types::GetCodeSecurityIntegrationResponse#name #name} => String
2512
+ # * {Types::GetCodeSecurityIntegrationResponse#status #status} => String
2513
+ # * {Types::GetCodeSecurityIntegrationResponse#status_reason #status_reason} => String
2514
+ # * {Types::GetCodeSecurityIntegrationResponse#tags #tags} => Hash&lt;String,String&gt;
2515
+ # * {Types::GetCodeSecurityIntegrationResponse#type #type} => String
2516
+ #
2517
+ # @example Request syntax with placeholder values
2518
+ #
2519
+ # resp = client.get_code_security_integration({
2520
+ # integration_arn: "CodeSecurityIntegrationArn", # required
2521
+ # tags: {
2522
+ # "MapKey" => "MapValue",
2523
+ # },
2524
+ # })
2525
+ #
2526
+ # @example Response structure
2527
+ #
2528
+ # resp.authorization_url #=> String
2529
+ # resp.created_on #=> Time
2530
+ # resp.integration_arn #=> String
2531
+ # resp.last_update_on #=> Time
2532
+ # resp.name #=> String
2533
+ # resp.status #=> String, one of "PENDING", "IN_PROGRESS", "ACTIVE", "INACTIVE", "DISABLING"
2534
+ # resp.status_reason #=> String
2535
+ # resp.tags #=> Hash
2536
+ # resp.tags["MapKey"] #=> String
2537
+ # resp.type #=> String, one of "GITLAB_SELF_MANAGED", "GITHUB"
2538
+ #
2539
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetCodeSecurityIntegration AWS API Documentation
2540
+ #
2541
+ # @overload get_code_security_integration(params = {})
2542
+ # @param [Hash] params ({})
2543
+ def get_code_security_integration(params = {}, options = {})
2544
+ req = build_request(:get_code_security_integration, params)
2545
+ req.send_request(options)
2546
+ end
2547
+
2548
+ # Retrieves information about a specific code security scan.
2549
+ #
2550
+ # @option params [required, Types::CodeSecurityResource] :resource
2551
+ # The resource identifier for the code repository that was scanned.
2552
+ #
2553
+ # @option params [required, String] :scan_id
2554
+ # The unique identifier of the scan to retrieve.
2555
+ #
2556
+ # @return [Types::GetCodeSecurityScanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2557
+ #
2558
+ # * {Types::GetCodeSecurityScanResponse#account_id #account_id} => String
2559
+ # * {Types::GetCodeSecurityScanResponse#created_at #created_at} => Time
2560
+ # * {Types::GetCodeSecurityScanResponse#last_commit_id #last_commit_id} => String
2561
+ # * {Types::GetCodeSecurityScanResponse#resource #resource} => Types::CodeSecurityResource
2562
+ # * {Types::GetCodeSecurityScanResponse#scan_id #scan_id} => String
2563
+ # * {Types::GetCodeSecurityScanResponse#status #status} => String
2564
+ # * {Types::GetCodeSecurityScanResponse#status_reason #status_reason} => String
2565
+ # * {Types::GetCodeSecurityScanResponse#updated_at #updated_at} => Time
2566
+ #
2567
+ # @example Request syntax with placeholder values
2568
+ #
2569
+ # resp = client.get_code_security_scan({
2570
+ # resource: { # required
2571
+ # project_id: "ProjectId",
2572
+ # },
2573
+ # scan_id: "CodeSecurityUuid", # required
2574
+ # })
2575
+ #
2576
+ # @example Response structure
2577
+ #
2578
+ # resp.account_id #=> String
2579
+ # resp.created_at #=> Time
2580
+ # resp.last_commit_id #=> String
2581
+ # resp.resource.project_id #=> String
2582
+ # resp.scan_id #=> String
2583
+ # resp.status #=> String, one of "IN_PROGRESS", "SUCCESSFUL", "FAILED", "SKIPPED"
2584
+ # resp.status_reason #=> String
2585
+ # resp.updated_at #=> Time
2586
+ #
2587
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetCodeSecurityScan AWS API Documentation
2588
+ #
2589
+ # @overload get_code_security_scan(params = {})
2590
+ # @param [Hash] params ({})
2591
+ def get_code_security_scan(params = {}, options = {})
2592
+ req = build_request(:get_code_security_scan, params)
2593
+ req.send_request(options)
2594
+ end
2595
+
2596
+ # Retrieves information about a code security scan configuration.
2597
+ #
2598
+ # @option params [required, String] :scan_configuration_arn
2599
+ # The Amazon Resource Name (ARN) of the scan configuration to retrieve.
2600
+ #
2601
+ # @return [Types::GetCodeSecurityScanConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2602
+ #
2603
+ # * {Types::GetCodeSecurityScanConfigurationResponse#configuration #configuration} => Types::CodeSecurityScanConfiguration
2604
+ # * {Types::GetCodeSecurityScanConfigurationResponse#created_at #created_at} => Time
2605
+ # * {Types::GetCodeSecurityScanConfigurationResponse#last_updated_at #last_updated_at} => Time
2606
+ # * {Types::GetCodeSecurityScanConfigurationResponse#level #level} => String
2607
+ # * {Types::GetCodeSecurityScanConfigurationResponse#name #name} => String
2608
+ # * {Types::GetCodeSecurityScanConfigurationResponse#scan_configuration_arn #scan_configuration_arn} => String
2609
+ # * {Types::GetCodeSecurityScanConfigurationResponse#scope_settings #scope_settings} => Types::ScopeSettings
2610
+ # * {Types::GetCodeSecurityScanConfigurationResponse#tags #tags} => Hash&lt;String,String&gt;
2611
+ #
2612
+ # @example Request syntax with placeholder values
2613
+ #
2614
+ # resp = client.get_code_security_scan_configuration({
2615
+ # scan_configuration_arn: "ScanConfigurationArn", # required
2616
+ # })
2617
+ #
2618
+ # @example Response structure
2619
+ #
2620
+ # resp.configuration.continuous_integration_scan_configuration.supported_events #=> Array
2621
+ # resp.configuration.continuous_integration_scan_configuration.supported_events[0] #=> String, one of "PULL_REQUEST", "PUSH"
2622
+ # resp.configuration.periodic_scan_configuration.frequency #=> String, one of "WEEKLY", "MONTHLY", "NEVER"
2623
+ # resp.configuration.periodic_scan_configuration.frequency_expression #=> String
2624
+ # resp.configuration.rule_set_categories #=> Array
2625
+ # resp.configuration.rule_set_categories[0] #=> String, one of "SAST", "IAC", "SCA"
2626
+ # resp.created_at #=> Time
2627
+ # resp.last_updated_at #=> Time
2628
+ # resp.level #=> String, one of "ORGANIZATION", "ACCOUNT"
2629
+ # resp.name #=> String
2630
+ # resp.scan_configuration_arn #=> String
2631
+ # resp.scope_settings.project_selection_scope #=> String, one of "ALL"
2632
+ # resp.tags #=> Hash
2633
+ # resp.tags["MapKey"] #=> String
2634
+ #
2635
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetCodeSecurityScanConfiguration AWS API Documentation
2636
+ #
2637
+ # @overload get_code_security_scan_configuration(params = {})
2638
+ # @param [Hash] params ({})
2639
+ def get_code_security_scan_configuration(params = {}, options = {})
2640
+ req = build_request(:get_code_security_scan_configuration, params)
2641
+ req.send_request(options)
2642
+ end
2643
+
2186
2644
  # Retrieves setting configurations for Inspector scans.
2187
2645
  #
2188
2646
  # @return [Types::GetConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -2273,7 +2731,7 @@ module Aws::Inspector2
2273
2731
  # @example Request syntax with placeholder values
2274
2732
  #
2275
2733
  # resp = client.get_encryption_key({
2276
- # resource_type: "AWS_EC2_INSTANCE", # required, accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY, AWS_LAMBDA_FUNCTION
2734
+ # resource_type: "AWS_EC2_INSTANCE", # required, accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY, AWS_LAMBDA_FUNCTION, CODE_REPOSITORY
2277
2735
  # scan_type: "NETWORK", # required, accepts NETWORK, PACKAGE, CODE
2278
2736
  # })
2279
2737
  #
@@ -2320,6 +2778,12 @@ module Aws::Inspector2
2320
2778
  # resp.filter_criteria.aws_account_id #=> Array
2321
2779
  # resp.filter_criteria.aws_account_id[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
2322
2780
  # resp.filter_criteria.aws_account_id[0].value #=> String
2781
+ # resp.filter_criteria.code_repository_project_name #=> Array
2782
+ # resp.filter_criteria.code_repository_project_name[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
2783
+ # resp.filter_criteria.code_repository_project_name[0].value #=> String
2784
+ # resp.filter_criteria.code_repository_provider_type #=> Array
2785
+ # resp.filter_criteria.code_repository_provider_type[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
2786
+ # resp.filter_criteria.code_repository_provider_type[0].value #=> String
2323
2787
  # resp.filter_criteria.code_vulnerability_detector_name #=> Array
2324
2788
  # resp.filter_criteria.code_vulnerability_detector_name[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
2325
2789
  # resp.filter_criteria.code_vulnerability_detector_name[0].value #=> String
@@ -3067,6 +3531,149 @@ module Aws::Inspector2
3067
3531
  req.send_request(options)
3068
3532
  end
3069
3533
 
3534
+ # Lists all code security integrations in your account.
3535
+ #
3536
+ # @option params [Integer] :max_results
3537
+ # The maximum number of results to return in a single call.
3538
+ #
3539
+ # @option params [String] :next_token
3540
+ # A token to use for paginating results that are returned in the
3541
+ # response. Set the value of this parameter to null for the first
3542
+ # request. For subsequent calls, use the NextToken value returned from
3543
+ # the previous request to continue listing results after the first page.
3544
+ #
3545
+ # @return [Types::ListCodeSecurityIntegrationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3546
+ #
3547
+ # * {Types::ListCodeSecurityIntegrationsResponse#integrations #integrations} => Array&lt;Types::CodeSecurityIntegrationSummary&gt;
3548
+ # * {Types::ListCodeSecurityIntegrationsResponse#next_token #next_token} => String
3549
+ #
3550
+ # @example Request syntax with placeholder values
3551
+ #
3552
+ # resp = client.list_code_security_integrations({
3553
+ # max_results: 1,
3554
+ # next_token: "String",
3555
+ # })
3556
+ #
3557
+ # @example Response structure
3558
+ #
3559
+ # resp.integrations #=> Array
3560
+ # resp.integrations[0].created_on #=> Time
3561
+ # resp.integrations[0].integration_arn #=> String
3562
+ # resp.integrations[0].last_update_on #=> Time
3563
+ # resp.integrations[0].name #=> String
3564
+ # resp.integrations[0].status #=> String, one of "PENDING", "IN_PROGRESS", "ACTIVE", "INACTIVE", "DISABLING"
3565
+ # resp.integrations[0].status_reason #=> String
3566
+ # resp.integrations[0].tags #=> Hash
3567
+ # resp.integrations[0].tags["MapKey"] #=> String
3568
+ # resp.integrations[0].type #=> String, one of "GITLAB_SELF_MANAGED", "GITHUB"
3569
+ # resp.next_token #=> String
3570
+ #
3571
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListCodeSecurityIntegrations AWS API Documentation
3572
+ #
3573
+ # @overload list_code_security_integrations(params = {})
3574
+ # @param [Hash] params ({})
3575
+ def list_code_security_integrations(params = {}, options = {})
3576
+ req = build_request(:list_code_security_integrations, params)
3577
+ req.send_request(options)
3578
+ end
3579
+
3580
+ # Lists the associations between code repositories and Amazon Inspector
3581
+ # code security scan configurations.
3582
+ #
3583
+ # @option params [Integer] :max_results
3584
+ # The maximum number of results to return in the response. If your
3585
+ # request would return more than the maximum the response will return a
3586
+ # `nextToken` value, use this value when you call the action again to
3587
+ # get the remaining results.
3588
+ #
3589
+ # @option params [String] :next_token
3590
+ # A token to use for paginating results that are returned in the
3591
+ # response. Set the value of this parameter to null for the first
3592
+ # request to a list action. For subsequent calls, use the `NextToken`
3593
+ # value returned from the previous request to continue listing results
3594
+ # after the first page.
3595
+ #
3596
+ # @option params [required, String] :scan_configuration_arn
3597
+ # The Amazon Resource Name (ARN) of the scan configuration to list
3598
+ # associations for.
3599
+ #
3600
+ # @return [Types::ListCodeSecurityScanConfigurationAssociationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3601
+ #
3602
+ # * {Types::ListCodeSecurityScanConfigurationAssociationsResponse#associations #associations} => Array&lt;Types::CodeSecurityScanConfigurationAssociationSummary&gt;
3603
+ # * {Types::ListCodeSecurityScanConfigurationAssociationsResponse#next_token #next_token} => String
3604
+ #
3605
+ # @example Request syntax with placeholder values
3606
+ #
3607
+ # resp = client.list_code_security_scan_configuration_associations({
3608
+ # max_results: 1,
3609
+ # next_token: "NextToken",
3610
+ # scan_configuration_arn: "ScanConfigurationArn", # required
3611
+ # })
3612
+ #
3613
+ # @example Response structure
3614
+ #
3615
+ # resp.associations #=> Array
3616
+ # resp.associations[0].resource.project_id #=> String
3617
+ # resp.next_token #=> String
3618
+ #
3619
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListCodeSecurityScanConfigurationAssociations AWS API Documentation
3620
+ #
3621
+ # @overload list_code_security_scan_configuration_associations(params = {})
3622
+ # @param [Hash] params ({})
3623
+ def list_code_security_scan_configuration_associations(params = {}, options = {})
3624
+ req = build_request(:list_code_security_scan_configuration_associations, params)
3625
+ req.send_request(options)
3626
+ end
3627
+
3628
+ # Lists all code security scan configurations in your account.
3629
+ #
3630
+ # @option params [Integer] :max_results
3631
+ # The maximum number of results to return in a single call.
3632
+ #
3633
+ # @option params [String] :next_token
3634
+ # A token to use for paginating results that are returned in the
3635
+ # response. Set the value of this parameter to null for the first
3636
+ # request. For subsequent calls, use the NextToken value returned from
3637
+ # the previous request to continue listing results after the first page.
3638
+ #
3639
+ # @return [Types::ListCodeSecurityScanConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3640
+ #
3641
+ # * {Types::ListCodeSecurityScanConfigurationsResponse#configurations #configurations} => Array&lt;Types::CodeSecurityScanConfigurationSummary&gt;
3642
+ # * {Types::ListCodeSecurityScanConfigurationsResponse#next_token #next_token} => String
3643
+ #
3644
+ # @example Request syntax with placeholder values
3645
+ #
3646
+ # resp = client.list_code_security_scan_configurations({
3647
+ # max_results: 1,
3648
+ # next_token: "NextToken",
3649
+ # })
3650
+ #
3651
+ # @example Response structure
3652
+ #
3653
+ # resp.configurations #=> Array
3654
+ # resp.configurations[0].continuous_integration_scan_supported_events #=> Array
3655
+ # resp.configurations[0].continuous_integration_scan_supported_events[0] #=> String, one of "PULL_REQUEST", "PUSH"
3656
+ # resp.configurations[0].frequency_expression #=> String
3657
+ # resp.configurations[0].name #=> String
3658
+ # resp.configurations[0].owner_account_id #=> String
3659
+ # resp.configurations[0].periodic_scan_frequency #=> String, one of "WEEKLY", "MONTHLY", "NEVER"
3660
+ # resp.configurations[0].rule_set_categories #=> Array
3661
+ # resp.configurations[0].rule_set_categories[0] #=> String, one of "SAST", "IAC", "SCA"
3662
+ # resp.configurations[0].scan_configuration_arn #=> String
3663
+ # resp.configurations[0].scope_settings.project_selection_scope #=> String, one of "ALL"
3664
+ # resp.configurations[0].tags #=> Hash
3665
+ # resp.configurations[0].tags["MapKey"] #=> String
3666
+ # resp.next_token #=> String
3667
+ #
3668
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListCodeSecurityScanConfigurations AWS API Documentation
3669
+ #
3670
+ # @overload list_code_security_scan_configurations(params = {})
3671
+ # @param [Hash] params ({})
3672
+ def list_code_security_scan_configurations(params = {}, options = {})
3673
+ req = build_request(:list_code_security_scan_configurations, params)
3674
+ req.send_request(options)
3675
+ end
3676
+
3070
3677
  # Lists coverage details for your environment.
3071
3678
  #
3072
3679
  # @option params [Types::CoverageFilterCriteria] :filter_criteria
@@ -3104,6 +3711,24 @@ module Aws::Inspector2
3104
3711
  # value: "CoverageStringInput", # required
3105
3712
  # },
3106
3713
  # ],
3714
+ # code_repository_project_name: [
3715
+ # {
3716
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3717
+ # value: "CoverageStringInput", # required
3718
+ # },
3719
+ # ],
3720
+ # code_repository_provider_type: [
3721
+ # {
3722
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3723
+ # value: "CoverageStringInput", # required
3724
+ # },
3725
+ # ],
3726
+ # code_repository_provider_type_visibility: [
3727
+ # {
3728
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3729
+ # value: "CoverageStringInput", # required
3730
+ # },
3731
+ # ],
3107
3732
  # ec2_instance_tags: [
3108
3733
  # {
3109
3734
  # comparison: "EQUALS", # required, accepts EQUALS
@@ -3166,6 +3791,12 @@ module Aws::Inspector2
3166
3791
  # start_inclusive: Time.now,
3167
3792
  # },
3168
3793
  # ],
3794
+ # last_scanned_commit_id: [
3795
+ # {
3796
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3797
+ # value: "CoverageStringInput", # required
3798
+ # },
3799
+ # ],
3169
3800
  # resource_id: [
3170
3801
  # {
3171
3802
  # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
@@ -3213,6 +3844,23 @@ module Aws::Inspector2
3213
3844
  # resp.covered_resources[0].account_id #=> String
3214
3845
  # resp.covered_resources[0].last_scanned_at #=> Time
3215
3846
  # resp.covered_resources[0].resource_id #=> String
3847
+ # resp.covered_resources[0].resource_metadata.code_repository.integration_arn #=> String
3848
+ # resp.covered_resources[0].resource_metadata.code_repository.last_scanned_commit_id #=> String
3849
+ # resp.covered_resources[0].resource_metadata.code_repository.on_demand_scan.last_scan_at #=> Time
3850
+ # resp.covered_resources[0].resource_metadata.code_repository.on_demand_scan.last_scanned_commit_id #=> String
3851
+ # resp.covered_resources[0].resource_metadata.code_repository.on_demand_scan.scan_status.reason #=> String, one of "PENDING_INITIAL_SCAN", "ACCESS_DENIED", "INTERNAL_ERROR", "UNMANAGED_EC2_INSTANCE", "UNSUPPORTED_OS", "SCAN_ELIGIBILITY_EXPIRED", "RESOURCE_TERMINATED", "SUCCESSFUL", "NO_RESOURCES_FOUND", "IMAGE_SIZE_EXCEEDED", "SCAN_FREQUENCY_MANUAL", "SCAN_FREQUENCY_SCAN_ON_PUSH", "EC2_INSTANCE_STOPPED", "PENDING_DISABLE", "NO_INVENTORY", "STALE_INVENTORY", "EXCLUDED_BY_TAG", "UNSUPPORTED_RUNTIME", "UNSUPPORTED_MEDIA_TYPE", "UNSUPPORTED_CONFIG_FILE", "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED", "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED", "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED", "DEEP_INSPECTION_NO_INVENTORY", "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED", "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED", "PENDING_REVIVAL_SCAN", "INTEGRATION_CONNECTION_LOST", "ACCESS_DENIED_TO_ENCRYPTION_KEY", "UNSUPPORTED_LANGUAGE", "NO_SCAN_CONFIGURATION_ASSOCIATED", "SCAN_IN_PROGRESS"
3852
+ # resp.covered_resources[0].resource_metadata.code_repository.on_demand_scan.scan_status.status_code #=> String, one of "ACTIVE", "INACTIVE"
3853
+ # resp.covered_resources[0].resource_metadata.code_repository.project_name #=> String
3854
+ # resp.covered_resources[0].resource_metadata.code_repository.provider_type #=> String
3855
+ # resp.covered_resources[0].resource_metadata.code_repository.provider_type_visibility #=> String
3856
+ # resp.covered_resources[0].resource_metadata.code_repository.scan_configuration.continuous_integration_scan_configurations #=> Array
3857
+ # resp.covered_resources[0].resource_metadata.code_repository.scan_configuration.continuous_integration_scan_configurations[0].rule_set_categories #=> Array
3858
+ # resp.covered_resources[0].resource_metadata.code_repository.scan_configuration.continuous_integration_scan_configurations[0].rule_set_categories[0] #=> String, one of "SAST", "IAC", "SCA"
3859
+ # resp.covered_resources[0].resource_metadata.code_repository.scan_configuration.continuous_integration_scan_configurations[0].supported_event #=> String, one of "PULL_REQUEST", "PUSH"
3860
+ # resp.covered_resources[0].resource_metadata.code_repository.scan_configuration.periodic_scan_configurations #=> Array
3861
+ # resp.covered_resources[0].resource_metadata.code_repository.scan_configuration.periodic_scan_configurations[0].frequency_expression #=> String
3862
+ # resp.covered_resources[0].resource_metadata.code_repository.scan_configuration.periodic_scan_configurations[0].rule_set_categories #=> Array
3863
+ # resp.covered_resources[0].resource_metadata.code_repository.scan_configuration.periodic_scan_configurations[0].rule_set_categories[0] #=> String, one of "SAST", "IAC", "SCA"
3216
3864
  # resp.covered_resources[0].resource_metadata.ec2.ami_id #=> String
3217
3865
  # resp.covered_resources[0].resource_metadata.ec2.platform #=> String, one of "WINDOWS", "LINUX", "UNKNOWN", "MACOS"
3218
3866
  # resp.covered_resources[0].resource_metadata.ec2.tags #=> Hash
@@ -3230,9 +3878,9 @@ module Aws::Inspector2
3230
3878
  # resp.covered_resources[0].resource_metadata.lambda_function.layers #=> Array
3231
3879
  # resp.covered_resources[0].resource_metadata.lambda_function.layers[0] #=> String
3232
3880
  # resp.covered_resources[0].resource_metadata.lambda_function.runtime #=> String, one of "NODEJS", "NODEJS_12_X", "NODEJS_14_X", "NODEJS_16_X", "JAVA_8", "JAVA_8_AL2", "JAVA_11", "PYTHON_3_7", "PYTHON_3_8", "PYTHON_3_9", "UNSUPPORTED", "NODEJS_18_X", "GO_1_X", "JAVA_17", "PYTHON_3_10", "PYTHON_3_11", "DOTNETCORE_3_1", "DOTNET_6", "DOTNET_7", "RUBY_2_7", "RUBY_3_2"
3233
- # resp.covered_resources[0].resource_type #=> String, one of "AWS_EC2_INSTANCE", "AWS_ECR_CONTAINER_IMAGE", "AWS_ECR_REPOSITORY", "AWS_LAMBDA_FUNCTION"
3881
+ # resp.covered_resources[0].resource_type #=> String, one of "AWS_EC2_INSTANCE", "AWS_ECR_CONTAINER_IMAGE", "AWS_ECR_REPOSITORY", "AWS_LAMBDA_FUNCTION", "CODE_REPOSITORY"
3234
3882
  # resp.covered_resources[0].scan_mode #=> String, one of "EC2_SSM_AGENT_BASED", "EC2_AGENTLESS"
3235
- # resp.covered_resources[0].scan_status.reason #=> String, one of "PENDING_INITIAL_SCAN", "ACCESS_DENIED", "INTERNAL_ERROR", "UNMANAGED_EC2_INSTANCE", "UNSUPPORTED_OS", "SCAN_ELIGIBILITY_EXPIRED", "RESOURCE_TERMINATED", "SUCCESSFUL", "NO_RESOURCES_FOUND", "IMAGE_SIZE_EXCEEDED", "SCAN_FREQUENCY_MANUAL", "SCAN_FREQUENCY_SCAN_ON_PUSH", "EC2_INSTANCE_STOPPED", "PENDING_DISABLE", "NO_INVENTORY", "STALE_INVENTORY", "EXCLUDED_BY_TAG", "UNSUPPORTED_RUNTIME", "UNSUPPORTED_MEDIA_TYPE", "UNSUPPORTED_CONFIG_FILE", "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED", "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED", "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED", "DEEP_INSPECTION_NO_INVENTORY", "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED", "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED", "PENDING_REVIVAL_SCAN"
3883
+ # resp.covered_resources[0].scan_status.reason #=> String, one of "PENDING_INITIAL_SCAN", "ACCESS_DENIED", "INTERNAL_ERROR", "UNMANAGED_EC2_INSTANCE", "UNSUPPORTED_OS", "SCAN_ELIGIBILITY_EXPIRED", "RESOURCE_TERMINATED", "SUCCESSFUL", "NO_RESOURCES_FOUND", "IMAGE_SIZE_EXCEEDED", "SCAN_FREQUENCY_MANUAL", "SCAN_FREQUENCY_SCAN_ON_PUSH", "EC2_INSTANCE_STOPPED", "PENDING_DISABLE", "NO_INVENTORY", "STALE_INVENTORY", "EXCLUDED_BY_TAG", "UNSUPPORTED_RUNTIME", "UNSUPPORTED_MEDIA_TYPE", "UNSUPPORTED_CONFIG_FILE", "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED", "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED", "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED", "DEEP_INSPECTION_NO_INVENTORY", "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED", "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED", "PENDING_REVIVAL_SCAN", "INTEGRATION_CONNECTION_LOST", "ACCESS_DENIED_TO_ENCRYPTION_KEY", "UNSUPPORTED_LANGUAGE", "NO_SCAN_CONFIGURATION_ASSOCIATED", "SCAN_IN_PROGRESS"
3236
3884
  # resp.covered_resources[0].scan_status.status_code #=> String, one of "ACTIVE", "INACTIVE"
3237
3885
  # resp.covered_resources[0].scan_type #=> String, one of "NETWORK", "PACKAGE", "CODE"
3238
3886
  # resp.next_token #=> String
@@ -3280,6 +3928,24 @@ module Aws::Inspector2
3280
3928
  # value: "CoverageStringInput", # required
3281
3929
  # },
3282
3930
  # ],
3931
+ # code_repository_project_name: [
3932
+ # {
3933
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3934
+ # value: "CoverageStringInput", # required
3935
+ # },
3936
+ # ],
3937
+ # code_repository_provider_type: [
3938
+ # {
3939
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3940
+ # value: "CoverageStringInput", # required
3941
+ # },
3942
+ # ],
3943
+ # code_repository_provider_type_visibility: [
3944
+ # {
3945
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3946
+ # value: "CoverageStringInput", # required
3947
+ # },
3948
+ # ],
3283
3949
  # ec2_instance_tags: [
3284
3950
  # {
3285
3951
  # comparison: "EQUALS", # required, accepts EQUALS
@@ -3342,6 +4008,12 @@ module Aws::Inspector2
3342
4008
  # start_inclusive: Time.now,
3343
4009
  # },
3344
4010
  # ],
4011
+ # last_scanned_commit_id: [
4012
+ # {
4013
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
4014
+ # value: "CoverageStringInput", # required
4015
+ # },
4016
+ # ],
3345
4017
  # resource_id: [
3346
4018
  # {
3347
4019
  # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
@@ -3494,6 +4166,12 @@ module Aws::Inspector2
3494
4166
  # resp.filters[0].criteria.aws_account_id #=> Array
3495
4167
  # resp.filters[0].criteria.aws_account_id[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
3496
4168
  # resp.filters[0].criteria.aws_account_id[0].value #=> String
4169
+ # resp.filters[0].criteria.code_repository_project_name #=> Array
4170
+ # resp.filters[0].criteria.code_repository_project_name[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
4171
+ # resp.filters[0].criteria.code_repository_project_name[0].value #=> String
4172
+ # resp.filters[0].criteria.code_repository_provider_type #=> Array
4173
+ # resp.filters[0].criteria.code_repository_provider_type[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
4174
+ # resp.filters[0].criteria.code_repository_provider_type[0].value #=> String
3497
4175
  # resp.filters[0].criteria.code_vulnerability_detector_name #=> Array
3498
4176
  # resp.filters[0].criteria.code_vulnerability_detector_name[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
3499
4177
  # resp.filters[0].criteria.code_vulnerability_detector_name[0].value #=> String
@@ -3764,6 +4442,28 @@ module Aws::Inspector2
3764
4442
  # sort_by: "CRITICAL", # accepts CRITICAL, HIGH, ALL
3765
4443
  # sort_order: "ASC", # accepts ASC, DESC
3766
4444
  # },
4445
+ # code_repository_aggregation: {
4446
+ # project_names: [
4447
+ # {
4448
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
4449
+ # value: "StringInput", # required
4450
+ # },
4451
+ # ],
4452
+ # provider_types: [
4453
+ # {
4454
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
4455
+ # value: "StringInput", # required
4456
+ # },
4457
+ # ],
4458
+ # resource_ids: [
4459
+ # {
4460
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
4461
+ # value: "StringInput", # required
4462
+ # },
4463
+ # ],
4464
+ # sort_by: "CRITICAL", # accepts CRITICAL, HIGH, ALL
4465
+ # sort_order: "ASC", # accepts ASC, DESC
4466
+ # },
3767
4467
  # ec2_instance_aggregation: {
3768
4468
  # amis: [
3769
4469
  # {
@@ -3911,14 +4611,14 @@ module Aws::Inspector2
3911
4611
  # ],
3912
4612
  # },
3913
4613
  # },
3914
- # aggregation_type: "FINDING_TYPE", # required, accepts FINDING_TYPE, PACKAGE, TITLE, REPOSITORY, AMI, AWS_EC2_INSTANCE, AWS_ECR_CONTAINER, IMAGE_LAYER, ACCOUNT, AWS_LAMBDA_FUNCTION, LAMBDA_LAYER
4614
+ # aggregation_type: "FINDING_TYPE", # required, accepts FINDING_TYPE, PACKAGE, TITLE, REPOSITORY, AMI, AWS_EC2_INSTANCE, AWS_ECR_CONTAINER, IMAGE_LAYER, ACCOUNT, AWS_LAMBDA_FUNCTION, LAMBDA_LAYER, CODE_REPOSITORY
3915
4615
  # max_results: 1,
3916
4616
  # next_token: "NextToken",
3917
4617
  # })
3918
4618
  #
3919
4619
  # @example Response structure
3920
4620
  #
3921
- # resp.aggregation_type #=> String, one of "FINDING_TYPE", "PACKAGE", "TITLE", "REPOSITORY", "AMI", "AWS_EC2_INSTANCE", "AWS_ECR_CONTAINER", "IMAGE_LAYER", "ACCOUNT", "AWS_LAMBDA_FUNCTION", "LAMBDA_LAYER"
4621
+ # resp.aggregation_type #=> String, one of "FINDING_TYPE", "PACKAGE", "TITLE", "REPOSITORY", "AMI", "AWS_EC2_INSTANCE", "AWS_ECR_CONTAINER", "IMAGE_LAYER", "ACCOUNT", "AWS_LAMBDA_FUNCTION", "LAMBDA_LAYER", "CODE_REPOSITORY"
3922
4622
  # resp.next_token #=> String
3923
4623
  # resp.responses #=> Array
3924
4624
  # resp.responses[0].account_aggregation.account_id #=> String
@@ -3948,6 +4648,16 @@ module Aws::Inspector2
3948
4648
  # resp.responses[0].aws_ecr_container_aggregation.severity_counts.critical #=> Integer
3949
4649
  # resp.responses[0].aws_ecr_container_aggregation.severity_counts.high #=> Integer
3950
4650
  # resp.responses[0].aws_ecr_container_aggregation.severity_counts.medium #=> Integer
4651
+ # resp.responses[0].code_repository_aggregation.account_id #=> String
4652
+ # resp.responses[0].code_repository_aggregation.exploit_available_active_findings_count #=> Integer
4653
+ # resp.responses[0].code_repository_aggregation.fix_available_active_findings_count #=> Integer
4654
+ # resp.responses[0].code_repository_aggregation.project_names #=> String
4655
+ # resp.responses[0].code_repository_aggregation.provider_type #=> String
4656
+ # resp.responses[0].code_repository_aggregation.resource_id #=> String
4657
+ # resp.responses[0].code_repository_aggregation.severity_counts.all #=> Integer
4658
+ # resp.responses[0].code_repository_aggregation.severity_counts.critical #=> Integer
4659
+ # resp.responses[0].code_repository_aggregation.severity_counts.high #=> Integer
4660
+ # resp.responses[0].code_repository_aggregation.severity_counts.medium #=> Integer
3951
4661
  # resp.responses[0].ec2_instance_aggregation.account_id #=> String
3952
4662
  # resp.responses[0].ec2_instance_aggregation.ami #=> String
3953
4663
  # resp.responses[0].ec2_instance_aggregation.instance_id #=> String
@@ -4062,6 +4772,18 @@ module Aws::Inspector2
4062
4772
  # value: "StringInput", # required
4063
4773
  # },
4064
4774
  # ],
4775
+ # code_repository_project_name: [
4776
+ # {
4777
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
4778
+ # value: "StringInput", # required
4779
+ # },
4780
+ # ],
4781
+ # code_repository_provider_type: [
4782
+ # {
4783
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
4784
+ # value: "StringInput", # required
4785
+ # },
4786
+ # ],
4065
4787
  # code_vulnerability_detector_name: [
4066
4788
  # {
4067
4789
  # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
@@ -4471,12 +5193,15 @@ module Aws::Inspector2
4471
5193
  # resp.findings[0].resources[0].details.aws_lambda_function.vpc_config.subnet_ids #=> Array
4472
5194
  # resp.findings[0].resources[0].details.aws_lambda_function.vpc_config.subnet_ids[0] #=> String
4473
5195
  # resp.findings[0].resources[0].details.aws_lambda_function.vpc_config.vpc_id #=> String
5196
+ # resp.findings[0].resources[0].details.code_repository.integration_arn #=> String
5197
+ # resp.findings[0].resources[0].details.code_repository.project_name #=> String
5198
+ # resp.findings[0].resources[0].details.code_repository.provider_type #=> String, one of "GITHUB", "GITLAB_SELF_MANAGED"
4474
5199
  # resp.findings[0].resources[0].id #=> String
4475
5200
  # resp.findings[0].resources[0].partition #=> String
4476
5201
  # resp.findings[0].resources[0].region #=> String
4477
5202
  # resp.findings[0].resources[0].tags #=> Hash
4478
5203
  # resp.findings[0].resources[0].tags["MapKey"] #=> String
4479
- # resp.findings[0].resources[0].type #=> String, one of "AWS_EC2_INSTANCE", "AWS_ECR_CONTAINER_IMAGE", "AWS_ECR_REPOSITORY", "AWS_LAMBDA_FUNCTION"
5204
+ # resp.findings[0].resources[0].type #=> String, one of "AWS_EC2_INSTANCE", "AWS_ECR_CONTAINER_IMAGE", "AWS_ECR_REPOSITORY", "AWS_LAMBDA_FUNCTION", "CODE_REPOSITORY"
4480
5205
  # resp.findings[0].severity #=> String, one of "INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL", "UNTRIAGED"
4481
5206
  # resp.findings[0].status #=> String, one of "ACTIVE", "SUPPRESSED", "CLOSED"
4482
5207
  # resp.findings[0].title #=> String
@@ -4619,7 +5344,7 @@ module Aws::Inspector2
4619
5344
  # resp.totals[0].usage[0].currency #=> String, one of "USD"
4620
5345
  # resp.totals[0].usage[0].estimated_monthly_cost #=> Float
4621
5346
  # resp.totals[0].usage[0].total #=> Float
4622
- # resp.totals[0].usage[0].type #=> String, one of "EC2_INSTANCE_HOURS", "ECR_INITIAL_SCAN", "ECR_RESCAN", "LAMBDA_FUNCTION_HOURS", "LAMBDA_FUNCTION_CODE_HOURS"
5347
+ # resp.totals[0].usage[0].type #=> String, one of "EC2_INSTANCE_HOURS", "ECR_INITIAL_SCAN", "ECR_RESCAN", "LAMBDA_FUNCTION_HOURS", "LAMBDA_FUNCTION_CODE_HOURS", "CODE_REPOSITORY_SAST", "CODE_REPOSITORY_IAC", "CODE_REPOSITORY_SCA"
4623
5348
  #
4624
5349
  # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListUsageTotals AWS API Documentation
4625
5350
  #
@@ -4644,7 +5369,7 @@ module Aws::Inspector2
4644
5369
  # @example Request syntax with placeholder values
4645
5370
  #
4646
5371
  # resp = client.reset_encryption_key({
4647
- # resource_type: "AWS_EC2_INSTANCE", # required, accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY, AWS_LAMBDA_FUNCTION
5372
+ # resource_type: "AWS_EC2_INSTANCE", # required, accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY, AWS_LAMBDA_FUNCTION, CODE_REPOSITORY
4648
5373
  # scan_type: "NETWORK", # required, accepts NETWORK, PACKAGE, CODE
4649
5374
  # })
4650
5375
  #
@@ -4829,6 +5554,46 @@ module Aws::Inspector2
4829
5554
  req.send_request(options)
4830
5555
  end
4831
5556
 
5557
+ # Initiates a code security scan on a specified repository.
5558
+ #
5559
+ # @option params [String] :client_token
5560
+ # A unique, case-sensitive identifier that you provide to ensure the
5561
+ # idempotency of the request.
5562
+ #
5563
+ # **A suitable default value is auto-generated.** You should normally
5564
+ # not need to pass this option.**
5565
+ #
5566
+ # @option params [required, Types::CodeSecurityResource] :resource
5567
+ # The resource identifier for the code repository to scan.
5568
+ #
5569
+ # @return [Types::StartCodeSecurityScanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5570
+ #
5571
+ # * {Types::StartCodeSecurityScanResponse#scan_id #scan_id} => String
5572
+ # * {Types::StartCodeSecurityScanResponse#status #status} => String
5573
+ #
5574
+ # @example Request syntax with placeholder values
5575
+ #
5576
+ # resp = client.start_code_security_scan({
5577
+ # client_token: "CodeSecurityClientToken",
5578
+ # resource: { # required
5579
+ # project_id: "ProjectId",
5580
+ # },
5581
+ # })
5582
+ #
5583
+ # @example Response structure
5584
+ #
5585
+ # resp.scan_id #=> String
5586
+ # resp.status #=> String, one of "IN_PROGRESS", "SUCCESSFUL", "FAILED", "SKIPPED"
5587
+ #
5588
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/StartCodeSecurityScan AWS API Documentation
5589
+ #
5590
+ # @overload start_code_security_scan(params = {})
5591
+ # @param [Hash] params ({})
5592
+ def start_code_security_scan(params = {}, options = {})
5593
+ req = build_request(:start_code_security_scan, params)
5594
+ req.send_request(options)
5595
+ end
5596
+
4832
5597
  # Stops a CIS session. This API is used by the Amazon Inspector SSM
4833
5598
  # plugin to communicate with the Amazon Inspector service. The Amazon
4834
5599
  # Inspector SSM plugin calls this API to stop a CIS scan session for the
@@ -5009,6 +5774,96 @@ module Aws::Inspector2
5009
5774
  req.send_request(options)
5010
5775
  end
5011
5776
 
5777
+ # Updates an existing code security integration.
5778
+ #
5779
+ # After calling the `CreateCodeSecurityIntegration` operation, you
5780
+ # complete authentication and authorization with your provider. Next you
5781
+ # call the `UpdateCodeSecurityIntegration` operation to provide the
5782
+ # `details` to complete the integration setup
5783
+ #
5784
+ # @option params [required, Types::UpdateIntegrationDetails] :details
5785
+ # The updated integration details specific to the repository provider
5786
+ # type.
5787
+ #
5788
+ # @option params [required, String] :integration_arn
5789
+ # The Amazon Resource Name (ARN) of the code security integration to
5790
+ # update.
5791
+ #
5792
+ # @return [Types::UpdateCodeSecurityIntegrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5793
+ #
5794
+ # * {Types::UpdateCodeSecurityIntegrationResponse#integration_arn #integration_arn} => String
5795
+ # * {Types::UpdateCodeSecurityIntegrationResponse#status #status} => String
5796
+ #
5797
+ # @example Request syntax with placeholder values
5798
+ #
5799
+ # resp = client.update_code_security_integration({
5800
+ # details: { # required
5801
+ # github: {
5802
+ # code: "GitHubAuthCode", # required
5803
+ # installation_id: "GitHubInstallationId", # required
5804
+ # },
5805
+ # gitlab_self_managed: {
5806
+ # auth_code: "GitLabAuthCode", # required
5807
+ # },
5808
+ # },
5809
+ # integration_arn: "CodeSecurityIntegrationArn", # required
5810
+ # })
5811
+ #
5812
+ # @example Response structure
5813
+ #
5814
+ # resp.integration_arn #=> String
5815
+ # resp.status #=> String, one of "PENDING", "IN_PROGRESS", "ACTIVE", "INACTIVE", "DISABLING"
5816
+ #
5817
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/UpdateCodeSecurityIntegration AWS API Documentation
5818
+ #
5819
+ # @overload update_code_security_integration(params = {})
5820
+ # @param [Hash] params ({})
5821
+ def update_code_security_integration(params = {}, options = {})
5822
+ req = build_request(:update_code_security_integration, params)
5823
+ req.send_request(options)
5824
+ end
5825
+
5826
+ # Updates an existing code security scan configuration.
5827
+ #
5828
+ # @option params [required, Types::CodeSecurityScanConfiguration] :configuration
5829
+ # The updated configuration settings for the code security scan.
5830
+ #
5831
+ # @option params [required, String] :scan_configuration_arn
5832
+ # The Amazon Resource Name (ARN) of the scan configuration to update.
5833
+ #
5834
+ # @return [Types::UpdateCodeSecurityScanConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5835
+ #
5836
+ # * {Types::UpdateCodeSecurityScanConfigurationResponse#scan_configuration_arn #scan_configuration_arn} => String
5837
+ #
5838
+ # @example Request syntax with placeholder values
5839
+ #
5840
+ # resp = client.update_code_security_scan_configuration({
5841
+ # configuration: { # required
5842
+ # continuous_integration_scan_configuration: {
5843
+ # supported_events: ["PULL_REQUEST"], # required, accepts PULL_REQUEST, PUSH
5844
+ # },
5845
+ # periodic_scan_configuration: {
5846
+ # frequency: "WEEKLY", # accepts WEEKLY, MONTHLY, NEVER
5847
+ # frequency_expression: "FrequencyExpression",
5848
+ # },
5849
+ # rule_set_categories: ["SAST"], # required, accepts SAST, IAC, SCA
5850
+ # },
5851
+ # scan_configuration_arn: "ScanConfigurationArn", # required
5852
+ # })
5853
+ #
5854
+ # @example Response structure
5855
+ #
5856
+ # resp.scan_configuration_arn #=> String
5857
+ #
5858
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/UpdateCodeSecurityScanConfiguration AWS API Documentation
5859
+ #
5860
+ # @overload update_code_security_scan_configuration(params = {})
5861
+ # @param [Hash] params ({})
5862
+ def update_code_security_scan_configuration(params = {}, options = {})
5863
+ req = build_request(:update_code_security_scan_configuration, params)
5864
+ req.send_request(options)
5865
+ end
5866
+
5012
5867
  # Updates setting configurations for your Amazon Inspector account. When
5013
5868
  # you use this API as an Amazon Inspector delegated administrator this
5014
5869
  # updates the setting for all accounts you manage. Member accounts in an
@@ -5114,7 +5969,7 @@ module Aws::Inspector2
5114
5969
  #
5115
5970
  # resp = client.update_encryption_key({
5116
5971
  # kms_key_id: "KmsKeyArn", # required
5117
- # resource_type: "AWS_EC2_INSTANCE", # required, accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY, AWS_LAMBDA_FUNCTION
5972
+ # resource_type: "AWS_EC2_INSTANCE", # required, accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY, AWS_LAMBDA_FUNCTION, CODE_REPOSITORY
5118
5973
  # scan_type: "NETWORK", # required, accepts NETWORK, PACKAGE, CODE
5119
5974
  # })
5120
5975
  #
@@ -5166,6 +6021,18 @@ module Aws::Inspector2
5166
6021
  # value: "StringInput", # required
5167
6022
  # },
5168
6023
  # ],
6024
+ # code_repository_project_name: [
6025
+ # {
6026
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
6027
+ # value: "StringInput", # required
6028
+ # },
6029
+ # ],
6030
+ # code_repository_provider_type: [
6031
+ # {
6032
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
6033
+ # value: "StringInput", # required
6034
+ # },
6035
+ # ],
5169
6036
  # code_vulnerability_detector_name: [
5170
6037
  # {
5171
6038
  # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
@@ -5512,6 +6379,7 @@ module Aws::Inspector2
5512
6379
  #
5513
6380
  # resp = client.update_organization_configuration({
5514
6381
  # auto_enable: { # required
6382
+ # code_repository: false,
5515
6383
  # ec2: false, # required
5516
6384
  # ecr: false, # required
5517
6385
  # lambda: false,
@@ -5521,6 +6389,7 @@ module Aws::Inspector2
5521
6389
  #
5522
6390
  # @example Response structure
5523
6391
  #
6392
+ # resp.auto_enable.code_repository #=> Boolean
5524
6393
  # resp.auto_enable.ec2 #=> Boolean
5525
6394
  # resp.auto_enable.ecr #=> Boolean
5526
6395
  # resp.auto_enable.lambda #=> Boolean
@@ -5553,7 +6422,7 @@ module Aws::Inspector2
5553
6422
  tracer: tracer
5554
6423
  )
5555
6424
  context[:gem_name] = 'aws-sdk-inspector2'
5556
- context[:gem_version] = '1.53.0'
6425
+ context[:gem_version] = '1.55.0'
5557
6426
  Seahorse::Client::Request.new(handlers, context)
5558
6427
  end
5559
6428