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.
@@ -54,7 +54,7 @@ module Aws::Inspector2
54
54
  autoload :EndpointProvider, 'aws-sdk-inspector2/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-inspector2/endpoints'
56
56
 
57
- GEM_VERSION = '1.53.0'
57
+ GEM_VERSION = '1.54.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -87,6 +87,42 @@ module Aws
87
87
  ) -> _AssociateMemberResponseSuccess
88
88
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AssociateMemberResponseSuccess
89
89
 
90
+ interface _BatchAssociateCodeSecurityScanConfigurationResponseSuccess
91
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchAssociateCodeSecurityScanConfigurationResponse]
92
+ def failed_associations: () -> ::Array[Types::FailedAssociationResult]
93
+ def successful_associations: () -> ::Array[Types::SuccessfulAssociationResult]
94
+ end
95
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#batch_associate_code_security_scan_configuration-instance_method
96
+ def batch_associate_code_security_scan_configuration: (
97
+ associate_configuration_requests: Array[
98
+ {
99
+ resource: {
100
+ project_id: ::String?
101
+ },
102
+ scan_configuration_arn: ::String
103
+ },
104
+ ]
105
+ ) -> _BatchAssociateCodeSecurityScanConfigurationResponseSuccess
106
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchAssociateCodeSecurityScanConfigurationResponseSuccess
107
+
108
+ interface _BatchDisassociateCodeSecurityScanConfigurationResponseSuccess
109
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchDisassociateCodeSecurityScanConfigurationResponse]
110
+ def failed_associations: () -> ::Array[Types::FailedAssociationResult]
111
+ def successful_associations: () -> ::Array[Types::SuccessfulAssociationResult]
112
+ end
113
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#batch_disassociate_code_security_scan_configuration-instance_method
114
+ def batch_disassociate_code_security_scan_configuration: (
115
+ disassociate_configuration_requests: Array[
116
+ {
117
+ resource: {
118
+ project_id: ::String?
119
+ },
120
+ scan_configuration_arn: ::String
121
+ },
122
+ ]
123
+ ) -> _BatchDisassociateCodeSecurityScanConfigurationResponseSuccess
124
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchDisassociateCodeSecurityScanConfigurationResponseSuccess
125
+
90
126
  interface _BatchGetAccountStatusResponseSuccess
91
127
  include ::Seahorse::Client::_ResponseSuccess[Types::BatchGetAccountStatusResponse]
92
128
  def accounts: () -> ::Array[Types::AccountState]
@@ -218,6 +254,51 @@ module Aws
218
254
  ) -> _CreateCisScanConfigurationResponseSuccess
219
255
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCisScanConfigurationResponseSuccess
220
256
 
257
+ interface _CreateCodeSecurityIntegrationResponseSuccess
258
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateCodeSecurityIntegrationResponse]
259
+ def authorization_url: () -> ::String
260
+ def integration_arn: () -> ::String
261
+ def status: () -> ("PENDING" | "IN_PROGRESS" | "ACTIVE" | "INACTIVE" | "DISABLING")
262
+ end
263
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#create_code_security_integration-instance_method
264
+ def create_code_security_integration: (
265
+ ?details: {
266
+ gitlab_self_managed: {
267
+ access_token: ::String,
268
+ instance_url: ::String
269
+ }?
270
+ },
271
+ name: ::String,
272
+ ?tags: Hash[::String, ::String],
273
+ type: ("GITLAB_SELF_MANAGED" | "GITHUB")
274
+ ) -> _CreateCodeSecurityIntegrationResponseSuccess
275
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCodeSecurityIntegrationResponseSuccess
276
+
277
+ interface _CreateCodeSecurityScanConfigurationResponseSuccess
278
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateCodeSecurityScanConfigurationResponse]
279
+ def scan_configuration_arn: () -> ::String
280
+ end
281
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#create_code_security_scan_configuration-instance_method
282
+ def create_code_security_scan_configuration: (
283
+ configuration: {
284
+ continuous_integration_scan_configuration: {
285
+ supported_events: Array[("PULL_REQUEST" | "PUSH")]
286
+ }?,
287
+ periodic_scan_configuration: {
288
+ frequency: ("WEEKLY" | "MONTHLY" | "NEVER")?,
289
+ frequency_expression: ::String?
290
+ }?,
291
+ rule_set_categories: Array[("SAST" | "IAC" | "SCA")]
292
+ },
293
+ level: ("ORGANIZATION" | "ACCOUNT"),
294
+ name: ::String,
295
+ ?scope_settings: {
296
+ project_selection_scope: ("ALL")?
297
+ },
298
+ ?tags: Hash[::String, ::String]
299
+ ) -> _CreateCodeSecurityScanConfigurationResponseSuccess
300
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCodeSecurityScanConfigurationResponseSuccess
301
+
221
302
  interface _CreateFilterResponseSuccess
