aws-sdk-inspector2 1.53.0 → 1.54.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.
@@ -508,6 +508,96 @@ module Aws::Inspector2
508
508
  req.send_request(options)
509
509
  end
510
510
 
511
+ # Associates multiple code repositories with an Amazon Inspector code
512
+ # security scan configuration.
513
+ #
514
+ # @option params [required, Array<Types::AssociateConfigurationRequest>] :associate_configuration_requests
515
+ # A list of code repositories to associate with the specified scan
516
+ # configuration.
517
+ #
518
+ # @return [Types::BatchAssociateCodeSecurityScanConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
519
+ #
520
+ # * {Types::BatchAssociateCodeSecurityScanConfigurationResponse#failed_associations #failed_associations} => Array&lt;Types::FailedAssociationResult&gt;
521
+ # * {Types::BatchAssociateCodeSecurityScanConfigurationResponse#successful_associations #successful_associations} => Array&lt;Types::SuccessfulAssociationResult&gt;
522
+ #
523
+ # @example Request syntax with placeholder values
524
+ #
525
+ # resp = client.batch_associate_code_security_scan_configuration({
526
+ # associate_configuration_requests: [ # required
527
+ # {
528
+ # resource: { # required
529
+ # project_id: "ProjectId",
530
+ # },
531
+ # scan_configuration_arn: "ScanConfigurationArn", # required
532
+ # },
533
+ # ],
534
+ # })
535
+ #
536
+ # @example Response structure
537
+ #
538
+ # resp.failed_associations #=> Array
539
+ # resp.failed_associations[0].resource.project_id #=> String
540
+ # resp.failed_associations[0].scan_configuration_arn #=> String
541
+ # resp.failed_associations[0].status_code #=> String, one of "INTERNAL_ERROR", "ACCESS_DENIED", "SCAN_CONFIGURATION_NOT_FOUND", "INVALID_INPUT", "RESOURCE_NOT_FOUND", "QUOTA_EXCEEDED"
542
+ # resp.failed_associations[0].status_message #=> String
543
+ # resp.successful_associations #=> Array
544
+ # resp.successful_associations[0].resource.project_id #=> String
545
+ # resp.successful_associations[0].scan_configuration_arn #=> String
546
+ #
547
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/BatchAssociateCodeSecurityScanConfiguration AWS API Documentation
548
+ #
549
+ # @overload batch_associate_code_security_scan_configuration(params = {})
550
+ # @param [Hash] params ({})
551
+ def batch_associate_code_security_scan_configuration(params = {}, options = {})
552
+ req = build_request(:batch_associate_code_security_scan_configuration, params)
553
+ req.send_request(options)
554
+ end
555
+
556
+ # Disassociates multiple code repositories from an Amazon Inspector code
557
+ # security scan configuration.
558
+ #
559
+ # @option params [required, Array<Types::DisassociateConfigurationRequest>] :disassociate_configuration_requests
560
+ # A list of code repositories to disassociate from the specified scan
561
+ # configuration.
562
+ #
563
+ # @return [Types::BatchDisassociateCodeSecurityScanConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
564
+ #
565
+ # * {Types::BatchDisassociateCodeSecurityScanConfigurationResponse#failed_associations #failed_associations} => Array&lt;Types::FailedAssociationResult&gt;
566
+ # * {Types::BatchDisassociateCodeSecurityScanConfigurationResponse#successful_associations #successful_associations} => Array&lt;Types::SuccessfulAssociationResult&gt;
567
+ #
568
+ # @example Request syntax with placeholder values
569
+ #
570
+ # resp = client.batch_disassociate_code_security_scan_configuration({
571
+ # disassociate_configuration_requests: [ # required
572
+ # {
573
+ # resource: { # required
574
+ # project_id: "ProjectId",
575
+ # },
576
+ # scan_configuration_arn: "ScanConfigurationArn", # required
577
+ # },
578
+ # ],
579
+ # })
580
+ #
581
+ # @example Response structure
582
+ #
583
+ # resp.failed_associations #=> Array
584
+ # resp.failed_associations[0].resource.project_id #=> String
585
+ # resp.failed_associations[0].scan_configuration_arn #=> String
586
+ # resp.failed_associations[0].status_code #=> String, one of "INTERNAL_ERROR", "ACCESS_DENIED", "SCAN_CONFIGURATION_NOT_FOUND", "INVALID_INPUT", "RESOURCE_NOT_FOUND", "QUOTA_EXCEEDED"
587
+ # resp.failed_associations[0].status_message #=> String
588
+ # resp.successful_associations #=> Array
589
+ # resp.successful_associations[0].resource.project_id #=> String
590
+ # resp.successful_associations[0].scan_configuration_arn #=> String
591
+ #
592
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/BatchDisassociateCodeSecurityScanConfiguration AWS API Documentation
593
+ #
594
+ # @overload batch_disassociate_code_security_scan_configuration(params = {})
595
+ # @param [Hash] params ({})
596
+ def batch_disassociate_code_security_scan_configuration(params = {}, options = {})
597
+ req = build_request(:batch_disassociate_code_security_scan_configuration, params)
598
+ req.send_request(options)
599
+ end
600
+
511
601
  # Retrieves the Amazon Inspector status of multiple Amazon Web Services
512
602
  # accounts within your environment.
513
603
  #
@@ -530,6 +620,9 @@ module Aws::Inspector2
530
620
  #
531
621
  # resp.accounts #=> Array
532
622
  # resp.accounts[0].account_id #=> String
623
+ # 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"
624
+ # resp.accounts[0].resource_state.code_repository.error_message #=> String
625
+ # resp.accounts[0].resource_state.code_repository.status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
533
626
  # 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
627
  # resp.accounts[0].resource_state.ec2.error_message #=> String
535
628
  # resp.accounts[0].resource_state.ec2.status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -549,6 +642,7 @@ module Aws::Inspector2
549
642
  # resp.failed_accounts[0].account_id #=> String
550
643
  # 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
644
  # resp.failed_accounts[0].error_message #=> String
645
+ # resp.failed_accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
552
646
  # resp.failed_accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
553
647
  # resp.failed_accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
554
648
  # resp.failed_accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -685,7 +779,7 @@ module Aws::Inspector2
685
779
  # resp.accounts[0].free_trial_info[0].end #=> Time
686
780
  # resp.accounts[0].free_trial_info[0].start #=> Time
687
781
  # 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"
782
+ # resp.accounts[0].free_trial_info[0].type #=> String, one of "EC2", "ECR", "LAMBDA", "LAMBDA_CODE", "CODE_REPOSITORY"
689
783
  # resp.failed_accounts #=> Array
690
784
  # resp.failed_accounts[0].account_id #=> String
691
785
  # resp.failed_accounts[0].code #=> String, one of "ACCESS_DENIED", "INTERNAL_ERROR"
@@ -708,7 +802,6 @@ module Aws::Inspector2
708
802
  # @option params [Array<String>] :account_ids
709
803
  # The unique identifiers for the Amazon Web Services accounts to
710
804
  # retrieve Amazon Inspector deep inspection activation status for.
711
- # </p>
712
805
  #
713
806
  # @return [Types::BatchGetMemberEc2DeepInspectionStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
714
807
  #
@@ -917,6 +1010,127 @@ module Aws::Inspector2
917
1010
  req.send_request(options)
918
1011
  end
919
1012
 
