aws-sdk-inspector2 1.52.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.
data/sig/types.rbs CHANGED
@@ -47,6 +47,7 @@ module Aws::Inspector2
47
47
  attr_accessor account_aggregation: Types::AccountAggregation
48
48
  attr_accessor ami_aggregation: Types::AmiAggregation
49
49
  attr_accessor aws_ecr_container_aggregation: Types::AwsEcrContainerAggregation
50
+ attr_accessor code_repository_aggregation: Types::CodeRepositoryAggregation
50
51
  attr_accessor ec2_instance_aggregation: Types::Ec2InstanceAggregation
51
52
  attr_accessor finding_type_aggregation: Types::FindingTypeAggregation
52
53
  attr_accessor image_layer_aggregation: Types::ImageLayerAggregation
@@ -64,6 +65,8 @@ module Aws::Inspector2
64
65
  end
65
66
  class AwsEcrContainerAggregation < AggregationRequest
66
67
  end
68
+ class CodeRepositoryAggregation < AggregationRequest
69
+ end
67
70
  class Ec2InstanceAggregation < AggregationRequest
68
71
  end
69
72
  class FindingTypeAggregation < AggregationRequest
@@ -88,6 +91,7 @@ module Aws::Inspector2
88
91
  attr_accessor account_aggregation: Types::AccountAggregationResponse
89
92
  attr_accessor ami_aggregation: Types::AmiAggregationResponse
90
93
  attr_accessor aws_ecr_container_aggregation: Types::AwsEcrContainerAggregationResponse
94
+ attr_accessor code_repository_aggregation: Types::CodeRepositoryAggregationResponse
91
95
  attr_accessor ec2_instance_aggregation: Types::Ec2InstanceAggregationResponse
92
96
  attr_accessor finding_type_aggregation: Types::FindingTypeAggregationResponse
93
97
  attr_accessor image_layer_aggregation: Types::ImageLayerAggregationResponse
@@ -105,6 +109,8 @@ module Aws::Inspector2
105
109
  end
106
110
  class AwsEcrContainerAggregation < AggregationResponse
107
111
  end
112
+ class CodeRepositoryAggregation < AggregationResponse
113
+ end
108
114
  class Ec2InstanceAggregation < AggregationResponse
109
115
  end
110
116
  class FindingTypeAggregation < AggregationResponse
@@ -140,6 +146,12 @@ module Aws::Inspector2
140
146
  SENSITIVE: []
141
147
  end
142
148
 
149
+ class AssociateConfigurationRequest
150
+ attr_accessor resource: Types::CodeSecurityResource
151
+ attr_accessor scan_configuration_arn: ::String
152
+ SENSITIVE: []
153
+ end
154
+
143
155
  class AssociateMemberRequest
144
156
  attr_accessor account_id: ::String
145
157
  SENSITIVE: []
@@ -159,6 +171,7 @@ module Aws::Inspector2
159
171
  end
160
172
 
161
173
  class AutoEnable
174
+ attr_accessor code_repository: bool
162
175
  attr_accessor ec2: bool
163
176
  attr_accessor ecr: bool
164
177
  attr_accessor lambda: bool
@@ -257,6 +270,28 @@ module Aws::Inspector2
257
270
  SENSITIVE: []
258
271
  end
259
272
 
273
+ class BatchAssociateCodeSecurityScanConfigurationRequest
274
+ attr_accessor associate_configuration_requests: ::Array[Types::AssociateConfigurationRequest]
275
+ SENSITIVE: []
276
+ end
277
+
278
+ class BatchAssociateCodeSecurityScanConfigurationResponse
279
+ attr_accessor failed_associations: ::Array[Types::FailedAssociationResult]
280
+ attr_accessor successful_associations: ::Array[Types::SuccessfulAssociationResult]
281
+ SENSITIVE: []
282
+ end
283
+
284
+ class BatchDisassociateCodeSecurityScanConfigurationRequest
285
+ attr_accessor disassociate_configuration_requests: ::Array[Types::DisassociateConfigurationRequest]
286
+ SENSITIVE: []
287
+ end
288
+
289
+ class BatchDisassociateCodeSecurityScanConfigurationResponse
290
+ attr_accessor failed_associations: ::Array[Types::FailedAssociationResult]
291
+ attr_accessor successful_associations: ::Array[Types::SuccessfulAssociationResult]
292
+ SENSITIVE: []
293
+ end
294
+
260
295
  class BatchGetAccountStatusRequest
261
296
  attr_accessor account_ids: ::Array[::String]
262
297
  SENSITIVE: []
@@ -561,6 +596,99 @@ module Aws::Inspector2
561
596
  SENSITIVE: []
562
597
  end
563
598
 
