aws-sdk-inspector2 1.27.0 → 1.28.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-inspector2/client.rb +26 -3
- data/lib/aws-sdk-inspector2/client_api.rb +22 -1
- data/lib/aws-sdk-inspector2/types.rb +76 -2
- data/lib/aws-sdk-inspector2.rb +1 -1
- data/sig/client.rbs +18 -2
- data/sig/types.rbs +20 -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: a372f7a326fb1490e6e6cb306e75394b4748bc6944adb47358e5afe4f4cd0f36
|
4
|
+
data.tar.gz: fadf0a1e238ba390716312cdf2f91f8fbeee0f2cb9d9d37bbba8661ba5bc70bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4e889108d9ca8b67c88fb1e1c829f89f10621f2541c4a318dad4056b7e59c776b9dfec8f998f2871b63fa924a6308c0dcb527119e5e5d5a16071074d5ecf884
|
7
|
+
data.tar.gz: f8c5c08ca2408241254099a7ce846e9326817162af4a5f88def431831c29b729837ac771a5fe08a2edb1afc40fd55901a80700fc23b4ddadd876467c446725dc
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.28.0
|
@@ -2038,10 +2038,13 @@ module Aws::Inspector2
|
|
2038
2038
|
#
|
2039
2039
|
# @return [Types::GetConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2040
2040
|
#
|
2041
|
+
# * {Types::GetConfigurationResponse#ec2_configuration #ec2_configuration} => Types::Ec2ConfigurationState
|
2041
2042
|
# * {Types::GetConfigurationResponse#ecr_configuration #ecr_configuration} => Types::EcrConfigurationState
|
2042
2043
|
#
|
2043
2044
|
# @example Response structure
|
2044
2045
|
#
|
2046
|
+
# resp.ec2_configuration.scan_mode_state.scan_mode #=> String, one of "EC2_SSM_AGENT_BASED", "EC2_HYBRID"
|
2047
|
+
# resp.ec2_configuration.scan_mode_state.scan_mode_status #=> String, one of "SUCCESS", "PENDING"
|
2045
2048
|
# resp.ecr_configuration.rescan_duration_state.pull_date_rescan_duration #=> String, one of "DAYS_14", "DAYS_30", "DAYS_60", "DAYS_90", "DAYS_180"
|
2046
2049
|
# resp.ecr_configuration.rescan_duration_state.rescan_duration #=> String, one of "LIFETIME", "DAYS_30", "DAYS_180", "DAYS_14", "DAYS_60", "DAYS_90"
|
2047
2050
|
# resp.ecr_configuration.rescan_duration_state.status #=> String, one of "SUCCESS", "PENDING", "FAILED"
|
@@ -3005,6 +3008,12 @@ module Aws::Inspector2
|
|
3005
3008
|
# value: "CoverageStringInput", # required
|
3006
3009
|
# },
|
3007
3010
|
# ],
|
3011
|
+
# scan_mode: [
|
3012
|
+
# {
|
3013
|
+
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
3014
|
+
# value: "CoverageStringInput", # required
|
3015
|
+
# },
|
3016
|
+
# ],
|
3008
3017
|
# scan_status_code: [
|
3009
3018
|
# {
|
3010
3019
|
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
@@ -3050,6 +3059,7 @@ module Aws::Inspector2
|
|
3050
3059
|
# resp.covered_resources[0].resource_metadata.lambda_function.layers[0] #=> String
|
3051
3060
|
# 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
3061
|
# resp.covered_resources[0].resource_type #=> String, one of "AWS_EC2_INSTANCE", "AWS_ECR_CONTAINER_IMAGE", "AWS_ECR_REPOSITORY", "AWS_LAMBDA_FUNCTION"
|
3062
|
+
# resp.covered_resources[0].scan_mode #=> String, one of "EC2_SSM_AGENT_BASED", "EC2_AGENTLESS"
|
3053
3063
|
# 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
3064
|
# resp.covered_resources[0].scan_status.status_code #=> String, one of "ACTIVE", "INACTIVE"
|
3055
3065
|
# resp.covered_resources[0].scan_type #=> String, one of "NETWORK", "PACKAGE", "CODE"
|
@@ -3160,6 +3170,12 @@ module Aws::Inspector2
|
|
3160
3170
|
# value: "CoverageStringInput", # required
|
3161
3171
|
# },
|
3162
3172
|
# ],
|
3173
|
+
# scan_mode: [
|
3174
|
+
# {
|
3175
|
+
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
3176
|
+
# value: "CoverageStringInput", # required
|
3177
|
+
# },
|
3178
|
+
# ],
|
3163
3179
|
# scan_status_code: [
|
3164
3180
|
# {
|
3165
3181
|
# comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
|
@@ -4769,7 +4785,11 @@ module Aws::Inspector2
|
|
4769
4785
|
# updates the setting for all accounts you manage. Member accounts in an
|
4770
4786
|
# organization cannot update this setting.
|
4771
4787
|
#
|
4772
|
-
# @option params [
|
4788
|
+
# @option params [Types::Ec2Configuration] :ec2_configuration
|
4789
|
+
# Specifies how the Amazon EC2 automated scan will be updated for your
|
4790
|
+
# environment.
|
4791
|
+
#
|
4792
|
+
# @option params [Types::EcrConfiguration] :ecr_configuration
|
4773
4793
|
# Specifies how the ECR automated re-scan will be updated for your
|
4774
4794
|
# environment.
|
4775
4795
|
#
|
@@ -4778,7 +4798,10 @@ module Aws::Inspector2
|
|
4778
4798
|
# @example Request syntax with placeholder values
|
4779
4799
|
#
|
4780
4800
|
# resp = client.update_configuration({
|
4781
|
-
#
|
4801
|
+
# ec2_configuration: {
|
4802
|
+
# scan_mode: "EC2_SSM_AGENT_BASED", # required, accepts EC2_SSM_AGENT_BASED, EC2_HYBRID
|
4803
|
+
# },
|
4804
|
+
# ecr_configuration: {
|
4782
4805
|
# pull_date_rescan_duration: "DAYS_14", # accepts DAYS_14, DAYS_30, DAYS_60, DAYS_90, DAYS_180
|
4783
4806
|
# rescan_duration: "LIFETIME", # required, accepts LIFETIME, DAYS_30, DAYS_180, DAYS_14, DAYS_60, DAYS_90
|
4784
4807
|
# },
|
@@ -5279,7 +5302,7 @@ module Aws::Inspector2
|
|
5279
5302
|
params: params,
|
5280
5303
|
config: config)
|
5281
5304
|
context[:gem_name] = 'aws-sdk-inspector2'
|
5282
|
-
context[:gem_version] = '1.
|
5305
|
+
context[:gem_version] = '1.28.0'
|
5283
5306
|
Seahorse::Client::Request.new(handlers, context)
|
5284
5307
|
end
|
5285
5308
|
|
@@ -221,12 +221,17 @@ module Aws::Inspector2
|
|
221
221
|
DisassociateMemberRequest = Shapes::StructureShape.new(name: 'DisassociateMemberRequest')
|
222
222
|
DisassociateMemberResponse = Shapes::StructureShape.new(name: 'DisassociateMemberResponse')
|
223
223
|
Double = Shapes::FloatShape.new(name: 'Double')
|
224
|
+
Ec2Configuration = Shapes::StructureShape.new(name: 'Ec2Configuration')
|
225
|
+
Ec2ConfigurationState = Shapes::StructureShape.new(name: 'Ec2ConfigurationState')
|
224
226
|
Ec2DeepInspectionStatus = Shapes::StringShape.new(name: 'Ec2DeepInspectionStatus')
|
225
227
|
Ec2InstanceAggregation = Shapes::StructureShape.new(name: 'Ec2InstanceAggregation')
|
226
228
|
Ec2InstanceAggregationResponse = Shapes::StructureShape.new(name: 'Ec2InstanceAggregationResponse')
|
227
229
|
Ec2InstanceSortBy = Shapes::StringShape.new(name: 'Ec2InstanceSortBy')
|
228
230
|
Ec2Metadata = Shapes::StructureShape.new(name: 'Ec2Metadata')
|
229
231
|
Ec2Platform = Shapes::StringShape.new(name: 'Ec2Platform')
|
232
|
+
Ec2ScanMode = Shapes::StringShape.new(name: 'Ec2ScanMode')
|
233
|
+
Ec2ScanModeState = Shapes::StructureShape.new(name: 'Ec2ScanModeState')
|
234
|
+
Ec2ScanModeStatus = Shapes::StringShape.new(name: 'Ec2ScanModeStatus')
|
230
235
|
EcrConfiguration = Shapes::StructureShape.new(name: 'EcrConfiguration')
|
231
236
|
EcrConfigurationState = Shapes::StructureShape.new(name: 'EcrConfigurationState')
|
232
237
|
EcrContainerImageMetadata = Shapes::StructureShape.new(name: 'EcrContainerImageMetadata')
|
@@ -479,6 +484,7 @@ module Aws::Inspector2
|
|
479
484
|
RuleId = Shapes::StringShape.new(name: 'RuleId')
|
480
485
|
Runtime = Shapes::StringShape.new(name: 'Runtime')
|
481
486
|
SbomReportFormat = Shapes::StringShape.new(name: 'SbomReportFormat')
|
487
|
+
ScanMode = Shapes::StringShape.new(name: 'ScanMode')
|
482
488
|
ScanStatus = Shapes::StructureShape.new(name: 'ScanStatus')
|
483
489
|
ScanStatusCode = Shapes::StringShape.new(name: 'ScanStatusCode')
|
484
490
|
ScanStatusReason = Shapes::StringShape.new(name: 'ScanStatusReason')
|
@@ -1079,6 +1085,7 @@ module Aws::Inspector2
|
|
1079
1085
|
CoverageFilterCriteria.add_member(:last_scanned_at, Shapes::ShapeRef.new(shape: CoverageDateFilterList, location_name: "lastScannedAt"))
|
1080
1086
|
CoverageFilterCriteria.add_member(:resource_id, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "resourceId"))
|
1081
1087
|
CoverageFilterCriteria.add_member(:resource_type, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "resourceType"))
|
1088
|
+
CoverageFilterCriteria.add_member(:scan_mode, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "scanMode"))
|
1082
1089
|
CoverageFilterCriteria.add_member(:scan_status_code, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "scanStatusCode"))
|
1083
1090
|
CoverageFilterCriteria.add_member(:scan_status_reason, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "scanStatusReason"))
|
1084
1091
|
CoverageFilterCriteria.add_member(:scan_type, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "scanType"))
|
@@ -1102,6 +1109,7 @@ module Aws::Inspector2
|
|
1102
1109
|
CoveredResource.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
|
1103
1110
|
CoveredResource.add_member(:resource_metadata, Shapes::ShapeRef.new(shape: ResourceScanMetadata, location_name: "resourceMetadata"))
|
1104
1111
|
CoveredResource.add_member(:resource_type, Shapes::ShapeRef.new(shape: CoverageResourceType, required: true, location_name: "resourceType"))
|
1112
|
+
CoveredResource.add_member(:scan_mode, Shapes::ShapeRef.new(shape: ScanMode, location_name: "scanMode"))
|
1105
1113
|
CoveredResource.add_member(:scan_status, Shapes::ShapeRef.new(shape: ScanStatus, location_name: "scanStatus"))
|
1106
1114
|
CoveredResource.add_member(:scan_type, Shapes::ShapeRef.new(shape: ScanType, required: true, location_name: "scanType"))
|
1107
1115
|
CoveredResource.struct_class = Types::CoveredResource
|
@@ -1253,6 +1261,12 @@ module Aws::Inspector2
|
|
1253
1261
|
DisassociateMemberResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "accountId"))
|
1254
1262
|
DisassociateMemberResponse.struct_class = Types::DisassociateMemberResponse
|
1255
1263
|
|
1264
|
+
Ec2Configuration.add_member(:scan_mode, Shapes::ShapeRef.new(shape: Ec2ScanMode, required: true, location_name: "scanMode"))
|
1265
|
+
Ec2Configuration.struct_class = Types::Ec2Configuration
|
1266
|
+
|
1267
|
+
Ec2ConfigurationState.add_member(:scan_mode_state, Shapes::ShapeRef.new(shape: Ec2ScanModeState, location_name: "scanModeState"))
|
1268
|
+
Ec2ConfigurationState.struct_class = Types::Ec2ConfigurationState
|
1269
|
+
|
1256
1270
|
Ec2InstanceAggregation.add_member(:amis, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "amis"))
|
1257
1271
|
Ec2InstanceAggregation.add_member(:instance_ids, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "instanceIds"))
|
1258
1272
|
Ec2InstanceAggregation.add_member(:instance_tags, Shapes::ShapeRef.new(shape: MapFilterList, location_name: "instanceTags"))
|
@@ -1275,6 +1289,10 @@ module Aws::Inspector2
|
|
1275
1289
|
Ec2Metadata.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
1276
1290
|
Ec2Metadata.struct_class = Types::Ec2Metadata
|
1277
1291
|
|
1292
|
+
Ec2ScanModeState.add_member(:scan_mode, Shapes::ShapeRef.new(shape: Ec2ScanMode, location_name: "scanMode"))
|
1293
|
+
Ec2ScanModeState.add_member(:scan_mode_status, Shapes::ShapeRef.new(shape: Ec2ScanModeStatus, location_name: "scanModeStatus"))
|
1294
|
+
Ec2ScanModeState.struct_class = Types::Ec2ScanModeState
|
1295
|
+
|
1278
1296
|
EcrConfiguration.add_member(:pull_date_rescan_duration, Shapes::ShapeRef.new(shape: EcrPullDateRescanDuration, location_name: "pullDateRescanDuration"))
|
1279
1297
|
EcrConfiguration.add_member(:rescan_duration, Shapes::ShapeRef.new(shape: EcrRescanDuration, required: true, location_name: "rescanDuration"))
|
1280
1298
|
EcrConfiguration.struct_class = Types::EcrConfiguration
|
@@ -1513,6 +1531,7 @@ module Aws::Inspector2
|
|
1513
1531
|
|
1514
1532
|
GetConfigurationRequest.struct_class = Types::GetConfigurationRequest
|
1515
1533
|
|
1534
|
+
GetConfigurationResponse.add_member(:ec2_configuration, Shapes::ShapeRef.new(shape: Ec2ConfigurationState, location_name: "ec2Configuration"))
|
1516
1535
|
GetConfigurationResponse.add_member(:ecr_configuration, Shapes::ShapeRef.new(shape: EcrConfigurationState, location_name: "ecrConfiguration"))
|
1517
1536
|
GetConfigurationResponse.struct_class = Types::GetConfigurationResponse
|
1518
1537
|
|
@@ -2193,7 +2212,8 @@ module Aws::Inspector2
|
|
2193
2212
|
UpdateCisTargets.add_member(:target_resource_tags, Shapes::ShapeRef.new(shape: TargetResourceTags, location_name: "targetResourceTags"))
|
2194
2213
|
UpdateCisTargets.struct_class = Types::UpdateCisTargets
|
2195
2214
|
|
2196
|
-
UpdateConfigurationRequest.add_member(:
|
2215
|
+
UpdateConfigurationRequest.add_member(:ec2_configuration, Shapes::ShapeRef.new(shape: Ec2Configuration, location_name: "ec2Configuration"))
|
2216
|
+
UpdateConfigurationRequest.add_member(:ecr_configuration, Shapes::ShapeRef.new(shape: EcrConfiguration, location_name: "ecrConfiguration"))
|
2197
2217
|
UpdateConfigurationRequest.struct_class = Types::UpdateConfigurationRequest
|
2198
2218
|
|
2199
2219
|
UpdateConfigurationResponse.struct_class = Types::UpdateConfigurationResponse
|
@@ -2321,6 +2341,7 @@ module Aws::Inspector2
|
|
2321
2341
|
"endpointPrefix" => "inspector2",
|
2322
2342
|
"jsonVersion" => "1.1",
|
2323
2343
|
"protocol" => "rest-json",
|
2344
|
+
"protocols" => ["rest-json"],
|
2324
2345
|
"serviceAbbreviation" => "Inspector2",
|
2325
2346
|
"serviceFullName" => "Inspector2",
|
2326
2347
|
"serviceId" => "Inspector2",
|
@@ -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
|
@@ -3816,7 +3878,7 @@ module Aws::Inspector2
|
|
3816
3878
|
# @return [String]
|
3817
3879
|
#
|
3818
3880
|
# @!attribute [rw] url
|
3819
|
-
# The URL where the CIS scan report
|
3881
|
+
# The URL where a PDF of the CIS scan report can be downloaded.
|
3820
3882
|
# @return [String]
|
3821
3883
|
#
|
3822
3884
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetCisScanReportResponse AWS API Documentation
|
@@ -3901,6 +3963,11 @@ module Aws::Inspector2
|
|
3901
3963
|
#
|
3902
3964
|
class GetConfigurationRequest < Aws::EmptyStructure; end
|
3903
3965
|
|
3966
|
+
# @!attribute [rw] ec2_configuration
|
3967
|
+
# Specifies how the Amazon EC2 automated scan mode is currently
|
3968
|
+
# configured for your environment.
|
3969
|
+
# @return [Types::Ec2ConfigurationState]
|
3970
|
+
#
|
3904
3971
|
# @!attribute [rw] ecr_configuration
|
3905
3972
|
# Specifies how the ECR automated re-scan duration is currently
|
3906
3973
|
# configured for your environment.
|
@@ -3909,6 +3976,7 @@ module Aws::Inspector2
|
|
3909
3976
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetConfigurationResponse AWS API Documentation
|
3910
3977
|
#
|
3911
3978
|
class GetConfigurationResponse < Struct.new(
|
3979
|
+
:ec2_configuration,
|
3912
3980
|
:ecr_configuration)
|
3913
3981
|
SENSITIVE = []
|
3914
3982
|
include Aws::Structure
|
@@ -6903,6 +6971,11 @@ module Aws::Inspector2
|
|
6903
6971
|
include Aws::Structure
|
6904
6972
|
end
|
6905
6973
|
|
6974
|
+
# @!attribute [rw] ec2_configuration
|
6975
|
+
# Specifies how the Amazon EC2 automated scan will be updated for your
|
6976
|
+
# environment.
|
6977
|
+
# @return [Types::Ec2Configuration]
|
6978
|
+
#
|
6906
6979
|
# @!attribute [rw] ecr_configuration
|
6907
6980
|
# Specifies how the ECR automated re-scan will be updated for your
|
6908
6981
|
# environment.
|
@@ -6911,6 +6984,7 @@ module Aws::Inspector2
|
|
6911
6984
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/UpdateConfigurationRequest AWS API Documentation
|
6912
6985
|
#
|
6913
6986
|
class UpdateConfigurationRequest < Struct.new(
|
6987
|
+
:ec2_configuration,
|
6914
6988
|
:ecr_configuration)
|
6915
6989
|
SENSITIVE = []
|
6916
6990
|
include Aws::Structure
|
data/lib/aws-sdk-inspector2.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -1020,6 +1020,7 @@ module Aws
|
|
1020
1020
|
|
1021
1021
|
interface _GetConfigurationResponseSuccess
|
1022
1022
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetConfigurationResponse]
|
1023
|
+
def ec2_configuration: () -> Types::Ec2ConfigurationState
|
1023
1024
|
def ecr_configuration: () -> Types::EcrConfigurationState
|
1024
1025
|
end
|
1025
1026
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#get_configuration-instance_method
|
@@ -1427,6 +1428,12 @@ module Aws
|
|
1427
1428
|
value: ::String
|
1428
1429
|
},
|
1429
1430
|
]?,
|
1431
|
+
scan_mode: Array[
|
1432
|
+
{
|
1433
|
+
comparison: ("EQUALS" | "NOT_EQUALS"),
|
1434
|
+
value: ::String
|
1435
|
+
},
|
1436
|
+
]?,
|
1430
1437
|
scan_status_code: Array[
|
1431
1438
|
{
|
1432
1439
|
comparison: ("EQUALS" | "NOT_EQUALS"),
|
@@ -1528,6 +1535,12 @@ module Aws
|
|
1528
1535
|
value: ::String
|
1529
1536
|
},
|
1530
1537
|
]?,
|
1538
|
+
scan_mode: Array[
|
1539
|
+
{
|
1540
|
+
comparison: ("EQUALS" | "NOT_EQUALS"),
|
1541
|
+
value: ::String
|
1542
|
+
},
|
1543
|
+
]?,
|
1531
1544
|
scan_status_code: Array[
|
1532
1545
|
{
|
1533
1546
|
comparison: ("EQUALS" | "NOT_EQUALS"),
|
@@ -2288,12 +2301,15 @@ module Aws
|
|
2288
2301
|
end
|
2289
2302
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector2/Client.html#update_configuration-instance_method
|
2290
2303
|
def update_configuration: (
|
2291
|
-
|
2304
|
+
?ec2_configuration: {
|
2305
|
+
scan_mode: ("EC2_SSM_AGENT_BASED" | "EC2_HYBRID")
|
2306
|
+
},
|
2307
|
+
?ecr_configuration: {
|
2292
2308
|
pull_date_rescan_duration: ("DAYS_14" | "DAYS_30" | "DAYS_60" | "DAYS_90" | "DAYS_180")?,
|
2293
2309
|
rescan_duration: ("LIFETIME" | "DAYS_30" | "DAYS_180" | "DAYS_14" | "DAYS_60" | "DAYS_90")
|
2294
2310
|
}
|
2295
2311
|
) -> _UpdateConfigurationResponseSuccess
|
2296
|
-
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateConfigurationResponseSuccess
|
2312
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateConfigurationResponseSuccess
|
2297
2313
|
|
2298
2314
|
interface _UpdateEc2DeepInspectionConfigurationResponseSuccess
|
2299
2315
|
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")
|
@@ -1086,6 +1104,7 @@ module Aws::Inspector2
|
|
1086
1104
|
end
|
1087
1105
|
|
1088
1106
|
class GetConfigurationResponse
|
1107
|
+
attr_accessor ec2_configuration: Types::Ec2ConfigurationState
|
1089
1108
|
attr_accessor ecr_configuration: Types::EcrConfigurationState
|
1090
1109
|
SENSITIVE: []
|
1091
1110
|
end
|
@@ -1914,6 +1933,7 @@ module Aws::Inspector2
|
|
1914
1933
|
end
|
1915
1934
|
|
1916
1935
|
class UpdateConfigurationRequest
|
1936
|
+
attr_accessor ec2_configuration: Types::Ec2Configuration
|
1917
1937
|
attr_accessor ecr_configuration: Types::EcrConfiguration
|
1918
1938
|
SENSITIVE: []
|
1919
1939
|
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.28.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-04-
|
11
|
+
date: 2024-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|