aws-sdk-guardduty 1.18.0 → 1.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11dac03bfa173d82df4bba92327a72e5b3e604d8
4
- data.tar.gz: 612bb26da42898f0b5d61a56733cdee612be4b21
3
+ metadata.gz: 889d90ba86e294baf3bd5b59a50bac8e91cb840d
4
+ data.tar.gz: 115ffc963c14614173c8ef100d488a1696eae35b
5
5
  SHA512:
6
- metadata.gz: abfd4a9c6142ed259cc0cf01bfe15b72d57f2e9ba7d1c9c3b42b5308722e0b3d5a6c722bd386259b9345c9ab8913f740300c94c78bfeae64292013b41f1f6c32
7
- data.tar.gz: 928789ff5537df3991a71961795dfd8d417d4b3aed24462ce86c8f7acbdb72ed8195f474e7a9a7f1462f3585b422af0063985f686f294f2d2c585efbb95ea7cc
6
+ metadata.gz: 5e88eac13138fd6d24ac2c91ae52587ce01edf416786f1b800b02f010de937962988114462dd0dce9cf23c305618b6f61bcc4966e480a2bfee80303e771357cc
7
+ data.tar.gz: 5d05bda83bc9626f320bf045504c32b81195003a88ec64c82ccb7ef6c5f604267492df9f1ed9885a8f2a465b37483fdee58f7fe24e1c64dad1bc27fed2792c0e
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-guardduty/customizations'
42
42
  # @service
43
43
  module Aws::GuardDuty
44
44
 
45
- GEM_VERSION = '1.18.0'
45
+ GEM_VERSION = '1.19.0'
46
46
 
47
47
  end
@@ -327,6 +327,9 @@ module Aws::GuardDuty
327
327
  # A enum value that specifies how frequently customer got Finding
328
328
  # updates published.
329
329
  #
330
+ # @option params [Hash<String,String>] :tags
331
+ # The tags to be added to a new detector resource.
332
+ #
330
333
  # @return [Types::CreateDetectorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
331
334
  #
332
335
  # * {Types::CreateDetectorResponse#detector_id #detector_id} => String
@@ -337,6 +340,9 @@ module Aws::GuardDuty
337
340
  # enable: false, # required
338
341
  # client_token: "ClientToken",
339
342
  # finding_publishing_frequency: "FIFTEEN_MINUTES", # accepts FIFTEEN_MINUTES, ONE_HOUR, SIX_HOURS
343
+ # tags: {
344
+ # "TagKey" => "TagValue",
345
+ # },
340
346
  # })
341
347
  #
342
348
  # @example Response structure
@@ -383,6 +389,9 @@ module Aws::GuardDuty
383
389
  # **A suitable default value is auto-generated.** You should normally
384
390
  # not need to pass this option.**
385
391
  #
392
+ # @option params [Hash<String,String>] :tags
393
+ # The tags to be added to a new filter resource.
394
+ #
386
395
  # @return [Types::CreateFilterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
387
396
  #
388
397
  # * {Types::CreateFilterResponse#name #name} => String
@@ -414,6 +423,9 @@ module Aws::GuardDuty
414
423
  # },
415
424
  # },
416
425
  # client_token: "ClientToken",
426
+ # tags: {
427
+ # "TagKey" => "TagValue",
428
+ # },
417
429
  # })
418
430
  #
419
431
  # @example Response structure
@@ -459,6 +471,9 @@ module Aws::GuardDuty
459
471
  # **A suitable default value is auto-generated.** You should normally
460
472
  # not need to pass this option.**
461
473
  #
474
+ # @option params [Hash<String,String>] :tags
475
+ # The tags to be added to a new IP set resource.
476
+ #
462
477
  # @return [Types::CreateIPSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
463
478
  #
464
479
  # * {Types::CreateIPSetResponse#ip_set_id #ip_set_id} => String
@@ -472,6 +487,9 @@ module Aws::GuardDuty
472
487
  # location: "Location", # required
473
488
  # activate: false, # required
474
489
  # client_token: "ClientToken",
490
+ # tags: {
491
+ # "TagKey" => "TagValue",
492
+ # },
475
493
  # })
476
494
  #
477
495
  # @example Response structure
@@ -588,6 +606,9 @@ module Aws::GuardDuty
588
606
  # **A suitable default value is auto-generated.** You should normally
589
607
  # not need to pass this option.**
590
608
  #
609
+ # @option params [Hash<String,String>] :tags
610
+ # The tags to be added to a new Threat List resource.
611
+ #
591
612
  # @return [Types::CreateThreatIntelSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
592
613
  #
593
614
  # * {Types::CreateThreatIntelSetResponse#threat_intel_set_id #threat_intel_set_id} => String