1013
+ # Creates a code security integration with a source code repository
1014
+ # provider.
1015
+ #
1016
+ # After calling the `CreateCodeSecurityIntegration` operation, you
1017
+ # complete authentication and authorization with your provider. Next you
1018
+ # call the `UpdateCodeSecurityIntegration` operation to provide the
1019
+ # `details` to complete the integration setup
1020
+ #
1021
+ # @option params [Types::CreateIntegrationDetail] :details
1022
+ # The integration details specific to the repository provider type.
1023
+ #
1024
+ # @option params [required, String] :name
1025
+ # The name of the code security integration.
1026
+ #
1027
+ # @option params [Hash<String,String>] :tags
1028
+ # The tags to apply to the code security integration.
1029
+ #
1030
+ # @option params [required, String] :type
1031
+ # The type of repository provider for the integration.
1032
+ #
1033
+ # @return [Types::CreateCodeSecurityIntegrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1034
+ #
1035
+ # * {Types::CreateCodeSecurityIntegrationResponse#authorization_url #authorization_url} => String
1036
+ # * {Types::CreateCodeSecurityIntegrationResponse#integration_arn #integration_arn} => String
1037
+ # * {Types::CreateCodeSecurityIntegrationResponse#status #status} => String
1038
+ #
1039
+ # @example Request syntax with placeholder values
1040
+ #
1041
+ # resp = client.create_code_security_integration({
1042
+ # details: {
1043
+ # gitlab_self_managed: {
1044
+ # access_token: "GitLabAccessToken", # required
1045
+ # instance_url: "InstanceUrl", # required
1046
+ # },
1047
+ # },
1048
+ # name: "IntegrationName", # required
1049
+ # tags: {
1050
+ # "MapKey" => "MapValue",
1051
+ # },
1052
+ # type: "GITLAB_SELF_MANAGED", # required, accepts GITLAB_SELF_MANAGED, GITHUB
1053
+ # })
1054
+ #
1055
+ # @example Response structure
1056
+ #
1057
+ # resp.authorization_url #=> String
1058
+ # resp.integration_arn #=> String
1059
+ # resp.status #=> String, one of "PENDING", "IN_PROGRESS", "ACTIVE", "INACTIVE", "DISABLING"
1060
+ #
1061
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CreateCodeSecurityIntegration AWS API Documentation
1062
+ #
1063
+ # @overload create_code_security_integration(params = {})
1064
+ # @param [Hash] params ({})
1065
+ def create_code_security_integration(params = {}, options = {})
1066
+ req = build_request(:create_code_security_integration, params)
1067
+ req.send_request(options)
1068
+ end
1069
+
1070
+ # Creates a scan configuration for code security scanning.
1071
+ #
1072
+ # @option params [required, Types::CodeSecurityScanConfiguration] :configuration
1073
+ # The configuration settings for the code security scan.
1074
+ #
1075
+ # @option params [required, String] :level
1076
+ # The security level for the scan configuration.
1077
+ #
1078
+ # @option params [required, String] :name
1079
+ # The name of the scan configuration.
1080
+ #
1081
+ # @option params [Types::ScopeSettings] :scope_settings
1082
+ # The scope settings that define which repositories will be scanned.
1083
+ # Include this parameter to create a default scan configuration.
1084
+ # Otherwise Amazon Inspector creates a general scan configuration.
1085
+ #
1086
+ # A default scan configuration automatically applies to all existing and
1087
+ # future projects imported into Amazon Inspector. Use the
1088
+ # `BatchAssociateCodeSecurityScanConfiguration` operation to associate a
1089
+ # general scan configuration with projects.
1090
+ #
1091
+ # @option params [Hash<String,String>] :tags
1092
+ # The tags to apply to the scan configuration.
1093
+ #
1094
+ # @return [Types::CreateCodeSecurityScanConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1095
+ #
1096
+ # * {Types::CreateCodeSecurityScanConfigurationResponse#scan_configuration_arn #scan_configuration_arn} => String
1097
+ #
1098
+ # @example Request syntax with placeholder values
1099
+ #
1100
+ # resp = client.create_code_security_scan_configuration({
1101
+ # configuration: { # required
1102
+ # continuous_integration_scan_configuration: {
1103
+ # supported_events: ["PULL_REQUEST"], # required, accepts PULL_REQUEST, PUSH
1104
+ # },
1105
+ # periodic_scan_configuration: {
1106
+ # frequency: "WEEKLY", # accepts WEEKLY, MONTHLY, NEVER
1107
+ # frequency_expression: "FrequencyExpression",
1108
+ # },
1109
+ # rule_set_categories: ["SAST"], # required, accepts SAST, IAC, SCA
1110
+ # },
1111
+ # level: "ORGANIZATION", # required, accepts ORGANIZATION, ACCOUNT
1112
+ # name: "ScanConfigurationName", # required
1113
+ # scope_settings: {
1114
+ # project_selection_scope: "ALL", # accepts ALL
1115
+ # },
1116
+ # tags: {
1117
+ # "MapKey" => "MapValue",
1118
+ # },
1119
+ # })
1120
+ #
1121
+ # @example Response structure
1122
+ #
1123
+ # resp.scan_configuration_arn #=> String
1124
+ #
1125
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CreateCodeSecurityScanConfiguration AWS API Documentation
1126
+ #
1127
+ # @overload create_code_security_scan_configuration(params = {})
1128
+ # @param [Hash] params ({})
1129
+ def create_code_security_scan_configuration(params = {}, options = {})
1130
+ req = build_request(:create_code_security_scan_configuration, params)
1131
+ req.send_request(options)
1132
+ end
1133
+
920
1134
  # Creates a filter resource using specified filter criteria. When the
921
1135
  # filter action is set to `SUPPRESS` this action creates a suppression
922
1136
  # rule.
@@ -958,6 +1172,18 @@ module Aws::Inspector2
958
1172
  # value: "StringInput", # required
959
1173
  # },
960
1174
  # ],
1175
+ # code_repository_project_name: [
1176
+ # {
1177
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
1178
+ # value: "StringInput", # required
1179
+ # },
1180
+ # ],
1181
+ # code_repository_provider_type: [
1182
+ # {
1183
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
1184
+ # value: "StringInput", # required
1185
+ # },
1186
+ # ],
961
1187
  # code_vulnerability_detector_name: [
962
1188
  # {
963
1189
  # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
@@ -1295,6 +1521,18 @@ module Aws::Inspector2
1295
1521
  # value: "StringInput", # required
1296
1522
  # },
1297
1523
  # ],
1524
+ # code_repository_project_name: [
1525
+ # {
1526
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
1527
+ # value: "StringInput", # required
1528
+ # },
1529
+ # ],
1530
+ # code_repository_provider_type: [
1531
+ # {
1532
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
1533
+ # value: "StringInput", # required
1534
+ # },
1535
+ # ],
1298
1536
  # code_vulnerability_detector_name: [
1299
1537
  # {
1300
1538
  # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
@@ -1727,6 +1965,63 @@ module Aws::Inspector2
1727
1965
  req.send_request(options)
1728
1966
  end
1729
1967
 