599
+ class CodeRepositoryAggregation
600
+ attr_accessor project_names: ::Array[Types::StringFilter]
601
+ attr_accessor provider_types: ::Array[Types::StringFilter]
602
+ attr_accessor resource_ids: ::Array[Types::StringFilter]
603
+ attr_accessor sort_by: ("CRITICAL" | "HIGH" | "ALL")
604
+ attr_accessor sort_order: ("ASC" | "DESC")
605
+ SENSITIVE: []
606
+ end
607
+
608
+ class CodeRepositoryAggregationResponse
609
+ attr_accessor account_id: ::String
610
+ attr_accessor exploit_available_active_findings_count: ::Integer
611
+ attr_accessor fix_available_active_findings_count: ::Integer
612
+ attr_accessor project_names: ::String
613
+ attr_accessor provider_type: ::String
614
+ attr_accessor resource_id: ::String
615
+ attr_accessor severity_counts: Types::SeverityCounts
616
+ SENSITIVE: []
617
+ end
618
+
619
+ class CodeRepositoryDetails
620
+ attr_accessor integration_arn: ::String
621
+ attr_accessor project_name: ::String
622
+ attr_accessor provider_type: ("GITHUB" | "GITLAB_SELF_MANAGED")
623
+ SENSITIVE: []
624
+ end
625
+
626
+ class CodeRepositoryMetadata
627
+ attr_accessor integration_arn: ::String
628
+ attr_accessor last_scanned_commit_id: ::String
629
+ attr_accessor on_demand_scan: Types::CodeRepositoryOnDemandScan
630
+ attr_accessor project_name: ::String
631
+ attr_accessor provider_type: ::String
632
+ attr_accessor provider_type_visibility: ::String
633
+ attr_accessor scan_configuration: Types::ProjectCodeSecurityScanConfiguration
634
+ SENSITIVE: []
635
+ end
636
+
637
+ class CodeRepositoryOnDemandScan
638
+ attr_accessor last_scan_at: ::Time
639
+ attr_accessor last_scanned_commit_id: ::String
640
+ attr_accessor scan_status: Types::ScanStatus
641
+ SENSITIVE: []
642
+ end
643
+
644
+ class CodeSecurityIntegrationSummary
645
+ attr_accessor created_on: ::Time
646
+ attr_accessor integration_arn: ::String
647
+ attr_accessor last_update_on: ::Time
648
+ attr_accessor name: ::String
649
+ attr_accessor status: ("PENDING" | "IN_PROGRESS" | "ACTIVE" | "INACTIVE" | "DISABLING")
650
+ attr_accessor status_reason: ::String
651
+ attr_accessor tags: ::Hash[::String, ::String]
652
+ attr_accessor type: ("GITLAB_SELF_MANAGED" | "GITHUB")
653
+ SENSITIVE: []
654
+ end
655
+
656
+ class CodeSecurityResource
657
+ attr_accessor project_id: ::String
658
+ attr_accessor unknown: untyped
659
+ SENSITIVE: []
660
+
661
+ class ProjectId < CodeSecurityResource
662
+ end
663
+ class Unknown < CodeSecurityResource
664
+ end
665
+ end
666
+
667
+ class CodeSecurityScanConfiguration
668
+ attr_accessor continuous_integration_scan_configuration: Types::ContinuousIntegrationScanConfiguration
669
+ attr_accessor periodic_scan_configuration: Types::PeriodicScanConfiguration
670
+ attr_accessor rule_set_categories: ::Array[("SAST" | "IAC" | "SCA")]
671
+ SENSITIVE: []
672
+ end
673
+
674
+ class CodeSecurityScanConfigurationAssociationSummary
675
+ attr_accessor resource: Types::CodeSecurityResource
676
+ SENSITIVE: []
677
+ end
678
+
679
+ class CodeSecurityScanConfigurationSummary
680
+ attr_accessor continuous_integration_scan_supported_events: ::Array[("PULL_REQUEST" | "PUSH")]
681
+ attr_accessor frequency_expression: ::String
682
+ attr_accessor name: ::String
683
+ attr_accessor owner_account_id: ::String
684
+ attr_accessor periodic_scan_frequency: ("WEEKLY" | "MONTHLY" | "NEVER")
685
+ attr_accessor rule_set_categories: ::Array[("SAST" | "IAC" | "SCA")]
686
+ attr_accessor scan_configuration_arn: ::String
687
+ attr_accessor scope_settings: Types::ScopeSettings
688
+ attr_accessor tags: ::Hash[::String, ::String]
689
+ SENSITIVE: []
690
+ end
691
+
564
692
  class CodeSnippetError
565
693
  attr_accessor error_code: ("INTERNAL_ERROR" | "ACCESS_DENIED" | "CODE_SNIPPET_NOT_FOUND" | "INVALID_INPUT")
566
694
  attr_accessor error_message: ::String
@@ -603,6 +731,11 @@ module Aws::Inspector2
603
731
  SENSITIVE: []
604
732
  end
605
733
 
734
+ class ContinuousIntegrationScanConfiguration
735
+ attr_accessor supported_events: ::Array[("PULL_REQUEST" | "PUSH")]
736
+ SENSITIVE: []
737
+ end
738
+
606
739
  class Counts