@@ -601,6 +622,9 @@ module Aws::GuardDuty
601
622
  # location: "Location", # required
602
623
  # activate: false, # required
603
624
  # client_token: "ClientToken",
625
+ # tags: {
626
+ # "TagKey" => "TagValue",
627
+ # },
604
628
  # })
605
629
  #
606
630
  # @example Response structure
@@ -889,6 +913,7 @@ module Aws::GuardDuty
889
913
  # * {Types::GetDetectorResponse#service_role #service_role} => String
890
914
  # * {Types::GetDetectorResponse#status #status} => String
891
915
  # * {Types::GetDetectorResponse#updated_at #updated_at} => String
916
+ # * {Types::GetDetectorResponse#tags #tags} => Hash&lt;String,String&gt;
892
917
  #
893
918
  # @example Request syntax with placeholder values
894
919
  #
@@ -903,6 +928,8 @@ module Aws::GuardDuty
903
928
  # resp.service_role #=> String
904
929
  # resp.status #=> String, one of "ENABLED", "DISABLED"
905
930
  # resp.updated_at #=> String
931
+ # resp.tags #=> Hash
932
+ # resp.tags["TagKey"] #=> String
906
933
  #
907
934
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetDetector AWS API Documentation
908
935
  #
@@ -928,6 +955,7 @@ module Aws::GuardDuty
928
955
  # * {Types::GetFilterResponse#action #action} => String
929
956
  # * {Types::GetFilterResponse#rank #rank} => Integer
930
957
  # * {Types::GetFilterResponse#finding_criteria #finding_criteria} => Types::FindingCriteria
958
+ # * {Types::GetFilterResponse#tags #tags} => Hash&lt;String,String&gt;
931
959
  #
932
960
  # @example Request syntax with placeholder values
933
961
  #
@@ -959,6 +987,8 @@ module Aws::GuardDuty
959
987
  # resp.finding_criteria.criterion["String"].greater_than_or_equal #=> Integer
960
988
  # resp.finding_criteria.criterion["String"].less_than #=> Integer
961
989
  # resp.finding_criteria.criterion["String"].less_than_or_equal #=> Integer
990
+ # resp.tags #=> Hash
991
+ # resp.tags["TagKey"] #=> String
962
992
  #
963
993
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFilter AWS API Documentation
964
994
  #
@@ -1184,6 +1214,7 @@ module Aws::GuardDuty
1184
1214
  # * {Types::GetIPSetResponse#format #format} => String
1185
1215
  # * {Types::GetIPSetResponse#location #location} => String
1186
1216
  # * {Types::GetIPSetResponse#status #status} => String
1217
+ # * {Types::GetIPSetResponse#tags #tags} => Hash&lt;String,String&gt;
1187
1218
  #
1188
1219
  # @example Request syntax with placeholder values
1189
1220
  #
@@ -1198,6 +1229,8 @@ module Aws::GuardDuty
1198
1229
  # resp.format #=> String, one of "TXT", "STIX", "OTX_CSV", "ALIEN_VAULT", "PROOF_POINT", "FIRE_EYE"
1199
1230
  # resp.location #=> String
1200
1231
  # resp.status #=> String, one of "INACTIVE", "ACTIVATING", "ACTIVE", "DEACTIVATING", "ERROR", "DELETE_PENDING", "DELETED"
1232
+ # resp.tags #=> Hash
1233
+ # resp.tags["TagKey"] #=> String
1201
1234
  #
1202
1235
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetIPSet AWS API Documentation
1203
1236
  #
@@ -1322,6 +1355,7 @@ module Aws::GuardDuty
1322
1355
  # * {Types::GetThreatIntelSetResponse#format #format} => String
1323
1356
  # * {Types::GetThreatIntelSetResponse#location #location} => String
1324
1357
  # * {Types::GetThreatIntelSetResponse#status #status} => String
1358
+ # * {Types::GetThreatIntelSetResponse#tags #tags} => Hash&lt;String,String&gt;
1325
1359
  #
1326
1360
  # @example Request syntax with placeholder values
1327
1361
  #
@@ -1336,6 +1370,8 @@ module Aws::GuardDuty
1336
1370
  # resp.format #=> String, one of "TXT", "STIX", "OTX_CSV", "ALIEN_VAULT", "PROOF_POINT", "FIRE_EYE"
1337
1371
  # resp.location #=> String
1338
1372
  # resp.status #=> String, one of "INACTIVE", "ACTIVATING", "ACTIVE", "DEACTIVATING", "ERROR", "DELETE_PENDING", "DELETED"
1373
+ # resp.tags #=> Hash
1374
+ # resp.tags["TagKey"] #=> String
1339
1375
  #
