aws-sdk-guardduty 1.98.0 → 1.100.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-guardduty/client.rb +97 -48
- data/lib/aws-sdk-guardduty/client_api.rb +63 -3
- 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 +299 -50
- data/lib/aws-sdk-guardduty.rb +1 -1
- data/sig/client.rbs +6 -2
- data/sig/types.rbs +48 -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
|
@@ -2845,6 +2907,11 @@ module Aws::GuardDuty
|
|
2845
2907
|
# The name of the task group that's associated with the task.
|
2846
2908
|
# @return [String]
|
2847
2909
|
#
|
2910
|
+
# @!attribute [rw] launch_type
|
2911
|
+
# A capacity on which the task is running. For example, `Fargate` and
|
2912
|
+
# `EC2`.
|
2913
|
+
# @return [String]
|
2914
|
+
#
|
2848
2915
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/EcsTaskDetails AWS API Documentation
|
2849
2916
|
#
|
2850
2917
|
class EcsTaskDetails < Struct.new(
|
@@ -2857,7 +2924,8 @@ module Aws::GuardDuty
|
|
2857
2924
|
:tags,
|
2858
2925
|
:volumes,
|
2859
2926
|
:containers,
|
2860
|
-
:group
|
2927
|
+
:group,
|
2928
|
+
:launch_type)
|
2861
2929
|
SENSITIVE = []
|
2862
2930
|
include Aws::Structure
|
2863
2931
|
end
|
@@ -3142,14 +3210,77 @@ module Aws::GuardDuty
|
|
3142
3210
|
# Contains information about finding statistics.
|
3143
3211
|
#
|
3144
3212
|
# @!attribute [rw] count_by_severity
|
3145
|
-
# Represents a map of severity to count statistics for a set
|
3146
|
-
# findings.
|
3213
|
+
# Represents a list of map of severity to count statistics for a set
|
3214
|
+
# of findings.
|
3147
3215
|
# @return [Hash<String,Integer>]
|
3148
3216
|
#
|
3217
|
+
# @!attribute [rw] grouped_by_account
|
3218
|
+
# Represents a list of map of accounts with a findings count
|
3219
|
+
# associated with each account.
|
3220
|
+
# @return [Array<Types::AccountStatistics>]
|
3221
|
+
#
|
3222
|
+
# @!attribute [rw] grouped_by_date
|
3223
|
+
# Represents a list of map of dates with a count of total findings
|
3224
|
+
# generated on each date per severity level.
|
3225
|
+
# @return [Array<Types::DateStatistics>]
|
3226
|
+
#
|
3227
|
+
# @!attribute [rw] grouped_by_finding_type
|
3228
|
+
# Represents a list of map of finding types with a count of total
|
3229
|
+
# findings generated for each type.
|
3230
|
+
#
|
3231
|
+
# Based on the `orderBy` parameter, this request returns either the
|
3232
|
+
# most occurring finding types or the least occurring finding types.
|
3233
|
+
# If the `orderBy` parameter is `ASC`, this will represent the least
|
3234
|
+
# occurring finding types in your account; otherwise, this will
|
3235
|
+
# represent the most occurring finding types. The default value of
|
3236
|
+
# `orderBy` is `DESC`.
|
3237
|
+
# @return [Array<Types::FindingTypeStatistics>]
|
3238
|
+
#
|
3239
|
+
# @!attribute [rw] grouped_by_resource
|
3240
|
+
# Represents a list of map of top resources with a count of total
|
3241
|
+
# findings.
|
3242
|
+
# @return [Array<Types::ResourceStatistics>]
|
3243
|
+
#
|
3244
|
+
# @!attribute [rw] grouped_by_severity
|
3245
|
+
# Represents a list of map of total findings for each severity level.
|
3246
|
+
# @return [Array<Types::SeverityStatistics>]
|
3247
|
+
#
|
3149
3248
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/FindingStatistics AWS API Documentation
|
3150
3249
|
#
|
3151
3250
|
class FindingStatistics < Struct.new(
|
3152
|
-
:count_by_severity
|
3251
|
+
:count_by_severity,
|
3252
|
+
:grouped_by_account,
|
3253
|
+
:grouped_by_date,
|
3254
|
+
:grouped_by_finding_type,
|
3255
|
+
:grouped_by_resource,
|
3256
|
+
:grouped_by_severity)
|
3257
|
+
SENSITIVE = []
|
3258
|
+
include Aws::Structure
|
3259
|
+
end
|
3260
|
+
|
3261
|
+
# Information about each finding type associated with the
|
3262
|
+
# `groupedByFindingType` statistics.
|
3263
|
+
#
|
3264
|
+
# @!attribute [rw] finding_type
|
3265
|
+
# Name of the finding type.
|
3266
|
+
# @return [String]
|
3267
|
+
#
|
3268
|
+
# @!attribute [rw] last_generated_at
|
3269
|
+
# The timestamp at which this finding type was last generated in your
|
3270
|
+
# environment.
|
3271
|
+
# @return [Time]
|
3272
|
+
#
|
3273
|
+
# @!attribute [rw] total_findings
|
3274
|
+
# The total number of findings associated with generated for each
|
3275
|
+
# distinct finding type.
|
3276
|
+
# @return [Integer]
|
3277
|
+
#
|
3278
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/FindingTypeStatistics AWS API Documentation
|
3279
|
+
#
|
3280
|
+
class FindingTypeStatistics < Struct.new(
|
3281
|
+
:finding_type,
|
3282
|
+
:last_generated_at,
|
3283
|
+
:total_findings)
|
3153
3284
|
SENSITIVE = []
|
3154
3285
|
include Aws::Structure
|
3155
3286
|
end
|
@@ -3231,12 +3362,11 @@ module Aws::GuardDuty
|
|
3231
3362
|
end
|
3232
3363
|
|
3233
3364
|
# @!attribute [rw] detector_id
|
3234
|
-
# The unique ID of the GuardDuty detector
|
3235
|
-
# statistics.
|
3365
|
+
# The unique ID of the GuardDuty detector.
|
3236
3366
|
# @return [String]
|
3237
3367
|
#
|
3238
3368
|
# @!attribute [rw] filter_criteria
|
3239
|
-
# Represents the criteria used to filter the coverage statistics
|
3369
|
+
# Represents the criteria used to filter the coverage statistics.
|
3240
3370
|
# @return [Types::CoverageFilterCriteria]
|
3241
3371
|
#
|
3242
3372
|
# @!attribute [rw] statistics_type
|
@@ -3327,7 +3457,7 @@ module Aws::GuardDuty
|
|
3327
3457
|
end
|
3328
3458
|
|
3329
3459
|
# @!attribute [rw] detector_id
|
3330
|
-
# The unique ID of the detector that
|
3460
|
+
# The unique ID of the detector that is associated with this filter.
|
3331
3461
|
# @return [String]
|
3332
3462
|
#
|
3333
3463
|
# @!attribute [rw] filter_name
|
@@ -3420,8 +3550,8 @@ module Aws::GuardDuty
|
|
3420
3550
|
end
|
3421
3551
|
|
3422
3552
|
# @!attribute [rw] detector_id
|
3423
|
-
# The ID of the detector
|
3424
|
-
#
|
3553
|
+
# The ID of the detector whose findings statistics you want to
|
3554
|
+
# retrieve.
|
3425
3555
|
# @return [String]
|
3426
3556
|
#
|
3427
3557
|
# @!attribute [rw] finding_statistic_types
|
@@ -3432,12 +3562,34 @@ module Aws::GuardDuty
|
|
3432
3562
|
# Represents the criteria that is used for querying findings.
|
3433
3563
|
# @return [Types::FindingCriteria]
|
3434
3564
|
#
|
3565
|
+
# @!attribute [rw] group_by
|
3566
|
+
# Displays the findings statistics grouped by one of the listed valid
|
3567
|
+
# values.
|
3568
|
+
# @return [String]
|
3569
|
+
#
|
3570
|
+
# @!attribute [rw] order_by
|
3571
|
+
# Displays the sorted findings in the requested order. The default
|
3572
|
+
# value of `orderBy` is `DESC`.
|
3573
|
+
#
|
3574
|
+
# You can use this parameter only with the `groupBy` parameter.
|
3575
|
+
# @return [String]
|
3576
|
+
#
|
3577
|
+
# @!attribute [rw] max_results
|
3578
|
+
# The maximum number of results to be returned in the response. The
|
3579
|
+
# default value is 25.
|
3580
|
+
#
|
3581
|
+
# You can use this parameter only with the `groupBy` parameter.
|
3582
|
+
# @return [Integer]
|
3583
|
+
#
|
3435
3584
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFindingsStatisticsRequest AWS API Documentation
|
3436
3585
|
#
|
3437
3586
|
class GetFindingsStatisticsRequest < Struct.new(
|
3438
3587
|
:detector_id,
|
3439
3588
|
:finding_statistic_types,
|
3440
|
-
:finding_criteria
|
3589
|
+
:finding_criteria,
|
3590
|
+
:group_by,
|
3591
|
+
:order_by,
|
3592
|
+
:max_results)
|
3441
3593
|
SENSITIVE = []
|
3442
3594
|
include Aws::Structure
|
3443
3595
|
end
|
@@ -3446,16 +3598,24 @@ module Aws::GuardDuty
|
|
3446
3598
|
# The finding statistics object.
|
3447
3599
|
# @return [Types::FindingStatistics]
|
3448
3600
|
#
|
3601
|
+
# @!attribute [rw] next_token
|
3602
|
+
# The pagination parameter to be used on the next list operation to
|
3603
|
+
# retrieve more items.
|
3604
|
+
#
|
3605
|
+
# This parameter is currently not supported.
|
3606
|
+
# @return [String]
|
3607
|
+
#
|
3449
3608
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFindingsStatisticsResponse AWS API Documentation
|
3450
3609
|
#
|
3451
3610
|
class GetFindingsStatisticsResponse < Struct.new(
|
3452
|
-
:finding_statistics
|
3611
|
+
:finding_statistics,
|
3612
|
+
:next_token)
|
3453
3613
|
SENSITIVE = []
|
3454
3614
|
include Aws::Structure
|
3455
3615
|
end
|
3456
3616
|
|
3457
3617
|
# @!attribute [rw] detector_id
|
3458
|
-
# The unique ID of the detector that
|
3618
|
+
# The unique ID of the detector that is associated with the IPSet.
|
3459
3619
|
# @return [String]
|
3460
3620
|
#
|
3461
3621
|
# @!attribute [rw] ip_set_id
|
@@ -3539,8 +3699,9 @@ module Aws::GuardDuty
|
|
3539
3699
|
# @return [String]
|
3540
3700
|
#
|
3541
3701
|
# @!attribute [rw] role
|
3542
|
-
#
|
3543
|
-
# to the associated protected
|
3702
|
+
# Amazon Resource Name (ARN) of the IAM role that includes the
|
3703
|
+
# permissions to scan and add tags to the associated protected
|
3704
|
+
# resource.
|
3544
3705
|
# @return [String]
|
3545
3706
|
#
|
3546
3707
|
# @!attribute [rw] protected_resource
|
@@ -3587,8 +3748,7 @@ module Aws::GuardDuty
|
|
3587
3748
|
end
|
3588
3749
|
|
3589
3750
|
# @!attribute [rw] detector_id
|
3590
|
-
# The unique ID of the detector that
|
3591
|
-
# with.
|
3751
|
+
# The unique ID of the detector that is associated with this scan.
|
3592
3752
|
# @return [String]
|
3593
3753
|
#
|
3594
3754
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetMalwareScanSettingsRequest AWS API Documentation
|
@@ -3646,7 +3806,7 @@ module Aws::GuardDuty
|
|
3646
3806
|
# @return [String]
|
3647
3807
|
#
|
3648
3808
|
# @!attribute [rw] account_ids
|
3649
|
-
#
|
3809
|
+
# A list of member account IDs.
|
3650
3810
|
# @return [Array<String>]
|
3651
3811
|
#
|
3652
3812
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetMemberDetectorsRequest AWS API Documentation
|
@@ -3763,8 +3923,8 @@ module Aws::GuardDuty
|
|
3763
3923
|
end
|
3764
3924
|
|
3765
3925
|
# @!attribute [rw] detector_id
|
3766
|
-
# The unique ID of the detector that
|
3767
|
-
#
|
3926
|
+
# The unique ID of the detector that is associated with the
|
3927
|
+
# threatIntelSet.
|
3768
3928
|
# @return [String]
|
3769
3929
|
#
|
3770
3930
|
# @!attribute [rw] threat_intel_set_id
|
@@ -4082,8 +4242,8 @@ module Aws::GuardDuty
|
|
4082
4242
|
end
|
4083
4243
|
|
4084
4244
|
# @!attribute [rw] detector_id
|
4085
|
-
# The unique ID of the detector of the GuardDuty account
|
4086
|
-
# to invite members
|
4245
|
+
# The unique ID of the detector of the GuardDuty account with which
|
4246
|
+
# you want to invite members.
|
4087
4247
|
# @return [String]
|
4088
4248
|
#
|
4089
4249
|
# @!attribute [rw] account_ids
|
@@ -4711,7 +4871,7 @@ module Aws::GuardDuty
|
|
4711
4871
|
end
|
4712
4872
|
|
4713
4873
|
# @!attribute [rw] detector_id
|
4714
|
-
# The unique ID of the detector that
|
4874
|
+
# The unique ID of the detector that is associated with the filter.
|
4715
4875
|
# @return [String]
|
4716
4876
|
#
|
4717
4877
|
# @!attribute [rw] max_results
|
@@ -4860,6 +5020,8 @@ module Aws::GuardDuty
|
|
4860
5020
|
# listed. When this attribute is not set, all existing findings are
|
4861
5021
|
# listed.
|
4862
5022
|
#
|
5023
|
+
# * service.ebsVolumeScanDetails.scanId
|
5024
|
+
#
|
4863
5025
|
# * service.resourceRole
|
4864
5026
|
#
|
4865
5027
|
# * severity
|
@@ -4920,7 +5082,7 @@ module Aws::GuardDuty
|
|
4920
5082
|
end
|
4921
5083
|
|
4922
5084
|
# @!attribute [rw] detector_id
|
4923
|
-
# The unique ID of the detector that
|
5085
|
+
# The unique ID of the detector that is associated with IPSet.
|
4924
5086
|
# @return [String]
|
4925
5087
|
#
|
4926
5088
|
# @!attribute [rw] max_results
|
@@ -5045,7 +5207,7 @@ module Aws::GuardDuty
|
|
5045
5207
|
end
|
5046
5208
|
|
5047
5209
|
# @!attribute [rw] detector_id
|
5048
|
-
# The unique ID of the detector
|
5210
|
+
# The unique ID of the detector that is associated with the member.
|
5049
5211
|
# @return [String]
|
5050
5212
|
#
|
5051
5213
|
# @!attribute [rw] max_results
|
@@ -5148,7 +5310,8 @@ module Aws::GuardDuty
|
|
5148
5310
|
end
|
5149
5311
|
|
5150
5312
|
# @!attribute [rw] detector_id
|
5151
|
-
# The ID
|
5313
|
+
# The detector ID for which you want to retrieve the publishing
|
5314
|
+
# destination.
|
5152
5315
|
# @return [String]
|
5153
5316
|
#
|
5154
5317
|
# @!attribute [rw] max_results
|
@@ -5220,8 +5383,8 @@ module Aws::GuardDuty
|
|
5220
5383
|
end
|
5221
5384
|
|
5222
5385
|
# @!attribute [rw] detector_id
|
5223
|
-
# The unique ID of the detector that
|
5224
|
-
#
|
5386
|
+
# The unique ID of the detector that is associated with the
|
5387
|
+
# threatIntelSet.
|
5225
5388
|
# @return [String]
|
5226
5389
|
#
|
5227
5390
|
# @!attribute [rw] max_results
|
@@ -6856,6 +7019,67 @@ module Aws::GuardDuty
|
|
6856
7019
|
include Aws::Structure
|
6857
7020
|
end
|
6858
7021
|
|
7022
|
+
# Information about each resource type associated with the
|
7023
|
+
# `groupedByResource` statistics.
|
7024
|
+
#
|
7025
|
+
# @!attribute [rw] account_id
|
7026
|
+
# The ID of the Amazon Web Services account.
|
7027
|
+
# @return [String]
|
7028
|
+
#
|
7029
|
+
# @!attribute [rw] last_generated_at
|
7030
|
+
# The timestamp at which the statistics for this resource was last
|
7031
|
+
# generated.
|
7032
|
+
# @return [Time]
|
7033
|
+
#
|
7034
|
+
# @!attribute [rw] resource_id
|
7035
|
+
# ID associated with each resource. The following list provides the
|
7036
|
+
# mapping of the resource type and resource ID.
|
7037
|
+
#
|
7038
|
+
# **Mapping of resource and resource ID**
|
7039
|
+
#
|
7040
|
+
# * AccessKey - `resource.accessKeyDetails.accessKeyId`
|
7041
|
+
#
|
7042
|
+
# * Container - `resource.containerDetails.id`
|
7043
|
+
#
|
7044
|
+
# * ECSCluster - `resource.ecsClusterDetails.name`
|
7045
|
+
#
|
7046
|
+
# * EKSCluster - `resource.eksClusterDetails.name`
|
7047
|
+
#
|
7048
|
+
# * Instance - `resource.instanceDetails.instanceId`
|
7049
|
+
#
|
7050
|
+
# * KubernetesCluster -
|
7051
|
+
# `resource.kubernetesDetails.kubernetesWorkloadDetails.name`
|
7052
|
+
#
|
7053
|
+
# * Lambda - `resource.lambdaDetails.functionName`
|
7054
|
+
#
|
7055
|
+
# * RDSDBInstance -
|
7056
|
+
# `resource.rdsDbInstanceDetails.dbInstanceIdentifier`
|
7057
|
+
#
|
7058
|
+
# * S3Bucket - `resource.s3BucketDetails.name`
|
7059
|
+
#
|
7060
|
+
# * S3Object - `resource.s3BucketDetails.name`
|
7061
|
+
# @return [String]
|
7062
|
+
#
|
7063
|
+
# @!attribute [rw] resource_type
|
7064
|
+
# The type of resource.
|
7065
|
+
# @return [String]
|
7066
|
+
#
|
7067
|
+
# @!attribute [rw] total_findings
|
7068
|
+
# The total number of findings associated with this resource.
|
7069
|
+
# @return [Integer]
|
7070
|
+
#
|
7071
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ResourceStatistics AWS API Documentation
|
7072
|
+
#
|
7073
|
+
class ResourceStatistics < Struct.new(
|
7074
|
+
:account_id,
|
7075
|
+
:last_generated_at,
|
7076
|
+
:resource_id,
|
7077
|
+
:resource_type,
|
7078
|
+
:total_findings)
|
7079
|
+
SENSITIVE = []
|
7080
|
+
include Aws::Structure
|
7081
|
+
end
|
7082
|
+
|
6859
7083
|
# Additional information about the suspicious activity.
|
6860
7084
|
#
|
6861
7085
|
# @!attribute [rw] modifying_process
|
@@ -7148,8 +7372,8 @@ module Aws::GuardDuty
|
|
7148
7372
|
#
|
7149
7373
|
# @!attribute [rw] admin_detector_id
|
7150
7374
|
# The unique detector ID of the administrator account that the request
|
7151
|
-
# is associated with.
|
7152
|
-
#
|
7375
|
+
# is associated with. If the account is an administrator, the
|
7376
|
+
# `AdminDetectorId` will be the same as the one used for `DetectorId`.
|
7153
7377
|
# @return [String]
|
7154
7378
|
#
|
7155
7379
|
# @!attribute [rw] scan_id
|
@@ -7597,6 +7821,31 @@ module Aws::GuardDuty
|
|
7597
7821
|
include Aws::Structure
|
7598
7822
|
end
|
7599
7823
|
|
7824
|
+
# Information about severity level for each finding type.
|
7825
|
+
#
|
7826
|
+
# @!attribute [rw] last_generated_at
|
7827
|
+
# The timestamp at which a finding type for a specific severity was
|
7828
|
+
# last generated.
|
7829
|
+
# @return [Time]
|
7830
|
+
#
|
7831
|
+
# @!attribute [rw] severity
|
7832
|
+
# The severity level associated with each finding type.
|
7833
|
+
# @return [Float]
|
7834
|
+
#
|
7835
|
+
# @!attribute [rw] total_findings
|
7836
|
+
# The total number of findings associated with this severity.
|
7837
|
+
# @return [Integer]
|
7838
|
+
#
|
7839
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/SeverityStatistics AWS API Documentation
|
7840
|
+
#
|
7841
|
+
class SeverityStatistics < Struct.new(
|
7842
|
+
:last_generated_at,
|
7843
|
+
:severity,
|
7844
|
+
:total_findings)
|
7845
|
+
SENSITIVE = []
|
7846
|
+
include Aws::Structure
|
7847
|
+
end
|
7848
|
+
|
7600
7849
|
# Contains information about the criteria used for sorting findings.
|
7601
7850
|
#
|
7602
7851
|
# @!attribute [rw] attribute_name
|
@@ -8067,8 +8316,8 @@ module Aws::GuardDuty
|
|
8067
8316
|
end
|
8068
8317
|
|
8069
8318
|
# @!attribute [rw] detector_id
|
8070
|
-
# The ID of the detector associated with the findings
|
8071
|
-
# feedback
|
8319
|
+
# The ID of the detector that is associated with the findings for
|
8320
|
+
# which you want to update the feedback.
|
8072
8321
|
# @return [String]
|
8073
8322
|
#
|
8074
8323
|
# @!attribute [rw] finding_ids
|
@@ -8142,8 +8391,8 @@ module Aws::GuardDuty
|
|
8142
8391
|
# @return [String]
|
8143
8392
|
#
|
8144
8393
|
# @!attribute [rw] role
|
8145
|
-
#
|
8146
|
-
# associated protected resource.
|
8394
|
+
# Amazon Resource Name (ARN) of the IAM role with permissions to scan
|
8395
|
+
# and add tags to the associated protected resource.
|
8147
8396
|
# @return [String]
|
8148
8397
|
#
|
8149
8398
|
# @!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
|
|