607
740
  attr_accessor count: ::Integer
608
741
  attr_accessor group_key: ("SCAN_STATUS_CODE" | "SCAN_STATUS_REASON" | "ACCOUNT_ID" | "RESOURCE_TYPE" | "ECR_REPOSITORY_NAME")
@@ -617,6 +750,9 @@ module Aws::Inspector2
617
750
 
618
751
  class CoverageFilterCriteria
619
752
  attr_accessor account_id: ::Array[Types::CoverageStringFilter]
753
+ attr_accessor code_repository_project_name: ::Array[Types::CoverageStringFilter]
754
+ attr_accessor code_repository_provider_type: ::Array[Types::CoverageStringFilter]
755
+ attr_accessor code_repository_provider_type_visibility: ::Array[Types::CoverageStringFilter]
620
756
  attr_accessor ec2_instance_tags: ::Array[Types::CoverageMapFilter]
621
757
  attr_accessor ecr_image_in_use_count: ::Array[Types::CoverageNumberFilter]
622
758
  attr_accessor ecr_image_last_in_use_at: ::Array[Types::CoverageDateFilter]
@@ -627,6 +763,7 @@ module Aws::Inspector2
627
763
  attr_accessor lambda_function_runtime: ::Array[Types::CoverageStringFilter]
628
764
  attr_accessor lambda_function_tags: ::Array[Types::CoverageMapFilter]
629
765
  attr_accessor last_scanned_at: ::Array[Types::CoverageDateFilter]
766
+ attr_accessor last_scanned_commit_id: ::Array[Types::CoverageStringFilter]
630
767
  attr_accessor resource_id: ::Array[Types::CoverageStringFilter]
631
768
  attr_accessor resource_type: ::Array[Types::CoverageStringFilter]
632
769
  attr_accessor scan_mode: ::Array[Types::CoverageStringFilter]
@@ -660,7 +797,7 @@ module Aws::Inspector2
660
797
  attr_accessor last_scanned_at: ::Time
661
798
  attr_accessor resource_id: ::String
662
799
  attr_accessor resource_metadata: Types::ResourceScanMetadata
663
- attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION")
800
+ attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY")
664
801
  attr_accessor scan_mode: ("EC2_SSM_AGENT_BASED" | "EC2_AGENTLESS")
665
802
  attr_accessor scan_status: Types::ScanStatus
666
803
  attr_accessor scan_type: ("NETWORK" | "PACKAGE" | "CODE")
@@ -687,6 +824,35 @@ module Aws::Inspector2
687
824
  SENSITIVE: []
688
825
  end
689
826
 
827
+ class CreateCodeSecurityIntegrationRequest
828
+ attr_accessor details: Types::CreateIntegrationDetail
829
+ attr_accessor name: ::String
830
+ attr_accessor tags: ::Hash[::String, ::String]
831
+ attr_accessor type: ("GITLAB_SELF_MANAGED" | "GITHUB")
832
+ SENSITIVE: []
833
+ end
834
+
835
+ class CreateCodeSecurityIntegrationResponse
836
+ attr_accessor authorization_url: ::String
837
+ attr_accessor integration_arn: ::String
838
+ attr_accessor status: ("PENDING" | "IN_PROGRESS" | "ACTIVE" | "INACTIVE" | "DISABLING")
839
+ SENSITIVE: [:authorization_url]
840
+ end
841
+
842
+ class CreateCodeSecurityScanConfigurationRequest
843
+ attr_accessor configuration: Types::CodeSecurityScanConfiguration
844
+ attr_accessor level: ("ORGANIZATION" | "ACCOUNT")
845
+ attr_accessor name: ::String
846
+ attr_accessor scope_settings: Types::ScopeSettings
847
+ attr_accessor tags: ::Hash[::String, ::String]
848
+ SENSITIVE: []
849
+ end
850
+
851
+ class CreateCodeSecurityScanConfigurationResponse
852
+ attr_accessor scan_configuration_arn: ::String
853
+ SENSITIVE: []
854
+ end
855
+
690
856
  class CreateFilterRequest
691
857
  attr_accessor action: ("NONE" | "SUPPRESS")
692
858
  attr_accessor description: ::String
@@ -714,6 +880,23 @@ module Aws::Inspector2
714
880
  SENSITIVE: []
715
881
  end
716
882
 
883
+ class CreateGitLabSelfManagedIntegrationDetail
884
+ attr_accessor access_token: ::String
885
+ attr_accessor instance_url: ::String
886
+ SENSITIVE: [:access_token, :instance_url]
887
+ end
888
+
889
+ class CreateIntegrationDetail
890
+ attr_accessor gitlab_self_managed: Types::CreateGitLabSelfManagedIntegrationDetail
891
+ attr_accessor unknown: untyped
892
+ SENSITIVE: []
893
+
894
+ class GitlabSelfManaged < CreateIntegrationDetail
895
+ end
896
+ class Unknown < CreateIntegrationDetail
897
+ end
898
+ end
899
+
717
900
  class CreateSbomExportRequest
