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.
data/sig/client.rbs CHANGED
@@ -193,6 +193,29 @@ module Aws
193
193
  ) -> _CreateIPSetResponseSuccess
194
194
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateIPSetResponseSuccess
195
195
 
196
+ interface _CreateMalwareProtectionPlanResponseSuccess
197
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateMalwareProtectionPlanResponse]
198
+ def malware_protection_plan_id: () -> ::String
199
+ end
200
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GuardDuty/Client.html#create_malware_protection_plan-instance_method
201
+ def create_malware_protection_plan: (
202
+ ?client_token: ::String,
203
+ role: ::String,
204
+ protected_resource: {
205
+ s3_bucket: {
206
+ bucket_name: ::String?,
207
+ object_prefixes: Array[::String]?
208
+ }?
209
+ },
210
+ ?actions: {
211
+ tagging: {
212
+ status: ("ENABLED" | "DISABLED")?
213
+ }?
214
+ },
215
+ ?tags: Hash[::String, ::String]
216
+ ) -> _CreateMalwareProtectionPlanResponseSuccess
217
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateMalwareProtectionPlanResponseSuccess
218
+
196
219
  interface _CreateMembersResponseSuccess
197
220
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateMembersResponse]
198
221
  def unprocessed_accounts: () -> ::Array[Types::UnprocessedAccount]
@@ -300,6 +323,12 @@ module Aws
300
323
  ) -> _DeleteInvitationsResponseSuccess
301
324
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteInvitationsResponseSuccess
302
325
 
326
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GuardDuty/Client.html#delete_malware_protection_plan-instance_method
327
+ def delete_malware_protection_plan: (
328
+ malware_protection_plan_id: ::String
329
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
330
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
331
+
303
332
  interface _DeleteMembersResponseSuccess
304
333
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteMembersResponse]
305
334
  def unprocessed_accounts: () -> ::Array[Types::UnprocessedAccount]
@@ -570,6 +599,23 @@ module Aws
570
599
  ) -> _GetInvitationsCountResponseSuccess
571
600
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetInvitationsCountResponseSuccess
572
601
 
602
+ interface _GetMalwareProtectionPlanResponseSuccess
603
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetMalwareProtectionPlanResponse]
604
+ def arn: () -> ::String
605
+ def role: () -> ::String
606
+ def protected_resource: () -> Types::CreateProtectedResource
607
+ def actions: () -> Types::MalwareProtectionPlanActions
608
+ def created_at: () -> ::Time
609
+ def status: () -> ("ACTIVE" | "WARNING" | "ERROR")
610
+ def status_reasons: () -> ::Array[Types::MalwareProtectionPlanStatusReason]
611
+ def tags: () -> ::Hash[::String, ::String]
612
+ end
613
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GuardDuty/Client.html#get_malware_protection_plan-instance_method
614
+ def get_malware_protection_plan: (
615
+ malware_protection_plan_id: ::String
616
+ ) -> _GetMalwareProtectionPlanResponseSuccess
617
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetMalwareProtectionPlanResponseSuccess
618
+
573
619
  interface _GetMalwareScanSettingsResponseSuccess
574
620
  include ::Seahorse::Client::_ResponseSuccess[Types::GetMalwareScanSettingsResponse]
575
621
  def scan_resource_criteria: () -> Types::ScanResourceCriteria
@@ -795,6 +841,17 @@ module Aws
795
841
  ) -> _ListInvitationsResponseSuccess
796
842
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListInvitationsResponseSuccess
797
843
 
844
+ interface _ListMalwareProtectionPlansResponseSuccess
845
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListMalwareProtectionPlansResponse]
846
+ def malware_protection_plans: () -> ::Array[Types::MalwareProtectionPlanSummary]
847
+ def next_token: () -> ::String
848
+ end
849
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GuardDuty/Client.html#list_malware_protection_plans-instance_method
850
+ def list_malware_protection_plans: (
851
+ ?next_token: ::String
852
+ ) -> _ListMalwareProtectionPlansResponseSuccess
853
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListMalwareProtectionPlansResponseSuccess
854
+
798
855
  interface _ListMembersResponseSuccess