222
303
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateFilterResponse]
223
304
  def arn: () -> ::String
@@ -233,6 +314,18 @@ module Aws
233
314
  value: ::String
234
315
  },
235
316
  ]?,
317
+ code_repository_project_name: Array[
318
+ {
319
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
320
+ value: ::String
321
+ },
322
+ ]?,
323
+ code_repository_provider_type: Array[
324
+ {
325
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
326
+ value: ::String
327
+ },
328
+ ]?,
236
329
  code_vulnerability_detector_name: Array[
237
330
  {
238
331
  comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
@@ -542,6 +635,18 @@ module Aws
542
635
  value: ::String
543
636
  },
544
637
  ]?,
638
+ code_repository_project_name: Array[
639
+ {
640
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
641
+ value: ::String
642
+ },
643
+ ]?,
644
+ code_repository_provider_type: Array[
645
+ {
646
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
647
+ value: ::String
648
+ },
649
+ ]?,
545
650
  code_vulnerability_detector_name: Array[
546
651
  {
547
652
  comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
@@ -918,6 +1023,26 @@ module Aws
918
1023
  ) -> _DeleteCisScanConfigurationResponseSuccess
919
1024
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCisScanConfigurationResponseSuccess
920
1025
 
1026
+ interface _DeleteCodeSecurityIntegrationResponseSuccess
1027
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCodeSecurityIntegrationResponse]
1028
+ def integration_arn: () -> ::String
1029
+ end
1030
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#delete_code_security_integration-instance_method
1031
+ def delete_code_security_integration: (
1032
+ integration_arn: ::String
1033
+ ) -> _DeleteCodeSecurityIntegrationResponseSuccess
1034
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCodeSecurityIntegrationResponseSuccess
1035
+
1036
+ interface _DeleteCodeSecurityScanConfigurationResponseSuccess
1037
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCodeSecurityScanConfigurationResponse]
1038
+ def scan_configuration_arn: () -> ::String
1039
+ end
1040
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#delete_code_security_scan_configuration-instance_method
1041
+ def delete_code_security_scan_configuration: (
1042
+ scan_configuration_arn: ::String
1043
+ ) -> _DeleteCodeSecurityScanConfigurationResponseSuccess
1044
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCodeSecurityScanConfigurationResponseSuccess
1045
+
921
1046
  interface _DeleteFilterResponseSuccess
922
1047
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteFilterResponse]
923
1048
  def arn: () -> ::String
@@ -946,7 +1071,7 @@ module Aws
946
1071
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#disable-instance_method
947
1072
  def disable: (
948
1073
  ?account_ids: Array[::String],
949
- ?resource_types: Array[("EC2" | "ECR" | "LAMBDA" | "LAMBDA_CODE")]
1074
+ ?resource_types: Array[("EC2" | "ECR" | "LAMBDA" | "LAMBDA_CODE" | "CODE_REPOSITORY")]
950
1075
  ) -> _DisableResponseSuccess
951
1076
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DisableResponseSuccess
952
1077
 
@@ -979,7 +1104,7 @@ module Aws
979
1104
  def enable: (
980
1105
  ?account_ids: Array[::String],
981
1106
  ?client_token: ::String,
982
- resource_types: Array[("EC2" | "ECR" | "LAMBDA" | "LAMBDA_CODE")]
1107
+ resource_types: Array[("EC2" | "ECR" | "LAMBDA" | "LAMBDA_CODE" | "CODE_REPOSITORY")]
983
1108
  ) -> _EnableResponseSuccess
984
1109
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _EnableResponseSuccess
985
1110
 
@@ -1071,6 +1196,62 @@ module Aws
1071
1196
  ) -> _GetClustersForImageResponseSuccess
1072
1197
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetClustersForImageResponseSuccess
1073
1198
 