718
901
  attr_accessor report_format: ("CYCLONEDX_1_4" | "SPDX_2_3")
719
902
  attr_accessor resource_filter_criteria: Types::ResourceFilterCriteria
@@ -795,6 +978,26 @@ module Aws::Inspector2
795
978
  SENSITIVE: []
796
979
  end
797
980
 
981
+ class DeleteCodeSecurityIntegrationRequest
982
+ attr_accessor integration_arn: ::String
983
+ SENSITIVE: []
984
+ end
985
+
986
+ class DeleteCodeSecurityIntegrationResponse
987
+ attr_accessor integration_arn: ::String
988
+ SENSITIVE: []
989
+ end
990
+
991
+ class DeleteCodeSecurityScanConfigurationRequest
992
+ attr_accessor scan_configuration_arn: ::String
993
+ SENSITIVE: []
994
+ end
995
+
996
+ class DeleteCodeSecurityScanConfigurationResponse
997
+ attr_accessor scan_configuration_arn: ::String
998
+ SENSITIVE: []
999
+ end
1000
+
798
1001
  class DeleteFilterRequest
799
1002
  attr_accessor arn: ::String
800
1003
  SENSITIVE: []
@@ -833,7 +1036,7 @@ module Aws::Inspector2
833
1036
 
834
1037
  class DisableRequest
835
1038
  attr_accessor account_ids: ::Array[::String]
836
- attr_accessor resource_types: ::Array[("EC2" | "ECR" | "LAMBDA" | "LAMBDA_CODE")]
1039
+ attr_accessor resource_types: ::Array[("EC2" | "ECR" | "LAMBDA" | "LAMBDA_CODE" | "CODE_REPOSITORY")]
837
1040
  SENSITIVE: []
838
1041
  end
839
1042
 
@@ -843,6 +1046,12 @@ module Aws::Inspector2
843
1046
  SENSITIVE: []
844
1047
  end
845
1048
 
1049
+ class DisassociateConfigurationRequest
1050
+ attr_accessor resource: Types::CodeSecurityResource
1051
+ attr_accessor scan_configuration_arn: ::String
1052
+ SENSITIVE: []
1053
+ end
1054
+
846
1055
  class DisassociateMemberRequest
847
1056
  attr_accessor account_id: ::String
848
1057
  SENSITIVE: []
@@ -946,7 +1155,7 @@ module Aws::Inspector2
946
1155
  class EnableRequest
947
1156
  attr_accessor account_ids: ::Array[::String]
948
1157
  attr_accessor client_token: ::String
949
- attr_accessor resource_types: ::Array[("EC2" | "ECR" | "LAMBDA" | "LAMBDA_CODE")]
1158
+ attr_accessor resource_types: ::Array[("EC2" | "ECR" | "LAMBDA" | "LAMBDA_CODE" | "CODE_REPOSITORY")]
950
1159
  SENSITIVE: []
951
1160
  end
952
1161
 
@@ -993,6 +1202,14 @@ module Aws::Inspector2
993
1202
  SENSITIVE: []
994
1203
  end
995
1204
 
1205
+ class FailedAssociationResult
1206
+ attr_accessor resource: Types::CodeSecurityResource
1207
+ attr_accessor scan_configuration_arn: ::String
1208
+ attr_accessor status_code: ("INTERNAL_ERROR" | "ACCESS_DENIED" | "SCAN_CONFIGURATION_NOT_FOUND" | "INVALID_INPUT" | "RESOURCE_NOT_FOUND" | "QUOTA_EXCEEDED")
1209
+ attr_accessor status_message: ::String
1210
+ SENSITIVE: []
1211
+ end
1212
+
996
1213
  class FailedMemberAccountEc2DeepInspectionStatusState
997
1214
  attr_accessor account_id: ::String
998
1215
  attr_accessor ec2_scan_status: ("ENABLING" | "ENABLED" | "DISABLING" | "DISABLED" | "SUSPENDING" | "SUSPENDED")
@@ -1016,6 +1233,8 @@ module Aws::Inspector2
1016
1233
 
1017
1234
  class FilterCriteria
1018
1235
  attr_accessor aws_account_id: ::Array[Types::StringFilter]
1236
+ attr_accessor code_repository_project_name: ::Array[Types::StringFilter]
1237
+ attr_accessor code_repository_provider_type: ::Array[Types::StringFilter]
1019
1238
  attr_accessor code_vulnerability_detector_name: ::Array[Types::StringFilter]
1020
1239
  attr_accessor code_vulnerability_detector_tags: ::Array[Types::StringFilter]
1021
1240
  attr_accessor code_vulnerability_file_path: ::Array[Types::StringFilter]
@@ -1134,7 +1353,7 @@ module Aws::Inspector2
1134
1353
  attr_accessor end: ::Time