1340
1376
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetThreatIntelSet AWS API Documentation
1341
1377
  #
@@ -1706,6 +1742,38 @@ module Aws::GuardDuty
1706
1742
  req.send_request(options)
1707
1743
  end
1708
1744
 
1745
+ # Lists tags for a resource. Tagging is currently supported for
1746
+ # detectors, finding filters, IP sets, and Threat Intel sets, with a
1747
+ # limit of 50 tags per resource. When invoked, this operation returns
1748
+ # all assigned tags for a given resource..
1749
+ #
1750
+ # @option params [required, String] :resource_arn
1751
+ # The Amazon Resource Name (ARN) for the given GuardDuty resource
1752
+ #
1753
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1754
+ #
1755
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
1756
+ #
1757
+ # @example Request syntax with placeholder values
1758
+ #
1759
+ # resp = client.list_tags_for_resource({
1760
+ # resource_arn: "GuardDutyArn", # required
1761
+ # })
1762
+ #
1763
+ # @example Response structure
1764
+ #
1765
+ # resp.tags #=> Hash
1766
+ # resp.tags["TagKey"] #=> String
1767
+ #
1768
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListTagsForResource AWS API Documentation
1769
+ #
1770
+ # @overload list_tags_for_resource(params = {})
1771
+ # @param [Hash] params ({})
1772
+ def list_tags_for_resource(params = {}, options = {})
1773
+ req = build_request(:list_tags_for_resource, params)
1774
+ req.send_request(options)
1775
+ end
1776
+
1709
1777
  # Lists the ThreatIntelSets of the GuardDuty service specified by the
1710
1778
  # detector ID.
1711
1779
  #
@@ -1830,6 +1898,34 @@ module Aws::GuardDuty
1830
1898
  req.send_request(options)
1831
1899
  end
1832
1900
 
1901
+ # Adds tags to a resource.
1902
+ #
1903
+ # @option params [required, String] :resource_arn
1904
+ # The Amazon Resource Name (ARN) for the given GuardDuty resource
1905
+ #
1906
+ # @option params [required, Hash<String,String>] :tags
1907
+ # The tags to be added to a resource.
1908
+ #
1909
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1910
+ #
1911
+ # @example Request syntax with placeholder values
1912
+ #
1913
+ # resp = client.tag_resource({
1914
+ # resource_arn: "GuardDutyArn", # required
1915
+ # tags: { # required
1916
+ # "TagKey" => "TagValue",
1917
+ # },
1918
+ # })
1919
+ #
1920
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/TagResource AWS API Documentation
1921
+ #
1922
+ # @overload tag_resource(params = {})
1923
+ # @param [Hash] params ({})
1924
+ def tag_resource(params = {}, options = {})
1925
+ req = build_request(:tag_resource, params)
1926
+ req.send_request(options)
1927
+ end
1928
+
1833
1929
  # Unarchives Amazon GuardDuty findings specified by the list of finding
1834
1930
  # IDs.
1835
1931
  #
@@ -1858,6 +1954,32 @@ module Aws::GuardDuty
1858
1954
  req.send_request(options)
1859
1955
  end
1860
1956
 
1957
+ # Removes tags from a resource.
1958
+ #
1959
+ # @option params [required, String] :resource_arn
1960
+ # The Amazon Resource Name (ARN) for the given GuardDuty resource
1961
+ #
1962
+ # @option params [required, Array<String>] :tag_keys
1963
+ # The tag keys to remove from a resource.
1964
+ #
1965
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1966
+ #
1967
+ # @example Request syntax with placeholder values
1968
+ #
1969
+ # resp = client.untag_resource({
1970
+ # resource_arn: "GuardDutyArn", # required
1971
+ # tag_keys: ["TagKey"], # required
1972
+ # })
1973
+ #
1974
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UntagResource AWS API Documentation
1975
+ #
1976
+ # @overload untag_resource(params = {})
1977
+ # @param [Hash] params ({})
1978
+ def untag_resource(params = {}, options = {})
1979
+ req = build_request(:untag_resource, params)
1980
+ req.send_request(options)
1981
+ end
1982
+
1861
1983
  # Updates an Amazon GuardDuty detector specified by the detectorId.
1862
1984
  #
1863
1985
  # @option params [required, String] :detector_id
@@ -2092,7 +2214,7 @@ module Aws::GuardDuty
2092
2214
  params: params,
2093
2215
  config: config)
2094
2216
  context[:gem_name] = 'aws-sdk-guardduty'
2095
- context[:gem_version] = '1.18.0'
2217
+ context[:gem_version] = '1.19.0'
2096
2218
  Seahorse::Client::Request.new(handlers, context)
2097
2219
  end
2098
2220
 
