aws-sdk-guardduty 1.131.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4da201be0e65934042fa4612f70e57d8b09aa6e873cc00b630a77e359980017
4
- data.tar.gz: fdc302e48e089772bc1c5d4e62ab044533808fab65da3391bce4aeb6e7e338ba
3
+ metadata.gz: 41daf82129584712a773fc6943032cba32b4d4e3c9e9b9c67d3462a442e5b01b
4
+ data.tar.gz: efd660bf5a66d97ecaf5ffde04aa3ebf302987a97c1c00fb07606a586fc878c9
5
5
  SHA512:
6
- metadata.gz: 725cc6805fca147ad3f66de4df049072ac1e43838f92f6d0a6e787c2df8e31fae24bf76a28f98b4ccdc9ae778bc519046ef87be7705baefb60d0766fdbca4c40
7
- data.tar.gz: a6632906aa37475ef0f3c44ea64f856837a9ebad4ab1c87f7bc940f9241bdf2814bb7883ed1352bcd87141d34c338c6db2c97dcf58bfd409351035edf02011fa
6
+ metadata.gz: 6084704b0a8b3962752af1d607ac94fae4689bf68c5d4f5997c809ce2acf7d51363cd8a1819c93b992a10baa727d26fab50cddb546cb213b2875798324e37a54
7
+ data.tar.gz: 11fb445e4bfabd649a01d572aefdeee476ff3bd0605e50c6407eea840f78778837caa0f137cc1166927a612b0c642ee759f39905c3715600d827111630090da4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.133.0 (2025-11-17)
5
+ ------------------
6
+
7
+ * Feature - Add S3 On-Demand Object Scanning
8
+
9
+ 1.132.0 (2025-11-10)
10
+ ------------------
11
+
12
+ * Feature - Include tags filed in CreatePublishingDestinationRequest and DescribePublishingDestinationResponse.
13
+
4
14
  1.131.0 (2025-10-21)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.131.0
1
+ 1.133.0
@@ -1287,6 +1287,9 @@ module Aws::GuardDuty
1287
1287
  # **A suitable default value is auto-generated.** You should normally
1288
1288
  # not need to pass this option.**
1289
1289
  #
1290
+ # @option params [Hash<String,String>] :tags
1291
+ # The tags to be added to a new publishing destination resource.
1292
+ #
1290
1293
  # @return [Types::CreatePublishingDestinationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1291
1294
  #
1292
1295
  # * {Types::CreatePublishingDestinationResponse#destination_id #destination_id} => String
@@ -1301,6 +1304,9 @@ module Aws::GuardDuty
1301
1304
  # kms_key_arn: "String",
1302
1305
  # },
1303
1306
  # client_token: "ClientToken",
1307
+ # tags: {
1308
+ # "TagKey" => "TagValue",
1309
+ # },
1304
1310
  # })
1305
1311
  #
1306
1312
  # @example Response structure
@@ -2200,6 +2206,7 @@ module Aws::GuardDuty
2200
2206
  # * {Types::DescribePublishingDestinationResponse#status #status} => String
2201
2207
  # * {Types::DescribePublishingDestinationResponse#publishing_failure_start_timestamp #publishing_failure_start_timestamp} => Integer
2202
2208
  # * {Types::DescribePublishingDestinationResponse#destination_properties #destination_properties} => Types::DestinationProperties
2209
+ # * {Types::DescribePublishingDestinationResponse#tags #tags} => Hash&lt;String,String&gt;
2203
2210
  #
2204
2211
  # @example Request syntax with placeholder values
2205
2212
  #
@@ -2216,6 +2223,8 @@ module Aws::GuardDuty
2216
2223
  # resp.publishing_failure_start_timestamp #=> Integer
2217
2224
  # resp.destination_properties.destination_arn #=> String
2218
2225
  # resp.destination_properties.kms_key_arn #=> String
2226
+ # resp.tags #=> Hash
2227
+ # resp.tags["TagKey"] #=> String
2219
2228
  #
2220
2229
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DescribePublishingDestination AWS API Documentation
2221
2230
  #
@@ -5150,6 +5159,43 @@ module Aws::GuardDuty
5150
5159
  req.send_request(options)
5151
5160
  end
5152
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
+
5153
5199
  # Initiates the malware scan. Invoking this API will automatically
5154
5200
  # create the [Service-linked role][1] in the corresponding account.
5155
5201
  #
@@ -6209,7 +6255,7 @@ module Aws::GuardDuty
6209
6255
  tracer: tracer
6210
6256
  )
6211
6257
  context[:gem_name] = 'aws-sdk-guardduty'