1135
1354
  attr_accessor start: ::Time
1136
1355
  attr_accessor status: ("ACTIVE" | "INACTIVE")
1137
- attr_accessor type: ("EC2" | "ECR" | "LAMBDA" | "LAMBDA_CODE")
1356
+ attr_accessor type: ("EC2" | "ECR" | "LAMBDA" | "LAMBDA_CODE" | "CODE_REPOSITORY")
1138
1357
  SENSITIVE: []
1139
1358
  end
1140
1359
 
@@ -1189,6 +1408,60 @@ module Aws::Inspector2
1189
1408
  SENSITIVE: []
1190
1409
  end
1191
1410
 
1411
+ class GetCodeSecurityIntegrationRequest
1412
+ attr_accessor integration_arn: ::String
1413
+ attr_accessor tags: ::Hash[::String, ::String]
1414
+ SENSITIVE: []
1415
+ end
1416
+
1417
+ class GetCodeSecurityIntegrationResponse
1418
+ attr_accessor authorization_url: ::String
1419
+ attr_accessor created_on: ::Time
1420
+ attr_accessor integration_arn: ::String
1421
+ attr_accessor last_update_on: ::Time
1422
+ attr_accessor name: ::String
1423
+ attr_accessor status: ("PENDING" | "IN_PROGRESS" | "ACTIVE" | "INACTIVE" | "DISABLING")
1424
+ attr_accessor status_reason: ::String
1425
+ attr_accessor tags: ::Hash[::String, ::String]
1426
+ attr_accessor type: ("GITLAB_SELF_MANAGED" | "GITHUB")
1427
+ SENSITIVE: [:authorization_url]
1428
+ end
1429
+
1430
+ class GetCodeSecurityScanConfigurationRequest
1431
+ attr_accessor scan_configuration_arn: ::String
1432
+ SENSITIVE: []
1433
+ end
1434
+
1435
+ class GetCodeSecurityScanConfigurationResponse
1436
+ attr_accessor configuration: Types::CodeSecurityScanConfiguration
1437
+ attr_accessor created_at: ::Time
1438
+ attr_accessor last_updated_at: ::Time
1439
+ attr_accessor level: ("ORGANIZATION" | "ACCOUNT")
1440
+ attr_accessor name: ::String
1441
+ attr_accessor scan_configuration_arn: ::String
1442
+ attr_accessor scope_settings: Types::ScopeSettings
1443
+ attr_accessor tags: ::Hash[::String, ::String]
1444
+ SENSITIVE: []
1445
+ end
1446
+
1447
+ class GetCodeSecurityScanRequest
1448
+ attr_accessor resource: Types::CodeSecurityResource
1449
+ attr_accessor scan_id: ::String
1450
+ SENSITIVE: []
1451
+ end
1452
+
1453
+ class GetCodeSecurityScanResponse
1454
+ attr_accessor account_id: ::String
1455
+ attr_accessor created_at: ::Time
1456
+ attr_accessor last_commit_id: ::String
1457
+ attr_accessor resource: Types::CodeSecurityResource
1458
+ attr_accessor scan_id: ::String
1459
+ attr_accessor status: ("IN_PROGRESS" | "SUCCESSFUL" | "FAILED" | "SKIPPED")
1460
+ attr_accessor status_reason: ::String
1461
+ attr_accessor updated_at: ::Time
1462
+ SENSITIVE: []
1463
+ end
1464
+
1192
1465
  class GetConfigurationRequest < Aws::EmptyStructure
1193
1466
  end
1194
1467
 
@@ -1218,7 +1491,7 @@ module Aws::Inspector2
1218
1491
  end
1219
1492
 
1220
1493
  class GetEncryptionKeyRequest
1221
- attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION")
1494
+ attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY")
1222
1495
  attr_accessor scan_type: ("NETWORK" | "PACKAGE" | "CODE")
1223
1496
  SENSITIVE: []
1224
1497
  end
@@ -1449,6 +1722,43 @@ module Aws::Inspector2
1449
1722
  SENSITIVE: []
1450
1723
  end
1451
1724
 
1725
+ class ListCodeSecurityIntegrationsRequest
1726
+ attr_accessor max_results: ::Integer
1727
+ attr_accessor next_token: ::String
1728
+ SENSITIVE: []
1729
+ end
1730
+
1731
+ class ListCodeSecurityIntegrationsResponse
1732
+ attr_accessor integrations: ::Array[Types::CodeSecurityIntegrationSummary]
1733
+ attr_accessor next_token: ::String
1734
+ SENSITIVE: []
1735
+ end
1736
+
1737
+ class ListCodeSecurityScanConfigurationAssociationsRequest
1738
+ attr_accessor max_results: ::Integer
1739
+ attr_accessor next_token: ::String
1740
+ attr_accessor scan_configuration_arn: ::String
1741
+ SENSITIVE: []
1742
+ end
1743
+
1744
+ class ListCodeSecurityScanConfigurationAssociationsResponse
1745
+ attr_accessor associations: ::Array[Types::CodeSecurityScanConfigurationAssociationSummary]
1746
+ attr_accessor next_token: ::String
1747
+ SENSITIVE: []
1748
+ end
1749
+
1750
+ class ListCodeSecurityScanConfigurationsRequest
1751
+ attr_accessor max_results: ::Integer
1752
+ attr_accessor next_token: ::String
1753
+ SENSITIVE: []
1754
+ end
1755
+
1756
+ class ListCodeSecurityScanConfigurationsResponse
1757
+ attr_accessor configurations: ::Array[Types::CodeSecurityScanConfigurationSummary]
1758
+ attr_accessor next_token: ::String
1759
+ SENSITIVE: []
1760
+ end
1761
+
1452
1762
  class ListCoverageRequest
