aws-sdk-inspector2 1.27.0 → 1.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-inspector2/client.rb +31 -3
- data/lib/aws-sdk-inspector2/client_api.rb +25 -1
- data/lib/aws-sdk-inspector2/types.rb +82 -2
- data/lib/aws-sdk-inspector2.rb +1 -1
- data/sig/client.rbs +19 -2
- data/sig/types.rbs +21 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 511832ee8024f237ca4766c35090130c385bf6ae2bfade2fb0b8b83988036fe2
|
4
|
+
data.tar.gz: 1d81fa26d6b29d528083d8ac1ee1c35024610b5c52151ff7c9b0e91eb7235583
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e60f466a57df879000170a7dbf51740ff804aa411ee0c3ffea849b5f9311970cdca2588a8a864275c1a0b3562403f9bd4fbf32c4a2993d87f0245137256d1e6f
|
7
|
+
data.tar.gz: 5a37e0de7ac9783c6fb8b8ad3f24b63fdccf9ac7eabf811042f5cc23bac82000fbd5aeb3fe2e1be65540daf818ab62d5aabea0d0dd9d1e526921fc2967a41aef
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.29.0 (2024-05-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds CSV format to GetCisScanReport for Inspector v2
|
8
|
+
|
9
|
+
1.28.0 (2024-04-29)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Update Inspector2 to include new Agentless API parameters.
|
13
|
+
|
4
14
|
1.27.0 (2024-04-25)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.29.0
|
@@ -1897,6 +1897,10 @@ module Aws::Inspector2
|
|
1897
1897
|
|
1898
1898
|
# Retrieves a CIS scan report.
|
1899
1899
|
#
|
1900
|
+
# @option params [String] :report_format
|
1901
|
+
# The format of the report. Valid values are `PDF` and `CSV`. If no
|
1902
|
+
# value is specified, the report format defaults to `PDF`.
|
1903
|
+
#
|
1900
1904
|
# @option params [required, String] :scan_arn
|
1901
1905
|
# The scan ARN.
|
1902
1906
|
#
|
@@ -1911,6 +1915,7 @@ module Aws::Inspector2
|
|
1911
1915
|
# @example Request syntax with placeholder values
|
1912
1916
|
#
|
1913
1917
|
# resp = client.get_cis_scan_report({
|
1918
|
+
# report_format: "PDF", # accepts PDF, CSV
|
1914
1919
|
# scan_arn: "CisScanArn", # required
|
1915
1920
|
# target_accounts: ["AccountId"],
|
1916
1921
|
# })
|
@@ -2038,10 +2043,13 @@ module Aws::Inspector2
|
|
2038
2043
|
#
|
2039
2044
|
# @return [Types::GetConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2040
2045
|
#
|
2046
|
+
# * {Types::GetConfigurationResponse#ec2_configuration #ec2_configuration} => Types::Ec2ConfigurationState
|
2041
2047
|
# * {Types::GetConfigurationResponse#ecr_configuration #ecr_configuration} => Types::EcrConfigurationState
|
2042
2048
|
#
|
2043
2049
|
# @example Response structure
|
2044
2050
|
#
|
2051
|
+
# resp.ec2_configuration.scan_mode_state.scan_mode #=> String, one of "EC2_SSM_AGENT_BASED", "EC2_HYBRID"
|
2052
|
+
# resp.ec2_configuration.scan_mode_state.scan_mode_status #=> String, one of "SUCCESS", "PENDING"
|
2045
2053
|
# resp.ecr_configuration.rescan_duration_state.pull_date_rescan_duration #=> String, one of "DAYS_14", "DAYS_30", "DAYS_60", "DAYS_90", "DAYS_180"
|
2046
2054
|
# resp.ecr_configuration.rescan_duration_state.rescan_duration #=> String, one of "LIFETIME", "DAYS_30", "DAYS_180", "DAYS_14", "DAYS_60", "DAYS_90"
|
2047
2055
|
# resp.ecr_configuration.rescan_duration_state.status #=> String, one of "SUCCESS", "PENDING", "FAILED"
|
@@ -3005,6 +3013,12 @@ module Aws::Inspector2
|
|
3005
3013
|
# value: "CoverageStringInput", # required
|
3006
3014
|
# },
|
3007
3015
|
# ],
|
3016
|
+
# scan_mode: [
|
3017
|
+
# {
|
3018
|
+
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
3019
|
+
# value: "CoverageStringInput", # required
|
3020
|
+
# },
|
3021
|
+
# ],
|
3008
3022
|
# scan_status_code: [
|
3009
3023
|
# {
|
3010
3024
|
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
@@ -3050,6 +3064,7 @@ module Aws::Inspector2
|
|
3050
3064
|
# resp.covered_resources[0].resource_metadata.lambda_function.layers[0] #=> String
|
3051
3065
|
# resp.covered_resources[0].resource_metadata.lambda_function.runtime #=> String, one of "NODEJS", "NODEJS_12_X", "NODEJS_14_X", "NODEJS_16_X", "JAVA_8", "JAVA_8_AL2", "JAVA_11", "PYTHON_3_7", "PYTHON_3_8", "PYTHON_3_9", "UNSUPPORTED", "NODEJS_18_X", "GO_1_X", "JAVA_17", "PYTHON_3_10"
|
3052
3066
|
# resp.covered_resources[0].resource_type #=> String, one of "AWS_EC2_INSTANCE", "AWS_ECR_CONTAINER_IMAGE", "AWS_ECR_REPOSITORY", "AWS_LAMBDA_FUNCTION"
|
3067
|
+
# resp.covered_resources[0].scan_mode #=> String, one of "EC2_SSM_AGENT_BASED", "EC2_AGENTLESS"
|
3053
3068
|
# resp.covered_resources[0].scan_status.reason #=> String, one of "PENDING_INITIAL_SCAN", "ACCESS_DENIED", "INTERNAL_ERROR", "UNMANAGED_EC2_INSTANCE", "UNSUPPORTED_OS", "SCAN_ELIGIBILITY_EXPIRED", "RESOURCE_TERMINATED", "SUCCESSFUL", "NO_RESOURCES_FOUND", "IMAGE_SIZE_EXCEEDED", "SCAN_FREQUENCY_MANUAL", "SCAN_FREQUENCY_SCAN_ON_PUSH", "EC2_INSTANCE_STOPPED", "PENDING_DISABLE", "NO_INVENTORY", "STALE_INVENTORY", "EXCLUDED_BY_TAG", "UNSUPPORTED_RUNTIME", "UNSUPPORTED_MEDIA_TYPE", "UNSUPPORTED_CONFIG_FILE", "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED", "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED", "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED", "DEEP_INSPECTION_NO_INVENTORY"
|
3054
3069
|
# resp.covered_resources[0].scan_status.status_code #=> String, one of "ACTIVE", "INACTIVE"
|
3055
3070
|
# resp.covered_resources[0].scan_type #=> String, one of "NETWORK", "PACKAGE", "CODE"
|
@@ -3160,6 +3175,12 @@ module Aws::Inspector2
|
|
3160
3175
|
# value: "CoverageStringInput", # required
|
3161
3176
|
# },
|
3162
3177
|
# ],
|
3178
|
+
# scan_mode: [
|
3179
|
+
# {
|
3180
|
+
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
3181
|
+
# value: "CoverageStringInput", # required
|
3182
|
+
# },
|
3183
|
+
# ],
|
3163
3184
|
# scan_status_code: [
|
3164
3185
|
# {
|
3165
3186
|
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
@@ -4769,7 +4790,11 @@ module Aws::Inspector2
|
|
4769
4790
|
# updates the setting for all accounts you manage. Member accounts in an
|
4770
4791
|
# organization cannot update this setting.
|
4771
4792
|
#
|
4772
|
-
# @option params [
|
4793
|
+
# @option params [Types::Ec2Configuration] :ec2_configuration
|
4794
|
+
# Specifies how the Amazon EC2 automated scan will be updated for your
|
4795
|
+
# environment.
|
4796
|
+
#
|
4797
|
+
# @option params [Types::EcrConfiguration] :ecr_configuration
|
4773
4798
|
# Specifies how the ECR automated re-scan will be updated for your
|
4774
4799
|
# environment.
|
4775
4800
|
#
|
@@ -4778,7 +4803,10 @@ module Aws::Inspector2
|
|
4778
4803
|
# @example Request syntax with placeholder values
|
4779
4804
|
#
|
4780
4805
|
# resp = client.update_configuration({
|
4781
|
-
#
|
4806
|
+
# ec2_configuration: {
|
4807
|
+
# scan_mode: "EC2_SSM_AGENT_BASED", # required, accepts EC2_SSM_AGENT_BASED, EC2_HYBRID
|
4808
|
+
# },
|
4809
|
+
# ecr_configuration: {
|
4782
4810
|
# pull_date_rescan_duration: "DAYS_14", # accepts DAYS_14, DAYS_30, DAYS_60, DAYS_90, DAYS_180
|
4783
4811
|
# rescan_duration: "LIFETIME", # required, accepts LIFETIME, DAYS_30, DAYS_180, DAYS_14, DAYS_60, DAYS_90
|
4784
4812
|
# },
|
@@ -5279,7 +5307,7 @@ module Aws::Inspector2
|
|
5279
5307
|
params: params,
|
5280
5308
|
config: config)
|
5281
5309
|
context[:gem_name] = 'aws-sdk-inspector2'
|
5282
|
-
context[:gem_version] = '1.
|
5310
|
+
context[:gem_version] = '1.29.0'
|
5283
5311
|
Seahorse::Client::Request.new(handlers, context)
|
5284
5312
|
end
|
5285
5313
|
|
@@ -85,6 +85,7 @@ module Aws::Inspector2
|
|
85
85
|
CisNumberFilter = Shapes::StructureShape.new(name: 'CisNumberFilter')
|
86
86
|
CisNumberFilterList = Shapes::ListShape.new(name: 'CisNumberFilterList')
|
87
87
|
CisOwnerId = Shapes::StringShape.new(name: 'CisOwnerId')
|
88
|
+
CisReportFormat = Shapes::StringShape.new(name: 'CisReportFormat')
|
88
89
|
CisReportStatus = Shapes::StringShape.new(name: 'CisReportStatus')
|
89
90
|
CisResultStatus = Shapes::StringShape.new(name: 'CisResultStatus')
|
90
91
|
CisResultStatusComparison = Shapes::StringShape.new(name: 'CisResultStatusComparison')
|
@@ -221,12 +222,17 @@ module Aws::Inspector2
|
|
221
222
|
DisassociateMemberRequest = Shapes::StructureShape.new(name: 'DisassociateMemberRequest')
|
222
223
|
DisassociateMemberResponse = Shapes::StructureShape.new(name: 'DisassociateMemberResponse')
|
223
224
|
Double = Shapes::FloatShape.new(name: 'Double')
|
225
|
+
Ec2Configuration = Shapes::StructureShape.new(name: 'Ec2Configuration')
|
226
|
+
Ec2ConfigurationState = Shapes::StructureShape.new(name: 'Ec2ConfigurationState')
|
224
227
|
Ec2DeepInspectionStatus = Shapes::StringShape.new(name: 'Ec2DeepInspectionStatus')
|
225
228
|
Ec2InstanceAggregation = Shapes::StructureShape.new(name: 'Ec2InstanceAggregation')
|
226
229
|
Ec2InstanceAggregationResponse = Shapes::StructureShape.new(name: 'Ec2InstanceAggregationResponse')
|
227
230
|
Ec2InstanceSortBy = Shapes::StringShape.new(name: 'Ec2InstanceSortBy')
|
228
231
|
Ec2Metadata = Shapes::StructureShape.new(name: 'Ec2Metadata')
|
229
232
|
Ec2Platform = Shapes::StringShape.new(name: 'Ec2Platform')
|
233
|
+
Ec2ScanMode = Shapes::StringShape.new(name: 'Ec2ScanMode')
|
234
|
+
Ec2ScanModeState = Shapes::StructureShape.new(name: 'Ec2ScanModeState')
|
235
|
+
Ec2ScanModeStatus = Shapes::StringShape.new(name: 'Ec2ScanModeStatus')
|
230
236
|
EcrConfiguration = Shapes::StructureShape.new(name: 'EcrConfiguration')
|
231
237
|
EcrConfigurationState = Shapes::StructureShape.new(name: 'EcrConfigurationState')
|
232
238
|
EcrContainerImageMetadata = Shapes::StructureShape.new(name: 'EcrContainerImageMetadata')
|
@@ -479,6 +485,7 @@ module Aws::Inspector2
|
|
479
485
|
RuleId = Shapes::StringShape.new(name: 'RuleId')
|
480
486
|
Runtime = Shapes::StringShape.new(name: 'Runtime')
|
481
487
|
SbomReportFormat = Shapes::StringShape.new(name: 'SbomReportFormat')
|
488
|
+
ScanMode = Shapes::StringShape.new(name: 'ScanMode')
|
482
489
|
ScanStatus = Shapes::StructureShape.new(name: 'ScanStatus')
|
483
490
|
ScanStatusCode = Shapes::StringShape.new(name: 'ScanStatusCode')
|
484
491
|
ScanStatusReason = Shapes::StringShape.new(name: 'ScanStatusReason')
|
@@ -1079,6 +1086,7 @@ module Aws::Inspector2
|
|
1079
1086
|
CoverageFilterCriteria.add_member(:last_scanned_at, Shapes::ShapeRef.new(shape: CoverageDateFilterList, location_name: "lastScannedAt"))
|
1080
1087
|
CoverageFilterCriteria.add_member(:resource_id, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "resourceId"))
|
1081
1088
|
CoverageFilterCriteria.add_member(:resource_type, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "resourceType"))
|
1089
|
+
CoverageFilterCriteria.add_member(:scan_mode, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "scanMode"))
|
1082
1090
|
CoverageFilterCriteria.add_member(:scan_status_code, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "scanStatusCode"))
|
1083
1091
|
CoverageFilterCriteria.add_member(:scan_status_reason, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "scanStatusReason"))
|
1084
1092
|
CoverageFilterCriteria.add_member(:scan_type, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "scanType"))
|
@@ -1102,6 +1110,7 @@ module Aws::Inspector2
|
|
1102
1110
|
CoveredResource.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
|
1103
1111
|
CoveredResource.add_member(:resource_metadata, Shapes::ShapeRef.new(shape: ResourceScanMetadata, location_name: "resourceMetadata"))
|
1104
1112
|
CoveredResource.add_member(:resource_type, Shapes::ShapeRef.new(shape: CoverageResourceType, required: true, location_name: "resourceType"))
|
1113
|
+
CoveredResource.add_member(:scan_mode, Shapes::ShapeRef.new(shape: ScanMode, location_name: "scanMode"))
|
1105
1114
|
CoveredResource.add_member(:scan_status, Shapes::ShapeRef.new(shape: ScanStatus, location_name: "scanStatus"))
|
1106
1115
|
CoveredResource.add_member(:scan_type, Shapes::ShapeRef.new(shape: ScanType, required: true, location_name: "scanType"))
|
1107
1116
|
CoveredResource.struct_class = Types::CoveredResource
|
@@ -1253,6 +1262,12 @@ module Aws::Inspector2
|
|
1253
1262
|
DisassociateMemberResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "accountId"))
|
1254
1263
|
DisassociateMemberResponse.struct_class = Types::DisassociateMemberResponse
|
1255
1264
|
|
1265
|
+
Ec2Configuration.add_member(:scan_mode, Shapes::ShapeRef.new(shape: Ec2ScanMode, required: true, location_name: "scanMode"))
|
1266
|
+
Ec2Configuration.struct_class = Types::Ec2Configuration
|
1267
|
+
|
1268
|
+
Ec2ConfigurationState.add_member(:scan_mode_state, Shapes::ShapeRef.new(shape: Ec2ScanModeState, location_name: "scanModeState"))
|
1269
|
+
Ec2ConfigurationState.struct_class = Types::Ec2ConfigurationState
|
1270
|
+
|
1256
1271
|
Ec2InstanceAggregation.add_member(:amis, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "amis"))
|
1257
1272
|
Ec2InstanceAggregation.add_member(:instance_ids, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "instanceIds"))
|
1258
1273
|
Ec2InstanceAggregation.add_member(:instance_tags, Shapes::ShapeRef.new(shape: MapFilterList, location_name: "instanceTags"))
|
@@ -1275,6 +1290,10 @@ module Aws::Inspector2
|
|
1275
1290
|
Ec2Metadata.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
1276
1291
|
Ec2Metadata.struct_class = Types::Ec2Metadata
|
1277
1292
|
|
1293
|
+
Ec2ScanModeState.add_member(:scan_mode, Shapes::ShapeRef.new(shape: Ec2ScanMode, location_name: "scanMode"))
|
1294
|
+
Ec2ScanModeState.add_member(:scan_mode_status, Shapes::ShapeRef.new(shape: Ec2ScanModeStatus, location_name: "scanModeStatus"))
|
1295
|
+
Ec2ScanModeState.struct_class = Types::Ec2ScanModeState
|
1296
|
+
|
1278
1297
|
EcrConfiguration.add_member(:pull_date_rescan_duration, Shapes::ShapeRef.new(shape: EcrPullDateRescanDuration, location_name: "pullDateRescanDuration"))
|
1279
1298
|
EcrConfiguration.add_member(:rescan_duration, Shapes::ShapeRef.new(shape: EcrRescanDuration, required: true, location_name: "rescanDuration"))
|
1280
1299
|
EcrConfiguration.struct_class = Types::EcrConfiguration
|
@@ -1489,6 +1508,7 @@ module Aws::Inspector2
|
|
1489
1508
|
|
1490
1509
|
FreeTrialInfoList.member = Shapes::ShapeRef.new(shape: FreeTrialInfo)
|
1491
1510
|
|
1511
|
+
GetCisScanReportRequest.add_member(:report_format, Shapes::ShapeRef.new(shape: CisReportFormat, location_name: "reportFormat"))
|
1492
1512
|
GetCisScanReportRequest.add_member(:scan_arn, Shapes::ShapeRef.new(shape: CisScanArn, required: true, location_name: "scanArn"))
|
1493
1513
|
GetCisScanReportRequest.add_member(:target_accounts, Shapes::ShapeRef.new(shape: ReportTargetAccounts, location_name: "targetAccounts"))
|
1494
1514
|
GetCisScanReportRequest.struct_class = Types::GetCisScanReportRequest
|
@@ -1513,6 +1533,7 @@ module Aws::Inspector2
|
|
1513
1533
|
|
1514
1534
|
GetConfigurationRequest.struct_class = Types::GetConfigurationRequest
|
1515
1535
|
|
1536
|
+
GetConfigurationResponse.add_member(:ec2_configuration, Shapes::ShapeRef.new(shape: Ec2ConfigurationState, location_name: "ec2Configuration"))
|
1516
1537
|
GetConfigurationResponse.add_member(:ecr_configuration, Shapes::ShapeRef.new(shape: EcrConfigurationState, location_name: "ecrConfiguration"))
|
1517
1538
|
GetConfigurationResponse.struct_class = Types::GetConfigurationResponse
|
1518
1539
|
|
@@ -2193,7 +2214,8 @@ module Aws::Inspector2
|
|
2193
2214
|
UpdateCisTargets.add_member(:target_resource_tags, Shapes::ShapeRef.new(shape: TargetResourceTags, location_name: "targetResourceTags"))
|
2194
2215
|
UpdateCisTargets.struct_class = Types::UpdateCisTargets
|
2195
2216
|
|
2196
|
-
UpdateConfigurationRequest.add_member(:
|
2217
|
+
UpdateConfigurationRequest.add_member(:ec2_configuration, Shapes::ShapeRef.new(shape: Ec2Configuration, location_name: "ec2Configuration"))
|
2218
|
+
UpdateConfigurationRequest.add_member(:ecr_configuration, Shapes::ShapeRef.new(shape: EcrConfiguration, location_name: "ecrConfiguration"))
|
2197
2219
|
UpdateConfigurationRequest.struct_class = Types::UpdateConfigurationRequest
|
2198
2220
|
|
2199
2221
|
UpdateConfigurationResponse.struct_class = Types::UpdateConfigurationResponse
|
@@ -2321,6 +2343,7 @@ module Aws::Inspector2
|
|
2321
2343
|
"endpointPrefix" => "inspector2",
|
2322
2344
|
"jsonVersion" => "1.1",
|
2323
2345
|
"protocol" => "rest-json",
|
2346
|
+
"protocols" => ["rest-json"],
|
2324
2347
|
"serviceAbbreviation" => "Inspector2",
|
2325
2348
|
"serviceFullName" => "Inspector2",
|
2326
2349
|
"serviceId" => "Inspector2",
|
@@ -2605,6 +2628,7 @@ module Aws::Inspector2
|
|
2605
2628
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
2606
2629
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
2607
2630
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
2631
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2608
2632
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
2609
2633
|
end)
|
2610
2634
|
|
@@ -1958,6 +1958,11 @@ module Aws::Inspector2
|
|
1958
1958
|
# `AWS_ECR_REPOSITORY` or `AWS_ACCOUNT`.
|
1959
1959
|
# @return [Array<Types::CoverageStringFilter>]
|
1960
1960
|
#
|
1961
|
+
# @!attribute [rw] scan_mode
|
1962
|
+
# The filter to search for Amazon EC2 instance coverage by scan mode.
|
1963
|
+
# Valid values are `EC2_SSM_AGENT_BASED` and `EC2_HYBRID`.
|
1964
|
+
# @return [Array<Types::CoverageStringFilter>]
|
1965
|
+
#
|
1961
1966
|
# @!attribute [rw] scan_status_code
|
1962
1967
|
# The scan status code to filter on. Valid values are:
|
1963
1968
|
# `ValidationException`, `InternalServerException`,
|
@@ -1988,6 +1993,7 @@ module Aws::Inspector2
|
|
1988
1993
|
:last_scanned_at,
|
1989
1994
|
:resource_id,
|
1990
1995
|
:resource_type,
|
1996
|
+
:scan_mode,
|
1991
1997
|
:scan_status_code,
|
1992
1998
|
:scan_status_reason,
|
1993
1999
|
:scan_type)
|
@@ -2061,6 +2067,10 @@ module Aws::Inspector2
|
|
2061
2067
|
# The type of the covered resource.
|
2062
2068
|
# @return [String]
|
2063
2069
|
#
|
2070
|
+
# @!attribute [rw] scan_mode
|
2071
|
+
# The scan method that is applied to the instance.
|
2072
|
+
# @return [String]
|
2073
|
+
#
|
2064
2074
|
# @!attribute [rw] scan_status
|
2065
2075
|
# The status of the scan covering the resource.
|
2066
2076
|
# @return [Types::ScanStatus]
|
@@ -2077,6 +2087,7 @@ module Aws::Inspector2
|
|
2077
2087
|
:resource_id,
|
2078
2088
|
:resource_metadata,
|
2079
2089
|
:resource_type,
|
2090
|
+
:scan_mode,
|
2080
2091
|
:scan_status,
|
2081
2092
|
:scan_type)
|
2082
2093
|
SENSITIVE = []
|
@@ -2661,6 +2672,37 @@ module Aws::Inspector2
|
|
2661
2672
|
include Aws::Structure
|
2662
2673
|
end
|
2663
2674
|
|
2675
|
+
# Enables agent-based scanning, which scans instances that are not
|
2676
|
+
# managed by SSM.
|
2677
|
+
#
|
2678
|
+
# @!attribute [rw] scan_mode
|
2679
|
+
# The scan method that is applied to the instance.
|
2680
|
+
# @return [String]
|
2681
|
+
#
|
2682
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/Ec2Configuration AWS API Documentation
|
2683
|
+
#
|
2684
|
+
class Ec2Configuration < Struct.new(
|
2685
|
+
:scan_mode)
|
2686
|
+
SENSITIVE = []
|
2687
|
+
include Aws::Structure
|
2688
|
+
end
|
2689
|
+
|
2690
|
+
# Details about the state of the EC2 scan configuration for your
|
2691
|
+
# environment.
|
2692
|
+
#
|
2693
|
+
# @!attribute [rw] scan_mode_state
|
2694
|
+
# An object that contains details about the state of the Amazon EC2
|
2695
|
+
# scan mode.
|
2696
|
+
# @return [Types::Ec2ScanModeState]
|
2697
|
+
#
|
2698
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/Ec2ConfigurationState AWS API Documentation
|
2699
|
+
#
|
2700
|
+
class Ec2ConfigurationState < Struct.new(
|
2701
|
+
:scan_mode_state)
|
2702
|
+
SENSITIVE = []
|
2703
|
+
include Aws::Structure
|
2704
|
+
end
|
2705
|
+
|
2664
2706
|
# The details that define an aggregation based on Amazon EC2 instances.
|
2665
2707
|
#
|
2666
2708
|
# @!attribute [rw] amis
|
@@ -2773,6 +2815,25 @@ module Aws::Inspector2
|
|
2773
2815
|
include Aws::Structure
|
2774
2816
|
end
|
2775
2817
|
|
2818
|
+
# The state of your Amazon EC2 scan mode configuration.
|
2819
|
+
#
|
2820
|
+
# @!attribute [rw] scan_mode
|
2821
|
+
# The scan method that is applied to the instance.
|
2822
|
+
# @return [String]
|
2823
|
+
#
|
2824
|
+
# @!attribute [rw] scan_mode_status
|
2825
|
+
# The status of the Amazon EC2 scan mode setting.
|
2826
|
+
# @return [String]
|
2827
|
+
#
|
2828
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/Ec2ScanModeState AWS API Documentation
|
2829
|
+
#
|
2830
|
+
class Ec2ScanModeState < Struct.new(
|
2831
|
+
:scan_mode,
|
2832
|
+
:scan_mode_status)
|
2833
|
+
SENSITIVE = []
|
2834
|
+
include Aws::Structure
|
2835
|
+
end
|
2836
|
+
|
2776
2837
|
# Details about the ECR automated re-scan duration setting for your
|
2777
2838
|
# environment.
|
2778
2839
|
#
|
@@ -3488,7 +3549,8 @@ module Aws::Inspector2
|
|
3488
3549
|
# @return [Types::InspectorScoreDetails]
|
3489
3550
|
#
|
3490
3551
|
# @!attribute [rw] last_observed_at
|
3491
|
-
# The date and time
|
3552
|
+
# The date and time the finding was last observed. This timestamp for
|
3553
|
+
# this field remains unchanged until a finding is updated.
|
3492
3554
|
# @return [Time]
|
3493
3555
|
#
|
3494
3556
|
# @!attribute [rw] network_reachability_details
|
@@ -3794,6 +3856,11 @@ module Aws::Inspector2
|
|
3794
3856
|
include Aws::Structure
|
3795
3857
|
end
|
3796
3858
|
|
3859
|
+
# @!attribute [rw] report_format
|
3860
|
+
# The format of the report. Valid values are `PDF` and `CSV`. If no
|
3861
|
+
# value is specified, the report format defaults to `PDF`.
|
3862
|
+
# @return [String]
|
3863
|
+
#
|
3797
3864
|
# @!attribute [rw] scan_arn
|
3798
3865
|
# The scan ARN.
|
3799
3866
|
# @return [String]
|
@@ -3805,6 +3872,7 @@ module Aws::Inspector2
|
|
3805
3872
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetCisScanReportRequest AWS API Documentation
|
3806
3873
|
#
|
3807
3874
|
class GetCisScanReportRequest < Struct.new(
|
3875
|
+
:report_format,
|
3808
3876
|
:scan_arn,
|
3809
3877
|
:target_accounts)
|
3810
3878
|
SENSITIVE = []
|
@@ -3816,7 +3884,7 @@ module Aws::Inspector2
|
|
3816
3884
|
# @return [String]
|
3817
3885
|
#
|
3818
3886
|
# @!attribute [rw] url
|
3819
|
-
# The URL where the CIS scan report
|
3887
|
+
# The URL where a PDF or CSV of the CIS scan report can be downloaded.
|
3820
3888
|
# @return [String]
|
3821
3889
|
#
|
3822
3890
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetCisScanReportResponse AWS API Documentation
|
@@ -3901,6 +3969,11 @@ module Aws::Inspector2
|
|
3901
3969
|
#
|
3902
3970
|
class GetConfigurationRequest < Aws::EmptyStructure; end
|
3903
3971
|
|
3972
|
+
# @!attribute [rw] ec2_configuration
|
3973
|
+
# Specifies how the Amazon EC2 automated scan mode is currently
|
3974
|
+
# configured for your environment.
|
3975
|
+
# @return [Types::Ec2ConfigurationState]
|
3976
|
+
#
|
3904
3977
|
# @!attribute [rw] ecr_configuration
|
3905
3978
|
# Specifies how the ECR automated re-scan duration is currently
|
3906
3979
|
# configured for your environment.
|
@@ -3909,6 +3982,7 @@ module Aws::Inspector2
|
|
3909
3982
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetConfigurationResponse AWS API Documentation
|
3910
3983
|
#
|
3911
3984
|
class GetConfigurationResponse < Struct.new(
|
3985
|
+
:ec2_configuration,
|
3912
3986
|
:ecr_configuration)
|
3913
3987
|
SENSITIVE = []
|
3914
3988
|
include Aws::Structure
|
@@ -6903,6 +6977,11 @@ module Aws::Inspector2
|
|
6903
6977
|
include Aws::Structure
|
6904
6978
|
end
|
6905
6979
|
|
6980
|
+
# @!attribute [rw] ec2_configuration
|
6981
|
+
# Specifies how the Amazon EC2 automated scan will be updated for your
|
6982
|
+
# environment.
|
6983
|
+
# @return [Types::Ec2Configuration]
|
6984
|
+
#
|
6906
6985
|
# @!attribute [rw] ecr_configuration
|
6907
6986
|
# Specifies how the ECR automated re-scan will be updated for your
|
6908
6987
|
# environment.
|
@@ -6911,6 +6990,7 @@ module Aws::Inspector2
|
|
6911
6990
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/UpdateConfigurationRequest AWS API Documentation
|
6912
6991
|
#
|
6913
6992
|
class UpdateConfigurationRequest < Struct.new(
|
6993
|
+
:ec2_configuration,
|
6914
6994
|
:ecr_configuration)
|
6915
6995
|
SENSITIVE = []
|
6916
6996
|
include Aws::Structure
|
data/lib/aws-sdk-inspector2.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -964,6 +964,7 @@ module Aws
|
|
964
964
|
end
|
965
965
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#get_cis_scan_report-instance_method
|
966
966
|
def get_cis_scan_report: (
|
967
|
+
?report_format: ("PDF" | "CSV"),
|
967
968
|
scan_arn: ::String,
|
968
969
|
?target_accounts: Array[::String]
|
969
970
|
) -> _GetCisScanReportResponseSuccess
|
@@ -1020,6 +1021,7 @@ module Aws
|
|
1020
1021
|
|
1021
1022
|
interface _GetConfigurationResponseSuccess
|
1022
1023
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetConfigurationResponse]
|
1024
|
+
def ec2_configuration: () -> Types::Ec2ConfigurationState
|
1023
1025
|
def ecr_configuration: () -> Types::EcrConfigurationState
|
1024
1026
|
end
|
1025
1027
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#get_configuration-instance_method
|
@@ -1427,6 +1429,12 @@ module Aws
|
|
1427
1429
|
value: ::String
|
1428
1430
|
},
|
1429
1431
|
]?,
|
1432
|
+
scan_mode: Array[
|
1433
|
+
{
|
1434
|
+
comparison: ("EQUALS" | "NOT_EQUALS"),
|
1435
|
+
value: ::String
|
1436
|
+
},
|
1437
|
+
]?,
|
1430
1438
|
scan_status_code: Array[
|
1431
1439
|
{
|
1432
1440
|
comparison: ("EQUALS" | "NOT_EQUALS"),
|
@@ -1528,6 +1536,12 @@ module Aws
|
|
1528
1536
|
value: ::String
|
1529
1537
|
},
|
1530
1538
|
]?,
|
1539
|
+
scan_mode: Array[
|
1540
|
+
{
|
1541
|
+
comparison: ("EQUALS" | "NOT_EQUALS"),
|
1542
|
+
value: ::String
|
1543
|
+
},
|
1544
|
+
]?,
|
1531
1545
|
scan_status_code: Array[
|
1532
1546
|
{
|
1533
1547
|
comparison: ("EQUALS" | "NOT_EQUALS"),
|
@@ -2288,12 +2302,15 @@ module Aws
|
|
2288
2302
|
end
|
2289
2303
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#update_configuration-instance_method
|
2290
2304
|
def update_configuration: (
|
2291
|
-
|
2305
|
+
?ec2_configuration: {
|
2306
|
+
scan_mode: ("EC2_SSM_AGENT_BASED" | "EC2_HYBRID")
|
2307
|
+
},
|
2308
|
+
?ecr_configuration: {
|
2292
2309
|
pull_date_rescan_duration: ("DAYS_14" | "DAYS_30" | "DAYS_60" | "DAYS_90" | "DAYS_180")?,
|
2293
2310
|
rescan_duration: ("LIFETIME" | "DAYS_30" | "DAYS_180" | "DAYS_14" | "DAYS_60" | "DAYS_90")
|
2294
2311
|
}
|
2295
2312
|
) -> _UpdateConfigurationResponseSuccess
|
2296
|
-
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateConfigurationResponseSuccess
|
2313
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateConfigurationResponseSuccess
|
2297
2314
|
|
2298
2315
|
interface _UpdateEc2DeepInspectionConfigurationResponseSuccess
|
2299
2316
|
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateEc2DeepInspectionConfigurationResponse]
|
data/sig/types.rbs
CHANGED
@@ -568,6 +568,7 @@ module Aws::Inspector2
|
|
568
568
|
attr_accessor last_scanned_at: ::Array[Types::CoverageDateFilter]
|
569
569
|
attr_accessor resource_id: ::Array[Types::CoverageStringFilter]
|
570
570
|
attr_accessor resource_type: ::Array[Types::CoverageStringFilter]
|
571
|
+
attr_accessor scan_mode: ::Array[Types::CoverageStringFilter]
|
571
572
|
attr_accessor scan_status_code: ::Array[Types::CoverageStringFilter]
|
572
573
|
attr_accessor scan_status_reason: ::Array[Types::CoverageStringFilter]
|
573
574
|
attr_accessor scan_type: ::Array[Types::CoverageStringFilter]
|
@@ -593,6 +594,7 @@ module Aws::Inspector2
|
|
593
594
|
attr_accessor resource_id: ::String
|
594
595
|
attr_accessor resource_metadata: Types::ResourceScanMetadata
|
595
596
|
attr_accessor resource_type: ("AWS_EC2_INSTANCE" | "AWS_ECR_CONTAINER_IMAGE" | "AWS_ECR_REPOSITORY" | "AWS_LAMBDA_FUNCTION")
|
597
|
+
attr_accessor scan_mode: ("EC2_SSM_AGENT_BASED" | "EC2_AGENTLESS")
|
596
598
|
attr_accessor scan_status: Types::ScanStatus
|
597
599
|
attr_accessor scan_type: ("NETWORK" | "PACKAGE" | "CODE")
|
598
600
|
SENSITIVE: []
|
@@ -784,6 +786,16 @@ module Aws::Inspector2
|
|
784
786
|
SENSITIVE: []
|
785
787
|
end
|
786
788
|
|
789
|
+
class Ec2Configuration
|
790
|
+
attr_accessor scan_mode: ("EC2_SSM_AGENT_BASED" | "EC2_HYBRID")
|
791
|
+
SENSITIVE: []
|
792
|
+
end
|
793
|
+
|
794
|
+
class Ec2ConfigurationState
|
795
|
+
attr_accessor scan_mode_state: Types::Ec2ScanModeState
|
796
|
+
SENSITIVE: []
|
797
|
+
end
|
798
|
+
|
787
799
|
class Ec2InstanceAggregation
|
788
800
|
attr_accessor amis: ::Array[Types::StringFilter]
|
789
801
|
attr_accessor instance_ids: ::Array[Types::StringFilter]
|
@@ -812,6 +824,12 @@ module Aws::Inspector2
|
|
812
824
|
SENSITIVE: []
|
813
825
|
end
|
814
826
|
|
827
|
+
class Ec2ScanModeState
|
828
|
+
attr_accessor scan_mode: ("EC2_SSM_AGENT_BASED" | "EC2_HYBRID")
|
829
|
+
attr_accessor scan_mode_status: ("SUCCESS" | "PENDING")
|
830
|
+
SENSITIVE: []
|
831
|
+
end
|
832
|
+
|
815
833
|
class EcrConfiguration
|
816
834
|
attr_accessor pull_date_rescan_duration: ("DAYS_14" | "DAYS_30" | "DAYS_60" | "DAYS_90" | "DAYS_180")
|
817
835
|
attr_accessor rescan_duration: ("LIFETIME" | "DAYS_30" | "DAYS_180" | "DAYS_14" | "DAYS_60" | "DAYS_90")
|
@@ -1053,6 +1071,7 @@ module Aws::Inspector2
|
|
1053
1071
|
end
|
1054
1072
|
|
1055
1073
|
class GetCisScanReportRequest
|
1074
|
+
attr_accessor report_format: ("PDF" | "CSV")
|
1056
1075
|
attr_accessor scan_arn: ::String
|
1057
1076
|
attr_accessor target_accounts: ::Array[::String]
|
1058
1077
|
SENSITIVE: []
|
@@ -1086,6 +1105,7 @@ module Aws::Inspector2
|
|
1086
1105
|
end
|
1087
1106
|
|
1088
1107
|
class GetConfigurationResponse
|
1108
|
+
attr_accessor ec2_configuration: Types::Ec2ConfigurationState
|
1089
1109
|
attr_accessor ecr_configuration: Types::EcrConfigurationState
|
1090
1110
|
SENSITIVE: []
|
1091
1111
|
end
|
@@ -1914,6 +1934,7 @@ module Aws::Inspector2
|
|
1914
1934
|
end
|
1915
1935
|
|
1916
1936
|
class UpdateConfigurationRequest
|
1937
|
+
attr_accessor ec2_configuration: Types::Ec2Configuration
|
1917
1938
|
attr_accessor ecr_configuration: Types::EcrConfiguration
|
1918
1939
|
SENSITIVE: []
|
1919
1940
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-inspector2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|