1968
+ # Deletes a code security integration.
1969
+ #
1970
+ # @option params [required, String] :integration_arn
1971
+ # The Amazon Resource Name (ARN) of the code security integration to
1972
+ # delete.
1973
+ #
1974
+ # @return [Types::DeleteCodeSecurityIntegrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1975
+ #
1976
+ # * {Types::DeleteCodeSecurityIntegrationResponse#integration_arn #integration_arn} => String
1977
+ #
1978
+ # @example Request syntax with placeholder values
1979
+ #
1980
+ # resp = client.delete_code_security_integration({
1981
+ # integration_arn: "CodeSecurityIntegrationArn", # required
1982
+ # })
1983
+ #
1984
+ # @example Response structure
1985
+ #
1986
+ # resp.integration_arn #=> String
1987
+ #
1988
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/DeleteCodeSecurityIntegration AWS API Documentation
1989
+ #
1990
+ # @overload delete_code_security_integration(params = {})
1991
+ # @param [Hash] params ({})
1992
+ def delete_code_security_integration(params = {}, options = {})
1993
+ req = build_request(:delete_code_security_integration, params)
1994
+ req.send_request(options)
1995
+ end
1996
+
1997
+ # Deletes a code security scan configuration.
1998
+ #
1999
+ # @option params [required, String] :scan_configuration_arn
2000
+ # The Amazon Resource Name (ARN) of the scan configuration to delete.
2001
+ #
2002
+ # @return [Types::DeleteCodeSecurityScanConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2003
+ #
2004
+ # * {Types::DeleteCodeSecurityScanConfigurationResponse#scan_configuration_arn #scan_configuration_arn} => String
2005
+ #
2006
+ # @example Request syntax with placeholder values
2007
+ #
2008
+ # resp = client.delete_code_security_scan_configuration({
2009
+ # scan_configuration_arn: "ScanConfigurationArn", # required
2010
+ # })
2011
+ #
2012
+ # @example Response structure
2013
+ #
2014
+ # resp.scan_configuration_arn #=> String
2015
+ #
2016
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/DeleteCodeSecurityScanConfiguration AWS API Documentation
2017
+ #
2018
+ # @overload delete_code_security_scan_configuration(params = {})
2019
+ # @param [Hash] params ({})
2020
+ def delete_code_security_scan_configuration(params = {}, options = {})
2021
+ req = build_request(:delete_code_security_scan_configuration, params)
2022
+ req.send_request(options)
2023
+ end
2024
+
1730
2025
  # Deletes a filter resource.
1731
2026
  #
1732
2027
  # @option params [required, String] :arn
@@ -1765,6 +2060,7 @@ module Aws::Inspector2
1765
2060
  #
1766
2061
  # @example Response structure
1767
2062
  #
2063
+ # resp.auto_enable.code_repository #=> Boolean
1768
2064
  # resp.auto_enable.ec2 #=> Boolean
1769
2065
  # resp.auto_enable.ecr #=> Boolean
1770
2066
  # resp.auto_enable.lambda #=> Boolean
@@ -1800,13 +2096,14 @@ module Aws::Inspector2
1800
2096
  #
1801
2097
  # resp = client.disable({
1802
2098
  # account_ids: ["AccountId"],
1803
- # resource_types: ["EC2"], # accepts EC2, ECR, LAMBDA, LAMBDA_CODE
2099
+ # resource_types: ["EC2"], # accepts EC2, ECR, LAMBDA, LAMBDA_CODE, CODE_REPOSITORY
1804
2100
  # })
1805
2101
  #
1806
2102
  # @example Response structure
1807
2103
  #
1808
2104
  # resp.accounts #=> Array
1809
2105
  # resp.accounts[0].account_id #=> String
2106
+ # resp.accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1810
2107
  # resp.accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1811
2108
  # resp.accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1812
2109
  # resp.accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -1816,6 +2113,7 @@ module Aws::Inspector2
1816
2113
  # resp.failed_accounts[0].account_id #=> String
1817
2114
  # 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
2115
  # resp.failed_accounts[0].error_message #=> String
2116
+ # resp.failed_accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1819
2117
  # resp.failed_accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1820
2118
  # resp.failed_accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1821
2119
  # resp.failed_accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -1916,13 +2214,14 @@ module Aws::Inspector2
1916
2214
  # resp = client.enable({
1917
2215
  # account_ids: ["AccountId"],
1918
2216
  # client_token: "ClientToken",
1919
- # resource_types: ["EC2"], # required, accepts EC2, ECR, LAMBDA, LAMBDA_CODE
2217
+ # resource_types: ["EC2"], # required, accepts EC2, ECR, LAMBDA, LAMBDA_CODE, CODE_REPOSITORY
1920
2218
  # })
1921
2219
  #
1922
2220
  # @example Response structure
1923
2221
  #
1924
2222
  # resp.accounts #=> Array
1925
2223
  # resp.accounts[0].account_id #=> String
2224
+ # resp.accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1926
2225
  # resp.accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1927
2226
  # resp.accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1928
2227
  # resp.accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -1932,6 +2231,7 @@ module Aws::Inspector2
1932
2231
  # resp.failed_accounts[0].account_id #=> String
1933
2232
  # 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
2233
  # resp.failed_accounts[0].error_message #=> String
2234
+ # resp.failed_accounts[0].resource_status.code_repository #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1935
2235
  # resp.failed_accounts[0].resource_status.ec2 #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1936
2236
  # resp.failed_accounts[0].resource_status.ecr #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
1937
2237
  # resp.failed_accounts[0].resource_status.lambda #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "SUSPENDING", "SUSPENDED"
@@ -2183,6 +2483,154 @@ module Aws::Inspector2
2183
2483
  req.send_request(options)
2184
2484
  end
2185
2485
 
