aws-sdk-securityhub 1.115.0 → 1.117.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,11 +40,20 @@ module Aws::SecurityHub
40
40
  context[:auth_scheme] =
41
41
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
42
42
 
43
- @handler.call(context)
43
+ with_metrics(context) { @handler.call(context) }
44
44
  end
45
45
 
46
46
  private
47
47
 
48
+ def with_metrics(context, &block)
49
+ metrics = []
50
+ metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
51
+ if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
52
+ metrics << 'SIGV4A_SIGNING'
53
+ end
54
+ Aws::Plugins::UserAgent.metric(*metrics, &block)
55
+ end
56
+
48
57
  def apply_endpoint_headers(context, headers)
49
58
  headers.each do |key, values|
50
59
  value = values
@@ -1536,7 +1536,7 @@ module Aws::SecurityHub
1536
1536
  # @return [String]
1537
1537
  #
1538
1538
  # @!attribute [rw] remote_ip_details
1539
- # Provided if `CallerType` is `remoteIp`. Provides information about
1539
+ # Provided if `CallerType` is `remoteip`. Provides information about
1540
1540
  # the remote IP address that the API call originated from.
1541
1541
  # @return [Types::ActionRemoteIpDetails]
1542
1542
  #
@@ -23118,13 +23118,16 @@ module Aws::SecurityHub
23118
23118
  include Aws::Structure
23119
23119
  end
23120
23120
 
23121
- # Contains finding details that are specific to control-based findings.
23122
- # Only returned for findings generated from controls.
23121
+ # This object typically provides details about a control finding, such
23122
+ # as applicable standards and the status of control checks. While
23123
+ # finding providers can add custom content in `Compliance` object
23124
+ # fields, they are typically used to review details of Security Hub
23125
+ # control findings.
23123
23126
  #
23124
23127
  # @!attribute [rw] status
23125
- # The result of a standards check.
23128
+ # Typically summarizes the result of a control check.
23126
23129
  #
23127
- # The valid values for `Status` are as follows.
23130
+ # For Security Hub controls, valid values for `Status` are as follows.
23128
23131
  #
23129
23132
  # * * `PASSED` - Standards check passed for all evaluated resources.
23130
23133
  #
@@ -23142,37 +23145,33 @@ module Aws::SecurityHub
23142
23145
  # @return [String]
23143
23146
  #
23144
23147
  # @!attribute [rw] related_requirements
23145
- # For a control, the industry or regulatory framework requirements
23146
- # that are related to the control. The check for that control is
23147
- # aligned with these requirements.
23148
+ # Typically provides the industry or regulatory framework requirements
23149
+ # that are related to a control. The check for that control is aligned
23150
+ # with these requirements.
23148
23151
  #
23149
23152
  # Array Members: Maximum number of 32 items.
23150
23153
  # @return [Array<String>]
23151
23154
  #
23152
23155
  # @!attribute [rw] status_reasons
23153
- # For findings generated from controls, a list of reasons behind the
23154
- # value of `Status`. For the list of status reason codes and their
23155
- # meanings, see [Standards-related information in the ASFF][1] in the
23156
- # *Security Hub User Guide*.
23157
- #
23158
- #
23159
- #
23160
- # [1]: https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-results.html#securityhub-standards-results-asff
23156
+ # Typically used to provide a list of reasons for the value of
23157
+ # `Status`.
23161
23158
  # @return [Array<Types::StatusReason>]
23162
23159
  #
23163
23160
  # @!attribute [rw] security_control_id
23164
- # The unique identifier of a control across standards. Values for this
23165
- # field typically consist of an Amazon Web Servicesservice and a
23166
- # number, such as APIGateway.5.
23161
+ # Typically provides the unique identifier of a control across
23162
+ # standards. For Security Hub controls, this field consists of an
23163
+ # Amazon Web Servicesservice and a unique number, such as
23164
+ # `APIGateway.5`.
23167
23165
  # @return [String]
23168
23166
  #
23169
23167
  # @!attribute [rw] associated_standards
23170
- # The enabled security standards in which a security control is
23171
- # currently enabled.
23168
+ # Typically provides an array of enabled security standards in which a
23169
+ # security control is currently enabled.
23172
23170
  # @return [Array<Types::AssociatedStandard>]
23173
23171
  #
23174
23172
  # @!attribute [rw] security_control_parameters
23175
- # An object that includes security control parameter names and values.
23173
+ # Typically an object that includes security control parameter names
23174
+ # and values.
23176
23175
  # @return [Array<Types::SecurityControlParameter>]
23177
23176
  #
23178
23177
  # @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/Compliance AWS API Documentation
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-securityhub/customizations'
52
52
  # @!group service
53
53
  module Aws::SecurityHub
54
54
 
55
- GEM_VERSION = '1.115.0'
55
+ GEM_VERSION = '1.117.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-securityhub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.115.0
4
+ version: 1.117.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-09-03 00:00:00.000000000 Z
11
+ date: 2024-09-11 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.203.0
22
+ version: 3.205.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.203.0
32
+ version: 3.205.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement