aws-sdk-guardduty 1.93.0 → 1.94.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 +243 -3
- data/lib/aws-sdk-guardduty/client_api.rb +192 -0
- data/lib/aws-sdk-guardduty/endpoints.rb +70 -0
- data/lib/aws-sdk-guardduty/errors.rb +21 -0
- data/lib/aws-sdk-guardduty/plugins/endpoints.rb +10 -0
- data/lib/aws-sdk-guardduty/types.rb +473 -7
- data/lib/aws-sdk-guardduty.rb +1 -1
- data/sig/client.rbs +74 -0
- data/sig/errors.rbs +4 -0
- data/sig/types.rbs +132 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf9df623523eebee8c156315c1527bf9e4dd4f8d0ec58ee1813ef35b59bb7d82
|
4
|
+
data.tar.gz: 13aab94b173d9101239b46a8a466d8a9eea01b06e94d772b1fc402efb009ba01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0548461891be43270144c2cf89dd5d392e64f48b2b857a67913f6731dea106a151455bdc2aeb401f0a694a31378adfd1831d60aa5542398145e705cf1e290951'
|
7
|
+
data.tar.gz: 0b311a6a10376497b7f8896addd4a812c06219ed531121b00763052f468a4d201b71e212e69940e76fa0db9a73bd1daa7fedfc251928f7ae22b1f0d3718d500f
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.94.0
|
@@ -89,6 +89,11 @@ module Aws::GuardDuty
|
|
89
89
|
|
90
90
|
# @overload initialize(options)
|
91
91
|
# @param [Hash] options
|
92
|
+
#
|
93
|
+
# @option options [Array<Seahorse::Client::Plugin>] :plugins ([]])
|
94
|
+
# A list of plugins to apply to the client. Each plugin is either a
|
95
|
+
# class name or an instance of a plugin class.
|
96
|
+
#
|
92
97
|
# @option options [required, Aws::CredentialProvider] :credentials
|
93
98
|
# Your AWS credentials. This can be an instance of any one of the
|
94
99
|
# following classes:
|
@@ -209,7 +214,6 @@ module Aws::GuardDuty
|
|
209
214
|
# 'https://example.com'
|
210
215
|
# 'http://example.com:123'
|
211
216
|
#
|
212
|
-
#
|
213
217
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
214
218
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
215
219
|
# for endpoint discovery enabled operations. Defaults to 1000.
|
@@ -298,7 +302,6 @@ module Aws::GuardDuty
|
|
298
302
|
# throttling. This is a provisional mode that may change behavior
|
299
303
|
# in the future.
|
300
304
|
#
|
301
|
-
#
|
302
305
|
# @option options [String] :sdk_ua_app_id
|
303
306
|
# A unique and opaque application ID that is appended to the
|
304
307
|
# User-Agent header as app/sdk_ua_app_id. It should have a
|
@@ -1006,6 +1009,77 @@ module Aws::GuardDuty
|
|
1006
1009
|
req.send_request(options)
|
1007
1010
|
end
|
1008
1011
|
|
1012
|
+
# Creates a new Malware Protection plan for the protected resource.
|
1013
|
+
#
|
1014
|
+
# When you create a Malware Protection plan, the Amazon Web Services
|
1015
|
+
# service terms for GuardDuty Malware Protection apply. For more
|
1016
|
+
# information, see [Amazon Web Services service terms for GuardDuty
|
1017
|
+
# Malware Protection][1].
|
1018
|
+
#
|
1019
|
+
#
|
1020
|
+
#
|
1021
|
+
# [1]: http://aws.amazon.com/service-terms/#87._Amazon_GuardDuty
|
1022
|
+
#
|
1023
|
+
# @option params [String] :client_token
|
1024
|
+
# The idempotency token for the create request.
|
1025
|
+
#
|
1026
|
+
# **A suitable default value is auto-generated.** You should normally
|
1027
|
+
# not need to pass this option.**
|
1028
|
+
#
|
1029
|
+
# @option params [required, String] :role
|
1030
|
+
# IAM role with permissions required to scan and add tags to the
|
1031
|
+
# associated protected resource.
|
1032
|
+
#
|
1033
|
+
# @option params [required, Types::CreateProtectedResource] :protected_resource
|
1034
|
+
# Information about the protected resource that is associated with the
|
1035
|
+
# created Malware Protection plan. Presently, `S3Bucket` is the only
|
1036
|
+
# supported protected resource.
|
1037
|
+
#
|
1038
|
+
# @option params [Types::MalwareProtectionPlanActions] :actions
|
1039
|
+
# Information about whether the tags will be added to the S3 object
|
1040
|
+
# after scanning.
|
1041
|
+
#
|
1042
|
+
# @option params [Hash<String,String>] :tags
|
1043
|
+
# Tags added to the Malware Protection plan resource.
|
1044
|
+
#
|
1045
|
+
# @return [Types::CreateMalwareProtectionPlanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1046
|
+
#
|
1047
|
+
# * {Types::CreateMalwareProtectionPlanResponse#malware_protection_plan_id #malware_protection_plan_id} => String
|
1048
|
+
#
|
1049
|
+
# @example Request syntax with placeholder values
|
1050
|
+
#
|
1051
|
+
# resp = client.create_malware_protection_plan({
|
1052
|
+
# client_token: "ClientToken",
|
1053
|
+
# role: "String", # required
|
1054
|
+
# protected_resource: { # required
|
1055
|
+
# s3_bucket: {
|
1056
|
+
# bucket_name: "String",
|
1057
|
+
# object_prefixes: ["String"],
|
1058
|
+
# },
|
1059
|
+
# },
|
1060
|
+
# actions: {
|
1061
|
+
# tagging: {
|
1062
|
+
# status: "ENABLED", # accepts ENABLED, DISABLED
|
1063
|
+
# },
|
1064
|
+
# },
|
1065
|
+
# tags: {
|
1066
|
+
# "TagKey" => "TagValue",
|
1067
|
+
# },
|
1068
|
+
# })
|
1069
|
+
#
|
1070
|
+
# @example Response structure
|
1071
|
+
#
|
1072
|
+
# resp.malware_protection_plan_id #=> String
|
1073
|
+
#
|
1074
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateMalwareProtectionPlan AWS API Documentation
|
1075
|
+
#
|
1076
|
+
# @overload create_malware_protection_plan(params = {})
|
1077
|
+
# @param [Hash] params ({})
|
1078
|
+
def create_malware_protection_plan(params = {}, options = {})
|
1079
|
+
req = build_request(:create_malware_protection_plan, params)
|
1080
|
+
req.send_request(options)
|
1081
|
+
end
|
1082
|
+
|
1009
1083
|
# Creates member accounts of the current Amazon Web Services account by
|
1010
1084
|
# specifying a list of Amazon Web Services account IDs. This step is a
|
1011
1085
|
# prerequisite for managing the associated member accounts either by
|
@@ -1365,6 +1439,30 @@ module Aws::GuardDuty
|
|
1365
1439
|
req.send_request(options)
|
1366
1440
|
end
|
1367
1441
|
|
1442
|
+
# Deletes the Malware Protection plan ID associated with the Malware
|
1443
|
+
# Protection plan resource. Use this API only when you no longer want to
|
1444
|
+
# protect the resource associated with this Malware Protection plan ID.
|
1445
|
+
#
|
1446
|
+
# @option params [required, String] :malware_protection_plan_id
|
1447
|
+
# A unique identifier associated with Malware Protection plan resource.
|
1448
|
+
#
|
1449
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1450
|
+
#
|
1451
|
+
# @example Request syntax with placeholder values
|
1452
|
+
#
|
1453
|
+
# resp = client.delete_malware_protection_plan({
|
1454
|
+
# malware_protection_plan_id: "String", # required
|
1455
|
+
# })
|
1456
|
+
#
|
1457
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteMalwareProtectionPlan AWS API Documentation
|
1458
|
+
#
|
1459
|
+
# @overload delete_malware_protection_plan(params = {})
|
1460
|
+
# @param [Hash] params ({})
|
1461
|
+
def delete_malware_protection_plan(params = {}, options = {})
|
1462
|
+
req = build_request(:delete_malware_protection_plan, params)
|
1463
|
+
req.send_request(options)
|
1464
|
+
end
|
1465
|
+
|
1368
1466
|
# Deletes GuardDuty member accounts (to the current GuardDuty
|
1369
1467
|
# administrator account) specified by the account IDs.
|
1370
1468
|
#
|
@@ -2164,6 +2262,12 @@ module Aws::GuardDuty
|
|
2164
2262
|
# resp.findings[0].resource.s3_bucket_details[0].public_access.permission_configuration.account_level_permissions.block_public_access.block_public_acls #=> Boolean
|
2165
2263
|
# resp.findings[0].resource.s3_bucket_details[0].public_access.permission_configuration.account_level_permissions.block_public_access.block_public_policy #=> Boolean
|
2166
2264
|
# resp.findings[0].resource.s3_bucket_details[0].public_access.effective_permission #=> String
|
2265
|
+
# resp.findings[0].resource.s3_bucket_details[0].s3_object_details #=> Array
|
2266
|
+
# resp.findings[0].resource.s3_bucket_details[0].s3_object_details[0].object_arn #=> String
|
2267
|
+
# resp.findings[0].resource.s3_bucket_details[0].s3_object_details[0].key #=> String
|
2268
|
+
# resp.findings[0].resource.s3_bucket_details[0].s3_object_details[0].etag #=> String
|
2269
|
+
# resp.findings[0].resource.s3_bucket_details[0].s3_object_details[0].hash #=> String
|
2270
|
+
# resp.findings[0].resource.s3_bucket_details[0].s3_object_details[0].version_id #=> String
|
2167
2271
|
# resp.findings[0].resource.instance_details.availability_zone #=> String
|
2168
2272
|
# resp.findings[0].resource.instance_details.iam_instance_profile.arn #=> String
|
2169
2273
|
# resp.findings[0].resource.instance_details.iam_instance_profile.id #=> String
|
@@ -2585,6 +2689,12 @@ module Aws::GuardDuty
|
|
2585
2689
|
# resp.findings[0].service.detection.anomaly.unusual.behavior["String"]["String"].profile_subtype #=> String, one of "FREQUENT", "INFREQUENT", "UNSEEN", "RARE"
|
2586
2690
|
# resp.findings[0].service.detection.anomaly.unusual.behavior["String"]["String"].observations.text #=> Array
|
2587
2691
|
# resp.findings[0].service.detection.anomaly.unusual.behavior["String"]["String"].observations.text[0] #=> String
|
2692
|
+
# resp.findings[0].service.malware_scan_details.threats #=> Array
|
2693
|
+
# resp.findings[0].service.malware_scan_details.threats[0].name #=> String
|
2694
|
+
# resp.findings[0].service.malware_scan_details.threats[0].source #=> String
|
2695
|
+
# resp.findings[0].service.malware_scan_details.threats[0].item_paths #=> Array
|
2696
|
+
# resp.findings[0].service.malware_scan_details.threats[0].item_paths[0].nested_item_path #=> String
|
2697
|
+
# resp.findings[0].service.malware_scan_details.threats[0].item_paths[0].hash #=> String
|
2588
2698
|
# resp.findings[0].severity #=> Float
|
2589
2699
|
# resp.findings[0].title #=> String
|
2590
2700
|
# resp.findings[0].type #=> String
|
@@ -2725,6 +2835,54 @@ module Aws::GuardDuty
|
|
2725
2835
|
req.send_request(options)
|
2726
2836
|
end
|
2727
2837
|
|
2838
|
+
# Retrieves the Malware Protection plan details associated with a
|
2839
|
+
# Malware Protection plan ID.
|
2840
|
+
#
|
2841
|
+
# @option params [required, String] :malware_protection_plan_id
|
2842
|
+
# A unique identifier associated with Malware Protection plan resource.
|
2843
|
+
#
|
2844
|
+
# @return [Types::GetMalwareProtectionPlanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2845
|
+
#
|
2846
|
+
# * {Types::GetMalwareProtectionPlanResponse#arn #arn} => String
|
2847
|
+
# * {Types::GetMalwareProtectionPlanResponse#role #role} => String
|
2848
|
+
# * {Types::GetMalwareProtectionPlanResponse#protected_resource #protected_resource} => Types::CreateProtectedResource
|
2849
|
+
# * {Types::GetMalwareProtectionPlanResponse#actions #actions} => Types::MalwareProtectionPlanActions
|
2850
|
+
# * {Types::GetMalwareProtectionPlanResponse#created_at #created_at} => Time
|
2851
|
+
# * {Types::GetMalwareProtectionPlanResponse#status #status} => String
|
2852
|
+
# * {Types::GetMalwareProtectionPlanResponse#status_reasons #status_reasons} => Array<Types::MalwareProtectionPlanStatusReason>
|
2853
|
+
# * {Types::GetMalwareProtectionPlanResponse#tags #tags} => Hash<String,String>
|
2854
|
+
#
|
2855
|
+
# @example Request syntax with placeholder values
|
2856
|
+
#
|
2857
|
+
# resp = client.get_malware_protection_plan({
|
2858
|
+
# malware_protection_plan_id: "String", # required
|
2859
|
+
# })
|
2860
|
+
#
|
2861
|
+
# @example Response structure
|
2862
|
+
#
|
2863
|
+
# resp.arn #=> String
|
2864
|
+
# resp.role #=> String
|
2865
|
+
# resp.protected_resource.s3_bucket.bucket_name #=> String
|
2866
|
+
# resp.protected_resource.s3_bucket.object_prefixes #=> Array
|
2867
|
+
# resp.protected_resource.s3_bucket.object_prefixes[0] #=> String
|
2868
|
+
# resp.actions.tagging.status #=> String, one of "ENABLED", "DISABLED"
|
2869
|
+
# resp.created_at #=> Time
|
2870
|
+
# resp.status #=> String, one of "ACTIVE", "WARNING", "ERROR"
|
2871
|
+
# resp.status_reasons #=> Array
|
2872
|
+
# resp.status_reasons[0].code #=> String
|
2873
|
+
# resp.status_reasons[0].message #=> String
|
2874
|
+
# resp.tags #=> Hash
|
2875
|
+
# resp.tags["TagKey"] #=> String
|
2876
|
+
#
|
2877
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetMalwareProtectionPlan AWS API Documentation
|
2878
|
+
#
|
2879
|
+
# @overload get_malware_protection_plan(params = {})
|
2880
|
+
# @param [Hash] params ({})
|
2881
|
+
def get_malware_protection_plan(params = {}, options = {})
|
2882
|
+
req = build_request(:get_malware_protection_plan, params)
|
2883
|
+
req.send_request(options)
|
2884
|
+
end
|
2885
|
+
|
2728
2886
|
# Returns the details of the malware scan settings.
|
2729
2887
|
#
|
2730
2888
|
# There might be regional differences because some data sources might
|
@@ -3698,6 +3856,42 @@ module Aws::GuardDuty
|
|
3698
3856
|
req.send_request(options)
|
3699
3857
|
end
|
3700
3858
|
|
3859
|
+
# Lists the Malware Protection plan IDs associated with the protected
|
3860
|
+
# resources in your Amazon Web Services account.
|
3861
|
+
#
|
3862
|
+
# @option params [String] :next_token
|
3863
|
+
# You can use this parameter when paginating results. Set the value of
|
3864
|
+
# this parameter to null on your first call to the list action. For
|
3865
|
+
# subsequent calls to the action, fill nextToken in the request with the
|
3866
|
+
# value of `NextToken` from the previous response to continue listing
|
3867
|
+
# data.
|
3868
|
+
#
|
3869
|
+
# @return [Types::ListMalwareProtectionPlansResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3870
|
+
#
|
3871
|
+
# * {Types::ListMalwareProtectionPlansResponse#malware_protection_plans #malware_protection_plans} => Array<Types::MalwareProtectionPlanSummary>
|
3872
|
+
# * {Types::ListMalwareProtectionPlansResponse#next_token #next_token} => String
|
3873
|
+
#
|
3874
|
+
# @example Request syntax with placeholder values
|
3875
|
+
#
|
3876
|
+
# resp = client.list_malware_protection_plans({
|
3877
|
+
# next_token: "String",
|
3878
|
+
# })
|
3879
|
+
#
|
3880
|
+
# @example Response structure
|
3881
|
+
#
|
3882
|
+
# resp.malware_protection_plans #=> Array
|
3883
|
+
# resp.malware_protection_plans[0].malware_protection_plan_id #=> String
|
3884
|
+
# resp.next_token #=> String
|
3885
|
+
#
|
3886
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListMalwareProtectionPlans AWS API Documentation
|
3887
|
+
#
|
3888
|
+
# @overload list_malware_protection_plans(params = {})
|
3889
|
+
# @param [Hash] params ({})
|
3890
|
+
def list_malware_protection_plans(params = {}, options = {})
|
3891
|
+
req = build_request(:list_malware_protection_plans, params)
|
3892
|
+
req.send_request(options)
|
3893
|
+
end
|
3894
|
+
|
3701
3895
|
# Lists details about all member accounts for the current GuardDuty
|
3702
3896
|
# administrator account.
|
3703
3897
|
#
|
@@ -4381,6 +4575,52 @@ module Aws::GuardDuty
|
|
4381
4575
|
req.send_request(options)
|
4382
4576
|
end
|
4383
4577
|
|
4578
|
+
# Updates an existing Malware Protection plan resource.
|
4579
|
+
#
|
4580
|
+
# @option params [required, String] :malware_protection_plan_id
|
4581
|
+
# A unique identifier associated with the Malware Protection plan.
|
4582
|
+
#
|
4583
|
+
# @option params [String] :role
|
4584
|
+
# IAM role with permissions required to scan and add tags to the
|
4585
|
+
# associated protected resource.
|
4586
|
+
#
|
4587
|
+
# @option params [Types::MalwareProtectionPlanActions] :actions
|
4588
|
+
# Information about whether the tags will be added to the S3 object
|
4589
|
+
# after scanning.
|
4590
|
+
#
|
4591
|
+
# @option params [Types::UpdateProtectedResource] :protected_resource
|
4592
|
+
# Information about the protected resource that is associated with the
|
4593
|
+
# created Malware Protection plan. Presently, `S3Bucket` is the only
|
4594
|
+
# supported protected resource.
|
4595
|
+
#
|
4596
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4597
|
+
#
|
4598
|
+
# @example Request syntax with placeholder values
|
4599
|
+
#
|
4600
|
+
# resp = client.update_malware_protection_plan({
|
4601
|
+
# malware_protection_plan_id: "String", # required
|
4602
|
+
# role: "String",
|
4603
|
+
# actions: {
|
4604
|
+
# tagging: {
|
4605
|
+
# status: "ENABLED", # accepts ENABLED, DISABLED
|
4606
|
+
# },
|
4607
|
+
# },
|
4608
|
+
# protected_resource: {
|
4609
|
+
# s3_bucket: {
|
4610
|
+
# object_prefixes: ["String"],
|
4611
|
+
# },
|
4612
|
+
# },
|
4613
|
+
# })
|
4614
|
+
#
|
4615
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateMalwareProtectionPlan AWS API Documentation
|
4616
|
+
#
|
4617
|
+
# @overload update_malware_protection_plan(params = {})
|
4618
|
+
# @param [Hash] params ({})
|
4619
|
+
def update_malware_protection_plan(params = {}, options = {})
|
4620
|
+
req = build_request(:update_malware_protection_plan, params)
|
4621
|
+
req.send_request(options)
|
4622
|
+
end
|
4623
|
+
|
4384
4624
|
# Updates the malware scan settings.
|
4385
4625
|
#
|
4386
4626
|
# There might be regional differences because some data sources might
|
@@ -4734,7 +4974,7 @@ module Aws::GuardDuty
|
|
4734
4974
|
params: params,
|
4735
4975
|
config: config)
|
4736
4976
|
context[:gem_name] = 'aws-sdk-guardduty'
|
4737
|
-
context[:gem_version] = '1.
|
4977
|
+
context[:gem_version] = '1.94.0'
|
4738
4978
|
Seahorse::Client::Request.new(handlers, context)
|
4739
4979
|
end
|
4740
4980
|
|