2486
+ # Retrieves information about a code security integration.
2487
+ #
2488
+ # @option params [required, String] :integration_arn
2489
+ # The Amazon Resource Name (ARN) of the code security integration to
2490
+ # retrieve.
2491
+ #
2492
+ # @option params [Hash<String,String>] :tags
2493
+ # The tags associated with the code security integration.
2494
+ #
2495
+ # @return [Types::GetCodeSecurityIntegrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2496
+ #
2497
+ # * {Types::GetCodeSecurityIntegrationResponse#authorization_url #authorization_url} => String
2498
+ # * {Types::GetCodeSecurityIntegrationResponse#created_on #created_on} => Time
2499
+ # * {Types::GetCodeSecurityIntegrationResponse#integration_arn #integration_arn} => String
2500
+ # * {Types::GetCodeSecurityIntegrationResponse#last_update_on #last_update_on} => Time
2501
+ # * {Types::GetCodeSecurityIntegrationResponse#name #name} => String
2502
+ # * {Types::GetCodeSecurityIntegrationResponse#status #status} => String
2503
+ # * {Types::GetCodeSecurityIntegrationResponse#status_reason #status_reason} => String
2504
+ # * {Types::GetCodeSecurityIntegrationResponse#tags #tags} => Hash&lt;String,String&gt;
2505
+ # * {Types::GetCodeSecurityIntegrationResponse#type #type} => String
2506
+ #
2507
+ # @example Request syntax with placeholder values
2508
+ #
2509
+ # resp = client.get_code_security_integration({
2510
+ # integration_arn: "CodeSecurityIntegrationArn", # required
2511
+ # tags: {
2512
+ # "MapKey" => "MapValue",
2513
+ # },
2514
+ # })
2515
+ #
2516
+ # @example Response structure
2517
+ #
2518
+ # resp.authorization_url #=> String
2519
+ # resp.created_on #=> Time
2520
+ # resp.integration_arn #=> String
2521
+ # resp.last_update_on #=> Time
2522
+ # resp.name #=> String
2523
+ # resp.status #=> String, one of "PENDING", "IN_PROGRESS", "ACTIVE", "INACTIVE", "DISABLING"
2524
+ # resp.status_reason #=> String
2525
+ # resp.tags #=> Hash
2526
+ # resp.tags["MapKey"] #=> String
2527
+ # resp.type #=> String, one of "GITLAB_SELF_MANAGED", "GITHUB"
2528
+ #
2529
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetCodeSecurityIntegration AWS API Documentation
2530
+ #
2531
+ # @overload get_code_security_integration(params = {})
2532
+ # @param [Hash] params ({})
2533
+ def get_code_security_integration(params = {}, options = {})
2534
+ req = build_request(:get_code_security_integration, params)
2535
+ req.send_request(options)
2536
+ end
2537
+
2538
+ # Retrieves information about a specific code security scan.
2539
+ #
2540
+ # @option params [required, Types::CodeSecurityResource] :resource
2541
+ # The resource identifier for the code repository that was scanned.
2542
+ #
2543
+ # @option params [required, String] :scan_id
2544
+ # The unique identifier of the scan to retrieve.
2545
+ #
2546
+ # @return [Types::GetCodeSecurityScanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2547
+ #
2548
+ # * {Types::GetCodeSecurityScanResponse#account_id #account_id} => String
2549
+ # * {Types::GetCodeSecurityScanResponse#created_at #created_at} => Time
2550
+ # * {Types::GetCodeSecurityScanResponse#last_commit_id #last_commit_id} => String
2551
+ # * {Types::GetCodeSecurityScanResponse#resource #resource} => Types::CodeSecurityResource
2552
+ # * {Types::GetCodeSecurityScanResponse#scan_id #scan_id} => String
2553
+ # * {Types::GetCodeSecurityScanResponse#status #status} => String
2554
+ # * {Types::GetCodeSecurityScanResponse#status_reason #status_reason} => String
2555
+ # * {Types::GetCodeSecurityScanResponse#updated_at #updated_at} => Time
2556
+ #
2557
+ # @example Request syntax with placeholder values
2558
+ #
2559
+ # resp = client.get_code_security_scan({
2560
+ # resource: { # required
2561
+ # project_id: "ProjectId",
2562
+ # },
2563
+ # scan_id: "CodeSecurityUuid", # required
2564
+ # })
2565
+ #
2566
+ # @example Response structure
2567
+ #
2568
+ # resp.account_id #=> String
2569
+ # resp.created_at #=> Time
2570
+ # resp.last_commit_id #=> String
2571
+ # resp.resource.project_id #=> String
2572
+ # resp.scan_id #=> String
2573
+ # resp.status #=> String, one of "IN_PROGRESS", "SUCCESSFUL", "FAILED", "SKIPPED"
2574
+ # resp.status_reason #=> String
2575
+ # resp.updated_at #=> Time
2576
+ #
2577
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetCodeSecurityScan AWS API Documentation
2578
+ #
2579
+ # @overload get_code_security_scan(params = {})
2580
+ # @param [Hash] params ({})
2581
+ def get_code_security_scan(params = {}, options = {})
2582
+ req = build_request(:get_code_security_scan, params)
2583
+ req.send_request(options)
2584
+ end
2585
+
2586
+ # Retrieves information about a code security scan configuration.
2587
+ #
2588
+ # @option params [required, String] :scan_configuration_arn
2589
+ # The Amazon Resource Name (ARN) of the scan configuration to retrieve.
2590
+ #
2591
+ # @return [Types::GetCodeSecurityScanConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2592
+ #
2593
+ # * {Types::GetCodeSecurityScanConfigurationResponse#configuration #configuration} => Types::CodeSecurityScanConfiguration
2594
+ # * {Types::GetCodeSecurityScanConfigurationResponse#created_at #created_at} => Time
2595
+ # * {Types::GetCodeSecurityScanConfigurationResponse#last_updated_at #last_updated_at} => Time
2596
+ # * {Types::GetCodeSecurityScanConfigurationResponse#level #level} => String
2597
+ # * {Types::GetCodeSecurityScanConfigurationResponse#name #name} => String
2598
+ # * {Types::GetCodeSecurityScanConfigurationResponse#scan_configuration_arn #scan_configuration_arn} => String
2599
+ # * {Types::GetCodeSecurityScanConfigurationResponse#scope_settings #scope_settings} => Types::ScopeSettings
2600
+ # * {Types::GetCodeSecurityScanConfigurationResponse#tags #tags} => Hash&lt;String,String&gt;
2601
+ #
2602
+ # @example Request syntax with placeholder values
2603
+ #
2604
+ # resp = client.get_code_security_scan_configuration({
2605
+ # scan_configuration_arn: "ScanConfigurationArn", # required
2606
+ # })
2607
+ #
2608
+ # @example Response structure
2609
+ #
2610
+ # resp.configuration.continuous_integration_scan_configuration.supported_events #=> Array
2611
+ # resp.configuration.continuous_integration_scan_configuration.supported_events[0] #=> String, one of "PULL_REQUEST", "PUSH"
2612
+ # resp.configuration.periodic_scan_configuration.frequency #=> String, one of "WEEKLY", "MONTHLY", "NEVER"
2613
+ # resp.configuration.periodic_scan_configuration.frequency_expression #=> String
2614
+ # resp.configuration.rule_set_categories #=> Array
2615
+ # resp.configuration.rule_set_categories[0] #=> String, one of "SAST", "IAC", "SCA"
2616
+ # resp.created_at #=> Time
2617
+ # resp.last_updated_at #=> Time
2618
+ # resp.level #=> String, one of "ORGANIZATION", "ACCOUNT"
2619
+ # resp.name #=> String
2620
+ # resp.scan_configuration_arn #=> String
2621
+ # resp.scope_settings.project_selection_scope #=> String, one of "ALL"
2622
+ # resp.tags #=> Hash
2623
+ # resp.tags["MapKey"] #=> String
2624
+ #
2625
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetCodeSecurityScanConfiguration AWS API Documentation
2626
+ #
2627
+ # @overload get_code_security_scan_configuration(params = {})
2628
+ # @param [Hash] params ({})
2629
+ def get_code_security_scan_configuration(params = {}, options = {})
2630
+ req = build_request(:get_code_security_scan_configuration, params)
2631
+ req.send_request(options)
2632
+ end
2633
+
2186
2634
  # Retrieves setting configurations for Inspector scans.
2187
2635
  #
2188
2636
  # @return [Types::GetConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -2273,7 +2721,7 @@ module Aws::Inspector2
2273
2721
  # @example Request syntax with placeholder values
2274
2722
  #
2275
2723
  # 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
2724
+ # resource_type: "AWS_EC2_INSTANCE", # required, accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY, AWS_LAMBDA_FUNCTION, CODE_REPOSITORY
2277
2725
  # scan_type: "NETWORK", # required, accepts NETWORK, PACKAGE, CODE
2278
2726
  # })
2279
2727
  #
@@ -2320,6 +2768,12 @@ module Aws::Inspector2
2320
2768
  # resp.filter_criteria.aws_account_id #=> Array
2321
2769
  # resp.filter_criteria.aws_account_id[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
2322
2770
  # resp.filter_criteria.aws_account_id[0].value #=> String
2771
+ # resp.filter_criteria.code_repository_project_name #=> Array
2772
+ # resp.filter_criteria.code_repository_project_name[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
2773
+ # resp.filter_criteria.code_repository_project_name[0].value #=> String
2774
+ # resp.filter_criteria.code_repository_provider_type #=> Array
2775
+ # resp.filter_criteria.code_repository_provider_type[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
2776
+ # resp.filter_criteria.code_repository_provider_type[0].value #=> String
2323
2777
  # resp.filter_criteria.code_vulnerability_detector_name #=> Array