799
856
  include ::Seahorse::Client::_ResponseSuccess[Types::ListMembersResponse]
800
857
  def members: () -> ::Array[Types::Member]
@@ -1012,6 +1069,23 @@ module Aws
1012
1069
  ) -> _UpdateIPSetResponseSuccess
1013
1070
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateIPSetResponseSuccess
1014
1071
 
1072
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GuardDuty/Client.html#update_malware_protection_plan-instance_method
1073
+ def update_malware_protection_plan: (
1074
+ malware_protection_plan_id: ::String,
1075
+ ?role: ::String,
1076
+ ?actions: {
1077
+ tagging: {
1078
+ status: ("ENABLED" | "DISABLED")?
1079
+ }?
1080
+ },
1081
+ ?protected_resource: {
1082
+ s3_bucket: {
1083
+ object_prefixes: Array[::String]?
1084
+ }?
1085
+ }
1086
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1087
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1088
+
1015
1089
  interface _UpdateMalwareScanSettingsResponseSuccess
1016
1090
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateMalwareScanSettingsResponse]
1017
1091
  end
data/sig/errors.rbs CHANGED
@@ -27,6 +27,10 @@ module Aws
27
27
  def message: () -> ::String
28
28
  def type: () -> ::String
29
29
  end
30
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
31
+ def message: () -> ::String
32
+ def type: () -> ::String
33
+ end
30
34
  end
31
35
  end
32
36
  end
data/sig/types.rbs CHANGED
@@ -349,6 +349,20 @@ module Aws::GuardDuty
349
349
  SENSITIVE: []
350
350
  end
351
351
 
352
+ class CreateMalwareProtectionPlanRequest
353
+ attr_accessor client_token: ::String
354
+ attr_accessor role: ::String
355
+ attr_accessor protected_resource: Types::CreateProtectedResource
356
+ attr_accessor actions: Types::MalwareProtectionPlanActions
357
+ attr_accessor tags: ::Hash[::String, ::String]
358
+ SENSITIVE: []
359
+ end
360
+
361
+ class CreateMalwareProtectionPlanResponse
362
+ attr_accessor malware_protection_plan_id: ::String
363
+ SENSITIVE: []
364
+ end
365
+
352
366
  class CreateMembersRequest
353
367
  attr_accessor detector_id: ::String
354
368
  attr_accessor account_details: ::Array[Types::AccountDetail]
@@ -360,6 +374,11 @@ module Aws::GuardDuty
360
374
  SENSITIVE: []
361
375
  end
362
376
 
377
+ class CreateProtectedResource
378
+ attr_accessor s3_bucket: Types::CreateS3BucketResource
379
+ SENSITIVE: []
380
+ end
381
+
363
382
  class CreatePublishingDestinationRequest
364
383
  attr_accessor detector_id: ::String
365
384
  attr_accessor destination_type: ("S3")
@@ -373,6 +392,12 @@ module Aws::GuardDuty
373
392
  SENSITIVE: []
374
393
  end
375
394
 
395
+ class CreateS3BucketResource
396
+ attr_accessor bucket_name: ::String
397
+ attr_accessor object_prefixes: ::Array[::String]
398
+ SENSITIVE: []
399
+ end
400
+
376
401
  class CreateSampleFindingsRequest
377
402
  attr_accessor detector_id: ::String
378
403
  attr_accessor finding_types: ::Array[::String]
@@ -487,6 +512,11 @@ module Aws::GuardDuty
487
512
  SENSITIVE: []
488
513
  end
489
514
 
515
+ class DeleteMalwareProtectionPlanRequest
516
+ attr_accessor malware_protection_plan_id: ::String
517
+ SENSITIVE: []
518
+ end
519
+
490
520
  class DeleteMembersRequest
491
521
  attr_accessor detector_id: ::String
492
522
  attr_accessor account_ids: ::Array[::String]
@@ -901,6 +931,23 @@ module Aws::GuardDuty
901
931
  SENSITIVE: []
902
932
  end
903
933
 