1453
1763
  attr_accessor filter_criteria: Types::CoverageFilterCriteria
1454
1764
  attr_accessor max_results: ::Integer
@@ -1505,14 +1815,14 @@ module Aws::Inspector2
1505
1815
  class ListFindingAggregationsRequest
1506
1816
  attr_accessor account_ids: ::Array[Types::StringFilter]
1507
1817
  attr_accessor aggregation_request: Types::AggregationRequest
1508
- attr_accessor aggregation_type: ("FINDING_TYPE" | "PACKAGE" | "TITLE" | "REPOSITORY" | "AMI" | "AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER" | "IMAGE_LAYER" | "ACCOUNT" | "AWS_LAMBDA_FUNCTION" | "LAMBDA_LAYER")
1818
+ attr_accessor aggregation_type: ("FINDING_TYPE" | "PACKAGE" | "TITLE" | "REPOSITORY" | "AMI" | "AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER" | "IMAGE_LAYER" | "ACCOUNT" | "AWS_LAMBDA_FUNCTION" | "LAMBDA_LAYER" | "CODE_REPOSITORY")
1509
1819
  attr_accessor max_results: ::Integer
1510
1820
  attr_accessor next_token: ::String
1511
1821
  SENSITIVE: []
1512
1822
  end
1513
1823
 
1514
1824
  class ListFindingAggregationsResponse
1515
- attr_accessor aggregation_type: ("FINDING_TYPE" | "PACKAGE" | "TITLE" | "REPOSITORY" | "AMI" | "AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER" | "IMAGE_LAYER" | "ACCOUNT" | "AWS_LAMBDA_FUNCTION" | "LAMBDA_LAYER")
1825
+ attr_accessor aggregation_type: ("FINDING_TYPE" | "PACKAGE" | "TITLE" | "REPOSITORY" | "AMI" | "AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER" | "IMAGE_LAYER" | "ACCOUNT" | "AWS_LAMBDA_FUNCTION" | "LAMBDA_LAYER" | "CODE_REPOSITORY")
1516
1826
  attr_accessor next_token: ::String
1517
1827
  attr_accessor responses: ::Array[Types::AggregationResponse]
1518
1828
  SENSITIVE: []
@@ -1663,6 +1973,12 @@ module Aws::Inspector2
1663
1973
  SENSITIVE: []
1664
1974
  end
1665
1975
 
1976
+ class PeriodicScanConfiguration
1977
+ attr_accessor frequency: ("WEEKLY" | "MONTHLY" | "NEVER")
1978
+ attr_accessor frequency_expression: ::String
1979
+ SENSITIVE: []
1980
+ end
1981
+
1666
1982
  class Permission
1667
1983
  attr_accessor operation: ("ENABLE_SCANNING" | "DISABLE_SCANNING" | "ENABLE_REPOSITORY" | "DISABLE_REPOSITORY")
1668
1984
  attr_accessor service: ("EC2" | "ECR" | "LAMBDA")
@@ -1681,6 +1997,24 @@ module Aws::Inspector2
1681
1997
  SENSITIVE: []
1682
1998
  end
1683
1999
 
2000
+ class ProjectCodeSecurityScanConfiguration
2001
+ attr_accessor continuous_integration_scan_configurations: ::Array[Types::ProjectContinuousIntegrationScanConfiguration]
2002
+ attr_accessor periodic_scan_configurations: ::Array[Types::ProjectPeriodicScanConfiguration]
2003
+ SENSITIVE: []
2004
+ end
2005
+
2006
+ class ProjectContinuousIntegrationScanConfiguration
2007
+ attr_accessor rule_set_categories: ::Array[("SAST" | "IAC" | "SCA")]
2008
+ attr_accessor supported_event: ("PULL_REQUEST" | "PUSH")
2009
+ SENSITIVE: []
2010
+ end
2011
+
2012
+ class ProjectPeriodicScanConfiguration
2013
+ attr_accessor frequency_expression: ::String
2014
+ attr_accessor rule_set_categories: ::Array[("SAST" | "IAC" | "SCA")]
2015
+ SENSITIVE: []
2016
+ end
2017
+
1684
2018
  class Recommendation