@@ -105,6 +105,7 @@ module Aws::GuardDuty
105
105
  GetMembersResponse = Shapes::StructureShape.new(name: 'GetMembersResponse')
106
106
  GetThreatIntelSetRequest = Shapes::StructureShape.new(name: 'GetThreatIntelSetRequest')
107
107
  GetThreatIntelSetResponse = Shapes::StructureShape.new(name: 'GetThreatIntelSetResponse')
108
+ GuardDutyArn = Shapes::StringShape.new(name: 'GuardDutyArn')
108
109
  IamInstanceProfile = Shapes::StructureShape.new(name: 'IamInstanceProfile')
109
110
  InstanceDetails = Shapes::StructureShape.new(name: 'InstanceDetails')
110
111
  Integer = Shapes::IntegerShape.new(name: 'Integer')
@@ -129,6 +130,8 @@ module Aws::GuardDuty
129
130
  ListInvitationsResponse = Shapes::StructureShape.new(name: 'ListInvitationsResponse')
130
131
  ListMembersRequest = Shapes::StructureShape.new(name: 'ListMembersRequest')
131
132
  ListMembersResponse = Shapes::StructureShape.new(name: 'ListMembersResponse')
133
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
134
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
132
135
  ListThreatIntelSetsRequest = Shapes::StructureShape.new(name: 'ListThreatIntelSetsRequest')
133
136
  ListThreatIntelSetsResponse = Shapes::StructureShape.new(name: 'ListThreatIntelSetsResponse')
134
137
  LocalPortDetails = Shapes::StructureShape.new(name: 'LocalPortDetails')
@@ -166,6 +169,12 @@ module Aws::GuardDuty
166
169
  StopMonitoringMembersResponse = Shapes::StructureShape.new(name: 'StopMonitoringMembersResponse')
167
170
  String = Shapes::StringShape.new(name: 'String')
168
171
  Tag = Shapes::StructureShape.new(name: 'Tag')
172
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
173
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
174
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
175
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
176
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
177
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
169
178
  Tags = Shapes::ListShape.new(name: 'Tags')
170
179
  ThreatIntelSetFormat = Shapes::StringShape.new(name: 'ThreatIntelSetFormat')
171
180
  ThreatIntelSetIds = Shapes::ListShape.new(name: 'ThreatIntelSetIds')
@@ -174,6 +183,8 @@ module Aws::GuardDuty
174
183
  UnarchiveFindingsResponse = Shapes::StructureShape.new(name: 'UnarchiveFindingsResponse')
175
184
  UnprocessedAccount = Shapes::StructureShape.new(name: 'UnprocessedAccount')
176
185
  UnprocessedAccounts = Shapes::ListShape.new(name: 'UnprocessedAccounts')
186
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
187
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
177
188
  UpdateDetectorRequest = Shapes::StructureShape.new(name: 'UpdateDetectorRequest')
178
189
  UpdateDetectorResponse = Shapes::StructureShape.new(name: 'UpdateDetectorResponse')
179
190
  UpdateFilterRequest = Shapes::StructureShape.new(name: 'UpdateFilterRequest')
@@ -257,6 +268,7 @@ module Aws::GuardDuty
257
268
  CreateDetectorRequest.add_member(:enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enable"))
258
269
  CreateDetectorRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
259
270
  CreateDetectorRequest.add_member(:finding_publishing_frequency, Shapes::ShapeRef.new(shape: FindingPublishingFrequency, location_name: "findingPublishingFrequency"))
271
+ CreateDetectorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
260
272
  CreateDetectorRequest.struct_class = Types::CreateDetectorRequest
261
273
 
262
274
  CreateDetectorResponse.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, location_name: "detectorId"))
@@ -269,6 +281,7 @@ module Aws::GuardDuty
269
281
  CreateFilterRequest.add_member(:rank, Shapes::ShapeRef.new(shape: FilterRank, location_name: "rank"))
270
282
  CreateFilterRequest.add_member(:finding_criteria, Shapes::ShapeRef.new(shape: FindingCriteria, required: true, location_name: "findingCriteria"))
271
283
  CreateFilterRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
284
+ CreateFilterRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
272
285
  CreateFilterRequest.struct_class = Types::CreateFilterRequest
273
286
 
274
287
  CreateFilterResponse.add_member(:name, Shapes::ShapeRef.new(shape: FilterName, required: true, location_name: "name"))
@@ -280,6 +293,7 @@ module Aws::GuardDuty
280
293
  CreateIPSetRequest.add_member(:location, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "location"))
281
294
  CreateIPSetRequest.add_member(:activate, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "activate"))
282
295
  CreateIPSetRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
296
+ CreateIPSetRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
283
297
  CreateIPSetRequest.struct_class = Types::CreateIPSetRequest
