aws-sdk-inspector2 1.53.0 → 1.55.0

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