2324
2778
  # resp.filter_criteria.code_vulnerability_detector_name[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
2325
2779
  # resp.filter_criteria.code_vulnerability_detector_name[0].value #=> String
@@ -3067,6 +3521,149 @@ module Aws::Inspector2
3067
3521
  req.send_request(options)
3068
3522
  end
3069
3523
 
3524
+ # Lists all code security integrations in your account.
3525
+ #
3526
+ # @option params [Integer] :max_results
3527
+ # The maximum number of results to return in a single call.
3528
+ #
3529
+ # @option params [String] :next_token
3530
+ # A token to use for paginating results that are returned in the
3531
+ # response. Set the value of this parameter to null for the first
3532
+ # request. For subsequent calls, use the NextToken value returned from
3533
+ # the previous request to continue listing results after the first page.
3534
+ #
3535
+ # @return [Types::ListCodeSecurityIntegrationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3536
+ #
3537
+ # * {Types::ListCodeSecurityIntegrationsResponse#integrations #integrations} => Array&lt;Types::CodeSecurityIntegrationSummary&gt;
3538
+ # * {Types::ListCodeSecurityIntegrationsResponse#next_token #next_token} => String
3539
+ #
3540
+ # @example Request syntax with placeholder values
3541
+ #
3542
+ # resp = client.list_code_security_integrations({
3543
+ # max_results: 1,
3544
+ # next_token: "String",
3545
+ # })
3546
+ #
3547
+ # @example Response structure
3548
+ #
3549
+ # resp.integrations #=> Array
3550
+ # resp.integrations[0].created_on #=> Time
3551
+ # resp.integrations[0].integration_arn #=> String
3552
+ # resp.integrations[0].last_update_on #=> Time
3553
+ # resp.integrations[0].name #=> String
3554
+ # resp.integrations[0].status #=> String, one of "PENDING", "IN_PROGRESS", "ACTIVE", "INACTIVE", "DISABLING"
3555
+ # resp.integrations[0].status_reason #=> String
3556
+ # resp.integrations[0].tags #=> Hash
3557
+ # resp.integrations[0].tags["MapKey"] #=> String
3558
+ # resp.integrations[0].type #=> String, one of "GITLAB_SELF_MANAGED", "GITHUB"
3559
+ # resp.next_token #=> String
3560
+ #
3561
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListCodeSecurityIntegrations AWS API Documentation
3562
+ #
3563
+ # @overload list_code_security_integrations(params = {})
3564
+ # @param [Hash] params ({})
3565
+ def list_code_security_integrations(params = {}, options = {})
3566
+ req = build_request(:list_code_security_integrations, params)
3567
+ req.send_request(options)
3568
+ end
3569
+
3570
+ # Lists the associations between code repositories and Amazon Inspector
3571
+ # code security scan configurations.
3572
+ #
3573
+ # @option params [Integer] :max_results
3574
+ # The maximum number of results to return in the response. If your
3575
+ # request would return more than the maximum the response will return a
3576
+ # `nextToken` value, use this value when you call the action again to
3577
+ # get the remaining results.
3578
+ #
3579
+ # @option params [String] :next_token
3580
+ # A token to use for paginating results that are returned in the
3581
+ # response. Set the value of this parameter to null for the first
3582
+ # request to a list action. For subsequent calls, use the `NextToken`
3583
+ # value returned from the previous request to continue listing results
3584
+ # after the first page.
3585
+ #
3586
+ # @option params [required, String] :scan_configuration_arn
3587
+ # The Amazon Resource Name (ARN) of the scan configuration to list
3588
+ # associations for.
3589
+ #
3590
+ # @return [Types::ListCodeSecurityScanConfigurationAssociationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3591
+ #
3592
+ # * {Types::ListCodeSecurityScanConfigurationAssociationsResponse#associations #associations} => Array&lt;Types::CodeSecurityScanConfigurationAssociationSummary&gt;
3593
+ # * {Types::ListCodeSecurityScanConfigurationAssociationsResponse#next_token #next_token} => String
3594
+ #
3595
+ # @example Request syntax with placeholder values
3596
+ #
3597
+ # resp = client.list_code_security_scan_configuration_associations({
3598
+ # max_results: 1,
3599
+ # next_token: "NextToken",
3600
+ # scan_configuration_arn: "ScanConfigurationArn", # required
3601
+ # })
3602
+ #
3603
+ # @example Response structure
3604
+ #
3605
+ # resp.associations #=> Array
3606
+ # resp.associations[0].resource.project_id #=> String
3607
+ # resp.next_token #=> String
3608
+ #
3609
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListCodeSecurityScanConfigurationAssociations AWS API Documentation
3610
+ #
3611
+ # @overload list_code_security_scan_configuration_associations(params = {})
3612
+ # @param [Hash] params ({})
3613
+ def list_code_security_scan_configuration_associations(params = {}, options = {})
3614
+ req = build_request(:list_code_security_scan_configuration_associations, params)
3615
+ req.send_request(options)
3616
+ end
3617
+
3618
+ # Lists all code security scan configurations in your account.
3619
+ #
3620
+ # @option params [Integer] :max_results
3621
+ # The maximum number of results to return in a single call.
3622
+ #
3623
+ # @option params [String] :next_token
3624
+ # A token to use for paginating results that are returned in the
3625
+ # response. Set the value of this parameter to null for the first
3626
+ # request. For subsequent calls, use the NextToken value returned from
3627
+ # the previous request to continue listing results after the first page.
3628
+ #
3629
+ # @return [Types::ListCodeSecurityScanConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3630
+ #
3631
+ # * {Types::ListCodeSecurityScanConfigurationsResponse#configurations #configurations} => Array&lt;Types::CodeSecurityScanConfigurationSummary&gt;
3632
+ # * {Types::ListCodeSecurityScanConfigurationsResponse#next_token #next_token} => String
3633
+ #
3634
+ # @example Request syntax with placeholder values
3635
+ #
3636
+ # resp = client.list_code_security_scan_configurations({
3637
+ # max_results: 1,
3638
+ # next_token: "NextToken",
3639
+ # })
3640
+ #
3641
+ # @example Response structure
3642
+ #
3643
+ # resp.configurations #=> Array
3644
+ # resp.configurations[0].continuous_integration_scan_supported_events #=> Array
3645
+ # resp.configurations[0].continuous_integration_scan_supported_events[0] #=> String, one of "PULL_REQUEST", "PUSH"
3646
+ # resp.configurations[0].frequency_expression #=> String
3647
+ # resp.configurations[0].name #=> String
3648
+ # resp.configurations[0].owner_account_id #=> String
3649
+ # resp.configurations[0].periodic_scan_frequency #=> String, one of "WEEKLY", "MONTHLY", "NEVER"
3650
+ # resp.configurations[0].rule_set_categories #=> Array
3651
+ # resp.configurations[0].rule_set_categories[0] #=> String, one of "SAST", "IAC", "SCA"
3652
+ # resp.configurations[0].scan_configuration_arn #=> String
3653
+ # resp.configurations[0].scope_settings.project_selection_scope #=> String, one of "ALL"
3654
+ # resp.configurations[0].tags #=> Hash
3655
+ # resp.configurations[0].tags["MapKey"] #=> String
3656
+ # resp.next_token #=> String
3657
+ #
3658
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListCodeSecurityScanConfigurations AWS API Documentation
3659
+ #
3660
+ # @overload list_code_security_scan_configurations(params = {})
3661
+ # @param [Hash] params ({})
3662
+ def list_code_security_scan_configurations(params = {}, options = {})
3663
+ req = build_request(:list_code_security_scan_configurations, params)
3664
+ req.send_request(options)
3665
+ end
3666
+
3070
3667
  # Lists coverage details for your environment.