284
298
 
285
299
  CreateIPSetResponse.add_member(:ip_set_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ipSetId"))
@@ -304,6 +318,7 @@ module Aws::GuardDuty
304
318
  CreateThreatIntelSetRequest.add_member(:location, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "location"))
305
319
  CreateThreatIntelSetRequest.add_member(:activate, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "activate"))
306
320
  CreateThreatIntelSetRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
321
+ CreateThreatIntelSetRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
307
322
  CreateThreatIntelSetRequest.struct_class = Types::CreateThreatIntelSetRequest
308
323
 
309
324
  CreateThreatIntelSetResponse.add_member(:threat_intel_set_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "threatIntelSetId"))
@@ -423,6 +438,7 @@ module Aws::GuardDuty
423
438
  GetDetectorResponse.add_member(:service_role, Shapes::ShapeRef.new(shape: String, required: true, location_name: "serviceRole"))
424
439
  GetDetectorResponse.add_member(:status, Shapes::ShapeRef.new(shape: DetectorStatus, required: true, location_name: "status"))
425
440
  GetDetectorResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: String, location_name: "updatedAt"))
441
+ GetDetectorResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
426
442
  GetDetectorResponse.struct_class = Types::GetDetectorResponse
427
443
 
428
444
  GetFilterRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
@@ -434,6 +450,7 @@ module Aws::GuardDuty
434
450
  GetFilterResponse.add_member(:action, Shapes::ShapeRef.new(shape: FilterAction, required: true, location_name: "action"))
435
451
  GetFilterResponse.add_member(:rank, Shapes::ShapeRef.new(shape: FilterRank, location_name: "rank"))
436
452
  GetFilterResponse.add_member(:finding_criteria, Shapes::ShapeRef.new(shape: FindingCriteria, required: true, location_name: "findingCriteria"))
453
+ GetFilterResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
437
454
  GetFilterResponse.struct_class = Types::GetFilterResponse
438
455
 
439
456
  GetFindingsRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
@@ -460,6 +477,7 @@ module Aws::GuardDuty
460
477
  GetIPSetResponse.add_member(:format, Shapes::ShapeRef.new(shape: IpSetFormat, required: true, location_name: "format"))
461
478
  GetIPSetResponse.add_member(:location, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "location"))
462
479
  GetIPSetResponse.add_member(:status, Shapes::ShapeRef.new(shape: IpSetStatus, required: true, location_name: "status"))
480
+ GetIPSetResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
463
481
  GetIPSetResponse.struct_class = Types::GetIPSetResponse
464
482
 
465
483
  GetInvitationsCountRequest.struct_class = Types::GetInvitationsCountRequest
@@ -489,6 +507,7 @@ module Aws::GuardDuty
489
507
  GetThreatIntelSetResponse.add_member(:format, Shapes::ShapeRef.new(shape: ThreatIntelSetFormat, required: true, location_name: "format"))
490
508
  GetThreatIntelSetResponse.add_member(:location, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "location"))
491
509
  GetThreatIntelSetResponse.add_member(:status, Shapes::ShapeRef.new(shape: ThreatIntelSetStatus, required: true, location_name: "status"))
510
+ GetThreatIntelSetResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
492
511
  GetThreatIntelSetResponse.struct_class = Types::GetThreatIntelSetResponse
493
512
 
494
513
  IamInstanceProfile.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "arn"))
@@ -589,6 +608,12 @@ module Aws::GuardDuty
589
608
  ListMembersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
590
609
  ListMembersResponse.struct_class = Types::ListMembersResponse
591
610
 
611
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: GuardDutyArn, required: true, location: "uri", location_name: "resourceArn"))
612
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
613
+
614
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
615
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
616
+
592
617
  ListThreatIntelSetsRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
593
618
  ListThreatIntelSetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
594
619
  ListThreatIntelSetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
@@ -728,6 +753,17 @@ module Aws::GuardDuty
728
753
  Tag.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
729
754
  Tag.struct_class = Types::Tag
730
755
 
756
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
757
+
758
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
759
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
760
+
761
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: GuardDutyArn, required: true, location: "uri", location_name: "resourceArn"))
762
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
763
+ TagResourceRequest.struct_class = Types::TagResourceRequest
764
+
765
+ TagResourceResponse.struct_class = Types::TagResourceResponse
766
+
731
767
  Tags.member = Shapes::ShapeRef.new(shape: Tag)
732
768
 
733
769
  ThreatIntelSetIds.member = Shapes::ShapeRef.new(shape: String)
@@ -744,6 +780,12 @@ module Aws::GuardDuty
744
780
 
745
781
  UnprocessedAccounts.member = Shapes::ShapeRef.new(shape: UnprocessedAccount)
