aws-sdk-inspector2 1.25.0 → 1.27.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: ca434b40fecb57eeecc8c75fb0313fe5138eec84fe34ed8b48b20c4e40c0ddb4
4
- data.tar.gz: b1a99cf9cec364c48e0999c491456d59c365f0663e058345c4b26b23694d7e97
3
+ metadata.gz: eecf8d23978a49de622c2a59064ccf29e2f87ec2ee86820fbf359d131591a191
4
+ data.tar.gz: 9a9a34f988ac7379d1468287a3725289f65bae338eed6c46377bf3db82a50e68
5
5
  SHA512:
6
- metadata.gz: 8a8fde9ba8548d1ef8b0d3c9971d6cdabe309d6e0b993c84313fda6c6cb5067751838c886899450efede4d313997506c980a89fa8bcdb5e029de3fd86b1624d5
7
- data.tar.gz: 5049ed790562164c9b66aebb730f4f32e7a689d83c14471f63405adb6fde7161991f04bf22110def4585fbf72cf05025de2b6fecb197c2e26ff904e5e735b3ba
6
+ metadata.gz: ac485dc068fe3e06b61556da47c840ba1ac0c24f22e73a6e7aeb1280cce5377d764e46a385c9b5e4527e42ace03502423f1ea1d5b32d5ac301bfbc2272020793
7
+ data.tar.gz: fc3dcb6691a65e50b205e4b96a93564d3a3ee06e476c1387479c9a97d0b28da35f4254bda70d52181268d28e606b874b33120b678856e9885ad16a4654bb83e7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.27.0 (2024-04-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.26.0 (2024-01-26)
10
+ ------------------
11
+
12
+ * Feature - This release adds ECR container image scanning based on their lastRecordedPullTime.
13
+
4
14
  1.25.0 (2024-01-23)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.25.0
1
+ 1.27.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.
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.
365
399
  #
366
- # @option options [Boolean] :http_wire_trace (false) When `true`,
367
- # HTTP debug output will be sent to the `:logger`.
400
+ # @option options [String] :ssl_ca_store
401
+ # Sets the X509::Store to verify peer certificate.
368
402
  #
369
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
370
- # SSL peer certificates are verified when establishing a
371
- # connection.
403
+ # @option options [Float] :ssl_timeout
404
+ # Sets the SSL timeout in seconds
372
405
  #
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.
378
- #
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
@@ -2018,7 +2042,8 @@ module Aws::Inspector2
2018
2042
  #
2019
2043
  # @example Response structure
2020
2044
  #
2021
- # resp.ecr_configuration.rescan_duration_state.rescan_duration #=> String, one of "LIFETIME", "DAYS_30", "DAYS_180"
2045
+ # resp.ecr_configuration.rescan_duration_state.pull_date_rescan_duration #=> String, one of "DAYS_14", "DAYS_30", "DAYS_60", "DAYS_90", "DAYS_180"
2046
+ # resp.ecr_configuration.rescan_duration_state.rescan_duration #=> String, one of "LIFETIME", "DAYS_30", "DAYS_180", "DAYS_14", "DAYS_60", "DAYS_90"
2022
2047
  # resp.ecr_configuration.rescan_duration_state.status #=> String, one of "SUCCESS", "PENDING", "FAILED"
2023
2048
  # resp.ecr_configuration.rescan_duration_state.updated_at #=> Time
2024
2049
  #
@@ -2937,6 +2962,12 @@ module Aws::Inspector2
2937
2962
  # value: "CoverageStringInput", # required
2938
2963
  # },
2939
2964
  # ],
2965
+ # image_pulled_at: [
2966
+ # {
2967
+ # end_inclusive: Time.now,
2968
+ # start_inclusive: Time.now,
2969
+ # },
2970
+ # ],
2940
2971
  # lambda_function_name: [
2941
2972
  # {
2942
2973
  # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
@@ -3007,6 +3038,7 @@ module Aws::Inspector2
3007
3038
  # resp.covered_resources[0].resource_metadata.ec2.platform #=> String, one of "WINDOWS", "LINUX", "UNKNOWN", "MACOS"
3008
3039
  # resp.covered_resources[0].resource_metadata.ec2.tags #=> Hash
3009
3040
  # resp.covered_resources[0].resource_metadata.ec2.tags["MapKey"] #=> String
3041
+ # resp.covered_resources[0].resource_metadata.ecr_image.image_pulled_at #=> Time
3010
3042
  # resp.covered_resources[0].resource_metadata.ecr_image.tags #=> Array
3011
3043
  # resp.covered_resources[0].resource_metadata.ecr_image.tags[0] #=> String
3012
3044
  # resp.covered_resources[0].resource_metadata.ecr_repository.name #=> String
@@ -3085,6 +3117,12 @@ module Aws::Inspector2
3085
3117
  # value: "CoverageStringInput", # required
3086
3118
  # },
3087
3119
  # ],
3120
+ # image_pulled_at: [
3121
+ # {
3122
+ # end_inclusive: Time.now,
3123
+ # start_inclusive: Time.now,
3124
+ # },
3125
+ # ],
3088
3126
  # lambda_function_name: [
3089
3127
  # {
3090
3128
  # comparison: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
@@ -4741,7 +4779,8 @@ module Aws::Inspector2
4741
4779
  #
4742
4780
  # resp = client.update_configuration({
4743
4781
  # ecr_configuration: { # required
4744
- # rescan_duration: "LIFETIME", # required, accepts LIFETIME, DAYS_30, DAYS_180
4782
+ # pull_date_rescan_duration: "DAYS_14", # accepts DAYS_14, DAYS_30, DAYS_60, DAYS_90, DAYS_180
4783
+ # rescan_duration: "LIFETIME", # required, accepts LIFETIME, DAYS_30, DAYS_180, DAYS_14, DAYS_60, DAYS_90
4745
4784
  # },
4746
4785
  # })
4747
4786
  #
@@ -4805,7 +4844,7 @@ module Aws::Inspector2
4805
4844
  end
4806
4845
 
4807
4846
  # Updates an encryption key. A `ResourceNotFoundException` means that an
4808
- # AWS owned key is being used for encryption.
4847
+ # Amazon Web Services owned key is being used for encryption.
4809
4848
  #
4810
4849
  # @option params [required, String] :kms_key_id
4811
4850
  # A KMS key ID for the encryption key.
@@ -5240,7 +5279,7 @@ module Aws::Inspector2
5240
5279
  params: params,
5241
5280
  config: config)