1199
+ interface _GetCodeSecurityIntegrationResponseSuccess
1200
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetCodeSecurityIntegrationResponse]
1201
+ def authorization_url: () -> ::String
1202
+ def created_on: () -> ::Time
1203
+ def integration_arn: () -> ::String
1204
+ def last_update_on: () -> ::Time
1205
+ def name: () -> ::String
1206
+ def status: () -> ("PENDING" | "IN_PROGRESS" | "ACTIVE" | "INACTIVE" | "DISABLING")
1207
+ def status_reason: () -> ::String
1208
+ def tags: () -> ::Hash[::String, ::String]
1209
+ def type: () -> ("GITLAB_SELF_MANAGED" | "GITHUB")
1210
+ end
1211
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#get_code_security_integration-instance_method
1212
+ def get_code_security_integration: (
1213
+ integration_arn: ::String,
1214
+ ?tags: Hash[::String, ::String]
1215
+ ) -> _GetCodeSecurityIntegrationResponseSuccess
1216
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCodeSecurityIntegrationResponseSuccess
1217
+
1218
+ interface _GetCodeSecurityScanResponseSuccess
1219
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetCodeSecurityScanResponse]
1220
+ def account_id: () -> ::String
1221
+ def created_at: () -> ::Time
1222
+ def last_commit_id: () -> ::String
1223
+ def resource: () -> Types::CodeSecurityResource
1224
+ def scan_id: () -> ::String
1225
+ def status: () -> ("IN_PROGRESS" | "SUCCESSFUL" | "FAILED" | "SKIPPED")
1226
+ def status_reason: () -> ::String
1227
+ def updated_at: () -> ::Time
1228
+ end
1229
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#get_code_security_scan-instance_method
1230
+ def get_code_security_scan: (
1231
+ resource: {
1232
+ project_id: ::String?
1233
+ },
1234
+ scan_id: ::String
1235
+ ) -> _GetCodeSecurityScanResponseSuccess
1236
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCodeSecurityScanResponseSuccess
1237
+
1238
+ interface _GetCodeSecurityScanConfigurationResponseSuccess
1239
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetCodeSecurityScanConfigurationResponse]
1240
+ def configuration: () -> Types::CodeSecurityScanConfiguration
1241
+ def created_at: () -> ::Time
1242
+ def last_updated_at: () -> ::Time
1243
+ def level: () -> ("ORGANIZATION" | "ACCOUNT")
1244
+ def name: () -> ::String
1245
+ def scan_configuration_arn: () -> ::String
1246
+ def scope_settings: () -> Types::ScopeSettings
1247
+ def tags: () -> ::Hash[::String, ::String]
1248
+ end
1249
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#get_code_security_scan_configuration-instance_method
1250
+ def get_code_security_scan_configuration: (
1251
+ scan_configuration_arn: ::String
1252
+ ) -> _GetCodeSecurityScanConfigurationResponseSuccess
1253
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCodeSecurityScanConfigurationResponseSuccess
1254
+
1074
1255
  interface _GetConfigurationResponseSuccess
1075
1256
  include ::Seahorse::Client::_ResponseSuccess[Types::GetConfigurationResponse]
1076
1257
  def ec2_configuration: () -> Types::Ec2ConfigurationState
@@ -1108,7 +1289,7 @@ module Aws
1108
1289
  end
1109
1290
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#get_encryption_key-instance_method
1110
1291
  def get_encryption_key: (
1111
- resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION"),
1292
+ resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY"),
1112
1293
  scan_type: ("NETWORK" | "PACKAGE" | "CODE")
1113
1294
  ) -> _GetEncryptionKeyResponseSuccess
1114
1295
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEncryptionKeyResponseSuccess
@@ -1405,6 +1586,43 @@ module Aws
1405
1586
  ) -> _ListCisScansResponseSuccess
1406
1587
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCisScansResponseSuccess
1407
1588
 
