aws-sdk-securityhub 1.153.0 → 1.155.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-securityhub/client.rb +320 -18
- data/lib/aws-sdk-securityhub/client_api.rb +121 -0
- data/lib/aws-sdk-securityhub/errors.rb +42 -0
- data/lib/aws-sdk-securityhub/types.rb +365 -11
- data/lib/aws-sdk-securityhub.rb +1 -1
- data/sig/client.rbs +177 -60
- data/sig/errors.rbs +8 -0
- data/sig/types.rbs +84 -0
- metadata +1 -1
|
@@ -15220,6 +15220,47 @@ module Aws::SecurityHub
|
|
|
15220
15220
|
include Aws::Structure
|
|
15221
15221
|
end
|
|
15222
15222
|
|
|
15223
|
+
# Specifies an Organizations scope. Data from the specified organization
|
|
15224
|
+
# or organizational unit is included in the response.
|
|
15225
|
+
#
|
|
15226
|
+
# To scope to a specific organizational unit, provide
|
|
15227
|
+
# `OrganizationalUnitId`. You can optionally include `OrganizationId`.
|
|
15228
|
+
# If you omit `OrganizationId`, Security Hub uses the caller's
|
|
15229
|
+
# organization ID. To scope to the delegated administrator's entire
|
|
15230
|
+
# organization, provide only `OrganizationId`.
|
|
15231
|
+
#
|
|
15232
|
+
# The organization ID and organizational unit must belong to the
|
|
15233
|
+
# delegated administrator's own organization. Each request must use one
|
|
15234
|
+
# scoping approach: either scope to the entire organization by providing
|
|
15235
|
+
# an `AwsOrganizationScope` entry with only `OrganizationId`, or scope
|
|
15236
|
+
# to specific organizational units by providing `AwsOrganizationScope`
|
|
15237
|
+
# entries with `OrganizationalUnitId`. You can't combine both
|
|
15238
|
+
# approaches in the same request.
|
|
15239
|
+
#
|
|
15240
|
+
# @!attribute [rw] organization_id
|
|
15241
|
+
# The unique identifier (ID) of the organization (for example,
|
|
15242
|
+
# `o-abcd1234567890`). The organization must be the delegated
|
|
15243
|
+
# administrator's own organization. If you omit this value and
|
|
15244
|
+
# provide `OrganizationalUnitId`, Security Hub uses the caller's
|
|
15245
|
+
# organization ID.
|
|
15246
|
+
# @return [String]
|
|
15247
|
+
#
|
|
15248
|
+
# @!attribute [rw] organizational_unit_id
|
|
15249
|
+
# The unique identifier (ID) of the organizational unit (OU) (for
|
|
15250
|
+
# example, `ou-ab12-cd345678`). The OU must exist within the delegated
|
|
15251
|
+
# administrator's own organization. When specified, the results
|
|
15252
|
+
# include only data from accounts in this OU.
|
|
15253
|
+
# @return [String]
|
|
15254
|
+
#
|
|
15255
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsOrganizationScope AWS API Documentation
|
|
15256
|
+
#
|
|
15257
|
+
class AwsOrganizationScope < Struct.new(
|
|
15258
|
+
:organization_id,
|
|
15259
|
+
:organizational_unit_id)
|
|
15260
|
+
SENSITIVE = []
|
|
15261
|
+
include Aws::Structure
|
|
15262
|
+
end
|
|
15263
|
+
|
|
15223
15264
|
# An IAM role that is associated with the Amazon RDS DB cluster.
|
|
15224
15265
|
#
|
|
15225
15266
|
# @!attribute [rw] role_arn
|
|
@@ -22131,14 +22172,14 @@ module Aws::SecurityHub
|
|
|
22131
22172
|
# @!attribute [rw] severity_id
|
|
22132
22173
|
# The updated value for the normalized severity identifier. The
|
|
22133
22174
|
# severity ID is an integer with the allowed enum values \[0, 1, 2, 3,
|
|
22134
|
-
# 4, 5, 99\]. When customer provides the updated severity ID, the
|
|
22175
|
+
# 4, 5, 6, 99\]. When customer provides the updated severity ID, the
|
|
22135
22176
|
# string sibling severity will automatically be updated in the
|
|
22136
22177
|
# finding.
|
|
22137
22178
|
# @return [Integer]
|
|
22138
22179
|
#
|
|
22139
22180
|
# @!attribute [rw] status_id
|
|
22140
22181
|
# The updated value for the normalized status identifier. The status
|
|
22141
|
-
# ID is an integer with the allowed enum values \[0, 1, 2, 3, 4, 5,
|
|
22182
|
+
# ID is an integer with the allowed enum values \[0, 1, 2, 3, 4, 5,
|
|
22142
22183
|
# 99\]. When customer provides the updated status ID, the string
|
|
22143
22184
|
# sibling status will automatically be updated in the finding.
|
|
22144
22185
|
# @return [Integer]
|
|
@@ -23714,11 +23755,20 @@ module Aws::SecurityHub
|
|
|
23714
23755
|
# A date range unit for the date filter.
|
|
23715
23756
|
# @return [String]
|
|
23716
23757
|
#
|
|
23758
|
+
# @!attribute [rw] comparison
|
|
23759
|
+
# The condition to apply to a date range filter. If you specify
|
|
23760
|
+
# `WITHIN`, Security Hub filters for dates within the specified date
|
|
23761
|
+
# range. If you specify `OLDER_THAN`, Security Hub filters for dates
|
|
23762
|
+
# before the specified date range. If you don't specify a value, the
|
|
23763
|
+
# default is `WITHIN`.
|
|
23764
|
+
# @return [String]
|
|
23765
|
+
#
|
|
23717
23766
|
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DateRange AWS API Documentation
|
|
23718
23767
|
#
|
|
23719
23768
|
class DateRange < Struct.new(
|
|
23720
23769
|
:value,
|
|
23721
|
-
:unit
|
|
23770
|
+
:unit,
|
|
23771
|
+
:comparison)
|
|
23722
23772
|
SENSITIVE = []
|
|
23723
23773
|
include Aws::Structure
|
|
23724
23774
|
end
|
|
@@ -25007,6 +25057,24 @@ module Aws::SecurityHub
|
|
|
25007
25057
|
include Aws::Structure
|
|
25008
25058
|
end
|
|
25009
25059
|
|
|
25060
|
+
# Defines the data boundary for a findings query. Scopes determine which
|
|
25061
|
+
# organizational units or organizations to retrieve data from.
|
|
25062
|
+
#
|
|
25063
|
+
# @!attribute [rw] aws_organizations
|
|
25064
|
+
# A list of Organizations scopes to include in the query results. Each
|
|
25065
|
+
# entry in the list specifies an organization or organizational unit
|
|
25066
|
+
# to include for the delegated administrator's account. If the list
|
|
25067
|
+
# specifies multiple entries, the entries are combined using OR logic.
|
|
25068
|
+
# @return [Array<Types::AwsOrganizationScope>]
|
|
25069
|
+
#
|
|
25070
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/FindingScopes AWS API Documentation
|
|
25071
|
+
#
|
|
25072
|
+
class FindingScopes < Struct.new(
|
|
25073
|
+
:aws_organizations)
|
|
25074
|
+
SENSITIVE = []
|
|
25075
|
+
include Aws::Structure
|
|
25076
|
+
end
|
|
25077
|
+
|
|
25010
25078
|
# A filter structure that contains a logical combination of string
|
|
25011
25079
|
# filters and nested composite filters for findings trend data.
|
|
25012
25080
|
#
|
|
@@ -25171,6 +25239,23 @@ module Aws::SecurityHub
|
|
|
25171
25239
|
include Aws::Structure
|
|
25172
25240
|
end
|
|
25173
25241
|
|
|
25242
|
+
# @!attribute [rw] metadata_uid
|
|
25243
|
+
# The unique identifier (ID) of Security Hub OCSF findings found under
|
|
25244
|
+
# the `metadata.uid` field of the finding.
|
|
25245
|
+
# @return [String]
|
|
25246
|
+
#
|
|
25247
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GenerateRecommendedPolicyV2Request AWS API Documentation
|
|
25248
|
+
#
|
|
25249
|
+
class GenerateRecommendedPolicyV2Request < Struct.new(
|
|
25250
|
+
:metadata_uid)
|
|
25251
|
+
SENSITIVE = []
|
|
25252
|
+
include Aws::Structure
|
|
25253
|
+
end
|
|
25254
|
+
|
|
25255
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GenerateRecommendedPolicyV2Response AWS API Documentation
|
|
25256
|
+
#
|
|
25257
|
+
class GenerateRecommendedPolicyV2Response < Aws::EmptyStructure; end
|
|
25258
|
+
|
|
25174
25259
|
# Provides metadata for the Amazon CodeGuru detector associated with a
|
|
25175
25260
|
# finding. This field pertains to findings that relate to Lambda
|
|
25176
25261
|
# functions. Amazon Inspector identifies policy violations and
|
|
@@ -25737,6 +25822,22 @@ module Aws::SecurityHub
|
|
|
25737
25822
|
# in a single call.
|
|
25738
25823
|
# @return [Array<Types::GroupByRule>]
|
|
25739
25824
|
#
|
|
25825
|
+
# @!attribute [rw] scopes
|
|
25826
|
+
# Limits the results to findings from specific organizational units or
|
|
25827
|
+
# from the delegated administrator's organization. Only the delegated
|
|
25828
|
+
# administrator account can use this parameter. Other accounts receive
|
|
25829
|
+
# an `AccessDeniedException`.
|
|
25830
|
+
#
|
|
25831
|
+
# This parameter is optional. If you omit it, the delegated
|
|
25832
|
+
# administrator sees statistics from all accounts across the entire
|
|
25833
|
+
# organization. Other accounts see only statistics for their own
|
|
25834
|
+
# findings.
|
|
25835
|
+
#
|
|
25836
|
+
# You can specify up to 10 entries in `Scopes.AwsOrganizations`. If
|
|
25837
|
+
# multiple entries are specified, the entries are combined using OR
|
|
25838
|
+
# logic.
|
|
25839
|
+
# @return [Types::FindingScopes]
|
|
25840
|
+
#
|
|
25740
25841
|
# @!attribute [rw] sort_order
|
|
25741
25842
|
# Orders the aggregation count in descending or ascending order.
|
|
25742
25843
|
# Descending order is the default.
|
|
@@ -25750,6 +25851,7 @@ module Aws::SecurityHub
|
|
|
25750
25851
|
#
|
|
25751
25852
|
class GetFindingStatisticsV2Request < Struct.new(
|
|
25752
25853
|
:group_by_rules,
|
|
25854
|
+
:scopes,
|
|
25753
25855
|
:sort_order,
|
|
25754
25856
|
:max_statistic_results)
|
|
25755
25857
|
SENSITIVE = []
|
|
@@ -25893,6 +25995,21 @@ module Aws::SecurityHub
|
|
|
25893
25995
|
# up to 20 filters.
|
|
25894
25996
|
# @return [Types::OcsfFindingFilters]
|
|
25895
25997
|
#
|
|
25998
|
+
# @!attribute [rw] scopes
|
|
25999
|
+
# Limits the results to findings from specific organizational units or
|
|
26000
|
+
# from the delegated administrator's organization. Only the delegated
|
|
26001
|
+
# administrator account can use this parameter. Other accounts receive
|
|
26002
|
+
# an `AccessDeniedException`.
|
|
26003
|
+
#
|
|
26004
|
+
# This parameter is optional. If you omit it, the delegated
|
|
26005
|
+
# administrator sees findings from all accounts across the entire
|
|
26006
|
+
# organization. Other accounts see only their own findings.
|
|
26007
|
+
#
|
|
26008
|
+
# You can specify up to 10 entries in `Scopes.AwsOrganizations`. If
|
|
26009
|
+
# multiple entries are specified, the entries are combined using OR
|
|
26010
|
+
# logic.
|
|
26011
|
+
# @return [Types::FindingScopes]
|
|
26012
|
+
#
|
|
25896
26013
|
# @!attribute [rw] sort_criteria
|
|
25897
26014
|
# The finding attributes used to sort the list of returned findings.
|
|
25898
26015
|
# @return [Array<Types::SortCriterion>]
|
|
@@ -25912,6 +26029,7 @@ module Aws::SecurityHub
|
|
|
25912
26029
|
#
|
|
25913
26030
|
class GetFindingsV2Request < Struct.new(
|
|
25914
26031
|
:filters,
|
|
26032
|
+
:scopes,
|
|
25915
26033
|
:sort_criteria,
|
|
25916
26034
|
:next_token,
|
|
25917
26035
|
:max_results)
|
|
@@ -26078,11 +26196,91 @@ module Aws::SecurityHub
|
|
|
26078
26196
|
include Aws::Structure
|
|
26079
26197
|
end
|
|
26080
26198
|
|
|
26199
|
+
# @!attribute [rw] metadata_uid
|
|
26200
|
+
# The unique identifier (ID) of Security Hub OCSF findings found under
|
|
26201
|
+
# the `metadata.uid` field of the finding.
|
|
26202
|
+
# @return [String]
|
|
26203
|
+
#
|
|
26204
|
+
# @!attribute [rw] next_token
|
|
26205
|
+
# The token used to paginate the `RecommendationSteps` list returned.
|
|
26206
|
+
# On your first call to `GetRecommendedPolicyV2`, omit this parameter
|
|
26207
|
+
# or set it to `NULL`. For subsequent calls, use the `NextToken` value
|
|
26208
|
+
# returned in the previous response to retrieve the next page of
|
|
26209
|
+
# results.
|
|
26210
|
+
# @return [String]
|
|
26211
|
+
#
|
|
26212
|
+
# @!attribute [rw] max_results
|
|
26213
|
+
# The maximum number of recommendation steps to return.
|
|
26214
|
+
# @return [Integer]
|
|
26215
|
+
#
|
|
26216
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetRecommendedPolicyV2Request AWS API Documentation
|
|
26217
|
+
#
|
|
26218
|
+
class GetRecommendedPolicyV2Request < Struct.new(
|
|
26219
|
+
:metadata_uid,
|
|
26220
|
+
:next_token,
|
|
26221
|
+
:max_results)
|
|
26222
|
+
SENSITIVE = []
|
|
26223
|
+
include Aws::Structure
|
|
26224
|
+
end
|
|
26225
|
+
|
|
26226
|
+
# @!attribute [rw] next_token
|
|
26227
|
+
# The pagination token to use to request the next page of results.
|
|
26228
|
+
# @return [String]
|
|
26229
|
+
#
|
|
26230
|
+
# @!attribute [rw] recommendation_type
|
|
26231
|
+
# The type of recommendation for the finding.
|
|
26232
|
+
# @return [String]
|
|
26233
|
+
#
|
|
26234
|
+
# @!attribute [rw] recommendation_steps
|
|
26235
|
+
# The recommended steps to take to resolve the finding.
|
|
26236
|
+
# @return [Array<Types::RecommendationStep>]
|
|
26237
|
+
#
|
|
26238
|
+
# @!attribute [rw] error
|
|
26239
|
+
# Detailed information for a `FAILED` retrieval status.
|
|
26240
|
+
# @return [Types::RecommendationError]
|
|
26241
|
+
#
|
|
26242
|
+
# @!attribute [rw] status
|
|
26243
|
+
# The current status of the recommended policy retrieval.
|
|
26244
|
+
# @return [String]
|
|
26245
|
+
#
|
|
26246
|
+
# @!attribute [rw] resource_arn
|
|
26247
|
+
# The ARN of the resource of the finding.
|
|
26248
|
+
# @return [String]
|
|
26249
|
+
#
|
|
26250
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetRecommendedPolicyV2Response AWS API Documentation
|
|
26251
|
+
#
|
|
26252
|
+
class GetRecommendedPolicyV2Response < Struct.new(
|
|
26253
|
+
:next_token,
|
|
26254
|
+
:recommendation_type,
|
|
26255
|
+
:recommendation_steps,
|
|
26256
|
+
:error,
|
|
26257
|
+
:status,
|
|
26258
|
+
:resource_arn)
|
|
26259
|
+
SENSITIVE = []
|
|
26260
|
+
include Aws::Structure
|
|
26261
|
+
end
|
|
26262
|
+
|
|
26081
26263
|
# @!attribute [rw] group_by_rules
|
|
26082
26264
|
# How resource statistics should be aggregated and organized in the
|
|
26083
26265
|
# response.
|
|
26084
26266
|
# @return [Array<Types::ResourceGroupByRule>]
|
|
26085
26267
|
#
|
|
26268
|
+
# @!attribute [rw] scopes
|
|
26269
|
+
# Limits the results to resources from specific organizational units
|
|
26270
|
+
# or from the delegated administrator's organization. Only the
|
|
26271
|
+
# delegated administrator account can use this parameter. Other
|
|
26272
|
+
# accounts receive an `AccessDeniedException`.
|
|
26273
|
+
#
|
|
26274
|
+
# This parameter is optional. If you omit it, the delegated
|
|
26275
|
+
# administrator sees statistics from all accounts across the entire
|
|
26276
|
+
# organization. Other accounts see only statistics for their own
|
|
26277
|
+
# resources.
|
|
26278
|
+
#
|
|
26279
|
+
# You can specify up to 10 entries in `Scopes.AwsOrganizations`. If
|
|
26280
|
+
# multiple entries are specified, the entries are combined using OR
|
|
26281
|
+
# logic.
|
|
26282
|
+
# @return [Types::ResourceScopes]
|
|
26283
|
+
#
|
|
26086
26284
|
# @!attribute [rw] sort_order
|
|
26087
26285
|
# Sorts aggregated statistics.
|
|
26088
26286
|
# @return [String]
|
|
@@ -26095,6 +26293,7 @@ module Aws::SecurityHub
|
|
|
26095
26293
|
#
|
|
26096
26294
|
class GetResourcesStatisticsV2Request < Struct.new(
|
|
26097
26295
|
:group_by_rules,
|
|
26296
|
+
:scopes,
|
|
26098
26297
|
:sort_order,
|
|
26099
26298
|
:max_statistic_results)
|
|
26100
26299
|
SENSITIVE = []
|
|
@@ -26179,8 +26378,23 @@ module Aws::SecurityHub
|
|
|
26179
26378
|
# Filters resources based on a set of criteria.
|
|
26180
26379
|
# @return [Types::ResourcesFilters]
|
|
26181
26380
|
#
|
|
26381
|
+
# @!attribute [rw] scopes
|
|
26382
|
+
# Limits the results to resources from specific organizational units
|
|
26383
|
+
# or from the delegated administrator's organization. Only the
|
|
26384
|
+
# delegated administrator account can use this parameter. Other
|
|
26385
|
+
# accounts receive an `AccessDeniedException`.
|
|
26386
|
+
#
|
|
26387
|
+
# This parameter is optional. If you omit it, the delegated
|
|
26388
|
+
# administrator sees resources from all accounts across the entire
|
|
26389
|
+
# organization. Other accounts see only their own resources.
|
|
26390
|
+
#
|
|
26391
|
+
# You can specify up to 10 entries in `Scopes.AwsOrganizations`. If
|
|
26392
|
+
# multiple entries are specified, the entries are combined using OR
|
|
26393
|
+
# logic.
|
|
26394
|
+
# @return [Types::ResourceScopes]
|
|
26395
|
+
#
|
|
26182
26396
|
# @!attribute [rw] sort_criteria
|
|
26183
|
-
# The
|
|
26397
|
+
# The resource attributes used to sort the list of returned resources.
|
|
26184
26398
|
# @return [Array<Types::SortCriterion>]
|
|
26185
26399
|
#
|
|
26186
26400
|
# @!attribute [rw] next_token
|
|
@@ -26198,6 +26412,7 @@ module Aws::SecurityHub
|
|
|
26198
26412
|
#
|
|
26199
26413
|
class GetResourcesV2Request < Struct.new(
|
|
26200
26414
|
:filters,
|
|
26415
|
+
:scopes,
|
|
26201
26416
|
:sort_criteria,
|
|
26202
26417
|
:next_token,
|
|
26203
26418
|
:max_results)
|
|
@@ -26206,7 +26421,7 @@ module Aws::SecurityHub
|
|
|
26206
26421
|
end
|
|
26207
26422
|
|
|
26208
26423
|
# @!attribute [rw] resources
|
|
26209
|
-
#
|
|
26424
|
+
# An array of resources returned by the operation.
|
|
26210
26425
|
# @return [Array<Types::ResourceResult>]
|
|
26211
26426
|
#
|
|
26212
26427
|
# @!attribute [rw] next_token
|
|
@@ -28425,6 +28640,42 @@ module Aws::SecurityHub
|
|
|
28425
28640
|
include Aws::Structure
|
|
28426
28641
|
end
|
|
28427
28642
|
|
|
28643
|
+
# The request failed because one or more organizations specified in the
|
|
28644
|
+
# request don't exist or don't belong to the caller's organization.
|
|
28645
|
+
#
|
|
28646
|
+
# @!attribute [rw] message
|
|
28647
|
+
# @return [String]
|
|
28648
|
+
#
|
|
28649
|
+
# @!attribute [rw] code
|
|
28650
|
+
# @return [String]
|
|
28651
|
+
#
|
|
28652
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/OrganizationNotFoundException AWS API Documentation
|
|
28653
|
+
#
|
|
28654
|
+
class OrganizationNotFoundException < Struct.new(
|
|
28655
|
+
:message,
|
|
28656
|
+
:code)
|
|
28657
|
+
SENSITIVE = []
|
|
28658
|
+
include Aws::Structure
|
|
28659
|
+
end
|
|
28660
|
+
|
|
28661
|
+
# The request failed because one or more organizational units specified
|
|
28662
|
+
# in the request don't exist within the caller's organization.
|
|
28663
|
+
#
|
|
28664
|
+
# @!attribute [rw] message
|
|
28665
|
+
# @return [String]
|
|
28666
|
+
#
|
|
28667
|
+
# @!attribute [rw] code
|
|
28668
|
+
# @return [String]
|
|
28669
|
+
#
|
|
28670
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/OrganizationalUnitNotFoundException AWS API Documentation
|
|
28671
|
+
#
|
|
28672
|
+
class OrganizationalUnitNotFoundException < Struct.new(
|
|
28673
|
+
:message,
|
|
28674
|
+
:code)
|
|
28675
|
+
SENSITIVE = []
|
|
28676
|
+
include Aws::Structure
|
|
28677
|
+
end
|
|
28678
|
+
|
|
28428
28679
|
# An occurrence of sensitive data in an Adobe Portable Document Format
|
|
28429
28680
|
# (PDF) file.
|
|
28430
28681
|
#
|
|
@@ -28956,8 +29207,8 @@ module Aws::SecurityHub
|
|
|
28956
29207
|
# @return [String]
|
|
28957
29208
|
#
|
|
28958
29209
|
# @!attribute [rw] marketplace_product_id
|
|
28959
|
-
# The identifier for the
|
|
28960
|
-
# integration.
|
|
29210
|
+
# The identifier for the Amazon Web Services Marketplace product
|
|
29211
|
+
# associated with this integration.
|
|
28961
29212
|
# @return [String]
|
|
28962
29213
|
#
|
|
28963
29214
|
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ProductV2 AWS API Documentation
|
|
@@ -29148,6 +29399,50 @@ module Aws::SecurityHub
|
|
|
29148
29399
|
include Aws::Structure
|
|
29149
29400
|
end
|
|
29150
29401
|
|
|
29402
|
+
# Contains information about the reason that the retrieval of a
|
|
29403
|
+
# recommended policy for a finding failed.
|
|
29404
|
+
#
|
|
29405
|
+
# @!attribute [rw] code
|
|
29406
|
+
# The error code for a failed retrieval of a recommended policy for a
|
|
29407
|
+
# finding.
|
|
29408
|
+
# @return [String]
|
|
29409
|
+
#
|
|
29410
|
+
# @!attribute [rw] message
|
|
29411
|
+
# The error message for a failed retrieval of a recommended policy for
|
|
29412
|
+
# a finding.
|
|
29413
|
+
# @return [String]
|
|
29414
|
+
#
|
|
29415
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/RecommendationError AWS API Documentation
|
|
29416
|
+
#
|
|
29417
|
+
class RecommendationError < Struct.new(
|
|
29418
|
+
:code,
|
|
29419
|
+
:message)
|
|
29420
|
+
SENSITIVE = []
|
|
29421
|
+
include Aws::Structure
|
|
29422
|
+
end
|
|
29423
|
+
|
|
29424
|
+
# Contains information about a recommended step to remediate a Security
|
|
29425
|
+
# Hub finding.
|
|
29426
|
+
#
|
|
29427
|
+
# @note RecommendationStep is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of RecommendationStep corresponding to the set member.
|
|
29428
|
+
#
|
|
29429
|
+
# @!attribute [rw] unused_permissions
|
|
29430
|
+
# A recommended step to remediate an unused permissions finding.
|
|
29431
|
+
# @return [Types::UnusedPermissionsRecommendationStep]
|
|
29432
|
+
#
|
|
29433
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/RecommendationStep AWS API Documentation
|
|
29434
|
+
#
|
|
29435
|
+
class RecommendationStep < Struct.new(
|
|
29436
|
+
:unused_permissions,
|
|
29437
|
+
:unknown)
|
|
29438
|
+
SENSITIVE = []
|
|
29439
|
+
include Aws::Structure
|
|
29440
|
+
include Aws::Structure::Union
|
|
29441
|
+
|
|
29442
|
+
class UnusedPermissions < RecommendationStep; end
|
|
29443
|
+
class Unknown < RecommendationStep; end
|
|
29444
|
+
end
|
|
29445
|
+
|
|
29151
29446
|
# An occurrence of sensitive data in an Apache Avro object container or
|
|
29152
29447
|
# an Apache Parquet file.
|
|
29153
29448
|
#
|
|
@@ -30081,6 +30376,24 @@ module Aws::SecurityHub
|
|
|
30081
30376
|
include Aws::Structure
|
|
30082
30377
|
end
|
|
30083
30378
|
|
|
30379
|
+
# Defines the data boundary for a resources query. Scopes determine
|
|
30380
|
+
# which organizational units or organizations to retrieve data from.
|
|
30381
|
+
#
|
|
30382
|
+
# @!attribute [rw] aws_organizations
|
|
30383
|
+
# A list of Organizations scopes to include in the query results. Each
|
|
30384
|
+
# entry in the list specifies an organization or organizational unit
|
|
30385
|
+
# to include for the delegated administrator's account. If the list
|
|
30386
|
+
# specifies multiple entries, the entries are combined using OR logic.
|
|
30387
|
+
# @return [Array<Types::AwsOrganizationScope>]
|
|
30388
|
+
#
|
|
30389
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ResourceScopes AWS API Documentation
|
|
30390
|
+
#
|
|
30391
|
+
class ResourceScopes < Struct.new(
|
|
30392
|
+
:aws_organizations)
|
|
30393
|
+
SENSITIVE = []
|
|
30394
|
+
include Aws::Structure
|
|
30395
|
+
end
|
|
30396
|
+
|
|
30084
30397
|
# A comprehensive distribution of security findings by severity level
|
|
30085
30398
|
# for Amazon Web Services resources.
|
|
30086
30399
|
#
|
|
@@ -32561,10 +32874,11 @@ module Aws::SecurityHub
|
|
|
32561
32874
|
#
|
|
32562
32875
|
# * `ResourceType NOT_EQUALS AwsEc2NetworkInterface`
|
|
32563
32876
|
#
|
|
32564
|
-
# `CONTAINS`
|
|
32565
|
-
#
|
|
32566
|
-
# `
|
|
32567
|
-
# `
|
|
32877
|
+
# The `CONTAINS` operator works with automation rules V1 and V2. The
|
|
32878
|
+
# `NOT_CONTAINS` operator works only with automation rules V1. The
|
|
32879
|
+
# `CONTAINS_WORD` operator works only in the `GetFindingsV2`,
|
|
32880
|
+
# `GetFindingStatisticsV2`, `GetResourcesV2`, and
|
|
32881
|
+
# `GetResourcesStatisticsV2` APIs. For more information, see
|
|
32568
32882
|
# [Automation rules][1] in the *Security Hub CSPM User Guide*.
|
|
32569
32883
|
#
|
|
32570
32884
|
#
|
|
@@ -33007,6 +33321,46 @@ module Aws::SecurityHub
|
|
|
33007
33321
|
#
|
|
33008
33322
|
class UntagResourceResponse < Aws::EmptyStructure; end
|
|
33009
33323
|
|
|
33324
|
+
# Contains information about the action to take for a policy in an
|
|
33325
|
+
# unused permissions finding.
|
|
33326
|
+
#
|
|
33327
|
+
# @!attribute [rw] recommended_action
|
|
33328
|
+
# A recommendation of whether to create or detach a policy for an
|
|
33329
|
+
# unused permissions finding.
|
|
33330
|
+
# @return [String]
|
|
33331
|
+
#
|
|
33332
|
+
# @!attribute [rw] existing_policy
|
|
33333
|
+
# The contents of the existing policy identified by `ExistingPolicyId`
|
|
33334
|
+
# which needs to be replaced, when the `RecommendedAction` is
|
|
33335
|
+
# `CREATE_POLICY`.
|
|
33336
|
+
# @return [String]
|
|
33337
|
+
#
|
|
33338
|
+
# @!attribute [rw] existing_policy_id
|
|
33339
|
+
# The ID of an existing policy to be replaced or detached.
|
|
33340
|
+
# @return [String]
|
|
33341
|
+
#
|
|
33342
|
+
# @!attribute [rw] policy_updated_at
|
|
33343
|
+
# The time at which the existing policy for the unused permissions
|
|
33344
|
+
# finding was last updated.
|
|
33345
|
+
# @return [Time]
|
|
33346
|
+
#
|
|
33347
|
+
# @!attribute [rw] recommended_policy
|
|
33348
|
+
# The contents of the least-privileged recommended replacement for
|
|
33349
|
+
# `ExistingPolicyId`, when the `RecommendedAction` is `CREATE_POLICY`.
|
|
33350
|
+
# @return [String]
|
|
33351
|
+
#
|
|
33352
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UnusedPermissionsRecommendationStep AWS API Documentation
|
|
33353
|
+
#
|
|
33354
|
+
class UnusedPermissionsRecommendationStep < Struct.new(
|
|
33355
|
+
:recommended_action,
|
|
33356
|
+
:existing_policy,
|
|
33357
|
+
:existing_policy_id,
|
|
33358
|
+
:policy_updated_at,
|
|
33359
|
+
:recommended_policy)
|
|
33360
|
+
SENSITIVE = []
|
|
33361
|
+
include Aws::Structure
|
|
33362
|
+
end
|
|
33363
|
+
|
|
33010
33364
|
# @!attribute [rw] action_target_arn
|
|
33011
33365
|
# The ARN of the custom action target to update.
|
|
33012
33366
|
# @return [String]
|
data/lib/aws-sdk-securityhub.rb
CHANGED