5242
5281
  context[:gem_name] = 'aws-sdk-inspector2'
5243
- context[:gem_version] = '1.25.0'
5282
+ context[:gem_version] = '1.27.0'
5244
5283
  Seahorse::Client::Request.new(handlers, context)
5245
5284
  end
5246
5285
 
@@ -230,6 +230,7 @@ module Aws::Inspector2
230
230
  EcrConfiguration = Shapes::StructureShape.new(name: 'EcrConfiguration')
231
231
  EcrConfigurationState = Shapes::StructureShape.new(name: 'EcrConfigurationState')
232
232
  EcrContainerImageMetadata = Shapes::StructureShape.new(name: 'EcrContainerImageMetadata')
233
+ EcrPullDateRescanDuration = Shapes::StringShape.new(name: 'EcrPullDateRescanDuration')
233
234
  EcrRepositoryMetadata = Shapes::StructureShape.new(name: 'EcrRepositoryMetadata')
234
235
  EcrRescanDuration = Shapes::StringShape.new(name: 'EcrRescanDuration')
235
236
  EcrRescanDurationState = Shapes::StructureShape.new(name: 'EcrRescanDurationState')
@@ -1071,6 +1072,7 @@ module Aws::Inspector2
1071
1072
  CoverageFilterCriteria.add_member(:ec2_instance_tags, Shapes::ShapeRef.new(shape: CoverageMapFilterList, location_name: "ec2InstanceTags"))
1072
1073
  CoverageFilterCriteria.add_member(:ecr_image_tags, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "ecrImageTags"))
1073
1074
  CoverageFilterCriteria.add_member(:ecr_repository_name, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "ecrRepositoryName"))
1075
+ CoverageFilterCriteria.add_member(:image_pulled_at, Shapes::ShapeRef.new(shape: CoverageDateFilterList, location_name: "imagePulledAt"))
1074
1076
  CoverageFilterCriteria.add_member(:lambda_function_name, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "lambdaFunctionName"))
1075
1077
  CoverageFilterCriteria.add_member(:lambda_function_runtime, Shapes::ShapeRef.new(shape: CoverageStringFilterList, location_name: "lambdaFunctionRuntime"))
1076
1078
  CoverageFilterCriteria.add_member(:lambda_function_tags, Shapes::ShapeRef.new(shape: CoverageMapFilterList, location_name: "lambdaFunctionTags"))
@@ -1273,12 +1275,14 @@ module Aws::Inspector2
1273
1275
  Ec2Metadata.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
1274
1276
  Ec2Metadata.struct_class = Types::Ec2Metadata
1275
1277
 
1278
+ EcrConfiguration.add_member(:pull_date_rescan_duration, Shapes::ShapeRef.new(shape: EcrPullDateRescanDuration, location_name: "pullDateRescanDuration"))
1276
1279
  EcrConfiguration.add_member(:rescan_duration, Shapes::ShapeRef.new(shape: EcrRescanDuration, required: true, location_name: "rescanDuration"))
1277
1280
  EcrConfiguration.struct_class = Types::EcrConfiguration
1278
1281
 
1279
1282
  EcrConfigurationState.add_member(:rescan_duration_state, Shapes::ShapeRef.new(shape: EcrRescanDurationState, location_name: "rescanDurationState"))
1280
1283
  EcrConfigurationState.struct_class = Types::EcrConfigurationState
1281
1284
 
1285
+ EcrContainerImageMetadata.add_member(:image_pulled_at, Shapes::ShapeRef.new(shape: DateTimeTimestamp, location_name: "imagePulledAt"))
1282
1286
  EcrContainerImageMetadata.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
1283
1287
  EcrContainerImageMetadata.struct_class = Types::EcrContainerImageMetadata
1284
1288
 
@@ -1286,6 +1290,7 @@ module Aws::Inspector2
1286
1290
  EcrRepositoryMetadata.add_member(:scan_frequency, Shapes::ShapeRef.new(shape: EcrScanFrequency, location_name: "scanFrequency"))
1287
1291
  EcrRepositoryMetadata.struct_class = Types::EcrRepositoryMetadata
1288
1292
 
1293
+ EcrRescanDurationState.add_member(:pull_date_rescan_duration, Shapes::ShapeRef.new(shape: EcrPullDateRescanDuration, location_name: "pullDateRescanDuration"))
1289
1294
  EcrRescanDurationState.add_member(:rescan_duration, Shapes::ShapeRef.new(shape: EcrRescanDuration, location_name: "rescanDuration"))
1290
1295
  EcrRescanDurationState.add_member(:status, Shapes::ShapeRef.new(shape: EcrRescanDurationStatus, location_name: "status"))
1291
1296
  EcrRescanDurationState.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTimeTimestamp, location_name: "updatedAt"))
@@ -14,6 +14,7 @@ module Aws::Inspector2
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::Inspector2::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\