1589
+ interface _ListCodeSecurityIntegrationsResponseSuccess
1590
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCodeSecurityIntegrationsResponse]
1591
+ def integrations: () -> ::Array[Types::CodeSecurityIntegrationSummary]
1592
+ def next_token: () -> ::String
1593
+ end
1594
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#list_code_security_integrations-instance_method
1595
+ def list_code_security_integrations: (
1596
+ ?max_results: ::Integer,
1597
+ ?next_token: ::String
1598
+ ) -> _ListCodeSecurityIntegrationsResponseSuccess
1599
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCodeSecurityIntegrationsResponseSuccess
1600
+
1601
+ interface _ListCodeSecurityScanConfigurationAssociationsResponseSuccess
1602
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCodeSecurityScanConfigurationAssociationsResponse]
1603
+ def associations: () -> ::Array[Types::CodeSecurityScanConfigurationAssociationSummary]
1604
+ def next_token: () -> ::String
1605
+ end
1606
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#list_code_security_scan_configuration_associations-instance_method
1607
+ def list_code_security_scan_configuration_associations: (
1608
+ ?max_results: ::Integer,
1609
+ ?next_token: ::String,
1610
+ scan_configuration_arn: ::String
1611
+ ) -> _ListCodeSecurityScanConfigurationAssociationsResponseSuccess
1612
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCodeSecurityScanConfigurationAssociationsResponseSuccess
1613
+
1614
+ interface _ListCodeSecurityScanConfigurationsResponseSuccess
1615
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCodeSecurityScanConfigurationsResponse]
1616
+ def configurations: () -> ::Array[Types::CodeSecurityScanConfigurationSummary]
1617
+ def next_token: () -> ::String
1618
+ end
1619
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#list_code_security_scan_configurations-instance_method
1620
+ def list_code_security_scan_configurations: (
1621
+ ?max_results: ::Integer,
1622
+ ?next_token: ::String
1623
+ ) -> _ListCodeSecurityScanConfigurationsResponseSuccess
1624
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCodeSecurityScanConfigurationsResponseSuccess
1625
+
1408
1626
  interface _ListCoverageResponseSuccess
1409
1627
  include ::Seahorse::Client::_ResponseSuccess[Types::ListCoverageResponse]
1410
1628
  def covered_resources: () -> ::Array[Types::CoveredResource]
@@ -1419,6 +1637,24 @@ module Aws
1419
1637
  value: ::String
1420
1638
  },
1421
1639
  ]?,
1640
+ code_repository_project_name: Array[
1641
+ {
1642
+ comparison: ("EQUALS" | "NOT_EQUALS"),
1643
+ value: ::String
1644
+ },
1645
+ ]?,
1646
+ code_repository_provider_type: Array[
1647
+ {
1648
+ comparison: ("EQUALS" | "NOT_EQUALS"),
1649
+ value: ::String
1650
+ },
1651
+ ]?,
1652
+ code_repository_provider_type_visibility: Array[
1653
+ {
1654
+ comparison: ("EQUALS" | "NOT_EQUALS"),
1655
+ value: ::String
1656
+ },
1657
+ ]?,
1422
1658
  ec2_instance_tags: Array[
1423
1659
  {
1424
1660
  comparison: ("EQUALS"),
@@ -1481,6 +1717,12 @@ module Aws
1481
1717
  start_inclusive: ::Time?
1482
1718
  },
1483
1719
  ]?,
1720
+ last_scanned_commit_id: Array[
1721
+ {
1722
+ comparison: ("EQUALS" | "NOT_EQUALS"),
1723
+ value: ::String
1724
+ },
1725
+ ]?,
1484
1726
  resource_id: Array[
1485
1727
  {
1486
1728
  comparison: ("EQUALS" | "NOT_EQUALS"),
@@ -1538,6 +1780,24 @@ module Aws
1538
1780
  value: ::String
1539
1781
  },
1540
1782
  ]?,
1783
+ code_repository_project_name: Array[
1784
+ {
1785
+ comparison: ("EQUALS" | "NOT_EQUALS"),
1786
+ value: ::String
1787
+ },
1788
+ ]?,
1789
+ code_repository_provider_type: Array[
1790
+ {
1791
+ comparison: ("EQUALS" | "NOT_EQUALS"),
1792
+ value: ::String
1793
+ },
1794
+ ]?,
1795
+ code_repository_provider_type_visibility: Array[
1796
+ {
1797
+ comparison: ("EQUALS" | "NOT_EQUALS"),
1798
+ value: ::String
1799
+ },
1800
+ ]?,
1541
1801
  ec2_instance_tags: Array[
1542
1802
  {
1543
1803
  comparison: ("EQUALS"),
@@ -1600,6 +1860,12 @@ module Aws
1600
1860
  start_inclusive: ::Time?
1601
1861
  },
1602
1862
  ]?,