746
782
 
783
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: GuardDutyArn, required: true, location: "uri", location_name: "resourceArn"))
784
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
785
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
786
+
787
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
788
+
747
789
  UpdateDetectorRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
748
790
  UpdateDetectorRequest.add_member(:enable, Shapes::ShapeRef.new(shape: Boolean, location_name: "enable"))
749
791
  UpdateDetectorRequest.add_member(:finding_publishing_frequency, Shapes::ShapeRef.new(shape: FindingPublishingFrequency, location_name: "findingPublishingFrequency"))
@@ -1172,6 +1214,16 @@ module Aws::GuardDuty
1172
1214
  )
1173
1215
  end)
1174
1216
 
1217
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
1218
+ o.name = "ListTagsForResource"
1219
+ o.http_method = "GET"
1220
+ o.http_request_uri = "/tags/{resourceArn}"
1221
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
1222
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
1223
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1224
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1225
+ end)
1226
+
1175
1227
  api.add_operation(:list_threat_intel_sets, Seahorse::Model::Operation.new.tap do |o|
1176
1228
  o.name = "ListThreatIntelSets"
1177
1229
  o.http_method = "GET"
@@ -1208,6 +1260,16 @@ module Aws::GuardDuty
1208
1260
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1209
1261
  end)
1210
1262
 
1263
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
1264
+ o.name = "TagResource"
1265
+ o.http_method = "POST"
1266
+ o.http_request_uri = "/tags/{resourceArn}"
1267
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
1268
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
1269
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1270
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1271
+ end)
1272
+
1211
1273
  api.add_operation(:unarchive_findings, Seahorse::Model::Operation.new.tap do |o|
1212
1274
  o.name = "UnarchiveFindings"
1213
1275
  o.http_method = "POST"
@@ -1218,6 +1280,16 @@ module Aws::GuardDuty
1218
1280
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1219
1281
  end)
1220
1282
 
1283
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
1284
+ o.name = "UntagResource"
1285
+ o.http_method = "DELETE"
1286
+ o.http_request_uri = "/tags/{resourceArn}"
1287
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
1288
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
1289
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1290
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1291
+ end)
1292
+
1221
1293
  api.add_operation(:update_detector, Seahorse::Model::Operation.new.tap do |o|
1222
1294
  o.name = "UpdateDetector"
1223
1295
  o.http_method = "POST"
@@ -331,6 +331,9 @@ module Aws::GuardDuty
331
331
  # enable: false, # required
332
332
  # client_token: "ClientToken",
333
333
  # finding_publishing_frequency: "FIFTEEN_MINUTES", # accepts FIFTEEN_MINUTES, ONE_HOUR, SIX_HOURS
334
+ # tags: {
335
+ # "TagKey" => "TagValue",
336
+ # },
334
337
  # }
335
338
  #
336
339
  # @!attribute [rw] enable
@@ -350,12 +353,17 @@ module Aws::GuardDuty
350
353
  # updates published.
351
354
  # @return [String]
352
355
  #
356
+ # @!attribute [rw] tags
357
+ # The tags to be added to a new detector resource.
358
+ # @return [Hash<String,String>]
359
+ #
353
360
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateDetectorRequest AWS API Documentation
354
361
  #
355
362
  class CreateDetectorRequest < Struct.new(
356
363
  :enable,
357
364
  :client_token,
358
- :finding_publishing_frequency)
365
+ :finding_publishing_frequency,
366
+ :tags)
359
367
  include Aws::Structure
360
368
  end
361
369
 
@@ -398,6 +406,9 @@ module Aws::GuardDuty
398
406
  # },
399
407
  # },
400
408
  # client_token: "ClientToken",
409
+ # tags: {
410
+ # "TagKey" => "TagValue",
411
+ # },
401
412
  # }
402
413
  #
403
414
  # @!attribute [rw] detector_id
@@ -436,6 +447,10 @@ module Aws::GuardDuty
436
447
  # not need to pass this option.
437
448
  # @return [String]
438
449
  #
450
+ # @!attribute [rw] tags
451
+ # The tags to be added to a new filter resource.
452
+ # @return [Hash<String,String>]
453
+ #
439
454
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateFilterRequest AWS API Documentation
440
455
  #
441
456
  class CreateFilterRequest < Struct.new(
@@ -445,7 +460,8 @@ module Aws::GuardDuty
445
460
  :action,
446
461
  :rank,
447
462
  :finding_criteria,
448
- :client_token)
463
+ :client_token,
464
+ :tags)
449
465
  include Aws::Structure
450
466
  end
451
467
 
@@ -470,6 +486,9 @@ module Aws::GuardDuty
470
486
  # location: "Location", # required
