aws-sdk-inspector2 1.87.0 → 1.88.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-inspector2/client.rb +350 -10
- data/lib/aws-sdk-inspector2/client_api.rb +178 -0
- data/lib/aws-sdk-inspector2/types.rb +512 -9
- data/lib/aws-sdk-inspector2.rb +1 -1
- data/sig/client.rbs +73 -8
- data/sig/params.rbs +31 -0
- data/sig/types.rbs +130 -8
- metadata +1 -1
|
@@ -34,8 +34,18 @@ module Aws::Inspector2
|
|
|
34
34
|
AggregationType = Shapes::StringShape.new(name: 'AggregationType')
|
|
35
35
|
AmiAggregation = Shapes::StructureShape.new(name: 'AmiAggregation')
|
|
36
36
|
AmiAggregationResponse = Shapes::StructureShape.new(name: 'AmiAggregationResponse')
|
|
37
|
+
AmiConfiguration = Shapes::StructureShape.new(name: 'AmiConfiguration')
|
|
38
|
+
AmiConfigurationState = Shapes::StructureShape.new(name: 'AmiConfigurationState')
|
|
39
|
+
AmiConfigurationStatus = Shapes::StringShape.new(name: 'AmiConfigurationStatus')
|
|
37
40
|
AmiId = Shapes::StringShape.new(name: 'AmiId')
|
|
41
|
+
AmiScanDuration = Shapes::StringShape.new(name: 'AmiScanDuration')
|
|
42
|
+
AmiScanMode = Shapes::StringShape.new(name: 'AmiScanMode')
|
|
43
|
+
AmiScanModeConfiguration = Shapes::StructureShape.new(name: 'AmiScanModeConfiguration')
|
|
38
44
|
AmiSortBy = Shapes::StringShape.new(name: 'AmiSortBy')
|
|
45
|
+
AmiTagFilter = Shapes::StructureShape.new(name: 'AmiTagFilter')
|
|
46
|
+
AmiTagFilterList = Shapes::ListShape.new(name: 'AmiTagFilterList')
|
|
47
|
+
AmiTagKey = Shapes::StringShape.new(name: 'AmiTagKey')
|
|
48
|
+
AmiTagValue = Shapes::StringShape.new(name: 'AmiTagValue')
|
|
39
49
|
Architecture = Shapes::StringShape.new(name: 'Architecture')
|
|
40
50
|
ArchitectureList = Shapes::ListShape.new(name: 'ArchitectureList')
|
|
41
51
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
|
@@ -457,6 +467,8 @@ module Aws::Inspector2
|
|
|
457
467
|
GetFindingsReportStatusResponse = Shapes::StructureShape.new(name: 'GetFindingsReportStatusResponse')
|
|
458
468
|
GetMemberRequest = Shapes::StructureShape.new(name: 'GetMemberRequest')
|
|
459
469
|
GetMemberResponse = Shapes::StructureShape.new(name: 'GetMemberResponse')
|
|
470
|
+
GetOnDemandScanStatusRequest = Shapes::StructureShape.new(name: 'GetOnDemandScanStatusRequest')
|
|
471
|
+
GetOnDemandScanStatusResponse = Shapes::StructureShape.new(name: 'GetOnDemandScanStatusResponse')
|
|
460
472
|
GetSbomExportRequest = Shapes::StructureShape.new(name: 'GetSbomExportRequest')
|
|
461
473
|
GetSbomExportResponse = Shapes::StructureShape.new(name: 'GetSbomExportResponse')
|
|
462
474
|
GitHubAuthCode = Shapes::StringShape.new(name: 'GitHubAuthCode')
|
|
@@ -548,6 +560,9 @@ module Aws::Inspector2
|
|
|
548
560
|
ListMembersMaxResults = Shapes::IntegerShape.new(name: 'ListMembersMaxResults')
|
|
549
561
|
ListMembersRequest = Shapes::StructureShape.new(name: 'ListMembersRequest')
|
|
550
562
|
ListMembersResponse = Shapes::StructureShape.new(name: 'ListMembersResponse')
|
|
563
|
+
ListOnDemandScansRequest = Shapes::StructureShape.new(name: 'ListOnDemandScansRequest')
|
|
564
|
+
ListOnDemandScansRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListOnDemandScansRequestMaxResultsInteger')
|
|
565
|
+
ListOnDemandScansResponse = Shapes::StructureShape.new(name: 'ListOnDemandScansResponse')
|
|
551
566
|
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
|
552
567
|
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
|
553
568
|
ListUsageTotalsMaxResults = Shapes::IntegerShape.new(name: 'ListUsageTotalsMaxResults')
|
|
@@ -555,6 +570,11 @@ module Aws::Inspector2
|
|
|
555
570
|
ListUsageTotalsRequest = Shapes::StructureShape.new(name: 'ListUsageTotalsRequest')
|
|
556
571
|
ListUsageTotalsResponse = Shapes::StructureShape.new(name: 'ListUsageTotalsResponse')
|
|
557
572
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
|
573
|
+
MachineImageDetails = Shapes::StructureShape.new(name: 'MachineImageDetails')
|
|
574
|
+
MachineImageDetailsMachineImageIdString = Shapes::StringShape.new(name: 'MachineImageDetailsMachineImageIdString')
|
|
575
|
+
MachineImageDetailsSourceResourceIdString = Shapes::StringShape.new(name: 'MachineImageDetailsSourceResourceIdString')
|
|
576
|
+
MachineImageMetadata = Shapes::StructureShape.new(name: 'MachineImageMetadata')
|
|
577
|
+
MachineImagePlatform = Shapes::StringShape.new(name: 'MachineImagePlatform')
|
|
558
578
|
MapComparison = Shapes::StringShape.new(name: 'MapComparison')
|
|
559
579
|
MapFilter = Shapes::StructureShape.new(name: 'MapFilter')
|
|
560
580
|
MapFilterList = Shapes::ListShape.new(name: 'MapFilterList')
|
|
@@ -577,6 +597,12 @@ module Aws::Inspector2
|
|
|
577
597
|
NonEmptyStringList = Shapes::ListShape.new(name: 'NonEmptyStringList')
|
|
578
598
|
NumberFilter = Shapes::StructureShape.new(name: 'NumberFilter')
|
|
579
599
|
NumberFilterList = Shapes::ListShape.new(name: 'NumberFilterList')
|
|
600
|
+
OnDemandResourceType = Shapes::StringShape.new(name: 'OnDemandResourceType')
|
|
601
|
+
OnDemandScan = Shapes::StructureShape.new(name: 'OnDemandScan')
|
|
602
|
+
OnDemandScanList = Shapes::ListShape.new(name: 'OnDemandScanList')
|
|
603
|
+
OnDemandScanNextToken = Shapes::StringShape.new(name: 'OnDemandScanNextToken')
|
|
604
|
+
OnDemandScanStatus = Shapes::StringShape.new(name: 'OnDemandScanStatus')
|
|
605
|
+
OnDemandScanStatusReason = Shapes::StringShape.new(name: 'OnDemandScanStatusReason')
|
|
580
606
|
OneAccountIdFilterList = Shapes::ListShape.new(name: 'OneAccountIdFilterList')
|
|
581
607
|
OneTimeSchedule = Shapes::StructureShape.new(name: 'OneTimeSchedule')
|
|
582
608
|
Operation = Shapes::StringShape.new(name: 'Operation')
|
|
@@ -669,7 +695,10 @@ module Aws::Inspector2
|
|
|
669
695
|
SbomReportFormat = Shapes::StringShape.new(name: 'SbomReportFormat')
|
|
670
696
|
ScanConfigurationArn = Shapes::StringShape.new(name: 'ScanConfigurationArn')
|
|
671
697
|
ScanConfigurationName = Shapes::StringShape.new(name: 'ScanConfigurationName')
|
|
698
|
+
ScanId = Shapes::StringShape.new(name: 'ScanId')
|
|
672
699
|
ScanMode = Shapes::StringShape.new(name: 'ScanMode')
|
|
700
|
+
ScanSource = Shapes::StringShape.new(name: 'ScanSource')
|
|
701
|
+
ScanSourceList = Shapes::ListShape.new(name: 'ScanSourceList')
|
|
673
702
|
ScanStatus = Shapes::StructureShape.new(name: 'ScanStatus')
|
|
674
703
|
ScanStatusCode = Shapes::StringShape.new(name: 'ScanStatusCode')
|
|
675
704
|
ScanStatusReason = Shapes::StringShape.new(name: 'ScanStatusReason')
|
|
@@ -711,6 +740,8 @@ module Aws::Inspector2
|
|
|
711
740
|
StartCisSessionResponse = Shapes::StructureShape.new(name: 'StartCisSessionResponse')
|
|
712
741
|
StartCodeSecurityScanRequest = Shapes::StructureShape.new(name: 'StartCodeSecurityScanRequest')
|
|
713
742
|
StartCodeSecurityScanResponse = Shapes::StructureShape.new(name: 'StartCodeSecurityScanResponse')
|
|
743
|
+
StartOnDemandScanRequest = Shapes::StructureShape.new(name: 'StartOnDemandScanRequest')
|
|
744
|
+
StartOnDemandScanResponse = Shapes::StructureShape.new(name: 'StartOnDemandScanResponse')
|
|
714
745
|
State = Shapes::StructureShape.new(name: 'State')
|
|
715
746
|
Status = Shapes::StringShape.new(name: 'Status')
|
|
716
747
|
StatusCounts = Shapes::StructureShape.new(name: 'StatusCounts')
|
|
@@ -947,6 +978,7 @@ module Aws::Inspector2
|
|
|
947
978
|
AmiAggregation.add_member(:amis, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "amis"))
|
|
948
979
|
AmiAggregation.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location_name: "sortOrder"))
|
|
949
980
|
AmiAggregation.add_member(:sort_by, Shapes::ShapeRef.new(shape: AmiSortBy, location_name: "sortBy"))
|
|
981
|
+
AmiAggregation.add_member(:scan_sources, Shapes::ShapeRef.new(shape: ScanSourceList, location_name: "scanSources"))
|
|
950
982
|
AmiAggregation.struct_class = Types::AmiAggregation
|
|
951
983
|
|
|
952
984
|
AmiAggregationResponse.add_member(:ami, Shapes::ShapeRef.new(shape: AmiId, required: true, location_name: "ami"))
|
|
@@ -958,8 +990,33 @@ module Aws::Inspector2
|
|
|
958
990
|
AmiAggregationResponse.add_member(:cloud_account_id, Shapes::ShapeRef.new(shape: ProviderAccountId, location_name: "cloudAccountId"))
|
|
959
991
|
AmiAggregationResponse.add_member(:severity_counts, Shapes::ShapeRef.new(shape: SeverityCounts, location_name: "severityCounts"))
|
|
960
992
|
AmiAggregationResponse.add_member(:affected_instances, Shapes::ShapeRef.new(shape: Long, location_name: "affectedInstances"))
|
|
993
|
+
AmiAggregationResponse.add_member(:scan_source, Shapes::ShapeRef.new(shape: ScanSource, location_name: "scanSource"))
|
|
961
994
|
AmiAggregationResponse.struct_class = Types::AmiAggregationResponse
|
|
962
995
|
|
|
996
|
+
AmiConfiguration.add_member(:last_launched_within, Shapes::ShapeRef.new(shape: AmiScanDuration, location_name: "lastLaunchedWithin"))
|
|
997
|
+
AmiConfiguration.add_member(:created_within, Shapes::ShapeRef.new(shape: AmiScanDuration, location_name: "createdWithin"))
|
|
998
|
+
AmiConfiguration.add_member(:scan_mode_configuration, Shapes::ShapeRef.new(shape: AmiScanModeConfiguration, required: true, location_name: "scanModeConfiguration"))
|
|
999
|
+
AmiConfiguration.struct_class = Types::AmiConfiguration
|
|
1000
|
+
|
|
1001
|
+
AmiConfigurationState.add_member(:last_launched_within, Shapes::ShapeRef.new(shape: AmiScanDuration, location_name: "lastLaunchedWithin"))
|
|
1002
|
+
AmiConfigurationState.add_member(:created_within, Shapes::ShapeRef.new(shape: AmiScanDuration, location_name: "createdWithin"))
|
|
1003
|
+
AmiConfigurationState.add_member(:scan_mode_configuration, Shapes::ShapeRef.new(shape: AmiScanModeConfiguration, location_name: "scanModeConfiguration"))
|
|
1004
|
+
AmiConfigurationState.add_member(:status, Shapes::ShapeRef.new(shape: AmiConfigurationStatus, location_name: "status"))
|
|
1005
|
+
AmiConfigurationState.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTimeTimestamp, location_name: "updatedAt"))
|
|
1006
|
+
AmiConfigurationState.struct_class = Types::AmiConfigurationState
|
|
1007
|
+
|
|
1008
|
+
AmiScanModeConfiguration.add_member(:scan_mode, Shapes::ShapeRef.new(shape: AmiScanMode, required: true, location_name: "scanMode"))
|
|
1009
|
+
AmiScanModeConfiguration.add_member(:tags, Shapes::ShapeRef.new(shape: AmiTagFilterList, location_name: "tags"))
|
|
1010
|
+
AmiScanModeConfiguration.add_member(:exclude_copied_amis, Shapes::ShapeRef.new(shape: Boolean, location_name: "excludeCopiedAmis"))
|
|
1011
|
+
AmiScanModeConfiguration.add_member(:exclude_backup_dlm_amis, Shapes::ShapeRef.new(shape: Boolean, location_name: "excludeBackupDlmAmis"))
|
|
1012
|
+
AmiScanModeConfiguration.struct_class = Types::AmiScanModeConfiguration
|
|
1013
|
+
|
|
1014
|
+
AmiTagFilter.add_member(:key, Shapes::ShapeRef.new(shape: AmiTagKey, required: true, location_name: "key"))
|
|
1015
|
+
AmiTagFilter.add_member(:value, Shapes::ShapeRef.new(shape: AmiTagValue, location_name: "value"))
|
|
1016
|
+
AmiTagFilter.struct_class = Types::AmiTagFilter
|
|
1017
|
+
|
|
1018
|
+
AmiTagFilterList.member = Shapes::ShapeRef.new(shape: AmiTagFilter)
|
|
1019
|
+
|
|
963
1020
|
ArchitectureList.member = Shapes::ShapeRef.new(shape: Architecture)
|
|
964
1021
|
|
|
965
1022
|
AssociateConfigurationRequest.add_member(:scan_configuration_arn, Shapes::ShapeRef.new(shape: ScanConfigurationArn, required: true, location_name: "scanConfigurationArn"))
|
|
@@ -985,6 +1042,7 @@ module Aws::Inspector2
|
|
|
985
1042
|
AutoEnable.add_member(:lambda, Shapes::ShapeRef.new(shape: Boolean, location_name: "lambda"))
|
|
986
1043
|
AutoEnable.add_member(:lambda_code, Shapes::ShapeRef.new(shape: Boolean, location_name: "lambdaCode"))
|
|
987
1044
|
AutoEnable.add_member(:code_repository, Shapes::ShapeRef.new(shape: Boolean, location_name: "codeRepository"))
|
|
1045
|
+
AutoEnable.add_member(:ami, Shapes::ShapeRef.new(shape: Boolean, location_name: "ami"))
|
|
988
1046
|
AutoEnable.struct_class = Types::AutoEnable
|
|
989
1047
|
|
|
990
1048
|
AwsConfigConnectorArnFilter.add_member(:comparison, Shapes::ShapeRef.new(shape: AwsConfigConnectorArnComparison, required: true, location_name: "comparison"))
|
|
@@ -1625,6 +1683,7 @@ module Aws::Inspector2
|
|
|
1625
1683
|
CoverageFilterCriteria.add_member(:lambda_function_name, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "lambdaFunctionName"))
|
|
1626
1684
|
CoverageFilterCriteria.add_member(:lambda_function_tags, Shapes::ShapeRef.new(shape: CoverageMapFilterList, location_name: "lambdaFunctionTags"))
|
|
1627
1685
|
CoverageFilterCriteria.add_member(:lambda_function_runtime, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "lambdaFunctionRuntime"))
|
|
1686
|
+
CoverageFilterCriteria.add_member(:machine_image_tags, Shapes::ShapeRef.new(shape: CoverageMapFilterList, location_name: "machineImageTags"))
|
|
1628
1687
|
CoverageFilterCriteria.add_member(:last_scanned_at, Shapes::ShapeRef.new(shape: CoverageDateFilterList, location_name: "lastScannedAt"))
|
|
1629
1688
|
CoverageFilterCriteria.add_member(:scan_mode, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "scanMode"))
|
|
1630
1689
|
CoverageFilterCriteria.add_member(:image_pulled_at, Shapes::ShapeRef.new(shape: CoverageDateFilterList, location_name: "imagePulledAt"))
|
|
@@ -1863,6 +1922,7 @@ module Aws::Inspector2
|
|
|
1863
1922
|
Destination.add_member(:bucket_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "bucketName"))
|
|
1864
1923
|
Destination.add_member(:key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "keyPrefix"))
|
|
1865
1924
|
Destination.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "kmsKeyArn"))
|
|
1925
|
+
Destination.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "expectedBucketOwner"))
|
|
1866
1926
|
Destination.struct_class = Types::Destination
|
|
1867
1927
|
|
|
1868
1928
|
DetectionPlatforms.member = Shapes::ShapeRef.new(shape: NonEmptyString)
|
|
@@ -2078,6 +2138,10 @@ module Aws::Inspector2
|
|
|
2078
2138
|
FilterCriteria.add_member(:epss_score, Shapes::ShapeRef.new(shape: NumberFilterList, location_name: "epssScore"))
|
|
2079
2139
|
FilterCriteria.add_member(:code_repository_project_name, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "codeRepositoryProjectName"))
|
|
2080
2140
|
FilterCriteria.add_member(:code_repository_provider_type, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "codeRepositoryProviderType"))
|
|
2141
|
+
FilterCriteria.add_member(:machine_image_id, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "machineImageId"))
|
|
2142
|
+
FilterCriteria.add_member(:machine_image_name, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "machineImageName"))
|
|
2143
|
+
FilterCriteria.add_member(:machine_image_owner_account_id, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "machineImageOwnerAccountId"))
|
|
2144
|
+
FilterCriteria.add_member(:machine_image_platform, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "machineImagePlatform"))
|
|
2081
2145
|
FilterCriteria.add_member(:cloud_provider, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "cloudProvider"))
|
|
2082
2146
|
FilterCriteria.add_member(:cloud_provider_region, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "cloudProviderRegion"))
|
|
2083
2147
|
FilterCriteria.add_member(:cloud_provider_account_id, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "cloudProviderAccountId"))
|
|
@@ -2267,6 +2331,7 @@ module Aws::Inspector2
|
|
|
2267
2331
|
|
|
2268
2332
|
GetConfigurationResponse.add_member(:ecr_configuration, Shapes::ShapeRef.new(shape: EcrConfigurationState, location_name: "ecrConfiguration"))
|
|
2269
2333
|
GetConfigurationResponse.add_member(:ec2_configuration, Shapes::ShapeRef.new(shape: Ec2ConfigurationState, location_name: "ec2Configuration"))
|
|
2334
|
+
GetConfigurationResponse.add_member(:ami_configuration, Shapes::ShapeRef.new(shape: AmiConfigurationState, location_name: "amiConfiguration"))
|
|
2270
2335
|
GetConfigurationResponse.struct_class = Types::GetConfigurationResponse
|
|
2271
2336
|
|
|
2272
2337
|
GetDelegatedAdminAccountRequest.struct_class = Types::GetDelegatedAdminAccountRequest
|
|
@@ -2306,6 +2371,20 @@ module Aws::Inspector2
|
|
|
2306
2371
|
GetMemberResponse.add_member(:member, Shapes::ShapeRef.new(shape: Member, location_name: "member"))
|
|
2307
2372
|
GetMemberResponse.struct_class = Types::GetMemberResponse
|
|
2308
2373
|
|
|
2374
|
+
GetOnDemandScanStatusRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
|
|
2375
|
+
GetOnDemandScanStatusRequest.add_member(:scan_id, Shapes::ShapeRef.new(shape: ScanId, required: true, location_name: "scanId"))
|
|
2376
|
+
GetOnDemandScanStatusRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: OnDemandResourceType, required: true, location_name: "resourceType"))
|
|
2377
|
+
GetOnDemandScanStatusRequest.struct_class = Types::GetOnDemandScanStatusRequest
|
|
2378
|
+
|
|
2379
|
+
GetOnDemandScanStatusResponse.add_member(:scan_id, Shapes::ShapeRef.new(shape: ScanId, required: true, location_name: "scanId"))
|
|
2380
|
+
GetOnDemandScanStatusResponse.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
|
|
2381
|
+
GetOnDemandScanStatusResponse.add_member(:resource_type, Shapes::ShapeRef.new(shape: OnDemandResourceType, required: true, location_name: "resourceType"))
|
|
2382
|
+
GetOnDemandScanStatusResponse.add_member(:scan_status, Shapes::ShapeRef.new(shape: OnDemandScanStatus, required: true, location_name: "scanStatus"))
|
|
2383
|
+
GetOnDemandScanStatusResponse.add_member(:scan_status_reason, Shapes::ShapeRef.new(shape: OnDemandScanStatusReason, location_name: "scanStatusReason"))
|
|
2384
|
+
GetOnDemandScanStatusResponse.add_member(:started_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "startedAt"))
|
|
2385
|
+
GetOnDemandScanStatusResponse.add_member(:completed_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "completedAt"))
|
|
2386
|
+
GetOnDemandScanStatusResponse.struct_class = Types::GetOnDemandScanStatusResponse
|
|
2387
|
+
|
|
2309
2388
|
GetSbomExportRequest.add_member(:report_id, Shapes::ShapeRef.new(shape: ReportId, required: true, location_name: "reportId"))
|
|
2310
2389
|
GetSbomExportRequest.struct_class = Types::GetSbomExportRequest
|
|
2311
2390
|
|
|
@@ -2599,6 +2678,16 @@ module Aws::Inspector2
|
|
|
2599
2678
|
ListMembersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
2600
2679
|
ListMembersResponse.struct_class = Types::ListMembersResponse
|
|
2601
2680
|
|
|
2681
|
+
ListOnDemandScansRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
|
|
2682
|
+
ListOnDemandScansRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: OnDemandResourceType, required: true, location_name: "resourceType"))
|
|
2683
|
+
ListOnDemandScansRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListOnDemandScansRequestMaxResultsInteger, location_name: "maxResults"))
|
|
2684
|
+
ListOnDemandScansRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: OnDemandScanNextToken, location_name: "nextToken"))
|
|
2685
|
+
ListOnDemandScansRequest.struct_class = Types::ListOnDemandScansRequest
|
|
2686
|
+
|
|
2687
|
+
ListOnDemandScansResponse.add_member(:items, Shapes::ShapeRef.new(shape: OnDemandScanList, required: true, location_name: "items"))
|
|
2688
|
+
ListOnDemandScansResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: OnDemandScanNextToken, location_name: "nextToken"))
|
|
2689
|
+
ListOnDemandScansResponse.struct_class = Types::ListOnDemandScansResponse
|
|
2690
|
+
|
|
2602
2691
|
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
|
2603
2692
|
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
|
2604
2693
|
|
|
@@ -2614,6 +2703,23 @@ module Aws::Inspector2
|
|
|
2614
2703
|
ListUsageTotalsResponse.add_member(:totals, Shapes::ShapeRef.new(shape: UsageTotalList, location_name: "totals"))
|
|
2615
2704
|
ListUsageTotalsResponse.struct_class = Types::ListUsageTotalsResponse
|
|
2616
2705
|
|
|
2706
|
+
MachineImageDetails.add_member(:machine_image_id, Shapes::ShapeRef.new(shape: MachineImageDetailsMachineImageIdString, required: true, location_name: "machineImageId"))
|
|
2707
|
+
MachineImageDetails.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "name"))
|
|
2708
|
+
MachineImageDetails.add_member(:owner_account_id, Shapes::ShapeRef.new(shape: ProviderAccountId, location_name: "ownerAccountId"))
|
|
2709
|
+
MachineImageDetails.add_member(:platform, Shapes::ShapeRef.new(shape: Platform, location_name: "platform"))
|
|
2710
|
+
MachineImageDetails.add_member(:architecture, Shapes::ShapeRef.new(shape: Architecture, location_name: "architecture"))
|
|
2711
|
+
MachineImageDetails.add_member(:creation_date, Shapes::ShapeRef.new(shape: DateTimeTimestamp, location_name: "creationDate"))
|
|
2712
|
+
MachineImageDetails.add_member(:state, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "state"))
|
|
2713
|
+
MachineImageDetails.add_member(:is_public, Shapes::ShapeRef.new(shape: Boolean, location_name: "isPublic"))
|
|
2714
|
+
MachineImageDetails.add_member(:root_device_type, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "rootDeviceType"))
|
|
2715
|
+
MachineImageDetails.add_member(:virtualization_type, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "virtualizationType"))
|
|
2716
|
+
MachineImageDetails.add_member(:source_resource_id, Shapes::ShapeRef.new(shape: MachineImageDetailsSourceResourceIdString, location_name: "sourceResourceId"))
|
|
2717
|
+
MachineImageDetails.struct_class = Types::MachineImageDetails
|
|
2718
|
+
|
|
2719
|
+
MachineImageMetadata.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
|
2720
|
+
MachineImageMetadata.add_member(:platform, Shapes::ShapeRef.new(shape: MachineImagePlatform, location_name: "platform"))
|
|
2721
|
+
MachineImageMetadata.struct_class = Types::MachineImageMetadata
|
|
2722
|
+
|
|
2617
2723
|
MapFilter.add_member(:comparison, Shapes::ShapeRef.new(shape: MapComparison, required: true, location_name: "comparison"))
|
|
2618
2724
|
MapFilter.add_member(:key, Shapes::ShapeRef.new(shape: MapKey, required: true, location_name: "key"))
|
|
2619
2725
|
MapFilter.add_member(:value, Shapes::ShapeRef.new(shape: MapValue, location_name: "value"))
|
|
@@ -2662,6 +2768,17 @@ module Aws::Inspector2
|
|
|
2662
2768
|
|
|
2663
2769
|
NumberFilterList.member = Shapes::ShapeRef.new(shape: NumberFilter)
|
|
2664
2770
|
|
|
2771
|
+
OnDemandScan.add_member(:scan_id, Shapes::ShapeRef.new(shape: ScanId, required: true, location_name: "scanId"))
|
|
2772
|
+
OnDemandScan.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
|
|
2773
|
+
OnDemandScan.add_member(:resource_type, Shapes::ShapeRef.new(shape: OnDemandResourceType, required: true, location_name: "resourceType"))
|
|
2774
|
+
OnDemandScan.add_member(:scan_status, Shapes::ShapeRef.new(shape: OnDemandScanStatus, required: true, location_name: "scanStatus"))
|
|
2775
|
+
OnDemandScan.add_member(:scan_status_reason, Shapes::ShapeRef.new(shape: OnDemandScanStatusReason, location_name: "scanStatusReason"))
|
|
2776
|
+
OnDemandScan.add_member(:started_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "startedAt"))
|
|
2777
|
+
OnDemandScan.add_member(:completed_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "completedAt"))
|
|
2778
|
+
OnDemandScan.struct_class = Types::OnDemandScan
|
|
2779
|
+
|
|
2780
|
+
OnDemandScanList.member = Shapes::ShapeRef.new(shape: OnDemandScan)
|
|
2781
|
+
|
|
2665
2782
|
OneAccountIdFilterList.member = Shapes::ShapeRef.new(shape: CisStringFilter)
|
|
2666
2783
|
|
|
2667
2784
|
OneTimeSchedule.struct_class = Types::OneTimeSchedule
|
|
@@ -2808,6 +2925,7 @@ module Aws::Inspector2
|
|
|
2808
2925
|
ResourceDetails.add_member(:aws_ecr_container_image, Shapes::ShapeRef.new(shape: AwsEcrContainerImageDetails, location_name: "awsEcrContainerImage"))
|
|
2809
2926
|
ResourceDetails.add_member(:aws_lambda_function, Shapes::ShapeRef.new(shape: AwsLambdaFunctionDetails, location_name: "awsLambdaFunction"))
|
|
2810
2927
|
ResourceDetails.add_member(:code_repository, Shapes::ShapeRef.new(shape: CodeRepositoryDetails, location_name: "codeRepository"))
|
|
2928
|
+
ResourceDetails.add_member(:machine_image, Shapes::ShapeRef.new(shape: MachineImageDetails, location_name: "machineImage"))
|
|
2811
2929
|
ResourceDetails.add_member(:vm, Shapes::ShapeRef.new(shape: Vm, location_name: "vm"))
|
|
2812
2930
|
ResourceDetails.add_member(:image, Shapes::ShapeRef.new(shape: Image, location_name: "image"))
|
|
2813
2931
|
ResourceDetails.add_member(:serverless_function, Shapes::ShapeRef.new(shape: ServerlessFunction, location_name: "serverlessFunction"))
|
|
@@ -2858,6 +2976,7 @@ module Aws::Inspector2
|
|
|
2858
2976
|
ResourceScanMetadata.add_member(:container_repository, Shapes::ShapeRef.new(shape: ContainerRepositoryMetadata, location_name: "containerRepository"))
|
|
2859
2977
|
ResourceScanMetadata.add_member(:container_registry, Shapes::ShapeRef.new(shape: ContainerRegistryMetadata, location_name: "containerRegistry"))
|
|
2860
2978
|
ResourceScanMetadata.add_member(:serverless_function, Shapes::ShapeRef.new(shape: ServerlessFunctionMetadata, location_name: "serverlessFunction"))
|
|
2979
|
+
ResourceScanMetadata.add_member(:machine_image, Shapes::ShapeRef.new(shape: MachineImageMetadata, location_name: "machineImage"))
|
|
2861
2980
|
ResourceScanMetadata.struct_class = Types::ResourceScanMetadata
|
|
2862
2981
|
|
|
2863
2982
|
ResourceState.add_member(:ec2, Shapes::ShapeRef.new(shape: State, required: true, location_name: "ec2"))
|
|
@@ -2865,6 +2984,7 @@ module Aws::Inspector2
|
|
|
2865
2984
|
ResourceState.add_member(:lambda, Shapes::ShapeRef.new(shape: State, location_name: "lambda"))
|
|
2866
2985
|
ResourceState.add_member(:lambda_code, Shapes::ShapeRef.new(shape: State, location_name: "lambdaCode"))
|
|
2867
2986
|
ResourceState.add_member(:code_repository, Shapes::ShapeRef.new(shape: State, location_name: "codeRepository"))
|
|
2987
|
+
ResourceState.add_member(:ami, Shapes::ShapeRef.new(shape: State, location_name: "ami"))
|
|
2868
2988
|
ResourceState.struct_class = Types::ResourceState
|
|
2869
2989
|
|
|
2870
2990
|
ResourceStatus.add_member(:ec2, Shapes::ShapeRef.new(shape: Status, required: true, location_name: "ec2"))
|
|
@@ -2872,6 +2992,7 @@ module Aws::Inspector2
|
|
|
2872
2992
|
ResourceStatus.add_member(:lambda, Shapes::ShapeRef.new(shape: Status, location_name: "lambda"))
|
|
2873
2993
|
ResourceStatus.add_member(:lambda_code, Shapes::ShapeRef.new(shape: Status, location_name: "lambdaCode"))
|
|
2874
2994
|
ResourceStatus.add_member(:code_repository, Shapes::ShapeRef.new(shape: Status, location_name: "codeRepository"))
|
|
2995
|
+
ResourceStatus.add_member(:ami, Shapes::ShapeRef.new(shape: Status, location_name: "ami"))
|
|
2875
2996
|
ResourceStatus.struct_class = Types::ResourceStatus
|
|
2876
2997
|
|
|
2877
2998
|
ResourceStringFilter.add_member(:comparison, Shapes::ShapeRef.new(shape: ResourceStringComparison, required: true, location_name: "comparison"))
|
|
@@ -2884,6 +3005,8 @@ module Aws::Inspector2
|
|
|
2884
3005
|
|
|
2885
3006
|
RuleSetCategories.member = Shapes::ShapeRef.new(shape: RuleSetCategory)
|
|
2886
3007
|
|
|
3008
|
+
ScanSourceList.member = Shapes::ShapeRef.new(shape: ScanSource)
|
|
3009
|
+
|
|
2887
3010
|
ScanStatus.add_member(:status_code, Shapes::ShapeRef.new(shape: ScanStatusCode, required: true, location_name: "statusCode"))
|
|
2888
3011
|
ScanStatus.add_member(:reason, Shapes::ShapeRef.new(shape: ScanStatusReason, required: true, location_name: "reason"))
|
|
2889
3012
|
ScanStatus.struct_class = Types::ScanStatus
|
|
@@ -3025,6 +3148,14 @@ module Aws::Inspector2
|
|
|
3025
3148
|
StartCodeSecurityScanResponse.add_member(:status, Shapes::ShapeRef.new(shape: CodeScanStatus, location_name: "status"))
|
|
3026
3149
|
StartCodeSecurityScanResponse.struct_class = Types::StartCodeSecurityScanResponse
|
|
3027
3150
|
|
|
3151
|
+
StartOnDemandScanRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
|
|
3152
|
+
StartOnDemandScanRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: OnDemandResourceType, required: true, location_name: "resourceType"))
|
|
3153
|
+
StartOnDemandScanRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
|
|
3154
|
+
StartOnDemandScanRequest.struct_class = Types::StartOnDemandScanRequest
|
|
3155
|
+
|
|
3156
|
+
StartOnDemandScanResponse.add_member(:scan_id, Shapes::ShapeRef.new(shape: ScanId, required: true, location_name: "scanId"))
|
|
3157
|
+
StartOnDemandScanResponse.struct_class = Types::StartOnDemandScanResponse
|
|
3158
|
+
|
|
3028
3159
|
State.add_member(:status, Shapes::ShapeRef.new(shape: Status, required: true, location_name: "status"))
|
|
3029
3160
|
State.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, required: true, location_name: "errorCode"))
|
|
3030
3161
|
State.add_member(:error_message, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "errorMessage"))
|
|
@@ -3185,11 +3316,13 @@ module Aws::Inspector2
|
|
|
3185
3316
|
|
|
3186
3317
|
UpdateConfigurationInheritance.add_member(:ec2_configuration, Shapes::ShapeRef.new(shape: InheritanceMode, location_name: "ec2Configuration"))
|
|
3187
3318
|
UpdateConfigurationInheritance.add_member(:ecr_configuration, Shapes::ShapeRef.new(shape: InheritanceMode, location_name: "ecrConfiguration"))
|
|
3319
|
+
UpdateConfigurationInheritance.add_member(:ami_configuration, Shapes::ShapeRef.new(shape: InheritanceMode, location_name: "amiConfiguration"))
|
|
3188
3320
|
UpdateConfigurationInheritance.struct_class = Types::UpdateConfigurationInheritance
|
|
3189
3321
|
|
|
3190
3322
|
UpdateConfigurationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "accountId"))
|
|
3191
3323
|
UpdateConfigurationRequest.add_member(:ecr_configuration, Shapes::ShapeRef.new(shape: EcrConfiguration, location_name: "ecrConfiguration"))
|
|
3192
3324
|
UpdateConfigurationRequest.add_member(:ec2_configuration, Shapes::ShapeRef.new(shape: Ec2Configuration, location_name: "ec2Configuration"))
|
|
3325
|
+
UpdateConfigurationRequest.add_member(:ami_configuration, Shapes::ShapeRef.new(shape: AmiConfiguration, location_name: "amiConfiguration"))
|
|
3193
3326
|
UpdateConfigurationRequest.add_member(:update_configuration_inheritance, Shapes::ShapeRef.new(shape: UpdateConfigurationInheritance, location_name: "updateConfigurationInheritance"))
|
|
3194
3327
|
UpdateConfigurationRequest.struct_class = Types::UpdateConfigurationRequest
|
|
3195
3328
|
|
|
@@ -3956,6 +4089,19 @@ module Aws::Inspector2
|
|
|
3956
4089
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
3957
4090
|
end)
|
|
3958
4091
|
|
|
4092
|
+
api.add_operation(:get_on_demand_scan_status, Seahorse::Model::Operation.new.tap do |o|
|
|
4093
|
+
o.name = "GetOnDemandScanStatus"
|
|
4094
|
+
o.http_method = "POST"
|
|
4095
|
+
o.http_request_uri = "/ondemand/scan/status"
|
|
4096
|
+
o.input = Shapes::ShapeRef.new(shape: GetOnDemandScanStatusRequest)
|
|
4097
|
+
o.output = Shapes::ShapeRef.new(shape: GetOnDemandScanStatusResponse)
|
|
4098
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
4099
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
4100
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
4101
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
4102
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
4103
|
+
end)
|
|
4104
|
+
|
|
3959
4105
|
api.add_operation(:get_sbom_export, Seahorse::Model::Operation.new.tap do |o|
|
|
3960
4106
|
o.name = "GetSbomExport"
|
|
3961
4107
|
o.http_method = "POST"
|
|
@@ -4254,6 +4400,24 @@ module Aws::Inspector2
|
|
|
4254
4400
|
)
|
|
4255
4401
|
end)
|
|
4256
4402
|
|
|
4403
|
+
api.add_operation(:list_on_demand_scans, Seahorse::Model::Operation.new.tap do |o|
|
|
4404
|
+
o.name = "ListOnDemandScans"
|
|
4405
|
+
o.http_method = "POST"
|
|
4406
|
+
o.http_request_uri = "/ondemand/scans"
|
|
4407
|
+
o.input = Shapes::ShapeRef.new(shape: ListOnDemandScansRequest)
|
|
4408
|
+
o.output = Shapes::ShapeRef.new(shape: ListOnDemandScansResponse)
|
|
4409
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
4410
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
4411
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
4412
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
4413
|
+
o[:pager] = Aws::Pager.new(
|
|
4414
|
+
limit_key: "max_results",
|
|
4415
|
+
tokens: {
|
|
4416
|
+
"next_token" => "next_token"
|
|
4417
|
+
}
|
|
4418
|
+
)
|
|
4419
|
+
end)
|
|
4420
|
+
|
|
4257
4421
|
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
4258
4422
|
o.name = "ListTagsForResource"
|
|
4259
4423
|
o.http_method = "GET"
|
|
@@ -4367,6 +4531,19 @@ module Aws::Inspector2
|
|
|
4367
4531
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
4368
4532
|
end)
|
|
4369
4533
|
|
|
4534
|
+
api.add_operation(:start_on_demand_scan, Seahorse::Model::Operation.new.tap do |o|
|
|
4535
|
+
o.name = "StartOnDemandScan"
|
|
4536
|
+
o.http_method = "POST"
|
|
4537
|
+
o.http_request_uri = "/ondemand/scan"
|
|
4538
|
+
o.input = Shapes::ShapeRef.new(shape: StartOnDemandScanRequest)
|
|
4539
|
+
o.output = Shapes::ShapeRef.new(shape: StartOnDemandScanResponse)
|
|
4540
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
4541
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
4542
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
4543
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
4544
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
4545
|
+
end)
|
|
4546
|
+
|
|
4370
4547
|
api.add_operation(:stop_cis_session, Seahorse::Model::Operation.new.tap do |o|
|
|
4371
4548
|
o.name = "StopCisSession"
|
|
4372
4549
|
o.http_method = "PUT"
|
|
@@ -4452,6 +4629,7 @@ module Aws::Inspector2
|
|
|
4452
4629
|
o.http_request_uri = "/configuration/update"
|
|
4453
4630
|
o.input = Shapes::ShapeRef.new(shape: UpdateConfigurationRequest)
|
|
4454
4631
|
o.output = Shapes::ShapeRef.new(shape: UpdateConfigurationResponse)
|
|
4632
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
4455
4633
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
4456
4634
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
4457
4635
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|