3071
3668
  #
3072
3669
  # @option params [Types::CoverageFilterCriteria] :filter_criteria
@@ -3104,6 +3701,24 @@ module Aws::Inspector2
3104
3701
  # value: "CoverageStringInput", # required
3105
3702
  # },
3106
3703
  # ],
3704
+ # code_repository_project_name: [
3705
+ # {
3706
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3707
+ # value: "CoverageStringInput", # required
3708
+ # },
3709
+ # ],
3710
+ # code_repository_provider_type: [
3711
+ # {
3712
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3713
+ # value: "CoverageStringInput", # required
3714
+ # },
3715
+ # ],
3716
+ # code_repository_provider_type_visibility: [
3717
+ # {
3718
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3719
+ # value: "CoverageStringInput", # required
3720
+ # },
3721
+ # ],
3107
3722
  # ec2_instance_tags: [
3108
3723
  # {
3109
3724
  # comparison: "EQUALS", # required, accepts EQUALS
@@ -3166,6 +3781,12 @@ module Aws::Inspector2
3166
3781
  # start_inclusive: Time.now,
3167
3782
  # },
3168
3783
  # ],
3784
+ # last_scanned_commit_id: [
3785
+ # {
3786
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3787
+ # value: "CoverageStringInput", # required
3788
+ # },
3789
+ # ],
3169
3790
  # resource_id: [
3170
3791
  # {
3171
3792
  # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
@@ -3213,6 +3834,23 @@ module Aws::Inspector2
3213
3834
  # resp.covered_resources[0].account_id #=> String
3214
3835
  # resp.covered_resources[0].last_scanned_at #=> Time
3215
3836
  # resp.covered_resources[0].resource_id #=> String
3837
+ # resp.covered_resources[0].resource_metadata.code_repository.integration_arn #=> String
3838
+ # resp.covered_resources[0].resource_metadata.code_repository.last_scanned_commit_id #=> String
3839
+ # resp.covered_resources[0].resource_metadata.code_repository.on_demand_scan.last_scan_at #=> Time
3840
+ # resp.covered_resources[0].resource_metadata.code_repository.on_demand_scan.last_scanned_commit_id #=> String
3841
+ # 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"
3842
+ # resp.covered_resources[0].resource_metadata.code_repository.on_demand_scan.scan_status.status_code #=> String, one of "ACTIVE", "INACTIVE"
3843
+ # resp.covered_resources[0].resource_metadata.code_repository.project_name #=> String
3844
+ # resp.covered_resources[0].resource_metadata.code_repository.provider_type #=> String
3845
+ # resp.covered_resources[0].resource_metadata.code_repository.provider_type_visibility #=> String
3846
+ # resp.covered_resources[0].resource_metadata.code_repository.scan_configuration.continuous_integration_scan_configurations #=> Array
3847
+ # resp.covered_resources[0].resource_metadata.code_repository.scan_configuration.continuous_integration_scan_configurations[0].rule_set_categories #=> Array
3848
+ # 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"
3849
+ # resp.covered_resources[0].resource_metadata.code_repository.scan_configuration.continuous_integration_scan_configurations[0].supported_event #=> String, one of "PULL_REQUEST", "PUSH"
3850
+ # resp.covered_resources[0].resource_metadata.code_repository.scan_configuration.periodic_scan_configurations #=> Array
3851
+ # resp.covered_resources[0].resource_metadata.code_repository.scan_configuration.periodic_scan_configurations[0].frequency_expression #=> String
3852
+ # resp.covered_resources[0].resource_metadata.code_repository.scan_configuration.periodic_scan_configurations[0].rule_set_categories #=> Array
3853
+ # 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
3854
  # resp.covered_resources[0].resource_metadata.ec2.ami_id #=> String
3217
3855
  # resp.covered_resources[0].resource_metadata.ec2.platform #=> String, one of "WINDOWS", "LINUX", "UNKNOWN", "MACOS"
3218
3856
  # resp.covered_resources[0].resource_metadata.ec2.tags #=> Hash
@@ -3230,9 +3868,9 @@ module Aws::Inspector2
3230
3868
  # resp.covered_resources[0].resource_metadata.lambda_function.layers #=> Array
3231
3869
  # resp.covered_resources[0].resource_metadata.lambda_function.layers[0] #=> String
3232
3870
  # 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"
3871
+ # 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
3872
  # 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"
3873
+ # 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
3874
  # resp.covered_resources[0].scan_status.status_code #=> String, one of "ACTIVE", "INACTIVE"
3237
3875
  # resp.covered_resources[0].scan_type #=> String, one of "NETWORK", "PACKAGE", "CODE"
3238
3876
  # resp.next_token #=> String
@@ -3280,6 +3918,24 @@ module Aws::Inspector2
3280
3918
  # value: "CoverageStringInput", # required
3281
3919
  # },
3282
3920
  # ],
3921
+ # code_repository_project_name: [
3922
+ # {
3923
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3924
+ # value: "CoverageStringInput", # required
3925
+ # },
3926
+ # ],
3927
+ # code_repository_provider_type: [
3928
+ # {
3929
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3930
+ # value: "CoverageStringInput", # required
3931
+ # },
3932
+ # ],
3933
+ # code_repository_provider_type_visibility: [
3934
+ # {
3935
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3936
+ # value: "CoverageStringInput", # required
3937
+ # },
3938
+ # ],
3283
3939
  # ec2_instance_tags: [
3284
3940
  # {
3285
3941
  # comparison: "EQUALS", # required, accepts EQUALS
@@ -3342,6 +3998,12 @@ module Aws::Inspector2
3342
3998
  # start_inclusive: Time.now,
3343
3999
  # },
3344
4000
  # ],
4001
+ # last_scanned_commit_id: [
4002
+ # {
4003
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
4004
+ # value: "CoverageStringInput", # required
4005
+ # },
4006
+ # ],
3345
4007
  # resource_id: [
3346
4008
  # {
3347
4009
  # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
@@ -3494,6 +4156,12 @@ module Aws::Inspector2
3494
4156
  # resp.filters[0].criteria.aws_account_id #=> Array
3495
4157
  # resp.filters[0].criteria.aws_account_id[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
3496
4158
  # resp.filters[0].criteria.aws_account_id[0].value #=> String
4159
+ # resp.filters[0].criteria.code_repository_project_name #=> Array
4160
+ # resp.filters[0].criteria.code_repository_project_name[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
4161
+ # resp.filters[0].criteria.code_repository_project_name[0].value #=> String
4162
+ # resp.filters[0].criteria.code_repository_provider_type #=> Array
4163
+ # resp.filters[0].criteria.code_repository_provider_type[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
4164
+ # resp.filters[0].criteria.code_repository_provider_type[0].value #=> String
3497
4165
  # resp.filters[0].criteria.code_vulnerability_detector_name #=> Array
3498
4166
  # resp.filters[0].criteria.code_vulnerability_detector_name[0].comparison #=> String, one of "EQUALS", "PREFIX", "NOT_EQUALS"
3499
4167
  # resp.filters[0].criteria.code_vulnerability_detector_name[0].value #=> String
@@ -3764,6 +4432,28 @@ module Aws::Inspector2
3764
4432
  # sort_by: "CRITICAL", # accepts CRITICAL, HIGH, ALL
