aws-sdk-guardduty 1.124.0 → 1.125.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 +580 -2
- data/lib/aws-sdk-guardduty/client_api.rb +249 -0
- data/lib/aws-sdk-guardduty/types.rb +588 -1
- data/lib/aws-sdk-guardduty.rb +1 -1
- data/sig/client.rbs +146 -0
- data/sig/types.rbs +142 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7f96b8d3a05634d1d21f69fe29cf0ab362868e08d39f0efea713e4167989748
|
4
|
+
data.tar.gz: 1dddc6a12e9e85df338b5a40ee88b49dd16dc96c3a3119a9b20b83367142c708
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6ad4b25116b29252e4dac7286e8d33df2ef34524f7abb45695d27ce064208ff096d05f2ad3aba3b2fee0f0226a19746a1824fdee668394b9a4898c2042beaee
|
7
|
+
data.tar.gz: a507efdca8a58fd2f0669e39ea49d9c70af1bab8b01082ccb618508f808909f6c037107e86ba7a40406b9339f6208b48608cefd190b25ec0a5dd3de81ab0da9f
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.125.0
|
@@ -1351,6 +1351,86 @@ module Aws::GuardDuty
|
|
1351
1351
|
req.send_request(options)
|
1352
1352
|
end
|
1353
1353
|
|
1354
|
+
# Creates a new threat entity set. In a threat entity set, you can
|
1355
|
+
# provide known malicious IP addresses and domains for your Amazon Web
|
1356
|
+
# Services environment. GuardDuty generates findings based on the
|
1357
|
+
# entries in the threat entity sets. Only users of the administrator
|
1358
|
+
# account can manage entity sets, which automatically apply to member
|
1359
|
+
# accounts.
|
1360
|
+
#
|
1361
|
+
# @option params [required, String] :detector_id
|
1362
|
+
# The unique ID of the detector of the GuardDuty account for which you
|
1363
|
+
# want to create a threat entity set.
|
1364
|
+
#
|
1365
|
+
# To find the `detectorId` in the current Region, see the Settings page
|
1366
|
+
# in the GuardDuty console, or run the [ListDetectors][1] API.
|
1367
|
+
#
|
1368
|
+
#
|
1369
|
+
#
|
1370
|
+
# [1]: https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html
|
1371
|
+
#
|
1372
|
+
# @option params [required, String] :name
|
1373
|
+
# A user-friendly name to identify the threat entity set.
|
1374
|
+
#
|
1375
|
+
# **List naming constraints** - The name of your list can include
|
1376
|
+
# lowercase letters, uppercase letters, numbers, dash (-), and
|
1377
|
+
# underscore (\_).
|
1378
|
+
#
|
1379
|
+
# @option params [required, String] :format
|
1380
|
+
# The format of the file that contains the threat entity set.
|
1381
|
+
#
|
1382
|
+
# @option params [required, String] :location
|
1383
|
+
# The URI of the file that contains the threat entity set.
|
1384
|
+
#
|
1385
|
+
# @option params [String] :expected_bucket_owner
|
1386
|
+
# The Amazon Web Services account ID that owns the Amazon S3 bucket
|
1387
|
+
# specified in the **location** parameter.
|
1388
|
+
#
|
1389
|
+
# @option params [required, Boolean] :activate
|
1390
|
+
# A boolean value that indicates whether GuardDuty should start using
|
1391
|
+
# the uploaded threat entity set to generate findings.
|
1392
|
+
#
|
1393
|
+
# @option params [String] :client_token
|
1394
|
+
# The idempotency token for the create request.
|
1395
|
+
#
|
1396
|
+
# **A suitable default value is auto-generated.** You should normally
|
1397
|
+
# not need to pass this option.**
|
1398
|
+
#
|
1399
|
+
# @option params [Hash<String,String>] :tags
|
1400
|
+
# The tags to be added to a new threat entity set resource.
|
1401
|
+
#
|
1402
|
+
# @return [Types::CreateThreatEntitySetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1403
|
+
#
|
1404
|
+
# * {Types::CreateThreatEntitySetResponse#threat_entity_set_id #threat_entity_set_id} => String
|
1405
|
+
#
|
1406
|
+
# @example Request syntax with placeholder values
|
1407
|
+
#
|
1408
|
+
# resp = client.create_threat_entity_set({
|
1409
|
+
# detector_id: "DetectorId", # required
|
1410
|
+
# name: "Name", # required
|
1411
|
+
# format: "TXT", # required, accepts TXT, STIX, OTX_CSV, ALIEN_VAULT, PROOF_POINT, FIRE_EYE
|
1412
|
+
# location: "Location", # required
|
1413
|
+
# expected_bucket_owner: "ExpectedBucketOwner",
|
1414
|
+
# activate: false, # required
|
1415
|
+
# client_token: "ClientToken",
|
1416
|
+
# tags: {
|
1417
|
+
# "TagKey" => "TagValue",
|
1418
|
+
# },
|
1419
|
+
# })
|
1420
|
+
#
|
1421
|
+
# @example Response structure
|
1422
|
+
#
|
1423
|
+
# resp.threat_entity_set_id #=> String
|
1424
|
+
#
|
1425
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateThreatEntitySet AWS API Documentation
|
1426
|
+
#
|
1427
|
+
# @overload create_threat_entity_set(params = {})
|
1428
|
+
# @param [Hash] params ({})
|
1429
|
+
def create_threat_entity_set(params = {}, options = {})
|
1430
|
+
req = build_request(:create_threat_entity_set, params)
|
1431
|
+
req.send_request(options)
|
1432
|
+
end
|
1433
|
+
|
1354
1434
|
# Creates a new ThreatIntelSet. ThreatIntelSets consist of known
|
1355
1435
|
# malicious IP addresses. GuardDuty generates findings based on
|
1356
1436
|
# ThreatIntelSets. Only users of the administrator account can use this
|
@@ -1358,7 +1438,7 @@ module Aws::GuardDuty
|
|
1358
1438
|
#
|
1359
1439
|
# @option params [required, String] :detector_id
|
1360
1440
|
# The unique ID of the detector of the GuardDuty account for which you
|
1361
|
-
# want to create a `
|
1441
|
+
# want to create a `threatIntelSet`.
|
1362
1442
|
#
|
1363
1443
|
# To find the `detectorId` in the current Region, see the Settings page
|
1364
1444
|
# in the GuardDuty console, or run the [ListDetectors][1] API.
|
@@ -1427,6 +1507,89 @@ module Aws::GuardDuty
|
|
1427
1507
|
req.send_request(options)
|
1428
1508
|
end
|
1429
1509
|
|
1510
|
+
# Creates a new trusted entity set. In the trusted entity set, you can
|
1511
|
+
# provide IP addresses and domains that you believe are secure for
|
1512
|
+
# communication in your Amazon Web Services environment. GuardDuty will
|
1513
|
+
# not generate findings for the entries that are specified in a trusted
|
1514
|
+
# entity set. At any given time, you can have only one trusted entity
|
1515
|
+
# set.
|
1516
|
+
#
|
1517
|
+
# Only users of the administrator account can manage the entity sets,
|
1518
|
+
# which automatically apply to member accounts.
|
1519
|
+
#
|
1520
|
+
# @option params [required, String] :detector_id
|
1521
|
+
# The unique ID of the detector of the GuardDuty account for which you
|
1522
|
+
# want to create a trusted entity set.
|
1523
|
+
#
|
1524
|
+
# To find the `detectorId` in the current Region, see the Settings page
|
1525
|
+
# in the GuardDuty console, or run the [ListDetectors][1] API.
|
1526
|
+
#
|
1527
|
+
#
|
1528
|
+
#
|
1529
|
+
# [1]: https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html
|
1530
|
+
#
|
1531
|
+
# @option params [required, String] :name
|
1532
|
+
# A user-friendly name to identify the trusted entity set.
|
1533
|
+
#
|
1534
|
+
# **List naming constraints** - The name of your list can include
|
1535
|
+
# lowercase letters, uppercase letters, numbers, dash (-), and
|
1536
|
+
# underscore (\_).
|
1537
|
+
#
|
1538
|
+
# @option params [required, String] :format
|
1539
|
+
# The format of the file that contains the trusted entity set.
|
1540
|
+
#
|
1541
|
+
# @option params [required, String] :location
|
1542
|
+
# The URI of the file that contains the trusted entity set.
|
1543
|
+
#
|
1544
|
+
# @option params [String] :expected_bucket_owner
|
1545
|
+
# The Amazon Web Services account ID that owns the Amazon S3 bucket
|
1546
|
+
# specified in the **location** parameter.
|
1547
|
+
#
|
1548
|
+
# @option params [required, Boolean] :activate
|
1549
|
+
# A boolean value that indicates whether GuardDuty is to start using the
|
1550
|
+
# uploaded trusted entity set.
|
1551
|
+
#
|
1552
|
+
# @option params [String] :client_token
|
1553
|
+
# The idempotency token for the create request.
|
1554
|
+
#
|
1555
|
+
# **A suitable default value is auto-generated.** You should normally
|
1556
|
+
# not need to pass this option.**
|
1557
|
+
#
|
1558
|
+
# @option params [Hash<String,String>] :tags
|
1559
|
+
# The tags to be added to a new trusted entity set resource.
|
1560
|
+
#
|
1561
|
+
# @return [Types::CreateTrustedEntitySetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1562
|
+
#
|
1563
|
+
# * {Types::CreateTrustedEntitySetResponse#trusted_entity_set_id #trusted_entity_set_id} => String
|
1564
|
+
#
|
1565
|
+
# @example Request syntax with placeholder values
|
1566
|
+
#
|
1567
|
+
# resp = client.create_trusted_entity_set({
|
1568
|
+
# detector_id: "DetectorId", # required
|
1569
|
+
# name: "Name", # required
|
1570
|
+
# format: "TXT", # required, accepts TXT, STIX, OTX_CSV, ALIEN_VAULT, PROOF_POINT, FIRE_EYE
|
1571
|
+
# location: "Location", # required
|
1572
|
+
# expected_bucket_owner: "ExpectedBucketOwner",
|
1573
|
+
# activate: false, # required
|
1574
|
+
# client_token: "ClientToken",
|
1575
|
+
# tags: {
|
1576
|
+
# "TagKey" => "TagValue",
|
1577
|
+
# },
|
1578
|
+
# })
|
1579
|
+
#
|
1580
|
+
# @example Response structure
|
1581
|
+
#
|
1582
|
+
# resp.trusted_entity_set_id #=> String
|
1583
|
+
#
|
1584
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateTrustedEntitySet AWS API Documentation
|
1585
|
+
#
|
1586
|
+
# @overload create_trusted_entity_set(params = {})
|
1587
|
+
# @param [Hash] params ({})
|
1588
|
+
def create_trusted_entity_set(params = {}, options = {})
|
1589
|
+
req = build_request(:create_trusted_entity_set, params)
|
1590
|
+
req.send_request(options)
|
1591
|
+
end
|
1592
|
+
|
1430
1593
|
# Declines invitations sent to the current member account by Amazon Web
|
1431
1594
|
# Services accounts specified by their account IDs.
|
1432
1595
|
#
|
@@ -1696,6 +1859,42 @@ module Aws::GuardDuty
|
|
1696
1859
|
req.send_request(options)
|
1697
1860
|
end
|
1698
1861
|
|
1862
|
+
# Deletes the threat entity set that is associated with the specified
|
1863
|
+
# `threatEntitySetId`.
|
1864
|
+
#
|
1865
|
+
# @option params [required, String] :detector_id
|
1866
|
+
# The unique ID of the detector associated with the threat entity set
|
1867
|
+
# resource.
|
1868
|
+
#
|
1869
|
+
# To find the `detectorId` in the current Region, see the Settings page
|
1870
|
+
# in the GuardDuty console, or run the [ListDetectors][1] API.
|
1871
|
+
#
|
1872
|
+
#
|
1873
|
+
#
|
1874
|
+
# [1]: https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html
|
1875
|
+
#
|
1876
|
+
# @option params [required, String] :threat_entity_set_id
|
1877
|
+
# The unique ID that helps GuardDuty identify which threat entity set
|
1878
|
+
# needs to be deleted.
|
1879
|
+
#
|
1880
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1881
|
+
#
|
1882
|
+
# @example Request syntax with placeholder values
|
1883
|
+
#
|
1884
|
+
# resp = client.delete_threat_entity_set({
|
1885
|
+
# detector_id: "DetectorId", # required
|
1886
|
+
# threat_entity_set_id: "String", # required
|
1887
|
+
# })
|
1888
|
+
#
|
1889
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteThreatEntitySet AWS API Documentation
|
1890
|
+
#
|
1891
|
+
# @overload delete_threat_entity_set(params = {})
|
1892
|
+
# @param [Hash] params ({})
|
1893
|
+
def delete_threat_entity_set(params = {}, options = {})
|
1894
|
+
req = build_request(:delete_threat_entity_set, params)
|
1895
|
+
req.send_request(options)
|
1896
|
+
end
|
1897
|
+
|
1699
1898
|
# Deletes the ThreatIntelSet specified by the ThreatIntelSet ID.
|
1700
1899
|
#
|
1701
1900
|
# @option params [required, String] :detector_id
|
@@ -1730,6 +1929,42 @@ module Aws::GuardDuty
|
|
1730
1929
|
req.send_request(options)
|
1731
1930
|
end
|
1732
1931
|
|
1932
|
+
# Deletes the trusted entity set that is associated with the specified
|
1933
|
+
# `trustedEntitySetId`.
|
1934
|
+
#
|
1935
|
+
# @option params [required, String] :detector_id
|
1936
|
+
# The unique ID of the detector associated with the trusted entity set
|
1937
|
+
# resource.
|
1938
|
+
#
|
1939
|
+
# To find the `detectorId` in the current Region, see the Settings page
|
1940
|
+
# in the GuardDuty console, or run the [ListDetectors][1] API.
|
1941
|
+
#
|
1942
|
+
#
|
1943
|
+
#
|
1944
|
+
# [1]: https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html
|
1945
|
+
#
|
1946
|
+
# @option params [required, String] :trusted_entity_set_id
|
1947
|
+
# The unique ID that helps GuardDuty identify which trusted entity set
|
1948
|
+
# needs to be deleted.
|
1949
|
+
#
|
1950
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1951
|
+
#
|
1952
|
+
# @example Request syntax with placeholder values
|
1953
|
+
#
|
1954
|
+
# resp = client.delete_trusted_entity_set({
|
1955
|
+
# detector_id: "DetectorId", # required
|
1956
|
+
# trusted_entity_set_id: "String", # required
|
1957
|
+
# })
|
1958
|
+
#
|
1959
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteTrustedEntitySet AWS API Documentation
|
1960
|
+
#
|
1961
|
+
# @overload delete_trusted_entity_set(params = {})
|
1962
|
+
# @param [Hash] params ({})
|
1963
|
+
def delete_trusted_entity_set(params = {}, options = {})
|
1964
|
+
req = build_request(:delete_trusted_entity_set, params)
|
1965
|
+
req.send_request(options)
|
1966
|
+
end
|
1967
|
+
|
1733
1968
|
# Returns a list of malware scans. Each member account can view the
|
1734
1969
|
# malware scans for their own accounts. An administrator can view the
|
1735
1970
|
# malware scans for all the member accounts.
|
@@ -3618,6 +3853,64 @@ module Aws::GuardDuty
|
|
3618
3853
|
req.send_request(options)
|
3619
3854
|
end
|
3620
3855
|
|
3856
|
+
# Retrieves the threat entity set associated with the specified
|
3857
|
+
# `threatEntitySetId`.
|
3858
|
+
#
|
3859
|
+
# @option params [required, String] :detector_id
|
3860
|
+
# The unique ID of the detector associated with the threat entity set
|
3861
|
+
# resource.
|
3862
|
+
#
|
3863
|
+
# To find the `detectorId` in the current Region, see the Settings page
|
3864
|
+
# in the GuardDuty console, or run the [ListDetectors][1] API.
|
3865
|
+
#
|
3866
|
+
#
|
3867
|
+
#
|
3868
|
+
# [1]: https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html
|
3869
|
+
#
|
3870
|
+
# @option params [required, String] :threat_entity_set_id
|
3871
|
+
# The unique ID that helps GuardDuty identify the threat entity set.
|
3872
|
+
#
|
3873
|
+
# @return [Types::GetThreatEntitySetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3874
|
+
#
|
3875
|
+
# * {Types::GetThreatEntitySetResponse#name #name} => String
|
3876
|
+
# * {Types::GetThreatEntitySetResponse#format #format} => String
|
3877
|
+
# * {Types::GetThreatEntitySetResponse#location #location} => String
|
3878
|
+
# * {Types::GetThreatEntitySetResponse#expected_bucket_owner #expected_bucket_owner} => String
|
3879
|
+
# * {Types::GetThreatEntitySetResponse#status #status} => String
|
3880
|
+
# * {Types::GetThreatEntitySetResponse#tags #tags} => Hash<String,String>
|
3881
|
+
# * {Types::GetThreatEntitySetResponse#created_at #created_at} => Time
|
3882
|
+
# * {Types::GetThreatEntitySetResponse#updated_at #updated_at} => Time
|
3883
|
+
# * {Types::GetThreatEntitySetResponse#error_details #error_details} => String
|
3884
|
+
#
|
3885
|
+
# @example Request syntax with placeholder values
|
3886
|
+
#
|
3887
|
+
# resp = client.get_threat_entity_set({
|
3888
|
+
# detector_id: "DetectorId", # required
|
3889
|
+
# threat_entity_set_id: "String", # required
|
3890
|
+
# })
|
3891
|
+
#
|
3892
|
+
# @example Response structure
|
3893
|
+
#
|
3894
|
+
# resp.name #=> String
|
3895
|
+
# resp.format #=> String, one of "TXT", "STIX", "OTX_CSV", "ALIEN_VAULT", "PROOF_POINT", "FIRE_EYE"
|
3896
|
+
# resp.location #=> String
|
3897
|
+
# resp.expected_bucket_owner #=> String
|
3898
|
+
# resp.status #=> String, one of "INACTIVE", "ACTIVATING", "ACTIVE", "DEACTIVATING", "ERROR", "DELETE_PENDING", "DELETED"
|
3899
|
+
# resp.tags #=> Hash
|
3900
|
+
# resp.tags["TagKey"] #=> String
|
3901
|
+
# resp.created_at #=> Time
|
3902
|
+
# resp.updated_at #=> Time
|
3903
|
+
# resp.error_details #=> String
|
3904
|
+
#
|
3905
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetThreatEntitySet AWS API Documentation
|
3906
|
+
#
|
3907
|
+
# @overload get_threat_entity_set(params = {})
|
3908
|
+
# @param [Hash] params ({})
|
3909
|
+
def get_threat_entity_set(params = {}, options = {})
|
3910
|
+
req = build_request(:get_threat_entity_set, params)
|
3911
|
+
req.send_request(options)
|
3912
|
+
end
|
3913
|
+
|
3621
3914
|
# Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet
|
3622
3915
|
# ID.
|
3623
3916
|
#
|
@@ -3670,6 +3963,57 @@ module Aws::GuardDuty
|
|
3670
3963
|
req.send_request(options)
|
3671
3964
|
end
|
3672
3965
|
|
3966
|
+
# Retrieves the trusted entity set associated with the specified
|
3967
|
+
# `trustedEntitySetId`.
|
3968
|
+
#
|
3969
|
+
# @option params [required, String] :detector_id
|
3970
|
+
# The unique ID of the GuardDuty detector associated with this trusted
|
3971
|
+
# entity set.
|
3972
|
+
#
|
3973
|
+
# @option params [required, String] :trusted_entity_set_id
|
3974
|
+
# The unique ID that helps GuardDuty identify the trusted entity set.
|
3975
|
+
#
|
3976
|
+
# @return [Types::GetTrustedEntitySetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3977
|
+
#
|
3978
|
+
# * {Types::GetTrustedEntitySetResponse#name #name} => String
|
3979
|
+
# * {Types::GetTrustedEntitySetResponse#format #format} => String
|
3980
|
+
# * {Types::GetTrustedEntitySetResponse#location #location} => String
|
3981
|
+
# * {Types::GetTrustedEntitySetResponse#expected_bucket_owner #expected_bucket_owner} => String
|
3982
|
+
# * {Types::GetTrustedEntitySetResponse#status #status} => String
|
3983
|
+
# * {Types::GetTrustedEntitySetResponse#tags #tags} => Hash<String,String>
|
3984
|
+
# * {Types::GetTrustedEntitySetResponse#created_at #created_at} => Time
|
3985
|
+
# * {Types::GetTrustedEntitySetResponse#updated_at #updated_at} => Time
|
3986
|
+
# * {Types::GetTrustedEntitySetResponse#error_details #error_details} => String
|
3987
|
+
#
|
3988
|
+
# @example Request syntax with placeholder values
|
3989
|
+
#
|
3990
|
+
# resp = client.get_trusted_entity_set({
|
3991
|
+
# detector_id: "DetectorId", # required
|
3992
|
+
# trusted_entity_set_id: "String", # required
|
3993
|
+
# })
|
3994
|
+
#
|
3995
|
+
# @example Response structure
|
3996
|
+
#
|
3997
|
+
# resp.name #=> String
|
3998
|
+
# resp.format #=> String, one of "TXT", "STIX", "OTX_CSV", "ALIEN_VAULT", "PROOF_POINT", "FIRE_EYE"
|
3999
|
+
# resp.location #=> String
|
4000
|
+
# resp.expected_bucket_owner #=> String
|
4001
|
+
# resp.status #=> String, one of "INACTIVE", "ACTIVATING", "ACTIVE", "DEACTIVATING", "ERROR", "DELETE_PENDING", "DELETED"
|
4002
|
+
# resp.tags #=> Hash
|
4003
|
+
# resp.tags["TagKey"] #=> String
|
4004
|
+
# resp.created_at #=> Time
|
4005
|
+
# resp.updated_at #=> Time
|
4006
|
+
# resp.error_details #=> String
|
4007
|
+
#
|
4008
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetTrustedEntitySet AWS API Documentation
|
4009
|
+
#
|
4010
|
+
# @overload get_trusted_entity_set(params = {})
|
4011
|
+
# @param [Hash] params ({})
|
4012
|
+
def get_trusted_entity_set(params = {}, options = {})
|
4013
|
+
req = build_request(:get_trusted_entity_set, params)
|
4014
|
+
req.send_request(options)
|
4015
|
+
end
|
4016
|
+
|
3673
4017
|
# Lists Amazon GuardDuty usage statistics over the last 30 days for the
|
3674
4018
|
# specified detector ID. For newly enabled detectors or data sources,
|
3675
4019
|
# the cost returned will include only the usage so far under 30 days.
|
@@ -4616,6 +4960,63 @@ module Aws::GuardDuty
|
|
4616
4960
|
req.send_request(options)
|
4617
4961
|
end
|
4618
4962
|
|
4963
|
+
# Lists the threat entity sets associated with the specified GuardDuty
|
4964
|
+
# detector ID. If you use this operation from a member account, the
|
4965
|
+
# threat entity sets that are returned as a response, belong to the
|
4966
|
+
# administrator account.
|
4967
|
+
#
|
4968
|
+
# @option params [required, String] :detector_id
|
4969
|
+
# The unique ID of the GuardDuty detector that is associated with this
|
4970
|
+
# threat entity set.
|
4971
|
+
#
|
4972
|
+
# To find the `detectorId` in the current Region, see the Settings page
|
4973
|
+
# in the GuardDuty console, or run the [ListDetectors][1] API.
|
4974
|
+
#
|
4975
|
+
#
|
4976
|
+
#
|
4977
|
+
# [1]: https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html
|
4978
|
+
#
|
4979
|
+
# @option params [Integer] :max_results
|
4980
|
+
# You can use this parameter to indicate the maximum number of items you
|
4981
|
+
# want in the response. The default value is 50.
|
4982
|
+
#
|
4983
|
+
# @option params [String] :next_token
|
4984
|
+
# You can use this parameter when paginating results. Set the value of
|
4985
|
+
# this parameter to null on your first call to the list action. For
|
4986
|
+
# subsequent calls to the action, fill nextToken in the request with the
|
4987
|
+
# value of NextToken from the previous response to continue listing
|
4988
|
+
# data.
|
4989
|
+
#
|
4990
|
+
# @return [Types::ListThreatEntitySetsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4991
|
+
#
|
4992
|
+
# * {Types::ListThreatEntitySetsResponse#threat_entity_set_ids #threat_entity_set_ids} => Array<String>
|
4993
|
+
# * {Types::ListThreatEntitySetsResponse#next_token #next_token} => String
|
4994
|
+
#
|
4995
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4996
|
+
#
|
4997
|
+
# @example Request syntax with placeholder values
|
4998
|
+
#
|
4999
|
+
# resp = client.list_threat_entity_sets({
|
5000
|
+
# detector_id: "DetectorId", # required
|
5001
|
+
# max_results: 1,
|
5002
|
+
# next_token: "String",
|
5003
|
+
# })
|
5004
|
+
#
|
5005
|
+
# @example Response structure
|
5006
|
+
#
|
5007
|
+
# resp.threat_entity_set_ids #=> Array
|
5008
|
+
# resp.threat_entity_set_ids[0] #=> String
|
5009
|
+
# resp.next_token #=> String
|
5010
|
+
#
|
5011
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListThreatEntitySets AWS API Documentation
|
5012
|
+
#
|
5013
|
+
# @overload list_threat_entity_sets(params = {})
|
5014
|
+
# @param [Hash] params ({})
|
5015
|
+
def list_threat_entity_sets(params = {}, options = {})
|
5016
|
+
req = build_request(:list_threat_entity_sets, params)
|
5017
|
+
req.send_request(options)
|
5018
|
+
end
|
5019
|
+
|
4619
5020
|
# Lists the ThreatIntelSets of the GuardDuty service specified by the
|
4620
5021
|
# detector ID. If you use this operation from a member account, the
|
4621
5022
|
# ThreatIntelSets associated with the administrator account are
|
@@ -4674,6 +5075,63 @@ module Aws::GuardDuty
|
|
4674
5075
|
req.send_request(options)
|
4675
5076
|
end
|
4676
5077
|
|
5078
|
+
# Lists the trusted entity sets associated with the specified GuardDuty
|
5079
|
+
# detector ID. If you use this operation from a member account, the
|
5080
|
+
# trusted entity sets that are returned as a response, belong to the
|
5081
|
+
# administrator account.
|
5082
|
+
#
|
5083
|
+
# @option params [required, String] :detector_id
|
5084
|
+
# The unique ID of the GuardDuty detector that is associated with this
|
5085
|
+
# threat entity set.
|
5086
|
+
#
|
5087
|
+
# To find the `detectorId` in the current Region, see the Settings page
|
5088
|
+
# in the GuardDuty console, or run the [ListDetectors][1] API.
|
5089
|
+
#
|
5090
|
+
#
|
5091
|
+
#
|
5092
|
+
# [1]: https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html
|
5093
|
+
#
|
5094
|
+
# @option params [Integer] :max_results
|
5095
|
+
# You can use this parameter to indicate the maximum number of items you
|
5096
|
+
# want in the response. The default value is 50.
|
5097
|
+
#
|
5098
|
+
# @option params [String] :next_token
|
5099
|
+
# You can use this parameter when paginating results. Set the value of
|
5100
|
+
# this parameter to null on your first call to the list action. For
|
5101
|
+
# subsequent calls to the action, fill nextToken in the request with the
|
5102
|
+
# value of NextToken from the previous response to continue listing
|
5103
|
+
# data.
|
5104
|
+
#
|
5105
|
+
# @return [Types::ListTrustedEntitySetsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5106
|
+
#
|
5107
|
+
# * {Types::ListTrustedEntitySetsResponse#trusted_entity_set_ids #trusted_entity_set_ids} => Array<String>
|
5108
|
+
# * {Types::ListTrustedEntitySetsResponse#next_token #next_token} => String
|
5109
|
+
#
|
5110
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
5111
|
+
#
|
5112
|
+
# @example Request syntax with placeholder values
|
5113
|
+
#
|
5114
|
+
# resp = client.list_trusted_entity_sets({
|
5115
|
+
# detector_id: "DetectorId", # required
|
5116
|
+
# max_results: 1,
|
5117
|
+
# next_token: "String",
|
5118
|
+
# })
|
5119
|
+
#
|
5120
|
+
# @example Response structure
|
5121
|
+
#
|
5122
|
+
# resp.trusted_entity_set_ids #=> Array
|
5123
|
+
# resp.trusted_entity_set_ids[0] #=> String
|
5124
|
+
# resp.next_token #=> String
|
5125
|
+
#
|
5126
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListTrustedEntitySets AWS API Documentation
|
5127
|
+
#
|
5128
|
+
# @overload list_trusted_entity_sets(params = {})
|
5129
|
+
# @param [Hash] params ({})
|
5130
|
+
def list_trusted_entity_sets(params = {}, options = {})
|
5131
|
+
req = build_request(:list_trusted_entity_sets, params)
|
5132
|
+
req.send_request(options)
|
5133
|
+
end
|
5134
|
+
|
4677
5135
|
# Initiates the malware scan. Invoking this API will automatically
|
4678
5136
|
# create the [Service-linked role][1] in the corresponding account.
|
4679
5137
|
#
|
@@ -5543,6 +6001,66 @@ module Aws::GuardDuty
|
|
5543
6001
|
req.send_request(options)
|
5544
6002
|
end
|
5545
6003
|
|
6004
|
+
# Updates the threat entity set associated with the specified
|
6005
|
+
# `threatEntitySetId`.
|
6006
|
+
#
|
6007
|
+
# @option params [required, String] :detector_id
|
6008
|
+
# The unique ID of the GuardDuty detector associated with the threat
|
6009
|
+
# entity set that you want to update.
|
6010
|
+
#
|
6011
|
+
# To find the `detectorId` in the current Region, see the Settings page
|
6012
|
+
# in the GuardDuty console, or run the [ListDetectors][1] API.
|
6013
|
+
#
|
6014
|
+
#
|
6015
|
+
#
|
6016
|
+
# [1]: https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html
|
6017
|
+
#
|
6018
|
+
# @option params [required, String] :threat_entity_set_id
|
6019
|
+
# The ID returned by GuardDuty after updating the threat entity set
|
6020
|
+
# resource.
|
6021
|
+
#
|
6022
|
+
# @option params [String] :name
|
6023
|
+
# A user-friendly name to identify the trusted entity set.
|
6024
|
+
#
|
6025
|
+
# **List naming constraints** - The name of your list can include
|
6026
|
+
# lowercase letters, uppercase letters, numbers, dash (-), and
|
6027
|
+
# underscore (\_).
|
6028
|
+
#
|
6029
|
+
# @option params [String] :location
|
6030
|
+
# The URI of the file that contains the trusted entity set.
|
6031
|
+
#
|
6032
|
+
# @option params [String] :expected_bucket_owner
|
6033
|
+
# The Amazon Web Services account ID that owns the Amazon S3 bucket
|
6034
|
+
# specified in the **location** parameter.
|
6035
|
+
#
|
6036
|
+
# @option params [Boolean] :activate
|
6037
|
+
# A boolean value that indicates whether GuardDuty is to start using
|
6038
|
+
# this updated threat entity set. After you update an entity set, you
|
6039
|
+
# will need to activate it again. It might take up to 15 minutes for the
|
6040
|
+
# updated entity set to be effective.
|
6041
|
+
#
|
6042
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
6043
|
+
#
|
6044
|
+
# @example Request syntax with placeholder values
|
6045
|
+
#
|
6046
|
+
# resp = client.update_threat_entity_set({
|
6047
|
+
# detector_id: "DetectorId", # required
|
6048
|
+
# threat_entity_set_id: "String", # required
|
6049
|
+
# name: "Name",
|
6050
|
+
# location: "Location",
|
6051
|
+
# expected_bucket_owner: "ExpectedBucketOwner",
|
6052
|
+
# activate: false,
|
6053
|
+
# })
|
6054
|
+
#
|
6055
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateThreatEntitySet AWS API Documentation
|
6056
|
+
#
|
6057
|
+
# @overload update_threat_entity_set(params = {})
|
6058
|
+
# @param [Hash] params ({})
|
6059
|
+
def update_threat_entity_set(params = {}, options = {})
|
6060
|
+
req = build_request(:update_threat_entity_set, params)
|
6061
|
+
req.send_request(options)
|
6062
|
+
end
|
6063
|
+
|
5546
6064
|
# Updates the ThreatIntelSet specified by the ThreatIntelSet ID.
|
5547
6065
|
#
|
5548
6066
|
# @option params [required, String] :detector_id
|
@@ -5597,6 +6115,66 @@ module Aws::GuardDuty
|
|
5597
6115
|
req.send_request(options)
|
5598
6116
|
end
|
5599
6117
|
|
6118
|
+
# Updates the trusted entity set associated with the specified
|
6119
|
+
# `trustedEntitySetId`.
|
6120
|
+
#
|
6121
|
+
# @option params [required, String] :detector_id
|
6122
|
+
# The unique ID of the GuardDuty detector associated with the threat
|
6123
|
+
# entity set that you want to update.
|
6124
|
+
#
|
6125
|
+
# To find the `detectorId` in the current Region, see the Settings page
|
6126
|
+
# in the GuardDuty console, or run the [ListDetectors][1] API.
|
6127
|
+
#
|
6128
|
+
#
|
6129
|
+
#
|
6130
|
+
# [1]: https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html
|
6131
|
+
#
|
6132
|
+
# @option params [required, String] :trusted_entity_set_id
|
6133
|
+
# The ID returned by GuardDuty after updating the trusted entity set
|
6134
|
+
# resource.
|
6135
|
+
#
|
6136
|
+
# @option params [String] :name
|
6137
|
+
# A user-friendly name to identify the trusted entity set.
|
6138
|
+
#
|
6139
|
+
# **List naming constraints** - The name of your list can include
|
6140
|
+
# lowercase letters, uppercase letters, numbers, dash (-), and
|
6141
|
+
# underscore (\_).
|
6142
|
+
#
|
6143
|
+
# @option params [String] :location
|
6144
|
+
# The URI of the file that contains the trusted entity set.
|
6145
|
+
#
|
6146
|
+
# @option params [String] :expected_bucket_owner
|
6147
|
+
# The Amazon Web Services account ID that owns the Amazon S3 bucket
|
6148
|
+
# specified in the **location** parameter.
|
6149
|
+
#
|
6150
|
+
# @option params [Boolean] :activate
|
6151
|
+
# A boolean value that indicates whether GuardDuty is to start using
|
6152
|
+
# this updated trusted entity set. After you update an entity set, you
|
6153
|
+
# will need to activate it again. It might take up to 15 minutes for the
|
6154
|
+
# updated entity set to be effective.
|
6155
|
+
#
|
6156
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
6157
|
+
#
|
6158
|
+
# @example Request syntax with placeholder values
|
6159
|
+
#
|
6160
|
+
# resp = client.update_trusted_entity_set({
|
6161
|
+
# detector_id: "DetectorId", # required
|
6162
|
+
# trusted_entity_set_id: "String", # required
|
6163
|
+
# name: "Name",
|
6164
|
+
# location: "Location",
|
6165
|
+
# expected_bucket_owner: "ExpectedBucketOwner",
|
6166
|
+
# activate: false,
|
6167
|
+
# })
|
6168
|
+
#
|
6169
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateTrustedEntitySet AWS API Documentation
|
6170
|
+
#
|
6171
|
+
# @overload update_trusted_entity_set(params = {})
|
6172
|
+
# @param [Hash] params ({})
|
6173
|
+
def update_trusted_entity_set(params = {}, options = {})
|
6174
|
+
req = build_request(:update_trusted_entity_set, params)
|
6175
|
+
req.send_request(options)
|
6176
|
+
end
|
6177
|
+
|
5600
6178
|
# @!endgroup
|
5601
6179
|
|
5602
6180
|
# @param params ({})
|
@@ -5615,7 +6193,7 @@ module Aws::GuardDuty
|
|
5615
6193
|
tracer: tracer
|
5616
6194
|
)
|
5617
6195
|
context[:gem_name] = 'aws-sdk-guardduty'
|
5618
|
-
context[:gem_version] = '1.
|
6196
|
+
context[:gem_version] = '1.125.0'
|
5619
6197
|
Seahorse::Client::Request.new(handlers, context)
|
5620
6198
|
end
|
5621
6199
|
|