1685
2019
  attr_accessor url: ::String
1686
2020
  attr_accessor text: ::String
@@ -1708,7 +2042,7 @@ module Aws::Inspector2
1708
2042
  end
1709
2043
 
1710
2044
  class ResetEncryptionKeyRequest
1711
- attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION")
2045
+ attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY")
1712
2046
  attr_accessor scan_type: ("NETWORK" | "PACKAGE" | "CODE")
1713
2047
  SENSITIVE: []
1714
2048
  end
@@ -1722,7 +2056,7 @@ module Aws::Inspector2
1722
2056
  attr_accessor partition: ::String
1723
2057
  attr_accessor region: ::String
1724
2058
  attr_accessor tags: ::Hash[::String, ::String]
1725
- attr_accessor type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION")
2059
+ attr_accessor type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY")
1726
2060
  SENSITIVE: []
1727
2061
  end
1728
2062
 
@@ -1730,6 +2064,7 @@ module Aws::Inspector2
1730
2064
  attr_accessor aws_ec2_instance: Types::AwsEc2InstanceDetails
1731
2065
  attr_accessor aws_ecr_container_image: Types::AwsEcrContainerImageDetails
1732
2066
  attr_accessor aws_lambda_function: Types::AwsLambdaFunctionDetails
2067
+ attr_accessor code_repository: Types::CodeRepositoryDetails
1733
2068
  SENSITIVE: []
1734
2069
  end
1735
2070
 
@@ -1758,6 +2093,7 @@ module Aws::Inspector2
1758
2093
  end
1759
2094
 
1760
2095
  class ResourceScanMetadata
2096
+ attr_accessor code_repository: Types::CodeRepositoryMetadata
1761
2097
  attr_accessor ec2: Types::Ec2Metadata
1762
2098
  attr_accessor ecr_image: Types::EcrContainerImageMetadata
1763
2099
  attr_accessor ecr_repository: Types::EcrRepositoryMetadata
@@ -1766,6 +2102,7 @@ module Aws::Inspector2
1766
2102
  end
1767
2103
 
1768
2104
  class ResourceState
2105
+ attr_accessor code_repository: Types::State
1769
2106
  attr_accessor ec2: Types::State
1770
2107
  attr_accessor ecr: Types::State
1771
2108
  attr_accessor lambda: Types::State
@@ -1774,6 +2111,7 @@ module Aws::Inspector2
1774
2111
  end
1775
2112
 
1776
2113
  class ResourceStatus
2114
+ attr_accessor code_repository: ("ENABLING" | "ENABLED" | "DISABLING" | "DISABLED" | "SUSPENDING" | "SUSPENDED")
1777
2115
  attr_accessor ec2: ("ENABLING" | "ENABLED" | "DISABLING" | "DISABLED" | "SUSPENDING" | "SUSPENDED")
1778
2116
  attr_accessor ecr: ("ENABLING" | "ENABLED" | "DISABLING" | "DISABLED" | "SUSPENDING" | "SUSPENDED")
1779
2117
  attr_accessor lambda: ("ENABLING" | "ENABLED" | "DISABLING" | "DISABLED" | "SUSPENDING" | "SUSPENDED")
@@ -1788,7 +2126,7 @@ module Aws::Inspector2
1788
2126
  end
1789
2127
 
1790
2128
  class ScanStatus
1791
- attr_accessor reason: ("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")
2129
+ attr_accessor reason: ("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")
1792
2130
  attr_accessor status_code: ("ACTIVE" | "INACTIVE")
1793
2131
  SENSITIVE: []
1794
2132
  end
@@ -1813,6 +2151,11 @@ module Aws::Inspector2
1813
2151
  end
1814
2152
  end
1815
2153
 
2154
+ class ScopeSettings
2155
+ attr_accessor project_selection_scope: ("ALL")
2156
+ SENSITIVE: []
2157
+ end
2158
+
1816
2159
  class SearchVulnerabilitiesFilterCriteria
1817
2160
  attr_accessor vulnerability_ids: ::Array[::String]
1818
2161
  SENSITIVE: []
@@ -1883,6 +2226,18 @@ module Aws::Inspector2
1883
2226
  class StartCisSessionResponse < Aws::EmptyStructure
1884
2227
  end
1885
2228
 
2229
+ class StartCodeSecurityScanRequest
2230
+ attr_accessor client_token: ::String
2231
+ attr_accessor resource: Types::CodeSecurityResource
2232
+ SENSITIVE: []
2233
+ end
2234
+
2235
+ class StartCodeSecurityScanResponse
2236
+ attr_accessor scan_id: ::String
2237
+ attr_accessor status: ("IN_PROGRESS" | "SUCCESSFUL" | "FAILED" | "SKIPPED")
2238
+ SENSITIVE: []
2239
+ end
2240
+
1886
2241
  class State
1887
2242
  attr_accessor error_code: ("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")