6212
- context[:gem_version] = '1.131.0'
6258
+ context[:gem_version] = '1.133.0'
6213
6259
  Seahorse::Client::Request.new(handlers, context)
6214
6260
  end
6215
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')
@@ -978,6 +981,7 @@ module Aws::GuardDuty
978
981
  CreatePublishingDestinationRequest.add_member(:destination_type, Shapes::ShapeRef.new(shape: DestinationType, required: true, location_name: "destinationType"))
979
982
  CreatePublishingDestinationRequest.add_member(:destination_properties, Shapes::ShapeRef.new(shape: DestinationProperties, required: true, location_name: "destinationProperties"))
980
983
  CreatePublishingDestinationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
984
+ CreatePublishingDestinationRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
981
985
  CreatePublishingDestinationRequest.struct_class = Types::CreatePublishingDestinationRequest
982
986
 
983
987
  CreatePublishingDestinationResponse.add_member(:destination_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "destinationId"))
@@ -1170,6 +1174,7 @@ module Aws::GuardDuty
1170
1174
  DescribePublishingDestinationResponse.add_member(:status, Shapes::ShapeRef.new(shape: PublishingStatus, required: true, location_name: "status"))
1171
1175
  DescribePublishingDestinationResponse.add_member(:publishing_failure_start_timestamp, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "publishingFailureStartTimestamp"))
1172
1176
  DescribePublishingDestinationResponse.add_member(:destination_properties, Shapes::ShapeRef.new(shape: DestinationProperties, required: true, location_name: "destinationProperties"))
1177
+ DescribePublishingDestinationResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
1173
1178
  DescribePublishingDestinationResponse.struct_class = Types::DescribePublishingDestinationResponse
1174
1179
 
1175
1180
  Destination.add_member(:destination_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "destinationId"))
@@ -2400,6 +2405,11 @@ module Aws::GuardDuty
2400
2405
 
2401
2406
  S3ObjectDetails.member = Shapes::ShapeRef.new(shape: S3ObjectDetail)
2402
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
+
2403
2413
  S3ObjectUids.member = Shapes::ShapeRef.new(shape: String)
2404
2414
 
2405
2415
  Scan.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, location_name: "detectorId"))
@@ -2479,6 +2489,11 @@ module Aws::GuardDuty
2479
2489
 
2480
2490
  SecurityGroups.member = Shapes::ShapeRef.new(shape: SecurityGroup)
2481
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
+
2482
2497
  Sequence.add_member(:uid, Shapes::ShapeRef.new(shape: String, required: true, location_name: "uid"))
2483
2498
  Sequence.add_member(:description, Shapes::ShapeRef.new(shape: SequenceDescription, required: true, location_name: "description"))
2484
2499
  Sequence.add_member(:actors, Shapes::ShapeRef.new(shape: Actors, location_name: "actors"))
@@ -3631,6 +3646,17 @@ module Aws::GuardDuty
3631
3646
  )
3632
3647
  end)
3633
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
+
3634
3660
  api.add_operation(:start_malware_scan, Seahorse::Model::Operation.new.tap do |o|
3635
3661
  o.name = "StartMalwareScan"
3636
3662
  o.http_method = "POST"
@@ -1895,13 +1895,18 @@ module Aws::GuardDuty
1895
1895
  # not need to pass this option.
1896
1896
  # @return [String]
1897
1897
  #
1898
+ # @!attribute [rw] tags
1899
+ # The tags to be added to a new publishing destination resource.
1900
+ # @return [Hash<String,String>]
1901
+ #
1898
1902
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreatePublishingDestinationRequest AWS API Documentation
1899
1903
  #
1900
1904
  class CreatePublishingDestinationRequest < Struct.new(
1901
1905
  :detector_id,
1902
1906
  :destination_type,
1903
1907
  :destination_properties,
1904
- :client_token)
1908
+ :client_token,
1909
+ :tags)
1905
1910
  SENSITIVE = []
1906
1911
  include Aws::Structure
1907
1912
  end
@@ -2938,6 +2943,10 @@ module Aws::GuardDuty
2938
2943
  # and `KmsKeyArn` of the publishing destination.
2939
2944
  # @return [Types::DestinationProperties]
2940
2945
  #
2946
+ # @!attribute [rw] tags
2947
+ # The tags of the publishing destination resource.
2948
+ # @return [Hash<String,String>]
2949
+ #
2941
2950
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DescribePublishingDestinationResponse AWS API Documentation
2942
2951
  #