934
+ class GetMalwareProtectionPlanRequest
935
+ attr_accessor malware_protection_plan_id: ::String
936
+ SENSITIVE: []
937
+ end
938
+
939
+ class GetMalwareProtectionPlanResponse
940
+ attr_accessor arn: ::String
941
+ attr_accessor role: ::String
942
+ attr_accessor protected_resource: Types::CreateProtectedResource
943
+ attr_accessor actions: Types::MalwareProtectionPlanActions
944
+ attr_accessor created_at: ::Time
945
+ attr_accessor status: ("ACTIVE" | "WARNING" | "ERROR")
946
+ attr_accessor status_reasons: ::Array[Types::MalwareProtectionPlanStatusReason]
947
+ attr_accessor tags: ::Hash[::String, ::String]
948
+ SENSITIVE: []
949
+ end
950
+
904
951
  class GetMalwareScanSettingsRequest
905
952
  attr_accessor detector_id: ::String
906
953
  SENSITIVE: []
@@ -1062,6 +1109,12 @@ module Aws::GuardDuty
1062
1109
  SENSITIVE: []
1063
1110
  end
1064
1111
 
1112
+ class ItemPath
1113
+ attr_accessor nested_item_path: ::String
1114
+ attr_accessor hash: ::String
1115
+ SENSITIVE: []
1116
+ end
1117
+
1065
1118
  class KubernetesApiCallAction
1066
1119
  attr_accessor request_uri: ::String
1067
1120
  attr_accessor verb: ::String
@@ -1261,6 +1314,17 @@ module Aws::GuardDuty
1261
1314
  SENSITIVE: []
1262
1315
  end
1263
1316
 
1317
+ class ListMalwareProtectionPlansRequest
1318
+ attr_accessor next_token: ::String
1319
+ SENSITIVE: []
1320
+ end
1321
+
1322
+ class ListMalwareProtectionPlansResponse
1323
+ attr_accessor malware_protection_plans: ::Array[Types::MalwareProtectionPlanSummary]
1324
+ attr_accessor next_token: ::String
1325
+ SENSITIVE: []
1326
+ end
1327
+
1264
1328
  class ListMembersRequest
1265
1329
  attr_accessor detector_id: ::String
1266
1330
  attr_accessor max_results: ::Integer
@@ -1359,6 +1423,32 @@ module Aws::GuardDuty
1359
1423
  SENSITIVE: []
1360
1424
  end
1361
1425
 
1426
+ class MalwareProtectionPlanActions
1427
+ attr_accessor tagging: Types::MalwareProtectionPlanTaggingAction
1428
+ SENSITIVE: []
1429
+ end
1430
+
1431
+ class MalwareProtectionPlanStatusReason
1432
+ attr_accessor code: ::String
1433
+ attr_accessor message: ::String
1434
+ SENSITIVE: []
1435
+ end
1436
+
1437
+ class MalwareProtectionPlanSummary
1438
+ attr_accessor malware_protection_plan_id: ::String
1439
+ SENSITIVE: []
1440
+ end
1441
+
1442
+ class MalwareProtectionPlanTaggingAction
1443
+ attr_accessor status: ("ENABLED" | "DISABLED")
1444
+ SENSITIVE: []
1445
+ end
1446
+
1447
+ class MalwareScanDetails
1448
+ attr_accessor threats: ::Array[Types::Threat]
1449
+ SENSITIVE: []
1450
+ end
1451
+
1362
1452
  class Master
1363
1453
  attr_accessor account_id: ::String
1364
1454
  attr_accessor invitation_id: ::String
@@ -1707,6 +1797,12 @@ module Aws::GuardDuty
1707
1797
  SENSITIVE: []
1708
1798
  end
1709
1799
 
1800
+ class ResourceNotFoundException
1801
+ attr_accessor message: ::String
1802
+ attr_accessor type: ::String
1803
+ SENSITIVE: []
1804
+ end
1805
+
1710
1806
  class RuntimeContext
1711
1807
  attr_accessor modifying_process: Types::ProcessDetails
1712
1808
  attr_accessor modified_at: ::Time
@@ -1751,6 +1847,7 @@ module Aws::GuardDuty
1751
1847
  attr_accessor tags: ::Array[Types::Tag]
1752
1848
  attr_accessor default_server_side_encryption: Types::DefaultServerSideEncryption