1863
+ last_scanned_commit_id: Array[
1864
+ {
1865
+ comparison: ("EQUALS" | "NOT_EQUALS"),
1866
+ value: ::String
1867
+ },
1868
+ ]?,
1603
1869
  resource_id: Array[
1604
1870
  {
1605
1871
  comparison: ("EQUALS" | "NOT_EQUALS"),
@@ -1670,7 +1936,7 @@ module Aws
1670
1936
 
1671
1937
  interface _ListFindingAggregationsResponseSuccess
1672
1938
  include ::Seahorse::Client::_ResponseSuccess[Types::ListFindingAggregationsResponse]
1673
- def aggregation_type: () -> ("FINDING_TYPE" | "PACKAGE" | "TITLE" | "REPOSITORY" | "AMI" | "AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER" | "IMAGE_LAYER" | "ACCOUNT" | "AWS_LAMBDA_FUNCTION" | "LAMBDA_LAYER")
1939
+ def aggregation_type: () -> ("FINDING_TYPE" | "PACKAGE" | "TITLE" | "REPOSITORY" | "AMI" | "AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER" | "IMAGE_LAYER" | "ACCOUNT" | "AWS_LAMBDA_FUNCTION" | "LAMBDA_LAYER" | "CODE_REPOSITORY")
1674
1940
  def next_token: () -> ::String
1675
1941
  def responses: () -> ::Array[Types::AggregationResponse]
1676
1942
  end
@@ -1745,6 +2011,28 @@ module Aws
1745
2011
  sort_by: ("CRITICAL" | "HIGH" | "ALL")?,
1746
2012
  sort_order: ("ASC" | "DESC")?
1747
2013
  }?,
2014
+ code_repository_aggregation: {
2015
+ project_names: Array[
2016
+ {
2017
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
2018
+ value: ::String
2019
+ },
2020
+ ]?,
2021
+ provider_types: Array[
2022
+ {
2023
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
2024
+ value: ::String
2025
+ },
2026
+ ]?,
2027
+ resource_ids: Array[
2028
+ {
2029
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
2030
+ value: ::String
2031
+ },
2032
+ ]?,
2033
+ sort_by: ("CRITICAL" | "HIGH" | "ALL")?,
2034
+ sort_order: ("ASC" | "DESC")?
2035
+ }?,
1748
2036
  ec2_instance_aggregation: {
1749
2037
  amis: Array[
1750
2038
  {
@@ -1892,7 +2180,7 @@ module Aws
1892
2180
  ]?
1893
2181
  }?
1894
2182
  },
1895
- aggregation_type: ("FINDING_TYPE" | "PACKAGE" | "TITLE" | "REPOSITORY" | "AMI" | "AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER" | "IMAGE_LAYER" | "ACCOUNT" | "AWS_LAMBDA_FUNCTION" | "LAMBDA_LAYER"),
2183
+ aggregation_type: ("FINDING_TYPE" | "PACKAGE" | "TITLE" | "REPOSITORY" | "AMI" | "AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER" | "IMAGE_LAYER" | "ACCOUNT" | "AWS_LAMBDA_FUNCTION" | "LAMBDA_LAYER" | "CODE_REPOSITORY"),
1896
2184
  ?max_results: ::Integer,
1897
2185
  ?next_token: ::String
1898
2186
  ) -> _ListFindingAggregationsResponseSuccess
@@ -1912,6 +2200,18 @@ module Aws
1912
2200
  value: ::String
1913
2201
  },
1914
2202
  ]?,
2203
+ code_repository_project_name: Array[
2204
+ {
2205
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
2206
+ value: ::String
2207
+ },
2208
+ ]?,
2209
+ code_repository_provider_type: Array[
2210
+ {
2211
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
2212
+ value: ::String
2213
+ },
2214
+ ]?,
1915
2215
  code_vulnerability_detector_name: Array[
1916
2216
  {
1917
2217
  comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
@@ -2252,7 +2552,7 @@ module Aws
2252
2552
  end
2253
2553
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#reset_encryption_key-instance_method
2254
2554
  def reset_encryption_key: (
2255
- resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION"),
2555
+ resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY"),
2256
2556
  scan_type: ("NETWORK" | "PACKAGE" | "CODE")
2257
2557
  ) -> _ResetEncryptionKeyResponseSuccess
2258
2558
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ResetEncryptionKeyResponseSuccess
@@ -2310,6 +2610,20 @@ module Aws
2310
2610
  ) -> _StartCisSessionResponseSuccess
2311
2611
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartCisSessionResponseSuccess
2312
2612
 
2613
+ interface _StartCodeSecurityScanResponseSuccess
2614
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartCodeSecurityScanResponse]
2615
+ def scan_id: () -> ::String
2616
+ def status: () -> ("IN_PROGRESS" | "SUCCESSFUL" | "FAILED" | "SKIPPED")
2617
+ end
2618
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#start_code_security_scan-instance_method
2619
+ def start_code_security_scan: (
2620
+ ?client_token: ::String,
2621
+ resource: {
2622
+ project_id: ::String?
2623
+ }
2624
+ ) -> _StartCodeSecurityScanResponseSuccess
2625
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartCodeSecurityScanResponseSuccess
2626
+
2313
2627
  interface _StopCisSessionResponseSuccess