471
487
  # activate: false, # required
472
488
  # client_token: "ClientToken",
489
+ # tags: {
490
+ # "TagKey" => "TagValue",
491
+ # },
473
492
  # }
474
493
  #
475
494
  # @!attribute [rw] detector_id
@@ -504,6 +523,10 @@ module Aws::GuardDuty
504
523
  # not need to pass this option.
505
524
  # @return [String]
506
525
  #
526
+ # @!attribute [rw] tags
527
+ # The tags to be added to a new IP set resource.
528
+ # @return [Hash<String,String>]
529
+ #
507
530
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateIPSetRequest AWS API Documentation
508
531
  #
509
532
  class CreateIPSetRequest < Struct.new(
@@ -512,7 +535,8 @@ module Aws::GuardDuty
512
535
  :format,
513
536
  :location,
514
537
  :activate,
515
- :client_token)
538
+ :client_token,
539
+ :tags)
516
540
  include Aws::Structure
517
541
  end
518
542
 
@@ -608,6 +632,9 @@ module Aws::GuardDuty
608
632
  # location: "Location", # required
609
633
  # activate: false, # required
610
634
  # client_token: "ClientToken",
635
+ # tags: {
636
+ # "TagKey" => "TagValue",
637
+ # },
611
638
  # }
612
639
  #
613
640
  # @!attribute [rw] detector_id
@@ -642,6 +669,10 @@ module Aws::GuardDuty
642
669
  # not need to pass this option.
643
670
  # @return [String]
644
671
  #
672
+ # @!attribute [rw] tags
673
+ # The tags to be added to a new Threat List resource.
674
+ # @return [Hash<String,String>]
675
+ #
645
676
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateThreatIntelSetRequest AWS API Documentation
646
677
  #
647
678
  class CreateThreatIntelSetRequest < Struct.new(
@@ -650,7 +681,8 @@ module Aws::GuardDuty
650
681
  :format,
651
682
  :location,
652
683
  :activate,
653
- :client_token)
684
+ :client_token,
685
+ :tags)
654
686
  include Aws::Structure
655
687
  end
656
688
 
@@ -1140,6 +1172,10 @@ module Aws::GuardDuty
1140
1172
  # Detector last update timestamp.
1141
1173
  # @return [String]
1142
1174
  #
1175
+ # @!attribute [rw] tags
1176
+ # The tags of the detector resource.
1177
+ # @return [Hash<String,String>]
1178
+ #
1143
1179
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetDetectorResponse AWS API Documentation
1144
1180
  #
1145
1181
  class GetDetectorResponse < Struct.new(
@@ -1147,7 +1183,8 @@ module Aws::GuardDuty
1147
1183
  :finding_publishing_frequency,
1148
1184
  :service_role,
1149
1185
  :status,
1150
- :updated_at)
1186
+ :updated_at,
1187
+ :tags)
1151
1188
  include Aws::Structure
1152
1189
  end
1153
1190
 
@@ -1199,6 +1236,10 @@ module Aws::GuardDuty
1199
1236
  # findings.
1200
1237
  # @return [Types::FindingCriteria]
1201
1238
  #
1239
+ # @!attribute [rw] tags
1240
+ # The tags of the filter resource.
1241
+ # @return [Hash<String,String>]
1242
+ #
1202
1243
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFilterResponse AWS API Documentation
1203
1244
  #
1204
1245
  class GetFilterResponse < Struct.new(
@@ -1206,7 +1247,8 @@ module Aws::GuardDuty
1206
1247
  :description,
1207
1248
  :action,
1208
1249
  :rank,
1209
- :finding_criteria)
1250
+ :finding_criteria,
1251
+ :tags)
1210
1252
  include Aws::Structure
1211
1253
  end
1212
1254
 
@@ -1357,13 +1399,18 @@ module Aws::GuardDuty
1357
1399
  # The status of ipSet file uploaded.
1358
1400
  # @return [String]
1359
1401
  #
1402
+ # @!attribute [rw] tags
1403
+ # The tags of the IP set resource.
1404
+ # @return [Hash<String,String>]
1405
+ #
1360
1406
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetIPSetResponse AWS API Documentation
1361
1407
  #
1362
1408
  class GetIPSetResponse < Struct.new(
1363
1409
  :name,
1364
1410
  :format,
1365
1411
  :location,
1366
- :status)
1412
+ :status,
1413
+ :tags)
1367
1414
  include Aws::Structure
1368
1415
  end
1369
1416
 
@@ -1499,13 +1546,18 @@ module Aws::GuardDuty
1499
1546
  # The status of threatIntelSet file uploaded.
1500
1547
  # @return [String]
1501
1548
  #