1753
1849
  attr_accessor public_access: Types::PublicAccess
1850
+ attr_accessor s3_object_details: ::Array[Types::S3ObjectDetail]
1754
1851
  SENSITIVE: []
1755
1852
  end
1756
1853
 
@@ -1764,6 +1861,15 @@ module Aws::GuardDuty
1764
1861
  SENSITIVE: []
1765
1862
  end
1766
1863
 
1864
+ class S3ObjectDetail
1865
+ attr_accessor object_arn: ::String
1866
+ attr_accessor key: ::String
1867
+ attr_accessor etag: ::String
1868
+ attr_accessor hash: ::String
1869
+ attr_accessor version_id: ::String
1870
+ SENSITIVE: []
1871
+ end
1872
+
1767
1873
  class Scan
1768
1874
  attr_accessor detector_id: ::String
1769
1875
  attr_accessor admin_detector_id: ::String
@@ -1874,6 +1980,7 @@ module Aws::GuardDuty
1874
1980
  attr_accessor ebs_volume_scan_details: Types::EbsVolumeScanDetails
1875
1981
  attr_accessor runtime_details: Types::RuntimeDetails
1876
1982
  attr_accessor detection: Types::Detection
1983
+ attr_accessor malware_scan_details: Types::MalwareScanDetails
1877
1984
  SENSITIVE: []
1878
1985
  end
1879
1986
 
@@ -1936,6 +2043,13 @@ module Aws::GuardDuty
1936
2043
  class TagResourceResponse < Aws::EmptyStructure
1937
2044
  end
1938
2045
 
2046
+ class Threat
2047
+ attr_accessor name: ::String
2048
+ attr_accessor source: ::String
2049
+ attr_accessor item_paths: ::Array[Types::ItemPath]
2050
+ SENSITIVE: []
2051
+ end
2052
+
1939
2053
  class ThreatDetectedByName
1940
2054
  attr_accessor item_count: ::Integer
1941
2055
  attr_accessor unique_threat_name_count: ::Integer
@@ -2047,6 +2161,14 @@ module Aws::GuardDuty
2047
2161
  class UpdateIPSetResponse < Aws::EmptyStructure
2048
2162
  end
2049
2163
 
2164
+ class UpdateMalwareProtectionPlanRequest
2165
+ attr_accessor malware_protection_plan_id: ::String
2166
+ attr_accessor role: ::String
2167
+ attr_accessor actions: Types::MalwareProtectionPlanActions
2168
+ attr_accessor protected_resource: Types::UpdateProtectedResource
2169
+ SENSITIVE: []
2170
+ end
2171
+
2050
2172
  class UpdateMalwareScanSettingsRequest
2051
2173
  attr_accessor detector_id: ::String
2052
2174
  attr_accessor scan_resource_criteria: Types::ScanResourceCriteria
@@ -2082,6 +2204,11 @@ module Aws::GuardDuty
2082
2204
  class UpdateOrganizationConfigurationResponse < Aws::EmptyStructure
2083
2205
  end
2084
2206
 
2207
+ class UpdateProtectedResource
2208
+ attr_accessor s3_bucket: Types::UpdateS3BucketResource
2209
+ SENSITIVE: []
2210
+ end
2211
+
2085
2212
  class UpdatePublishingDestinationRequest
2086
2213
  attr_accessor detector_id: ::String
2087
2214
  attr_accessor destination_id: ::String
@@ -2092,6 +2219,11 @@ module Aws::GuardDuty
2092
2219
  class UpdatePublishingDestinationResponse < Aws::EmptyStructure
2093
2220
  end
2094
2221
 
2222
+ class UpdateS3BucketResource
2223
+ attr_accessor object_prefixes: ::Array[::String]
2224
+ SENSITIVE: []
2225
+ end
2226
+
2095
2227
  class UpdateThreatIntelSetRequest
2096
2228
  attr_accessor detector_id: ::String
2097
2229
  attr_accessor threat_intel_set_id: ::String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-guardduty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.93.0
4
+ version: 1.94.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-05 00:00:00.000000000 Z
11
+ date: 2024-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.197.0
22
+ version: 3.198.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.197.0
32
+ version: 3.198.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement