aws-sdk-inspector2 1.26.0 → 1.28.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6b777bfbdd0f9f359e43792ce233ab5578f826ec4764c583d0adfdc7cde16fa
4
- data.tar.gz: 9d42d92e4d6adc81b11dfae5198f77696dc25a1506552e7ddbaae35858d67e3e
3
+ metadata.gz: a372f7a326fb1490e6e6cb306e75394b4748bc6944adb47358e5afe4f4cd0f36
4
+ data.tar.gz: fadf0a1e238ba390716312cdf2f91f8fbeee0f2cb9d9d37bbba8661ba5bc70bb
5
5
  SHA512:
6
- metadata.gz: 1902d7d1e0039f727ba57fe6579786f03cfb801b547b492869cca3d4885992e14af346ee37ca12c991d1240a7ee626894a941ae9ebf8f9d3aec64f4de358c3d0
7
- data.tar.gz: 0cc422dc45aad72ff012001f76e2650ddb6508ad8285506f775f2b24e707b6ab2eee5c70c36b5dc969767b1fd15218cbe5c1c8e7f33c59d141c6d0187c4c7603
6
+ metadata.gz: f4e889108d9ca8b67c88fb1e1c829f89f10621f2541c4a318dad4056b7e59c776b9dfec8f998f2871b63fa924a6308c0dcb527119e5e5d5a16071074d5ecf884
7
+ data.tar.gz: f8c5c08ca2408241254099a7ce846e9326817162af4a5f88def431831c29b729837ac771a5fe08a2edb1afc40fd55901a80700fc23b4ddadd876467c446725dc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.28.0 (2024-04-29)
5
+ ------------------
6
+
7
+ * Feature - Update Inspector2 to include new Agentless API parameters.
8
+
9
+ 1.27.0 (2024-04-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.26.0 (2024-01-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.26.0
1
+ 1.28.0
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
22
  require 'aws-sdk-core/plugins/response_paging.rb'
23
23
  require 'aws-sdk-core/plugins/stub_responses.rb'
24
24
  require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/invocation_id.rb'
25
26
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
27
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
28
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
@@ -72,6 +73,7 @@ module Aws::Inspector2
72
73
  add_plugin(Aws::Plugins::ResponsePaging)
73
74
  add_plugin(Aws::Plugins::StubResponses)
74
75
  add_plugin(Aws::Plugins::IdempotencyToken)
76
+ add_plugin(Aws::Plugins::InvocationId)
75
77
  add_plugin(Aws::Plugins::JsonvalueConverter)
76
78
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
77
79
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
@@ -196,10 +198,17 @@ module Aws::Inspector2
196
198
  # When set to 'true' the request body will not be compressed
197
199
  # for supported operations.
198
200
  #
199
- # @option options [String] :endpoint
200
- # The client endpoint is normally constructed from the `:region`
201
- # option. You should only configure an `:endpoint` when connecting
202
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
201
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
202
+ # Normally you should not configure the `:endpoint` option
203
+ # directly. This is normally constructed from the `:region`
204
+ # option. Configuring `:endpoint` is normally reserved for
205
+ # connecting to test or custom endpoints. The endpoint should
206
+ # be a URI formatted like:
207
+ #
208
+ # 'http://example.com'
209
+ # 'https://example.com'
210
+ # 'http://example.com:123'
211
+ #
203
212
  #
204
213
  # @option options [Integer] :endpoint_cache_max_entries (1000)
205
214
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -337,50 +346,65 @@ module Aws::Inspector2
337
346
  # @option options [Aws::Inspector2::EndpointProvider] :endpoint_provider
338
347
  # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Inspector2::EndpointParameters`
339
348
  #
340
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
341
- # requests through. Formatted like 'http://proxy.com:123'.
342
- #
343
- # @option options [Float] :http_open_timeout (15) The number of
344
- # seconds to wait when opening a HTTP session before raising a
345
- # `Timeout::Error`.
346
- #
347
- # @option options [Float] :http_read_timeout (60) The default
348
- # number of seconds to wait for response data. This value can
349
- # safely be set per-request on the session.
350
- #
351
- # @option options [Float] :http_idle_timeout (5) The number of
352
- # seconds a connection is allowed to sit idle before it is
353
- # considered stale. Stale connections are closed and removed
354
- # from the pool before making a request.
355
- #
356
- # @option options [Float] :http_continue_timeout (1) The number of
357
- # seconds to wait for a 100-continue response before sending the
358
- # request body. This option has no effect unless the request has
359
- # "Expect" header set to "100-continue". Defaults to `nil` which
360
- # disables this behaviour. This value can safely be set per
361
- # request on the session.
362
- #
363
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
364
- # in seconds.
365
- #
366
- # @option options [Boolean] :http_wire_trace (false) When `true`,
367
- # HTTP debug output will be sent to the `:logger`.
349
+ # @option options [Float] :http_continue_timeout (1)
350
+ # The number of seconds to wait for a 100-continue response before sending the
351
+ # request body. This option has no effect unless the request has "Expect"
352
+ # header set to "100-continue". Defaults to `nil` which disables this
353
+ # behaviour. This value can safely be set per request on the session.
354
+ #
355
+ # @option options [Float] :http_idle_timeout (5)
356
+ # The number of seconds a connection is allowed to sit idle before it
357
+ # is considered stale. Stale connections are closed and removed from the
358
+ # pool before making a request.
359
+ #
360
+ # @option options [Float] :http_open_timeout (15)
361
+ # The default number of seconds to wait for response data.
362
+ # This value can safely be set per-request on the session.
363
+ #
364
+ # @option options [URI::HTTP,String] :http_proxy
365
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
366
+ #
367
+ # @option options [Float] :http_read_timeout (60)
368
+ # The default number of seconds to wait for response data.
369
+ # This value can safely be set per-request on the session.
370
+ #
371
+ # @option options [Boolean] :http_wire_trace (false)
372
+ # When `true`, HTTP debug output will be sent to the `:logger`.
373
+ #
374
+ # @option options [Proc] :on_chunk_received
375
+ # When a Proc object is provided, it will be used as callback when each chunk
376
+ # of the response body is received. It provides three arguments: the chunk,
377
+ # the number of bytes received, and the total number of
378
+ # bytes in the response (or nil if the server did not send a `content-length`).
379
+ #
380
+ # @option options [Proc] :on_chunk_sent
381
+ # When a Proc object is provided, it will be used as callback when each chunk
382
+ # of the request body is sent. It provides three arguments: the chunk,
383
+ # the number of bytes read from the body, and the total number of
384
+ # bytes in the body.
385
+ #
386
+ # @option options [Boolean] :raise_response_errors (true)
387
+ # When `true`, response errors are raised.
388
+ #
389
+ # @option options [String] :ssl_ca_bundle
390
+ # Full path to the SSL certificate authority bundle file that should be used when
391
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
392
+ # `:ssl_ca_directory` the the system default will be used if available.
393
+ #
394
+ # @option options [String] :ssl_ca_directory
395
+ # Full path of the directory that contains the unbundled SSL certificate
396
+ # authority files for verifying peer certificates. If you do
397
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
398
+ # default will be used if available.
368
399
  #
369
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
370
- # SSL peer certificates are verified when establishing a
371
- # connection.
400
+ # @option options [String] :ssl_ca_store
401
+ # Sets the X509::Store to verify peer certificate.
372
402
  #
373
- # @option options [String] :ssl_ca_bundle Full path to the SSL
374
- # certificate authority bundle file that should be used when
375
- # verifying peer certificates. If you do not pass
376
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
377
- # will be used if available.
403
+ # @option options [Float] :ssl_timeout
404
+ # Sets the SSL timeout in seconds
378
405
  #
379
- # @option options [String] :ssl_ca_directory Full path of the
380
- # directory that contains the unbundled SSL certificate
381
- # authority files for verifying peer certificates. If you do
382
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
383
- # system default will be used if available.
406
+ # @option options [Boolean] :ssl_verify_peer (true)
407
+ # When `true`, SSL peer certificates are verified when establishing a connection.
384
408
  #
385
409
  def initialize(*args)
386
410
  super
@@ -2014,10 +2038,13 @@ module Aws::Inspector2
2014
2038
  #
2015
2039
  # @return [Types::GetConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2016
2040
  #
2041
+ # * {Types::GetConfigurationResponse#ec2_configuration #ec2_configuration} => Types::Ec2ConfigurationState
2017
2042
  # * {Types::GetConfigurationResponse#ecr_configuration #ecr_configuration} => Types::EcrConfigurationState
2018
2043
  #
2019
2044
  # @example Response structure
2020
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"
2021
2048
  # resp.ecr_configuration.rescan_duration_state.pull_date_rescan_duration #=> String, one of "DAYS_14", "DAYS_30", "DAYS_60", "DAYS_90", "DAYS_180"
2022
2049
  # resp.ecr_configuration.rescan_duration_state.rescan_duration #=> String, one of "LIFETIME", "DAYS_30", "DAYS_180", "DAYS_14", "DAYS_60", "DAYS_90"
2023
2050
  # resp.ecr_configuration.rescan_duration_state.status #=> String, one of "SUCCESS", "PENDING", "FAILED"
@@ -2981,6 +3008,12 @@ module Aws::Inspector2
2981
3008
  # value: "CoverageStringInput", # required
2982
3009
  # },
2983
3010
  # ],
3011
+ # scan_mode: [
3012
+ # {
3013
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3014
+ # value: "CoverageStringInput", # required
3015
+ # },
3016
+ # ],
2984
3017
  # scan_status_code: [
2985
3018
  # {
2986
3019
  # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
@@ -3026,6 +3059,7 @@ module Aws::Inspector2
3026
3059
  # resp.covered_resources[0].resource_metadata.lambda_function.layers[0] #=> String
3027
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"
3028
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"
3029
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"
3030
3064
  # resp.covered_resources[0].scan_status.status_code #=> String, one of "ACTIVE", "INACTIVE"
3031
3065
  # resp.covered_resources[0].scan_type #=> String, one of "NETWORK", "PACKAGE", "CODE"
@@ -3136,6 +3170,12 @@ module Aws::Inspector2
3136
3170
  # value: "CoverageStringInput", # required
3137
3171
  # },
3138
3172
  # ],
3173
+ # scan_mode: [
3174
+ # {
3175
+ # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
3176
+ # value: "CoverageStringInput", # required
3177
+ # },
3178
+ # ],
3139
3179
  # scan_status_code: [
3140
3180
  # {
3141
3181
  # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
@@ -4745,7 +4785,11 @@ module Aws::Inspector2
4745
4785
  # updates the setting for all accounts you manage. Member accounts in an
4746
4786
  # organization cannot update this setting.
4747
4787
  #
4748
- # @option params [required, Types::EcrConfiguration] :ecr_configuration
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
4749
4793
  # Specifies how the ECR automated re-scan will be updated for your
4750
4794
  # environment.
4751
4795
  #
@@ -4754,7 +4798,10 @@ module Aws::Inspector2
4754
4798
  # @example Request syntax with placeholder values
4755
4799
  #
4756
4800
  # resp = client.update_configuration({
4757
- # ecr_configuration: { # required
4801
+ # ec2_configuration: {
4802
+ # scan_mode: "EC2_SSM_AGENT_BASED", # required, accepts EC2_SSM_AGENT_BASED, EC2_HYBRID
4803
+ # },
4804
+ # ecr_configuration: {
4758
4805
  # pull_date_rescan_duration: "DAYS_14", # accepts DAYS_14, DAYS_30, DAYS_60, DAYS_90, DAYS_180
4759
4806
  # rescan_duration: "LIFETIME", # required, accepts LIFETIME, DAYS_30, DAYS_180, DAYS_14, DAYS_60, DAYS_90
4760
4807
  # },
@@ -5255,7 +5302,7 @@ module Aws::Inspector2
5255
5302
  params: params,
5256
5303
  config: config)
5257
5304
  context[:gem_name] = 'aws-sdk-inspector2'
5258
- context[:gem_version] = '1.26.0'
5305
+ context[:gem_version] = '1.28.0'
5259
5306
  Seahorse::Client::Request.new(handlers, context)
5260
5307
  end
5261
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(:ecr_configuration, Shapes::ShapeRef.new(shape: EcrConfiguration, required: true, location_name: "ecrConfiguration"))
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 that the finding was last observed.
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 PDF can be downloaded.
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
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-inspector2/customizations'
52
52
  # @!group service
53
53
  module Aws::Inspector2
54
54
 
55
- GEM_VERSION = '1.26.0'
55
+ GEM_VERSION = '1.28.0'
56
56
 
57
57
  end
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
- ecr_configuration: {
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.26.0
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-01-26 00:00:00.000000000 Z
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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.191.0
22
+ version: 3.193.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.191.0
32
+ version: 3.193.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement