aws-sdk-guardduty 1.132.0 → 1.133.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 +38 -1
- data/lib/aws-sdk-guardduty/client_api.rb +24 -0
- data/lib/aws-sdk-guardduty/types.rb +46 -0
- data/lib/aws-sdk-guardduty.rb +1 -1
- data/sig/client.rbs +13 -0
- data/sig/types.rbs +15 -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: 41daf82129584712a773fc6943032cba32b4d4e3c9e9b9c67d3462a442e5b01b
|
|
4
|
+
data.tar.gz: efd660bf5a66d97ecaf5ffde04aa3ebf302987a97c1c00fb07606a586fc878c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6084704b0a8b3962752af1d607ac94fae4689bf68c5d4f5997c809ce2acf7d51363cd8a1819c93b992a10baa727d26fab50cddb546cb213b2875798324e37a54
|
|
7
|
+
data.tar.gz: 11fb445e4bfabd649a01d572aefdeee476ff3bd0605e50c6407eea840f78778837caa0f137cc1166927a612b0c642ee759f39905c3715600d827111630090da4
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.133.0
|
|
@@ -5159,6 +5159,43 @@ module Aws::GuardDuty
|
|
|
5159
5159
|
req.send_request(options)
|
|
5160
5160
|
end
|
|
5161
5161
|
|
|
5162
|
+
# Initiates a malware scan for a specific S3 object. This API allows you
|
|
5163
|
+
# to perform on-demand malware scanning of individual objects in S3
|
|
5164
|
+
# buckets that have Malware Protection for S3 enabled.
|
|
5165
|
+
#
|
|
5166
|
+
# When you use this API, the Amazon Web Services service terms for
|
|
5167
|
+
# GuardDuty Malware Protection apply. For more information, see [Amazon
|
|
5168
|
+
# Web Services service terms for GuardDuty Malware Protection][1].
|
|
5169
|
+
#
|
|
5170
|
+
#
|
|
5171
|
+
#
|
|
5172
|
+
# [1]: http://aws.amazon.com/service-terms/#87._Amazon_GuardDuty
|
|
5173
|
+
#
|
|
5174
|
+
# @option params [Types::S3ObjectForSendObjectMalwareScan] :s3_object
|
|
5175
|
+
# The S3 object information for the object you want to scan. The bucket
|
|
5176
|
+
# must have a Malware Protection plan configured to use this API.
|
|
5177
|
+
#
|
|
5178
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
5179
|
+
#
|
|
5180
|
+
# @example Request syntax with placeholder values
|
|
5181
|
+
#
|
|
5182
|
+
# resp = client.send_object_malware_scan({
|
|
5183
|
+
# s3_object: {
|
|
5184
|
+
# bucket: "String",
|
|
5185
|
+
# key: "String",
|
|
5186
|
+
# version_id: "String",
|
|
5187
|
+
# },
|
|
5188
|
+
# })
|
|
5189
|
+
#
|
|
5190
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/SendObjectMalwareScan AWS API Documentation
|
|
5191
|
+
#
|
|
5192
|
+
# @overload send_object_malware_scan(params = {})
|
|
5193
|
+
# @param [Hash] params ({})
|
|
5194
|
+
def send_object_malware_scan(params = {}, options = {})
|
|
5195
|
+
req = build_request(:send_object_malware_scan, params)
|
|
5196
|
+
req.send_request(options)
|
|
5197
|
+
end
|
|
5198
|
+
|
|
5162
5199
|
# Initiates the malware scan. Invoking this API will automatically
|
|
5163
5200
|
# create the [Service-linked role][1] in the corresponding account.
|
|
5164
5201
|
#
|
|
@@ -6218,7 +6255,7 @@ module Aws::GuardDuty
|
|
|
6218
6255
|
tracer: tracer
|
|
6219
6256
|
)
|
|
6220
6257
|
context[:gem_name] = 'aws-sdk-guardduty'
|
|
6221
|
-
context[:gem_version] = '1.
|
|
6258
|
+
context[:gem_version] = '1.133.0'
|
|
6222
6259
|
Seahorse::Client::Request.new(handlers, context)
|
|
6223
6260
|
end
|
|
6224
6261
|
|
|
@@ -492,6 +492,7 @@ module Aws::GuardDuty
|
|
|
492
492
|
S3Object = Shapes::StructureShape.new(name: 'S3Object')
|
|
493
493
|
S3ObjectDetail = Shapes::StructureShape.new(name: 'S3ObjectDetail')
|
|
494
494
|
S3ObjectDetails = Shapes::ListShape.new(name: 'S3ObjectDetails')
|
|
495
|
+
S3ObjectForSendObjectMalwareScan = Shapes::StructureShape.new(name: 'S3ObjectForSendObjectMalwareScan')
|
|
495
496
|
S3ObjectUids = Shapes::ListShape.new(name: 'S3ObjectUids')
|
|
496
497
|
Scan = Shapes::StructureShape.new(name: 'Scan')
|
|
497
498
|
ScanCondition = Shapes::StructureShape.new(name: 'ScanCondition')
|
|
@@ -514,6 +515,8 @@ module Aws::GuardDuty
|
|
|
514
515
|
SecurityContext = Shapes::StructureShape.new(name: 'SecurityContext')
|
|
515
516
|
SecurityGroup = Shapes::StructureShape.new(name: 'SecurityGroup')
|
|
516
517
|
SecurityGroups = Shapes::ListShape.new(name: 'SecurityGroups')
|
|
518
|
+
SendObjectMalwareScanRequest = Shapes::StructureShape.new(name: 'SendObjectMalwareScanRequest')
|
|
519
|
+
SendObjectMalwareScanResponse = Shapes::StructureShape.new(name: 'SendObjectMalwareScanResponse')
|
|
517
520
|
SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
|
|
518
521
|
Sequence = Shapes::StructureShape.new(name: 'Sequence')
|
|
519
522
|
SequenceDescription = Shapes::StringShape.new(name: 'SequenceDescription')
|
|
@@ -2402,6 +2405,11 @@ module Aws::GuardDuty
|
|
|
2402
2405
|
|
|
2403
2406
|
S3ObjectDetails.member = Shapes::ShapeRef.new(shape: S3ObjectDetail)
|
|
2404
2407
|
|
|
2408
|
+
S3ObjectForSendObjectMalwareScan.add_member(:bucket, Shapes::ShapeRef.new(shape: String, location_name: "bucket"))
|
|
2409
|
+
S3ObjectForSendObjectMalwareScan.add_member(:key, Shapes::ShapeRef.new(shape: String, location_name: "key"))
|
|
2410
|
+
S3ObjectForSendObjectMalwareScan.add_member(:version_id, Shapes::ShapeRef.new(shape: String, location_name: "versionId"))
|
|
2411
|
+
S3ObjectForSendObjectMalwareScan.struct_class = Types::S3ObjectForSendObjectMalwareScan
|
|
2412
|
+
|
|
2405
2413
|
S3ObjectUids.member = Shapes::ShapeRef.new(shape: String)
|
|
2406
2414
|
|
|
2407
2415
|
Scan.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, location_name: "detectorId"))
|
|
@@ -2481,6 +2489,11 @@ module Aws::GuardDuty
|
|
|
2481
2489
|
|
|
2482
2490
|
SecurityGroups.member = Shapes::ShapeRef.new(shape: SecurityGroup)
|
|
2483
2491
|
|
|
2492
|
+
SendObjectMalwareScanRequest.add_member(:s3_object, Shapes::ShapeRef.new(shape: S3ObjectForSendObjectMalwareScan, location_name: "s3Object"))
|
|
2493
|
+
SendObjectMalwareScanRequest.struct_class = Types::SendObjectMalwareScanRequest
|
|
2494
|
+
|
|
2495
|
+
SendObjectMalwareScanResponse.struct_class = Types::SendObjectMalwareScanResponse
|
|
2496
|
+
|
|
2484
2497
|
Sequence.add_member(:uid, Shapes::ShapeRef.new(shape: String, required: true, location_name: "uid"))
|
|
2485
2498
|
Sequence.add_member(:description, Shapes::ShapeRef.new(shape: SequenceDescription, required: true, location_name: "description"))
|
|
2486
2499
|
Sequence.add_member(:actors, Shapes::ShapeRef.new(shape: Actors, location_name: "actors"))
|
|
@@ -3633,6 +3646,17 @@ module Aws::GuardDuty
|
|
|
3633
3646
|
)
|
|
3634
3647
|
end)
|
|
3635
3648
|
|
|
3649
|
+
api.add_operation(:send_object_malware_scan, Seahorse::Model::Operation.new.tap do |o|
|
|
3650
|
+
o.name = "SendObjectMalwareScan"
|
|
3651
|
+
o.http_method = "POST"
|
|
3652
|
+
o.http_request_uri = "/object-malware-scan/send"
|
|
3653
|
+
o.input = Shapes::ShapeRef.new(shape: SendObjectMalwareScanRequest)
|
|
3654
|
+
o.output = Shapes::ShapeRef.new(shape: SendObjectMalwareScanResponse)
|
|
3655
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
|
3656
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
3657
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
|
3658
|
+
end)
|
|
3659
|
+
|
|
3636
3660
|
api.add_operation(:start_malware_scan, Seahorse::Model::Operation.new.tap do |o|
|
|
3637
3661
|
o.name = "StartMalwareScan"
|
|
3638
3662
|
o.http_method = "POST"
|
|
@@ -8969,6 +8969,34 @@ module Aws::GuardDuty
|
|
|
8969
8969
|
include Aws::Structure
|
|
8970
8970
|
end
|
|
8971
8971
|
|
|
8972
|
+
# The S3 object path to initiate a scan, including bucket name, object
|
|
8973
|
+
# key, and optional version ID.
|
|
8974
|
+
#
|
|
8975
|
+
# @!attribute [rw] bucket
|
|
8976
|
+
# The name of the S3 bucket containing the object to scan. The bucket
|
|
8977
|
+
# must have GuardDuty Malware Protection enabled.
|
|
8978
|
+
# @return [String]
|
|
8979
|
+
#
|
|
8980
|
+
# @!attribute [rw] key
|
|
8981
|
+
# The key (name) of the S3 object to scan for malware. This must be
|
|
8982
|
+
# the full key path of the object within the bucket.
|
|
8983
|
+
# @return [String]
|
|
8984
|
+
#
|
|
8985
|
+
# @!attribute [rw] version_id
|
|
8986
|
+
# The version ID of the S3 object to scan. If not specified, the
|
|
8987
|
+
# latest version of the object is scanned.
|
|
8988
|
+
# @return [String]
|
|
8989
|
+
#
|
|
8990
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/S3ObjectForSendObjectMalwareScan AWS API Documentation
|
|
8991
|
+
#
|
|
8992
|
+
class S3ObjectForSendObjectMalwareScan < Struct.new(
|
|
8993
|
+
:bucket,
|
|
8994
|
+
:key,
|
|
8995
|
+
:version_id)
|
|
8996
|
+
SENSITIVE = []
|
|
8997
|
+
include Aws::Structure
|
|
8998
|
+
end
|
|
8999
|
+
|
|
8972
9000
|
# Contains information about malware scans associated with GuardDuty
|
|
8973
9001
|
# Malware Protection for EC2.
|
|
8974
9002
|
#
|
|
@@ -9328,6 +9356,24 @@ module Aws::GuardDuty
|
|
|
9328
9356
|
include Aws::Structure
|
|
9329
9357
|
end
|
|
9330
9358
|
|
|
9359
|
+
# @!attribute [rw] s3_object
|
|
9360
|
+
# The S3 object information for the object you want to scan. The
|
|
9361
|
+
# bucket must have a Malware Protection plan configured to use this
|
|
9362
|
+
# API.
|
|
9363
|
+
# @return [Types::S3ObjectForSendObjectMalwareScan]
|
|
9364
|
+
#
|
|
9365
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/SendObjectMalwareScanRequest AWS API Documentation
|
|
9366
|
+
#
|
|
9367
|
+
class SendObjectMalwareScanRequest < Struct.new(
|
|
9368
|
+
:s3_object)
|
|
9369
|
+
SENSITIVE = []
|
|
9370
|
+
include Aws::Structure
|
|
9371
|
+
end
|
|
9372
|
+
|
|
9373
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/SendObjectMalwareScanResponse AWS API Documentation
|
|
9374
|
+
#
|
|
9375
|
+
class SendObjectMalwareScanResponse < Aws::EmptyStructure; end
|
|
9376
|
+
|
|
9331
9377
|
# Contains information about the GuardDuty attack sequence finding.
|
|
9332
9378
|
#
|
|
9333
9379
|
# @!attribute [rw] uid
|
data/lib/aws-sdk-guardduty.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -1048,6 +1048,19 @@ module Aws
|
|
|
1048
1048
|
) -> _ListTrustedEntitySetsResponseSuccess
|
|
1049
1049
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTrustedEntitySetsResponseSuccess
|
|
1050
1050
|
|
|
1051
|
+
interface _SendObjectMalwareScanResponseSuccess
|
|
1052
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::SendObjectMalwareScanResponse]
|
|
1053
|
+
end
|
|
1054
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GuardDuty/Client.html#send_object_malware_scan-instance_method
|
|
1055
|
+
def send_object_malware_scan: (
|
|
1056
|
+
?s3_object: {
|
|
1057
|
+
bucket: ::String?,
|
|
1058
|
+
key: ::String?,
|
|
1059
|
+
version_id: ::String?
|
|
1060
|
+
}
|
|
1061
|
+
) -> _SendObjectMalwareScanResponseSuccess
|
|
1062
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SendObjectMalwareScanResponseSuccess
|
|
1063
|
+
|
|
1051
1064
|
interface _StartMalwareScanResponseSuccess
|
|
1052
1065
|
include ::Seahorse::Client::_ResponseSuccess[Types::StartMalwareScanResponse]
|
|
1053
1066
|
def scan_id: () -> ::String
|
data/sig/types.rbs
CHANGED
|
@@ -2213,6 +2213,13 @@ module Aws::GuardDuty
|
|
|
2213
2213
|
SENSITIVE: []
|
|
2214
2214
|
end
|
|
2215
2215
|
|
|
2216
|
+
class S3ObjectForSendObjectMalwareScan
|
|
2217
|
+
attr_accessor bucket: ::String
|
|
2218
|
+
attr_accessor key: ::String
|
|
2219
|
+
attr_accessor version_id: ::String
|
|
2220
|
+
SENSITIVE: []
|
|
2221
|
+
end
|
|
2222
|
+
|
|
2216
2223
|
class Scan
|
|
2217
2224
|
attr_accessor detector_id: ::String
|
|
2218
2225
|
attr_accessor admin_detector_id: ::String
|
|
@@ -2307,6 +2314,14 @@ module Aws::GuardDuty
|
|
|
2307
2314
|
SENSITIVE: []
|
|
2308
2315
|
end
|
|
2309
2316
|
|
|
2317
|
+
class SendObjectMalwareScanRequest
|
|
2318
|
+
attr_accessor s3_object: Types::S3ObjectForSendObjectMalwareScan
|
|
2319
|
+
SENSITIVE: []
|
|
2320
|
+
end
|
|
2321
|
+
|
|
2322
|
+
class SendObjectMalwareScanResponse < Aws::EmptyStructure
|
|
2323
|
+
end
|
|
2324
|
+
|
|
2310
2325
|
class Sequence
|
|
2311
2326
|
attr_accessor uid: ::String
|
|
2312
2327
|
attr_accessor description: ::String
|