2314
2628
  include ::Seahorse::Client::_ResponseSuccess[Types::StopCisSessionResponse]
2315
2629
  end
@@ -2401,6 +2715,46 @@ module Aws
2401
2715
  ) -> _UpdateCisScanConfigurationResponseSuccess
2402
2716
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateCisScanConfigurationResponseSuccess
2403
2717
 
2718
+ interface _UpdateCodeSecurityIntegrationResponseSuccess
2719
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateCodeSecurityIntegrationResponse]
2720
+ def integration_arn: () -> ::String
2721
+ def status: () -> ("PENDING" | "IN_PROGRESS" | "ACTIVE" | "INACTIVE" | "DISABLING")
2722
+ end
2723
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#update_code_security_integration-instance_method
2724
+ def update_code_security_integration: (
2725
+ details: {
2726
+ github: {
2727
+ code: ::String,
2728
+ installation_id: ::String
2729
+ }?,
2730
+ gitlab_self_managed: {
2731
+ auth_code: ::String
2732
+ }?
2733
+ },
2734
+ integration_arn: ::String
2735
+ ) -> _UpdateCodeSecurityIntegrationResponseSuccess
2736
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateCodeSecurityIntegrationResponseSuccess
2737
+
2738
+ interface _UpdateCodeSecurityScanConfigurationResponseSuccess
2739
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateCodeSecurityScanConfigurationResponse]
2740
+ def scan_configuration_arn: () -> ::String
2741
+ end
2742
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#update_code_security_scan_configuration-instance_method
2743
+ def update_code_security_scan_configuration: (
2744
+ configuration: {
2745
+ continuous_integration_scan_configuration: {
2746
+ supported_events: Array[("PULL_REQUEST" | "PUSH")]
2747
+ }?,
2748
+ periodic_scan_configuration: {
2749
+ frequency: ("WEEKLY" | "MONTHLY" | "NEVER")?,
2750
+ frequency_expression: ::String?
2751
+ }?,
2752
+ rule_set_categories: Array[("SAST" | "IAC" | "SCA")]
2753
+ },
2754
+ scan_configuration_arn: ::String
2755
+ ) -> _UpdateCodeSecurityScanConfigurationResponseSuccess
2756
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateCodeSecurityScanConfigurationResponseSuccess
2757
+
2404
2758
  interface _UpdateConfigurationResponseSuccess
2405
2759
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateConfigurationResponse]
2406
2760
  end
@@ -2437,7 +2791,7 @@ module Aws
2437
2791
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#update_encryption_key-instance_method
2438
2792
  def update_encryption_key: (
2439
2793
  kms_key_id: ::String,
2440
- resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION"),
2794
+ resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY"),
2441
2795
  scan_type: ("NETWORK" | "PACKAGE" | "CODE")
2442
2796
  ) -> _UpdateEncryptionKeyResponseSuccess
2443
2797
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEncryptionKeyResponseSuccess
@@ -2458,6 +2812,18 @@ module Aws
2458
2812
  value: ::String
2459
2813
  },
2460
2814
  ]?,
2815
+ code_repository_project_name: Array[
2816
+ {
2817
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
2818
+ value: ::String
2819
+ },
2820
+ ]?,
2821
+ code_repository_provider_type: Array[
2822
+ {
2823
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
2824
+ value: ::String
2825
+ },
2826
+ ]?,
2461
2827
  code_vulnerability_detector_name: Array[
2462
2828
  {
2463
2829
  comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS"),
@@ -2769,6 +3135,7 @@ module Aws
2769
3135
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#update_organization_configuration-instance_method
2770
3136
  def update_organization_configuration: (
2771
3137
  auto_enable: {
3138
+ code_repository: bool?,
2772
3139
  ec2: bool,
2773
3140
  ecr: bool,
2774
3141
  lambda: bool?,