1888
2243
  attr_accessor error_message: ::String
@@ -1942,6 +2297,12 @@ module Aws::Inspector2
1942
2297
  SENSITIVE: []
1943
2298
  end
1944
2299
 
2300
+ class SuccessfulAssociationResult
2301
+ attr_accessor resource: Types::CodeSecurityResource
2302
+ attr_accessor scan_configuration_arn: ::String
2303
+ SENSITIVE: []
2304
+ end
2305
+
1945
2306
  class SuggestedFix
1946
2307
  attr_accessor code: ::String
1947
2308
  attr_accessor description: ::String
@@ -2023,6 +2384,29 @@ module Aws::Inspector2
2023
2384
  SENSITIVE: []
2024
2385
  end
2025
2386
 
2387
+ class UpdateCodeSecurityIntegrationRequest
2388
+ attr_accessor details: Types::UpdateIntegrationDetails
2389
+ attr_accessor integration_arn: ::String
2390
+ SENSITIVE: []
2391
+ end
2392
+
2393
+ class UpdateCodeSecurityIntegrationResponse
2394
+ attr_accessor integration_arn: ::String
2395
+ attr_accessor status: ("PENDING" | "IN_PROGRESS" | "ACTIVE" | "INACTIVE" | "DISABLING")
2396
+ SENSITIVE: []
2397
+ end
2398
+
2399
+ class UpdateCodeSecurityScanConfigurationRequest
2400
+ attr_accessor configuration: Types::CodeSecurityScanConfiguration
2401
+ attr_accessor scan_configuration_arn: ::String
2402
+ SENSITIVE: []
2403
+ end
2404
+
2405
+ class UpdateCodeSecurityScanConfigurationResponse
2406
+ attr_accessor scan_configuration_arn: ::String
2407
+ SENSITIVE: []
2408
+ end
2409
+
2026
2410
  class UpdateConfigurationRequest
2027
2411
  attr_accessor ec2_configuration: Types::Ec2Configuration
2028
2412
  attr_accessor ecr_configuration: Types::EcrConfiguration
@@ -2048,7 +2432,7 @@ module Aws::Inspector2
2048
2432
 
2049
2433
  class UpdateEncryptionKeyRequest
2050
2434
  attr_accessor kms_key_id: ::String
2051
- attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION")
2435
+ attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION" | "CODE_REPOSITORY")
2052
2436
  attr_accessor scan_type: ("NETWORK" | "PACKAGE" | "CODE")
2053
2437
  SENSITIVE: []
2054
2438
  end
@@ -2071,6 +2455,31 @@ module Aws::Inspector2
2071
2455
  SENSITIVE: []
2072
2456
  end
2073
2457
 
2458
+ class UpdateGitHubIntegrationDetail
2459
+ attr_accessor code: ::String
2460
+ attr_accessor installation_id: ::String
2461
+ SENSITIVE: [:code]
2462
+ end
2463
+
2464
+ class UpdateGitLabSelfManagedIntegrationDetail
2465
+ attr_accessor auth_code: ::String
2466
+ SENSITIVE: [:auth_code]
2467
+ end
2468
+
2469
+ class UpdateIntegrationDetails
2470
+ attr_accessor github: Types::UpdateGitHubIntegrationDetail
2471
+ attr_accessor gitlab_self_managed: Types::UpdateGitLabSelfManagedIntegrationDetail
2472
+ attr_accessor unknown: untyped
2473
+ SENSITIVE: []
2474
+
2475
+ class Github < UpdateIntegrationDetails
2476
+ end
2477
+ class GitlabSelfManaged < UpdateIntegrationDetails
2478
+ end
2479
+ class Unknown < UpdateIntegrationDetails
2480
+ end
2481
+ end
2482
+
2074
2483
  class UpdateOrgEc2DeepInspectionConfigurationRequest
2075
2484
  attr_accessor org_package_paths: ::Array[::String]
2076
2485
  SENSITIVE: []
@@ -2093,7 +2502,7 @@ module Aws::Inspector2
2093
2502
  attr_accessor currency: ("USD")
2094
2503
  attr_accessor estimated_monthly_cost: ::Float
2095
2504
  attr_accessor total: ::Float
2096
- attr_accessor type: ("EC2_INSTANCE_HOURS" | "ECR_INITIAL_SCAN" | "ECR_RESCAN" | "LAMBDA_FUNCTION_HOURS" | "LAMBDA_FUNCTION_CODE_HOURS")
2505
+ attr_accessor type: ("EC2_INSTANCE_HOURS" | "ECR_INITIAL_SCAN" | "ECR_RESCAN" | "LAMBDA_FUNCTION_HOURS" | "LAMBDA_FUNCTION_CODE_HOURS" | "CODE_REPOSITORY_SAST" | "CODE_REPOSITORY_IAC" | "CODE_REPOSITORY_SCA")
2097
2506
  SENSITIVE: []
2098
2507
  end
2099
2508