3765
4433
  # sort_order: "ASC", # accepts ASC, DESC
3766
4434
  # },
4435
+ # code_repository_aggregation: {
4436
+ # project_names: [
4437
+ # {
4438
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
4439
+ # value: "StringInput", # required
4440
+ # },
4441
+ # ],
4442
+ # provider_types: [
4443
+ # {
4444
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
4445
+ # value: "StringInput", # required
4446
+ # },
4447
+ # ],
4448
+ # resource_ids: [
4449
+ # {
4450
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
4451
+ # value: "StringInput", # required
4452
+ # },
4453
+ # ],
4454
+ # sort_by: "CRITICAL", # accepts CRITICAL, HIGH, ALL
4455
+ # sort_order: "ASC", # accepts ASC, DESC
4456
+ # },
3767
4457
  # ec2_instance_aggregation: {
3768
4458
  # amis: [
3769
4459
  # {
@@ -3911,14 +4601,14 @@ module Aws::Inspector2
3911
4601
  # ],
3912
4602
  # },
3913
4603
  # },
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
4604
+ # 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
4605
  # max_results: 1,
3916
4606
  # next_token: "NextToken",
3917
4607
  # })
3918
4608
  #
3919
4609
  # @example Response structure
3920
4610
  #
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"
4611
+ # 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
4612
  # resp.next_token #=> String
3923
4613
  # resp.responses #=> Array
3924
4614
  # resp.responses[0].account_aggregation.account_id #=> String
@@ -3948,6 +4638,16 @@ module Aws::Inspector2
3948
4638
  # resp.responses[0].aws_ecr_container_aggregation.severity_counts.critical #=> Integer
3949
4639
  # resp.responses[0].aws_ecr_container_aggregation.severity_counts.high #=> Integer
3950
4640
  # resp.responses[0].aws_ecr_container_aggregation.severity_counts.medium #=> Integer
4641
+ # resp.responses[0].code_repository_aggregation.account_id #=> String
4642
+ # resp.responses[0].code_repository_aggregation.exploit_available_active_findings_count #=> Integer
4643
+ # resp.responses[0].code_repository_aggregation.fix_available_active_findings_count #=> Integer
4644
+ # resp.responses[0].code_repository_aggregation.project_names #=> String
4645
+ # resp.responses[0].code_repository_aggregation.provider_type #=> String
4646
+ # resp.responses[0].code_repository_aggregation.resource_id #=> String
4647
+ # resp.responses[0].code_repository_aggregation.severity_counts.all #=> Integer
4648
+ # resp.responses[0].code_repository_aggregation.severity_counts.critical #=> Integer
4649
+ # resp.responses[0].code_repository_aggregation.severity_counts.high #=> Integer
4650
+ # resp.responses[0].code_repository_aggregation.severity_counts.medium #=> Integer
3951
4651
  # resp.responses[0].ec2_instance_aggregation.account_id #=> String
3952
4652
  # resp.responses[0].ec2_instance_aggregation.ami #=> String
3953
4653
  # resp.responses[0].ec2_instance_aggregation.instance_id #=> String
@@ -4062,6 +4762,18 @@ module Aws::Inspector2
4062
4762
  # value: "StringInput", # required
4063
4763
  # },
4064
4764
  # ],
4765
+ # code_repository_project_name: [
4766
+ # {
4767
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
4768
+ # value: "StringInput", # required
4769
+ # },
4770
+ # ],
4771
+ # code_repository_provider_type: [
4772
+ # {
4773
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
4774
+ # value: "StringInput", # required
4775
+ # },
4776
+ # ],
4065
4777
  # code_vulnerability_detector_name: [
4066
4778
  # {
4067
4779
  # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
@@ -4471,12 +5183,15 @@ module Aws::Inspector2
4471
5183
  # resp.findings[0].resources[0].details.aws_lambda_function.vpc_config.subnet_ids #=> Array
4472
5184
  # resp.findings[0].resources[0].details.aws_lambda_function.vpc_config.subnet_ids[0] #=> String
4473
5185
  # resp.findings[0].resources[0].details.aws_lambda_function.vpc_config.vpc_id #=> String
5186
+ # resp.findings[0].resources[0].details.code_repository.integration_arn #=> String
5187
+ # resp.findings[0].resources[0].details.code_repository.project_name #=> String
5188
+ # resp.findings[0].resources[0].details.code_repository.provider_type #=> String, one of "GITHUB", "GITLAB_SELF_MANAGED"
4474
5189
  # resp.findings[0].resources[0].id #=> String
4475
5190
  # resp.findings[0].resources[0].partition #=> String
4476
5191
  # resp.findings[0].resources[0].region #=> String
4477
5192
  # resp.findings[0].resources[0].tags #=> Hash
4478
5193
  # 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"
5194
+ # 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
5195
  # resp.findings[0].severity #=> String, one of "INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL", "UNTRIAGED"
4481
5196
  # resp.findings[0].status #=> String, one of "ACTIVE", "SUPPRESSED", "CLOSED"
4482
5197
  # resp.findings[0].title #=> String
@@ -4619,7 +5334,7 @@ module Aws::Inspector2
4619
5334
  # resp.totals[0].usage[0].currency #=> String, one of "USD"
4620
5335
  # resp.totals[0].usage[0].estimated_monthly_cost #=> Float
4621
5336
  # 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"
5337
+ # 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
5338
  #
4624
5339
  # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListUsageTotals AWS API Documentation
4625
5340
  #
@@ -4644,7 +5359,7 @@ module Aws::Inspector2
4644
5359
  # @example Request syntax with placeholder values
4645
5360
  #
4646
5361
  # 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
5362
+ # resource_type: "AWS_EC2_INSTANCE", # required, accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY, AWS_LAMBDA_FUNCTION, CODE_REPOSITORY
4648
5363
  # scan_type: "NETWORK", # required, accepts NETWORK, PACKAGE, CODE
4649
5364
  # })
4650
5365
  #
@@ -4829,6 +5544,46 @@ module Aws::Inspector2
4829
5544
  req.send_request(options)
4830
5545
  end
4831
5546
 
5547
+ # Initiates a code security scan on a specified repository.
5548
+ #
5549
+ # @option params [String] :client_token
5550
+ # A unique, case-sensitive identifier that you provide to ensure the
5551
+ # idempotency of the request.
5552
+ #
5553
+ # **A suitable default value is auto-generated.** You should normally
5554
+ # not need to pass this option.**
5555
+ #
5556
+ # @option params [required, Types::CodeSecurityResource] :resource
5557
+ # The resource identifier for the code repository to scan.
5558
+ #
5559
+ # @return [Types::StartCodeSecurityScanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5560
+ #
5561
+ # * {Types::StartCodeSecurityScanResponse#scan_id #scan_id} => String
5562
+ # * {Types::StartCodeSecurityScanResponse#status #status} => String
5563
+ #
5564
+ # @example Request syntax with placeholder values
5565
+ #
5566
+ # resp = client.start_code_security_scan({
5567
+ # client_token: "CodeSecurityClientToken",
5568
+ # resource: { # required
5569
+ # project_id: "ProjectId",
5570
+ # },
5571
+ # })
5572
+ #
5573
+ # @example Response structure
5574
+ #
5575
+ # resp.scan_id #=> String
5576
+ # resp.status #=> String, one of "IN_PROGRESS", "SUCCESSFUL", "FAILED", "SKIPPED"
5577
+ #
5578
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/StartCodeSecurityScan AWS API Documentation
5579
+ #
5580
+ # @overload start_code_security_scan(params = {})
5581
+ # @param [Hash] params ({})
5582
+ def start_code_security_scan(params = {}, options = {})
5583
+ req = build_request(:start_code_security_scan, params)
5584
+ req.send_request(options)
5585
+ end
5586
+
4832
5587
  # Stops a CIS session. This API is used by the Amazon Inspector SSM
