aws-sdk-guardduty 1.98.0 → 1.99.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-guardduty/client.rb +96 -48
- data/lib/aws-sdk-guardduty/client_api.rb +61 -2
- data/lib/aws-sdk-guardduty/endpoints.rb +74 -296
- data/lib/aws-sdk-guardduty/plugins/endpoints.rb +10 -1
- data/lib/aws-sdk-guardduty/types.rb +292 -49
- data/lib/aws-sdk-guardduty.rb +1 -1
- data/sig/client.rbs +6 -2
- data/sig/types.rbs +47 -0
- metadata +4 -4
@@ -40,11 +40,20 @@ module Aws::GuardDuty
|
|
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
|
@@ -196,6 +196,32 @@ module Aws::GuardDuty
|
|
196
196
|
include Aws::Structure
|
197
197
|
end
|
198
198
|
|
199
|
+
# Represents a list of map of accounts with the number of findings
|
200
|
+
# associated with each account.
|
201
|
+
#
|
202
|
+
# @!attribute [rw] account_id
|
203
|
+
# The ID of the Amazon Web Services account.
|
204
|
+
# @return [String]
|
205
|
+
#
|
206
|
+
# @!attribute [rw] last_generated_at
|
207
|
+
# The timestamp at which the finding for this account was last
|
208
|
+
# generated.
|
209
|
+
# @return [Time]
|
210
|
+
#
|
211
|
+
# @!attribute [rw] total_findings
|
212
|
+
# The total number of findings associated with an account.
|
213
|
+
# @return [Integer]
|
214
|
+
#
|
215
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/AccountStatistics AWS API Documentation
|
216
|
+
#
|
217
|
+
class AccountStatistics < Struct.new(
|
218
|
+
:account_id,
|
219
|
+
:last_generated_at,
|
220
|
+
:total_findings)
|
221
|
+
SENSITIVE = []
|
222
|
+
include Aws::Structure
|
223
|
+
end
|
224
|
+
|
199
225
|
# Contains information about actions.
|
200
226
|
#
|
201
227
|
# @!attribute [rw] action_type
|
@@ -1181,8 +1207,8 @@ module Aws::GuardDuty
|
|
1181
1207
|
end
|
1182
1208
|
|
1183
1209
|
# @!attribute [rw] detector_id
|
1184
|
-
# The ID
|
1185
|
-
# want to create a filter
|
1210
|
+
# The detector ID associated with the GuardDuty account for which you
|
1211
|
+
# want to create a filter.
|
1186
1212
|
# @return [String]
|
1187
1213
|
#
|
1188
1214
|
# @!attribute [rw] name
|
@@ -1467,8 +1493,8 @@ module Aws::GuardDuty
|
|
1467
1493
|
end
|
1468
1494
|
|
1469
1495
|
# @!attribute [rw] detector_id
|
1470
|
-
# The unique ID of the detector of the GuardDuty account
|
1471
|
-
# to create an IPSet
|
1496
|
+
# The unique ID of the detector of the GuardDuty account for which you
|
1497
|
+
# want to create an IPSet.
|
1472
1498
|
# @return [String]
|
1473
1499
|
#
|
1474
1500
|
# @!attribute [rw] name
|
@@ -1536,8 +1562,8 @@ module Aws::GuardDuty
|
|
1536
1562
|
# @return [String]
|
1537
1563
|
#
|
1538
1564
|
# @!attribute [rw] role
|
1539
|
-
#
|
1540
|
-
# associated protected resource.
|
1565
|
+
# Amazon Resource Name (ARN) of the IAM role that has the permissions
|
1566
|
+
# to scan and add tags to the associated protected resource.
|
1541
1567
|
# @return [String]
|
1542
1568
|
#
|
1543
1569
|
# @!attribute [rw] protected_resource
|
@@ -1581,8 +1607,8 @@ module Aws::GuardDuty
|
|
1581
1607
|
end
|
1582
1608
|
|
1583
1609
|
# @!attribute [rw] detector_id
|
1584
|
-
# The unique ID of the detector of the GuardDuty account
|
1585
|
-
# to associate member accounts
|
1610
|
+
# The unique ID of the detector of the GuardDuty account for which you
|
1611
|
+
# want to associate member accounts.
|
1586
1612
|
# @return [String]
|
1587
1613
|
#
|
1588
1614
|
# @!attribute [rw] account_details
|
@@ -1695,7 +1721,7 @@ module Aws::GuardDuty
|
|
1695
1721
|
end
|
1696
1722
|
|
1697
1723
|
# @!attribute [rw] detector_id
|
1698
|
-
# The ID of the detector to create sample findings
|
1724
|
+
# The ID of the detector for which you need to create sample findings.
|
1699
1725
|
# @return [String]
|
1700
1726
|
#
|
1701
1727
|
# @!attribute [rw] finding_types
|
@@ -1716,8 +1742,8 @@ module Aws::GuardDuty
|
|
1716
1742
|
class CreateSampleFindingsResponse < Aws::EmptyStructure; end
|
1717
1743
|
|
1718
1744
|
# @!attribute [rw] detector_id
|
1719
|
-
# The unique ID of the detector of the GuardDuty account
|
1720
|
-
# to create a
|
1745
|
+
# The unique ID of the detector of the GuardDuty account for which you
|
1746
|
+
# want to create a `ThreatIntelSet`.
|
1721
1747
|
# @return [String]
|
1722
1748
|
#
|
1723
1749
|
# @!attribute [rw] name
|
@@ -1916,6 +1942,42 @@ module Aws::GuardDuty
|
|
1916
1942
|
include Aws::Structure
|
1917
1943
|
end
|
1918
1944
|
|
1945
|
+
# Represents list a map of dates with a count of total findings
|
1946
|
+
# generated on each date.
|
1947
|
+
#
|
1948
|
+
# @!attribute [rw] date
|
1949
|
+
# The timestamp when the total findings count is observed.
|
1950
|
+
#
|
1951
|
+
# For example, `Date` would look like `"2024-09-05T17:00:00-07:00"`
|
1952
|
+
# whereas `LastGeneratedAt` would look like
|
1953
|
+
# 2024-09-05T17:12:29-07:00".
|
1954
|
+
# @return [Time]
|
1955
|
+
#
|
1956
|
+
# @!attribute [rw] last_generated_at
|
1957
|
+
# The timestamp at which the last finding in the findings count, was
|
1958
|
+
# generated.
|
1959
|
+
# @return [Time]
|
1960
|
+
#
|
1961
|
+
# @!attribute [rw] severity
|
1962
|
+
# The severity of the findings generated on each date.
|
1963
|
+
# @return [Float]
|
1964
|
+
#
|
1965
|
+
# @!attribute [rw] total_findings
|
1966
|
+
# The total number of findings that were generated per severity level
|
1967
|
+
# on each date.
|
1968
|
+
# @return [Integer]
|
1969
|
+
#
|
1970
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DateStatistics AWS API Documentation
|
1971
|
+
#
|
1972
|
+
class DateStatistics < Struct.new(
|
1973
|
+
:date,
|
1974
|
+
:last_generated_at,
|
1975
|
+
:severity,
|
1976
|
+
:total_findings)
|
1977
|
+
SENSITIVE = []
|
1978
|
+
include Aws::Structure
|
1979
|
+
end
|
1980
|
+
|
1919
1981
|
# @!attribute [rw] account_ids
|
1920
1982
|
# A list of account IDs of the Amazon Web Services accounts that sent
|
1921
1983
|
# invitations to the current member account that you want to decline
|
@@ -1985,7 +2047,7 @@ module Aws::GuardDuty
|
|
1985
2047
|
class DeleteDetectorResponse < Aws::EmptyStructure; end
|
1986
2048
|
|
1987
2049
|
# @!attribute [rw] detector_id
|
1988
|
-
# The unique ID of the detector that
|
2050
|
+
# The unique ID of the detector that is associated with the filter.
|
1989
2051
|
# @return [String]
|
1990
2052
|
#
|
1991
2053
|
# @!attribute [rw] filter_name
|
@@ -2120,8 +2182,8 @@ module Aws::GuardDuty
|
|
2120
2182
|
class DeletePublishingDestinationResponse < Aws::EmptyStructure; end
|
2121
2183
|
|
2122
2184
|
# @!attribute [rw] detector_id
|
2123
|
-
# The unique ID of the detector that
|
2124
|
-
#
|
2185
|
+
# The unique ID of the detector that is associated with the
|
2186
|
+
# threatIntelSet.
|
2125
2187
|
# @return [String]
|
2126
2188
|
#
|
2127
2189
|
# @!attribute [rw] threat_intel_set_id
|
@@ -2204,8 +2266,8 @@ module Aws::GuardDuty
|
|
2204
2266
|
end
|
2205
2267
|
|
2206
2268
|
# @!attribute [rw] detector_id
|
2207
|
-
# The ID of the
|
2208
|
-
#
|
2269
|
+
# The detector ID of the delegated administrator for which you need to
|
2270
|
+
# retrieve the information.
|
2209
2271
|
# @return [String]
|
2210
2272
|
#
|
2211
2273
|
# @!attribute [rw] max_results
|
@@ -3142,14 +3204,77 @@ module Aws::GuardDuty
|
|
3142
3204
|
# Contains information about finding statistics.
|
3143
3205
|
#
|
3144
3206
|
# @!attribute [rw] count_by_severity
|
3145
|
-
# Represents a map of severity to count statistics for a set
|
3146
|
-
# findings.
|
3207
|
+
# Represents a list of map of severity to count statistics for a set
|
3208
|
+
# of findings.
|
3147
3209
|
# @return [Hash<String,Integer>]
|
3148
3210
|
#
|
3211
|
+
# @!attribute [rw] grouped_by_account
|
3212
|
+
# Represents a list of map of accounts with a findings count
|
3213
|
+
# associated with each account.
|
3214
|
+
# @return [Array<Types::AccountStatistics>]
|
3215
|
+
#
|
3216
|
+
# @!attribute [rw] grouped_by_date
|
3217
|
+
# Represents a list of map of dates with a count of total findings
|
3218
|
+
# generated on each date per severity level.
|
3219
|
+
# @return [Array<Types::DateStatistics>]
|
3220
|
+
#
|
3221
|
+
# @!attribute [rw] grouped_by_finding_type
|
3222
|
+
# Represents a list of map of finding types with a count of total
|
3223
|
+
# findings generated for each type.
|
3224
|
+
#
|
3225
|
+
# Based on the `orderBy` parameter, this request returns either the
|
3226
|
+
# most occurring finding types or the least occurring finding types.
|
3227
|
+
# If the `orderBy` parameter is `ASC`, this will represent the least
|
3228
|
+
# occurring finding types in your account; otherwise, this will
|
3229
|
+
# represent the most occurring finding types. The default value of
|
3230
|
+
# `orderBy` is `DESC`.
|
3231
|
+
# @return [Array<Types::FindingTypeStatistics>]
|
3232
|
+
#
|
3233
|
+
# @!attribute [rw] grouped_by_resource
|
3234
|
+
# Represents a list of map of top resources with a count of total
|
3235
|
+
# findings.
|
3236
|
+
# @return [Array<Types::ResourceStatistics>]
|
3237
|
+
#
|
3238
|
+
# @!attribute [rw] grouped_by_severity
|
3239
|
+
# Represents a list of map of total findings for each severity level.
|
3240
|
+
# @return [Array<Types::SeverityStatistics>]
|
3241
|
+
#
|
3149
3242
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/FindingStatistics AWS API Documentation
|
3150
3243
|
#
|
3151
3244
|
class FindingStatistics < Struct.new(
|
3152
|
-
:count_by_severity
|
3245
|
+
:count_by_severity,
|
3246
|
+
:grouped_by_account,
|
3247
|
+
:grouped_by_date,
|
3248
|
+
:grouped_by_finding_type,
|
3249
|
+
:grouped_by_resource,
|
3250
|
+
:grouped_by_severity)
|
3251
|
+
SENSITIVE = []
|
3252
|
+
include Aws::Structure
|
3253
|
+
end
|
3254
|
+
|
3255
|
+
# Information about each finding type associated with the
|
3256
|
+
# `groupedByFindingType` statistics.
|
3257
|
+
#
|
3258
|
+
# @!attribute [rw] finding_type
|
3259
|
+
# Name of the finding type.
|
3260
|
+
# @return [String]
|
3261
|
+
#
|
3262
|
+
# @!attribute [rw] last_generated_at
|
3263
|
+
# The timestamp at which this finding type was last generated in your
|
3264
|
+
# environment.
|
3265
|
+
# @return [Time]
|
3266
|
+
#
|
3267
|
+
# @!attribute [rw] total_findings
|
3268
|
+
# The total number of findings associated with generated for each
|
3269
|
+
# distinct finding type.
|
3270
|
+
# @return [Integer]
|
3271
|
+
#
|
3272
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/FindingTypeStatistics AWS API Documentation
|
3273
|
+
#
|
3274
|
+
class FindingTypeStatistics < Struct.new(
|
3275
|
+
:finding_type,
|
3276
|
+
:last_generated_at,
|
3277
|
+
:total_findings)
|
3153
3278
|
SENSITIVE = []
|
3154
3279
|
include Aws::Structure
|
3155
3280
|
end
|
@@ -3231,12 +3356,11 @@ module Aws::GuardDuty
|
|
3231
3356
|
end
|
3232
3357
|
|
3233
3358
|
# @!attribute [rw] detector_id
|
3234
|
-
# The unique ID of the GuardDuty detector
|
3235
|
-
# statistics.
|
3359
|
+
# The unique ID of the GuardDuty detector.
|
3236
3360
|
# @return [String]
|
3237
3361
|
#
|
3238
3362
|
# @!attribute [rw] filter_criteria
|
3239
|
-
# Represents the criteria used to filter the coverage statistics
|
3363
|
+
# Represents the criteria used to filter the coverage statistics.
|
3240
3364
|
# @return [Types::CoverageFilterCriteria]
|
3241
3365
|
#
|
3242
3366
|
# @!attribute [rw] statistics_type
|
@@ -3327,7 +3451,7 @@ module Aws::GuardDuty
|
|
3327
3451
|
end
|
3328
3452
|
|
3329
3453
|
# @!attribute [rw] detector_id
|
3330
|
-
# The unique ID of the detector that
|
3454
|
+
# The unique ID of the detector that is associated with this filter.
|
3331
3455
|
# @return [String]
|
3332
3456
|
#
|
3333
3457
|
# @!attribute [rw] filter_name
|
@@ -3420,8 +3544,8 @@ module Aws::GuardDuty
|
|
3420
3544
|
end
|
3421
3545
|
|
3422
3546
|
# @!attribute [rw] detector_id
|
3423
|
-
# The ID of the detector
|
3424
|
-
#
|
3547
|
+
# The ID of the detector whose findings statistics you want to
|
3548
|
+
# retrieve.
|
3425
3549
|
# @return [String]
|
3426
3550
|
#
|
3427
3551
|
# @!attribute [rw] finding_statistic_types
|
@@ -3432,12 +3556,34 @@ module Aws::GuardDuty
|
|
3432
3556
|
# Represents the criteria that is used for querying findings.
|
3433
3557
|
# @return [Types::FindingCriteria]
|
3434
3558
|
#
|
3559
|
+
# @!attribute [rw] group_by
|
3560
|
+
# Displays the findings statistics grouped by one of the listed valid
|
3561
|
+
# values.
|
3562
|
+
# @return [String]
|
3563
|
+
#
|
3564
|
+
# @!attribute [rw] order_by
|
3565
|
+
# Displays the sorted findings in the requested order. The default
|
3566
|
+
# value of `orderBy` is `DESC`.
|
3567
|
+
#
|
3568
|
+
# You can use this parameter only with the `groupBy` parameter.
|
3569
|
+
# @return [String]
|
3570
|
+
#
|
3571
|
+
# @!attribute [rw] max_results
|
3572
|
+
# The maximum number of results to be returned in the response. The
|
3573
|
+
# default value is 25.
|
3574
|
+
#
|
3575
|
+
# You can use this parameter only with the `groupBy` parameter.
|
3576
|
+
# @return [Integer]
|
3577
|
+
#
|
3435
3578
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFindingsStatisticsRequest AWS API Documentation
|
3436
3579
|
#
|
3437
3580
|
class GetFindingsStatisticsRequest < Struct.new(
|
3438
3581
|
:detector_id,
|
3439
3582
|
:finding_statistic_types,
|
3440
|
-
:finding_criteria
|
3583
|
+
:finding_criteria,
|
3584
|
+
:group_by,
|
3585
|
+
:order_by,
|
3586
|
+
:max_results)
|
3441
3587
|
SENSITIVE = []
|
3442
3588
|
include Aws::Structure
|
3443
3589
|
end
|
@@ -3446,16 +3592,24 @@ module Aws::GuardDuty
|
|
3446
3592
|
# The finding statistics object.
|
3447
3593
|
# @return [Types::FindingStatistics]
|
3448
3594
|
#
|
3595
|
+
# @!attribute [rw] next_token
|
3596
|
+
# The pagination parameter to be used on the next list operation to
|
3597
|
+
# retrieve more items.
|
3598
|
+
#
|
3599
|
+
# This parameter is currently not supported.
|
3600
|
+
# @return [String]
|
3601
|
+
#
|
3449
3602
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFindingsStatisticsResponse AWS API Documentation
|
3450
3603
|
#
|
3451
3604
|
class GetFindingsStatisticsResponse < Struct.new(
|
3452
|
-
:finding_statistics
|
3605
|
+
:finding_statistics,
|
3606
|
+
:next_token)
|
3453
3607
|
SENSITIVE = []
|
3454
3608
|
include Aws::Structure
|
3455
3609
|
end
|
3456
3610
|
|
3457
3611
|
# @!attribute [rw] detector_id
|
3458
|
-
# The unique ID of the detector that
|
3612
|
+
# The unique ID of the detector that is associated with the IPSet.
|
3459
3613
|
# @return [String]
|
3460
3614
|
#
|
3461
3615
|
# @!attribute [rw] ip_set_id
|
@@ -3539,8 +3693,9 @@ module Aws::GuardDuty
|
|
3539
3693
|
# @return [String]
|
3540
3694
|
#
|
3541
3695
|
# @!attribute [rw] role
|
3542
|
-
#
|
3543
|
-
# to the associated protected
|
3696
|
+
# Amazon Resource Name (ARN) of the IAM role that includes the
|
3697
|
+
# permissions to scan and add tags to the associated protected
|
3698
|
+
# resource.
|
3544
3699
|
# @return [String]
|
3545
3700
|
#
|
3546
3701
|
# @!attribute [rw] protected_resource
|
@@ -3587,8 +3742,7 @@ module Aws::GuardDuty
|
|
3587
3742
|
end
|
3588
3743
|
|
3589
3744
|
# @!attribute [rw] detector_id
|
3590
|
-
# The unique ID of the detector that
|
3591
|
-
# with.
|
3745
|
+
# The unique ID of the detector that is associated with this scan.
|
3592
3746
|
# @return [String]
|
3593
3747
|
#
|
3594
3748
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetMalwareScanSettingsRequest AWS API Documentation
|
@@ -3646,7 +3800,7 @@ module Aws::GuardDuty
|
|
3646
3800
|
# @return [String]
|
3647
3801
|
#
|
3648
3802
|
# @!attribute [rw] account_ids
|
3649
|
-
#
|
3803
|
+
# A list of member account IDs.
|
3650
3804
|
# @return [Array<String>]
|
3651
3805
|
#
|
3652
3806
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetMemberDetectorsRequest AWS API Documentation
|
@@ -3763,8 +3917,8 @@ module Aws::GuardDuty
|
|
3763
3917
|
end
|
3764
3918
|
|
3765
3919
|
# @!attribute [rw] detector_id
|
3766
|
-
# The unique ID of the detector that
|
3767
|
-
#
|
3920
|
+
# The unique ID of the detector that is associated with the
|
3921
|
+
# threatIntelSet.
|
3768
3922
|
# @return [String]
|
3769
3923
|
#
|
3770
3924
|
# @!attribute [rw] threat_intel_set_id
|
@@ -4082,8 +4236,8 @@ module Aws::GuardDuty
|
|
4082
4236
|
end
|
4083
4237
|
|
4084
4238
|
# @!attribute [rw] detector_id
|
4085
|
-
# The unique ID of the detector of the GuardDuty account
|
4086
|
-
# to invite members
|
4239
|
+
# The unique ID of the detector of the GuardDuty account with which
|
4240
|
+
# you want to invite members.
|
4087
4241
|
# @return [String]
|
4088
4242
|
#
|
4089
4243
|
# @!attribute [rw] account_ids
|
@@ -4711,7 +4865,7 @@ module Aws::GuardDuty
|
|
4711
4865
|
end
|
4712
4866
|
|
4713
4867
|
# @!attribute [rw] detector_id
|
4714
|
-
# The unique ID of the detector that
|
4868
|
+
# The unique ID of the detector that is associated with the filter.
|
4715
4869
|
# @return [String]
|
4716
4870
|
#
|
4717
4871
|
# @!attribute [rw] max_results
|
@@ -4860,6 +5014,8 @@ module Aws::GuardDuty
|
|
4860
5014
|
# listed. When this attribute is not set, all existing findings are
|
4861
5015
|
# listed.
|
4862
5016
|
#
|
5017
|
+
# * service.ebsVolumeScanDetails.scanId
|
5018
|
+
#
|
4863
5019
|
# * service.resourceRole
|
4864
5020
|
#
|
4865
5021
|
# * severity
|
@@ -4920,7 +5076,7 @@ module Aws::GuardDuty
|
|
4920
5076
|
end
|
4921
5077
|
|
4922
5078
|
# @!attribute [rw] detector_id
|
4923
|
-
# The unique ID of the detector that
|
5079
|
+
# The unique ID of the detector that is associated with IPSet.
|
4924
5080
|
# @return [String]
|
4925
5081
|
#
|
4926
5082
|
# @!attribute [rw] max_results
|
@@ -5045,7 +5201,7 @@ module Aws::GuardDuty
|
|
5045
5201
|
end
|
5046
5202
|
|
5047
5203
|
# @!attribute [rw] detector_id
|
5048
|
-
# The unique ID of the detector
|
5204
|
+
# The unique ID of the detector that is associated with the member.
|
5049
5205
|
# @return [String]
|
5050
5206
|
#
|
5051
5207
|
# @!attribute [rw] max_results
|
@@ -5148,7 +5304,8 @@ module Aws::GuardDuty
|
|
5148
5304
|
end
|
5149
5305
|
|
5150
5306
|
# @!attribute [rw] detector_id
|
5151
|
-
# The ID
|
5307
|
+
# The detector ID for which you want to retrieve the publishing
|
5308
|
+
# destination.
|
5152
5309
|
# @return [String]
|
5153
5310
|
#
|
5154
5311
|
# @!attribute [rw] max_results
|
@@ -5220,8 +5377,8 @@ module Aws::GuardDuty
|
|
5220
5377
|
end
|
5221
5378
|
|
5222
5379
|
# @!attribute [rw] detector_id
|
5223
|
-
# The unique ID of the detector that
|
5224
|
-
#
|
5380
|
+
# The unique ID of the detector that is associated with the
|
5381
|
+
# threatIntelSet.
|
5225
5382
|
# @return [String]
|
5226
5383
|
#
|
5227
5384
|
# @!attribute [rw] max_results
|
@@ -6856,6 +7013,67 @@ module Aws::GuardDuty
|
|
6856
7013
|
include Aws::Structure
|
6857
7014
|
end
|
6858
7015
|
|
7016
|
+
# Information about each resource type associated with the
|
7017
|
+
# `groupedByResource` statistics.
|
7018
|
+
#
|
7019
|
+
# @!attribute [rw] account_id
|
7020
|
+
# The ID of the Amazon Web Services account.
|
7021
|
+
# @return [String]
|
7022
|
+
#
|
7023
|
+
# @!attribute [rw] last_generated_at
|
7024
|
+
# The timestamp at which the statistics for this resource was last
|
7025
|
+
# generated.
|
7026
|
+
# @return [Time]
|
7027
|
+
#
|
7028
|
+
# @!attribute [rw] resource_id
|
7029
|
+
# ID associated with each resource. The following list provides the
|
7030
|
+
# mapping of the resource type and resource ID.
|
7031
|
+
#
|
7032
|
+
# **Mapping of resource and resource ID**
|
7033
|
+
#
|
7034
|
+
# * AccessKey - `resource.accessKeyDetails.accessKeyId`
|
7035
|
+
#
|
7036
|
+
# * Container - `resource.containerDetails.id`
|
7037
|
+
#
|
7038
|
+
# * ECSCluster - `resource.ecsClusterDetails.name`
|
7039
|
+
#
|
7040
|
+
# * EKSCluster - `resource.eksClusterDetails.name`
|
7041
|
+
#
|
7042
|
+
# * Instance - `resource.instanceDetails.instanceId`
|
7043
|
+
#
|
7044
|
+
# * KubernetesCluster -
|
7045
|
+
# `resource.kubernetesDetails.kubernetesWorkloadDetails.name`
|
7046
|
+
#
|
7047
|
+
# * Lambda - `resource.lambdaDetails.functionName`
|
7048
|
+
#
|
7049
|
+
# * RDSDBInstance -
|
7050
|
+
# `resource.rdsDbInstanceDetails.dbInstanceIdentifier`
|
7051
|
+
#
|
7052
|
+
# * S3Bucket - `resource.s3BucketDetails.name`
|
7053
|
+
#
|
7054
|
+
# * S3Object - `resource.s3BucketDetails.name`
|
7055
|
+
# @return [String]
|
7056
|
+
#
|
7057
|
+
# @!attribute [rw] resource_type
|
7058
|
+
# The type of resource.
|
7059
|
+
# @return [String]
|
7060
|
+
#
|
7061
|
+
# @!attribute [rw] total_findings
|
7062
|
+
# The total number of findings associated with this resource.
|
7063
|
+
# @return [Integer]
|
7064
|
+
#
|
7065
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ResourceStatistics AWS API Documentation
|
7066
|
+
#
|
7067
|
+
class ResourceStatistics < Struct.new(
|
7068
|
+
:account_id,
|
7069
|
+
:last_generated_at,
|
7070
|
+
:resource_id,
|
7071
|
+
:resource_type,
|
7072
|
+
:total_findings)
|
7073
|
+
SENSITIVE = []
|
7074
|
+
include Aws::Structure
|
7075
|
+
end
|
7076
|
+
|
6859
7077
|
# Additional information about the suspicious activity.
|
6860
7078
|
#
|
6861
7079
|
# @!attribute [rw] modifying_process
|
@@ -7148,8 +7366,8 @@ module Aws::GuardDuty
|
|
7148
7366
|
#
|
7149
7367
|
# @!attribute [rw] admin_detector_id
|
7150
7368
|
# The unique detector ID of the administrator account that the request
|
7151
|
-
# is associated with.
|
7152
|
-
#
|
7369
|
+
# is associated with. If the account is an administrator, the
|
7370
|
+
# `AdminDetectorId` will be the same as the one used for `DetectorId`.
|
7153
7371
|
# @return [String]
|
7154
7372
|
#
|
7155
7373
|
# @!attribute [rw] scan_id
|
@@ -7597,6 +7815,31 @@ module Aws::GuardDuty
|
|
7597
7815
|
include Aws::Structure
|
7598
7816
|
end
|
7599
7817
|
|
7818
|
+
# Information about severity level for each finding type.
|
7819
|
+
#
|
7820
|
+
# @!attribute [rw] last_generated_at
|
7821
|
+
# The timestamp at which a finding type for a specific severity was
|
7822
|
+
# last generated.
|
7823
|
+
# @return [Time]
|
7824
|
+
#
|
7825
|
+
# @!attribute [rw] severity
|
7826
|
+
# The severity level associated with each finding type.
|
7827
|
+
# @return [Float]
|
7828
|
+
#
|
7829
|
+
# @!attribute [rw] total_findings
|
7830
|
+
# The total number of findings associated with this severity.
|
7831
|
+
# @return [Integer]
|
7832
|
+
#
|
7833
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/SeverityStatistics AWS API Documentation
|
7834
|
+
#
|
7835
|
+
class SeverityStatistics < Struct.new(
|
7836
|
+
:last_generated_at,
|
7837
|
+
:severity,
|
7838
|
+
:total_findings)
|
7839
|
+
SENSITIVE = []
|
7840
|
+
include Aws::Structure
|
7841
|
+
end
|
7842
|
+
|
7600
7843
|
# Contains information about the criteria used for sorting findings.
|
7601
7844
|
#
|
7602
7845
|
# @!attribute [rw] attribute_name
|
@@ -8067,8 +8310,8 @@ module Aws::GuardDuty
|
|
8067
8310
|
end
|
8068
8311
|
|
8069
8312
|
# @!attribute [rw] detector_id
|
8070
|
-
# The ID of the detector associated with the findings
|
8071
|
-
# feedback
|
8313
|
+
# The ID of the detector that is associated with the findings for
|
8314
|
+
# which you want to update the feedback.
|
8072
8315
|
# @return [String]
|
8073
8316
|
#
|
8074
8317
|
# @!attribute [rw] finding_ids
|
@@ -8142,8 +8385,8 @@ module Aws::GuardDuty
|
|
8142
8385
|
# @return [String]
|
8143
8386
|
#
|
8144
8387
|
# @!attribute [rw] role
|
8145
|
-
#
|
8146
|
-
# associated protected resource.
|
8388
|
+
# Amazon Resource Name (ARN) of the IAM role with permissions to scan
|
8389
|
+
# and add tags to the associated protected resource.
|
8147
8390
|
# @return [String]
|
8148
8391
|
#
|
8149
8392
|
# @!attribute [rw] actions
|
data/lib/aws-sdk-guardduty.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -553,11 +553,12 @@ module Aws
|
|
553
553
|
interface _GetFindingsStatisticsResponseSuccess
|
554
554
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetFindingsStatisticsResponse]
|
555
555
|
def finding_statistics: () -> Types::FindingStatistics
|
556
|
+
def next_token: () -> ::String
|
556
557
|
end
|
557
558
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GuardDuty/Client.html#get_findings_statistics-instance_method
|
558
559
|
def get_findings_statistics: (
|
559
560
|
detector_id: ::String,
|
560
|
-
finding_statistic_types: Array[("COUNT_BY_SEVERITY")],
|
561
|
+
?finding_statistic_types: Array[("COUNT_BY_SEVERITY")],
|
561
562
|
?finding_criteria: {
|
562
563
|
criterion: Hash[::String, {
|
563
564
|
eq: Array[::String]?,
|
@@ -573,7 +574,10 @@ module Aws
|
|
573
574
|
less_than: ::Integer?,
|
574
575
|
less_than_or_equal: ::Integer?
|
575
576
|
}]?
|
576
|
-
}
|
577
|
+
},
|
578
|
+
?group_by: ("ACCOUNT" | "DATE" | "FINDING_TYPE" | "RESOURCE" | "SEVERITY"),
|
579
|
+
?order_by: ("ASC" | "DESC"),
|
580
|
+
?max_results: ::Integer
|
577
581
|
) -> _GetFindingsStatisticsResponseSuccess
|
578
582
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFindingsStatisticsResponseSuccess
|
579
583
|
|