2943
2952
  class DescribePublishingDestinationResponse < Struct.new(
@@ -2945,7 +2954,8 @@ module Aws::GuardDuty
2945
2954
  :destination_type,
2946
2955
  :status,
2947
2956
  :publishing_failure_start_timestamp,
2948
- :destination_properties)
2957
+ :destination_properties,
2958
+ :tags)
2949
2959
  SENSITIVE = []
2950
2960
  include Aws::Structure
2951
2961
  end
@@ -8959,6 +8969,34 @@ module Aws::GuardDuty
8959
8969
  include Aws::Structure
8960
8970
  end
8961
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
+
8962
9000
  # Contains information about malware scans associated with GuardDuty
8963
9001
  # Malware Protection for EC2.
8964
9002
  #
@@ -9318,6 +9356,24 @@ module Aws::GuardDuty
9318
9356
  include Aws::Structure
9319
9357
  end
9320
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
+
9321
9377
  # Contains information about the GuardDuty attack sequence finding.
9322
9378
  #
9323
9379
  # @!attribute [rw] uid
@@ -54,7 +54,7 @@ module Aws::GuardDuty
54
54
  autoload :EndpointProvider, 'aws-sdk-guardduty/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-guardduty/endpoints'
56
56
 
57
- GEM_VERSION = '1.131.0'
57
+ GEM_VERSION = '1.133.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -251,7 +251,8 @@ module Aws
251
251
  destination_arn: ::String?,
252
252
  kms_key_arn: ::String?
253
253
  },
254
- ?client_token: ::String
254
+ ?client_token: ::String,
255
+ ?tags: Hash[::String, ::String]
255
256
  ) -> _CreatePublishingDestinationResponseSuccess
256
257
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreatePublishingDestinationResponseSuccess
257
258
 
@@ -475,6 +476,7 @@ module Aws
475
476
  def status: () -> ("PENDING_VERIFICATION" | "PUBLISHING" | "UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY" | "STOPPED")
476
477
  def publishing_failure_start_timestamp: () -> ::Integer
477
478
  def destination_properties: () -> Types::DestinationProperties
479
+ def tags: () -> ::Hash[::String, ::String]
478
480
  end
479
481
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GuardDuty/Client.html#describe_publishing_destination-instance_method
480
482
  def describe_publishing_destination: (
@@ -1046,6 +1048,19 @@ module Aws
1046
1048
  ) -> _ListTrustedEntitySetsResponseSuccess
1047
1049
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTrustedEntitySetsResponseSuccess
1048
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
+
1049
1064
  interface _StartMalwareScanResponseSuccess
1050
1065
  include ::Seahorse::Client::_ResponseSuccess[Types::StartMalwareScanResponse]
1051
1066
  def scan_id: () -> ::String
data/sig/types.rbs CHANGED
@@ -432,6 +432,7 @@ module Aws::GuardDuty
432
432
  attr_accessor destination_type: ("S3")
433
433
  attr_accessor destination_properties: Types::DestinationProperties
434
434
  attr_accessor client_token: ::String
435
+ attr_accessor tags: ::Hash[::String, ::String]
435
436
  SENSITIVE: []
436
437
  end
437
438
 
@@ -699,6 +700,7 @@ module Aws::GuardDuty
699
700
  attr_accessor status: ("PENDING_VERIFICATION" | "PUBLISHING" | "UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY" | "STOPPED")
700
701
  attr_accessor publishing_failure_start_timestamp: ::Integer
701
702
  attr_accessor destination_properties: Types::DestinationProperties
703
+ attr_accessor tags: ::Hash[::String, ::String]
702
704
  SENSITIVE: []
703
705
  end
704
706
 
@@ -2211,6 +2213,13 @@ module Aws::GuardDuty
2211
2213
  SENSITIVE: []
2212
2214
  end
2213
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
+
2214
2223
  class Scan
2215
2224
  attr_accessor detector_id: ::String
2216
2225
  attr_accessor admin_detector_id: ::String
@@ -2305,6 +2314,14 @@ module Aws::GuardDuty
2305
2314
  SENSITIVE: []
2306
2315
  end
2307
2316
 
2317
+ class SendObjectMalwareScanRequest
2318
+ attr_accessor s3_object: Types::S3ObjectForSendObjectMalwareScan
2319
+ SENSITIVE: []
2320
+ end
2321
+
2322
+ class SendObjectMalwareScanResponse < Aws::EmptyStructure
2323
+ end
2324
+
2308
2325
  class Sequence
2309
2326
  attr_accessor uid: ::String
2310
2327
  attr_accessor description: ::String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-guardduty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.131.0
4
+ version: 1.133.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services