4833
5588
  # plugin to communicate with the Amazon Inspector service. The Amazon
4834
5589
  # Inspector SSM plugin calls this API to stop a CIS scan session for the
@@ -5009,6 +5764,96 @@ module Aws::Inspector2
5009
5764
  req.send_request(options)
5010
5765
  end
5011
5766
 
5767
+ # Updates an existing code security integration.
5768
+ #
5769
+ # After calling the `CreateCodeSecurityIntegration` operation, you
5770
+ # complete authentication and authorization with your provider. Next you
5771
+ # call the `UpdateCodeSecurityIntegration` operation to provide the
5772
+ # `details` to complete the integration setup
5773
+ #
5774
+ # @option params [required, Types::UpdateIntegrationDetails] :details
5775
+ # The updated integration details specific to the repository provider
5776
+ # type.
5777
+ #
5778
+ # @option params [required, String] :integration_arn
5779
+ # The Amazon Resource Name (ARN) of the code security integration to
5780
+ # update.
5781
+ #
5782
+ # @return [Types::UpdateCodeSecurityIntegrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5783
+ #
5784
+ # * {Types::UpdateCodeSecurityIntegrationResponse#integration_arn #integration_arn} => String
5785
+ # * {Types::UpdateCodeSecurityIntegrationResponse#status #status} => String
5786
+ #
5787
+ # @example Request syntax with placeholder values
5788
+ #
5789
+ # resp = client.update_code_security_integration({
5790
+ # details: { # required
5791
+ # github: {
5792
+ # code: "GitHubAuthCode", # required
5793
+ # installation_id: "GitHubInstallationId", # required
5794
+ # },
5795
+ # gitlab_self_managed: {
5796
+ # auth_code: "GitLabAuthCode", # required
5797
+ # },
5798
+ # },
5799
+ # integration_arn: "CodeSecurityIntegrationArn", # required
5800
+ # })
5801
+ #
5802
+ # @example Response structure
5803
+ #
5804
+ # resp.integration_arn #=> String
5805
+ # resp.status #=> String, one of "PENDING", "IN_PROGRESS", "ACTIVE", "INACTIVE", "DISABLING"
5806
+ #
5807
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/UpdateCodeSecurityIntegration AWS API Documentation
5808
+ #
5809
+ # @overload update_code_security_integration(params = {})
5810
+ # @param [Hash] params ({})
5811
+ def update_code_security_integration(params = {}, options = {})
5812
+ req = build_request(:update_code_security_integration, params)
5813
+ req.send_request(options)
5814
+ end
5815
+
5816
+ # Updates an existing code security scan configuration.
5817
+ #
5818
+ # @option params [required, Types::CodeSecurityScanConfiguration] :configuration
5819
+ # The updated configuration settings for the code security scan.
5820
+ #
5821
+ # @option params [required, String] :scan_configuration_arn
5822
+ # The Amazon Resource Name (ARN) of the scan configuration to update.
5823
+ #
5824
+ # @return [Types::UpdateCodeSecurityScanConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5825
+ #
5826
+ # * {Types::UpdateCodeSecurityScanConfigurationResponse#scan_configuration_arn #scan_configuration_arn} => String
5827
+ #
5828
+ # @example Request syntax with placeholder values
5829
+ #
5830
+ # resp = client.update_code_security_scan_configuration({
5831
+ # configuration: { # required
5832
+ # continuous_integration_scan_configuration: {
5833
+ # supported_events: ["PULL_REQUEST"], # required, accepts PULL_REQUEST, PUSH
5834
+ # },
5835
+ # periodic_scan_configuration: {
5836
+ # frequency: "WEEKLY", # accepts WEEKLY, MONTHLY, NEVER
5837
+ # frequency_expression: "FrequencyExpression",
5838
+ # },
5839
+ # rule_set_categories: ["SAST"], # required, accepts SAST, IAC, SCA
5840
+ # },
5841
+ # scan_configuration_arn: "ScanConfigurationArn", # required
5842
+ # })
5843
+ #
5844
+ # @example Response structure
5845
+ #
5846
+ # resp.scan_configuration_arn #=> String
5847
+ #
5848
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/UpdateCodeSecurityScanConfiguration AWS API Documentation
5849
+ #
5850
+ # @overload update_code_security_scan_configuration(params = {})
5851
+ # @param [Hash] params ({})
5852
+ def update_code_security_scan_configuration(params = {}, options = {})
5853
+ req = build_request(:update_code_security_scan_configuration, params)
5854
+ req.send_request(options)
5855
+ end
5856
+
5012
5857
  # Updates setting configurations for your Amazon Inspector account. When
5013
5858
  # you use this API as an Amazon Inspector delegated administrator this
5014
5859
  # updates the setting for all accounts you manage. Member accounts in an
@@ -5114,7 +5959,7 @@ module Aws::Inspector2
5114
5959
  #
5115
5960
  # resp = client.update_encryption_key({
5116
5961
  # 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
5962
+ # resource_type: "AWS_EC2_INSTANCE", # required, accepts AWS_EC2_INSTANCE, AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY, AWS_LAMBDA_FUNCTION, CODE_REPOSITORY
5118
5963
  # scan_type: "NETWORK", # required, accepts NETWORK, PACKAGE, CODE
5119
5964
  # })
5120
5965
  #
@@ -5166,6 +6011,18 @@ module Aws::Inspector2
5166
6011
  # value: "StringInput", # required
5167
6012
  # },
5168
6013
  # ],
6014
+ # code_repository_project_name: [
6015
+ # {
6016
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
6017
+ # value: "StringInput", # required
6018
+ # },
6019
+ # ],
6020
+ # code_repository_provider_type: [
6021
+ # {
6022
+ # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
6023
+ # value: "StringInput", # required
6024
+ # },
6025
+ # ],
5169
6026
  # code_vulnerability_detector_name: [
5170
6027
  # {
5171
6028
  # comparison: "EQUALS", # required, accepts EQUALS, PREFIX, NOT_EQUALS
@@ -5512,6 +6369,7 @@ module Aws::Inspector2
5512
6369
  #
5513
6370
  # resp = client.update_organization_configuration({
5514
6371
  # auto_enable: { # required
6372
+ # code_repository: false,
5515
6373
  # ec2: false, # required
5516
6374
  # ecr: false, # required
5517
6375
  # lambda: false,
@@ -5521,6 +6379,7 @@ module Aws::Inspector2
5521
6379
  #
5522
6380
  # @example Response structure
5523
6381
  #
6382
+ # resp.auto_enable.code_repository #=> Boolean
5524
6383
  # resp.auto_enable.ec2 #=> Boolean
5525
6384
  # resp.auto_enable.ecr #=> Boolean
5526
6385
  # resp.auto_enable.lambda #=> Boolean
@@ -5553,7 +6412,7 @@ module Aws::Inspector2
5553
6412
  tracer: tracer
5554
6413
  )
5555
6414
  context[:gem_name] = 'aws-sdk-inspector2'
5556
- context[:gem_version] = '1.53.0'
6415
+ context[:gem_version] = '1.54.0'
5557
6416
  Seahorse::Client::Request.new(handlers, context)
5558
6417
  end
5559
6418