1549
+ # @!attribute [rw] tags
1550
+ # The tags of the Threat List resource.
1551
+ # @return [Hash<String,String>]
1552
+ #
1502
1553
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetThreatIntelSetResponse AWS API Documentation
1503
1554
  #
1504
1555
  class GetThreatIntelSetResponse < Struct.new(
1505
1556
  :name,
1506
1557
  :format,
1507
1558
  :location,
1508
- :status)
1559
+ :status,
1560
+ :tags)
1509
1561
  include Aws::Structure
1510
1562
  end
1511
1563
 
@@ -2037,6 +2089,34 @@ module Aws::GuardDuty
2037
2089
  include Aws::Structure
2038
2090
  end
2039
2091
 
2092
+ # @note When making an API call, you may pass ListTagsForResourceRequest
2093
+ # data as a hash:
2094
+ #
2095
+ # {
2096
+ # resource_arn: "GuardDutyArn", # required
2097
+ # }
2098
+ #
2099
+ # @!attribute [rw] resource_arn
2100
+ # The Amazon Resource Name (ARN) for the given GuardDuty resource
2101
+ # @return [String]
2102
+ #
2103
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListTagsForResourceRequest AWS API Documentation
2104
+ #
2105
+ class ListTagsForResourceRequest < Struct.new(
2106
+ :resource_arn)
2107
+ include Aws::Structure
2108
+ end
2109
+
2110
+ # @!attribute [rw] tags
2111
+ # @return [Hash<String,String>]
2112
+ #
2113
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListTagsForResourceResponse AWS API Documentation
2114
+ #
2115
+ class ListTagsForResourceResponse < Struct.new(
2116
+ :tags)
2117
+ include Aws::Structure
2118
+ end
2119
+
2040
2120
  # @note When making an API call, you may pass ListThreatIntelSetsRequest
2041
2121
  # data as a hash:
2042
2122
  #
@@ -2615,6 +2695,36 @@ module Aws::GuardDuty
2615
2695
  include Aws::Structure
2616
2696
  end
2617
2697
 
2698
+ # @note When making an API call, you may pass TagResourceRequest
2699
+ # data as a hash:
2700
+ #
2701
+ # {
2702
+ # resource_arn: "GuardDutyArn", # required
2703
+ # tags: { # required
2704
+ # "TagKey" => "TagValue",
2705
+ # },
2706
+ # }
2707
+ #
2708
+ # @!attribute [rw] resource_arn
2709
+ # The Amazon Resource Name (ARN) for the given GuardDuty resource
2710
+ # @return [String]
2711
+ #
2712
+ # @!attribute [rw] tags
2713
+ # The tags to be added to a resource.
2714
+ # @return [Hash<String,String>]
2715
+ #
2716
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/TagResourceRequest AWS API Documentation
2717
+ #
2718
+ class TagResourceRequest < Struct.new(
2719
+ :resource_arn,
2720
+ :tags)
2721
+ include Aws::Structure
2722
+ end
2723
+
2724
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/TagResourceResponse AWS API Documentation
2725
+ #
2726
+ class TagResourceResponse < Aws::EmptyStructure; end
2727
+
2618
2728
  # @note When making an API call, you may pass UnarchiveFindingsRequest
2619
2729
  # data as a hash:
2620
2730
  #
@@ -2660,6 +2770,34 @@ module Aws::GuardDuty
2660
2770
  include Aws::Structure
2661
2771
  end
2662
2772
 
2773
+ # @note When making an API call, you may pass UntagResourceRequest
2774
+ # data as a hash:
2775
+ #
2776
+ # {
2777
+ # resource_arn: "GuardDutyArn", # required
2778
+ # tag_keys: ["TagKey"], # required
2779
+ # }
2780
+ #
2781
+ # @!attribute [rw] resource_arn
2782
+ # The Amazon Resource Name (ARN) for the given GuardDuty resource
2783
+ # @return [String]
2784
+ #
2785
+ # @!attribute [rw] tag_keys
2786
+ # The tag keys to remove from a resource.
2787
+ # @return [Array<String>]
2788
+ #
2789
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UntagResourceRequest AWS API Documentation
2790
+ #
2791
+ class UntagResourceRequest < Struct.new(
2792
+ :resource_arn,
2793
+ :tag_keys)
2794
+ include Aws::Structure
2795
+ end
2796
+
2797
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UntagResourceResponse AWS API Documentation
2798
+ #
2799
+ class UntagResourceResponse < Aws::EmptyStructure; end
2800
+
2663
2801
  # @note When making an API call, you may pass UpdateDetectorRequest
2664
2802
  # data as a hash:
2665
2803
  #
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.18.0
4
+ version: 1.19.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: 2019-06-06 00:00:00.000000000 Z
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core