aws-sdk-detective 1.28.0 → 1.30.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
  SHA256:
3
- metadata.gz: 79a5f4f00d149cc1f953ac28dfbb0a13caa38913c53127a1da71fe5f3bf7cd55
4
- data.tar.gz: 1f48682045c8fdef99a46506cf04304d78aa601233512944f2fc502c0c4ac1e2
3
+ metadata.gz: e2af17315223f389a14e0f955b018adb62b1657519eaa04ed68f1e3ca06a7588
4
+ data.tar.gz: 31dfbf5787efcc537e1c43a358c304baf615a6489646482179da03bfa93ef31b
5
5
  SHA512:
6
- metadata.gz: f02d549f098fc19cde60852974a85f2fbc33c78f6629fde57ed65fb6a1a53fd55119f1d84667dfdc9f394d7f069831e8574fcba1432ce3253356ebe3d57048fb
7
- data.tar.gz: 9c0cb970aa82cf370cd727d15a9105e251370bcc7aab2c2c767eb609dcdeb802b5e836c54c4c06c07f1f2bc32617658617ff1f5f4051beb43f4df3db6d65f605
6
+ metadata.gz: '029701d37f238caa2cf1abad61a71b9730a531a0d1624a2add2e50ecf5aab1a13211a4e5f63aa036e2e361e4457f774e5d692a073e93c17fcf2c18434b56ae08'
7
+ data.tar.gz: 288850301ed8295d9a1e32d55251e2cd98cf87b454dfc67716f3cc5d467d130fbb92d7dd6508aab010956a4820d673a1fcfef606662e96defb7b629d5c2df472
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.30.0 (2022-10-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.29.0 (2022-07-26)
10
+ ------------------
11
+
12
+ * Feature - Added the ability to get data source package information for the behavior graph. Graph administrators can now start (or stop) optional datasources on the behavior graph.
13
+
4
14
  1.28.0 (2022-02-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.28.0
1
+ 1.30.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:detective)
@@ -79,8 +79,9 @@ module Aws::Detective
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::Detective::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::Detective
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::Detective
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::Detective::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Detective::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -382,6 +399,85 @@ module Aws::Detective
382
399
  req.send_request(options)
383
400
  end
384
401
 
402
+ # Gets data source package information for the behavior graph.
403
+ #
404
+ # @option params [required, String] :graph_arn
405
+ # The ARN of the behavior graph.
406
+ #
407
+ # @option params [required, Array<String>] :account_ids
408
+ # The list of Amazon Web Services accounts to get data source package
409
+ # information on.
410
+ #
411
+ # @return [Types::BatchGetGraphMemberDatasourcesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
412
+ #
413
+ # * {Types::BatchGetGraphMemberDatasourcesResponse#member_datasources #member_datasources} => Array&lt;Types::MembershipDatasources&gt;
414
+ # * {Types::BatchGetGraphMemberDatasourcesResponse#unprocessed_accounts #unprocessed_accounts} => Array&lt;Types::UnprocessedAccount&gt;
415
+ #
416
+ # @example Request syntax with placeholder values
417
+ #
418
+ # resp = client.batch_get_graph_member_datasources({
419
+ # graph_arn: "GraphArn", # required
420
+ # account_ids: ["AccountId"], # required
421
+ # })
422
+ #
423
+ # @example Response structure
424
+ #
425
+ # resp.member_datasources #=> Array
426
+ # resp.member_datasources[0].account_id #=> String
427
+ # resp.member_datasources[0].graph_arn #=> String
428
+ # resp.member_datasources[0].datasource_package_ingest_history #=> Hash
429
+ # resp.member_datasources[0].datasource_package_ingest_history["DatasourcePackage"] #=> Hash
430
+ # resp.member_datasources[0].datasource_package_ingest_history["DatasourcePackage"]["DatasourcePackageIngestState"].timestamp #=> Time
431
+ # resp.unprocessed_accounts #=> Array
432
+ # resp.unprocessed_accounts[0].account_id #=> String
433
+ # resp.unprocessed_accounts[0].reason #=> String
434
+ #
435
+ # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/BatchGetGraphMemberDatasources AWS API Documentation
436
+ #
437
+ # @overload batch_get_graph_member_datasources(params = {})
438
+ # @param [Hash] params ({})
439
+ def batch_get_graph_member_datasources(params = {}, options = {})
440
+ req = build_request(:batch_get_graph_member_datasources, params)
441
+ req.send_request(options)
442
+ end
443
+
444
+ # Gets information on the data source package history for an account.
445
+ #
446
+ # @option params [required, Array<String>] :graph_arns
447
+ # The ARN of the behavior graph.
448
+ #
449
+ # @return [Types::BatchGetMembershipDatasourcesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
450
+ #
451
+ # * {Types::BatchGetMembershipDatasourcesResponse#membership_datasources #membership_datasources} => Array&lt;Types::MembershipDatasources&gt;
452
+ # * {Types::BatchGetMembershipDatasourcesResponse#unprocessed_graphs #unprocessed_graphs} => Array&lt;Types::UnprocessedGraph&gt;
453
+ #
454
+ # @example Request syntax with placeholder values
455
+ #
456
+ # resp = client.batch_get_membership_datasources({
457
+ # graph_arns: ["GraphArn"], # required
458
+ # })
459
+ #
460
+ # @example Response structure
461
+ #
462
+ # resp.membership_datasources #=> Array
463
+ # resp.membership_datasources[0].account_id #=> String
464
+ # resp.membership_datasources[0].graph_arn #=> String
465
+ # resp.membership_datasources[0].datasource_package_ingest_history #=> Hash
466
+ # resp.membership_datasources[0].datasource_package_ingest_history["DatasourcePackage"] #=> Hash
467
+ # resp.membership_datasources[0].datasource_package_ingest_history["DatasourcePackage"]["DatasourcePackageIngestState"].timestamp #=> Time
468
+ # resp.unprocessed_graphs #=> Array
469
+ # resp.unprocessed_graphs[0].graph_arn #=> String
470
+ # resp.unprocessed_graphs[0].reason #=> String
471
+ #
472
+ # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/BatchGetMembershipDatasources AWS API Documentation
473
+ #
474
+ # @overload batch_get_membership_datasources(params = {})
475
+ # @param [Hash] params ({})
476
+ def batch_get_membership_datasources(params = {}, options = {})
477
+ req = build_request(:batch_get_membership_datasources, params)
478
+ req.send_request(options)
479
+ end
480
+
385
481
  # Creates a new behavior graph for the calling account, and sets that
386
482
  # account as the administrator account. This operation is called by the
387
483
  # account that is enabling Detective.
@@ -529,6 +625,11 @@ module Aws::Detective
529
625
  # resp.members[0].percent_of_graph_utilization #=> Float
530
626
  # resp.members[0].percent_of_graph_utilization_updated_time #=> Time
531
627
  # resp.members[0].invitation_type #=> String, one of "INVITATION", "ORGANIZATION"
628
+ # resp.members[0].volume_usage_by_datasource_package #=> Hash
629
+ # resp.members[0].volume_usage_by_datasource_package["DatasourcePackage"].volume_usage_in_bytes #=> Integer
630
+ # resp.members[0].volume_usage_by_datasource_package["DatasourcePackage"].volume_usage_update_time #=> Time
631
+ # resp.members[0].datasource_package_ingest_states #=> Hash
632
+ # resp.members[0].datasource_package_ingest_states["DatasourcePackage"] #=> String, one of "STARTED", "STOPPED", "DISABLED"
532
633
  # resp.unprocessed_accounts #=> Array
533
634
  # resp.unprocessed_accounts[0].account_id #=> String
534
635
  # resp.unprocessed_accounts[0].reason #=> String
@@ -658,12 +759,19 @@ module Aws::Detective
658
759
  req.send_request(options)
659
760
  end
660
761
 
661
- # Removes the Detective administrator account for the organization in
662
- # the current Region. Deletes the behavior graph for that account.
762
+ # Removes the Detective administrator account in the current Region.
763
+ # Deletes the organization behavior graph.
764
+ #
765
+ # Can only be called by the organization management account.
766
+ #
767
+ # Removing the Detective administrator account does not affect the
768
+ # delegated administrator account for Detective in Organizations.
663
769
  #
664
- # Can only be called by the organization management account. Before you
665
- # can select a different Detective administrator account, you must
666
- # remove the Detective administrator account in all Regions.
770
+ # To remove the delegated administrator account in Organizations, use
771
+ # the Organizations API. Removing the delegated administrator account
772
+ # also removes the Detective administrator account in all Regions,
773
+ # except for Regions where the Detective administrator account is the
774
+ # organization management account.
667
775
  #
668
776
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
669
777
  #
@@ -716,10 +824,17 @@ module Aws::Detective
716
824
  #
717
825
  # Can only be called by the organization management account.
718
826
  #
719
- # The Detective administrator account for an organization must be the
720
- # same in all Regions. If you already designated a Detective
721
- # administrator account in another Region, then you must designate the
722
- # same account.
827
+ # If the organization has a delegated administrator account in
828
+ # Organizations, then the Detective administrator account must be either
829
+ # the delegated administrator account or the organization management
830
+ # account.
831
+ #
832
+ # If the organization does not have a delegated administrator account in
833
+ # Organizations, then you can choose any account in the organization. If
834
+ # you choose an account other than the organization management account,
835
+ # Detective calls Organizations to make that account the delegated
836
+ # administrator account for Detective. The organization management
837
+ # account cannot be the delegated administrator account.
723
838
  #
724
839
  # @option params [required, String] :account_id
725
840
  # The Amazon Web Services account identifier of the account to designate
@@ -785,6 +900,11 @@ module Aws::Detective
785
900
  # resp.member_details[0].percent_of_graph_utilization #=> Float
786
901
  # resp.member_details[0].percent_of_graph_utilization_updated_time #=> Time
787
902
  # resp.member_details[0].invitation_type #=> String, one of "INVITATION", "ORGANIZATION"
903
+ # resp.member_details[0].volume_usage_by_datasource_package #=> Hash
904
+ # resp.member_details[0].volume_usage_by_datasource_package["DatasourcePackage"].volume_usage_in_bytes #=> Integer
905
+ # resp.member_details[0].volume_usage_by_datasource_package["DatasourcePackage"].volume_usage_update_time #=> Time
906
+ # resp.member_details[0].datasource_package_ingest_states #=> Hash
907
+ # resp.member_details[0].datasource_package_ingest_states["DatasourcePackage"] #=> String, one of "STARTED", "STOPPED", "DISABLED"
788
908
  # resp.unprocessed_accounts #=> Array
789
909
  # resp.unprocessed_accounts[0].account_id #=> String
790
910
  # resp.unprocessed_accounts[0].reason #=> String
@@ -798,6 +918,51 @@ module Aws::Detective
798
918
  req.send_request(options)
799
919
  end
800
920
 
921
+ # Lists data source packages in the behavior graph.
922
+ #
923
+ # @option params [required, String] :graph_arn
924
+ # The ARN of the behavior graph.
925
+ #
926
+ # @option params [String] :next_token
927
+ # For requests to get the next page of results, the pagination token
928
+ # that was returned with the previous set of results. The initial
929
+ # request does not include a pagination token.
930
+ #
931
+ # @option params [Integer] :max_results
932
+ # The maximum number of results to return.
933
+ #
934
+ # @return [Types::ListDatasourcePackagesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
935
+ #
936
+ # * {Types::ListDatasourcePackagesResponse#datasource_packages #datasource_packages} => Hash&lt;String,Types::DatasourcePackageIngestDetail&gt;
937
+ # * {Types::ListDatasourcePackagesResponse#next_token #next_token} => String
938
+ #
939
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
940
+ #
941
+ # @example Request syntax with placeholder values
942
+ #
943
+ # resp = client.list_datasource_packages({
944
+ # graph_arn: "GraphArn", # required
945
+ # next_token: "PaginationToken",
946
+ # max_results: 1,
947
+ # })
948
+ #
949
+ # @example Response structure
950
+ #
951
+ # resp.datasource_packages #=> Hash
952
+ # resp.datasource_packages["DatasourcePackage"].datasource_package_ingest_state #=> String, one of "STARTED", "STOPPED", "DISABLED"
953
+ # resp.datasource_packages["DatasourcePackage"].last_ingest_state_change #=> Hash
954
+ # resp.datasource_packages["DatasourcePackage"].last_ingest_state_change["DatasourcePackageIngestState"].timestamp #=> Time
955
+ # resp.next_token #=> String
956
+ #
957
+ # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListDatasourcePackages AWS API Documentation
958
+ #
959
+ # @overload list_datasource_packages(params = {})
960
+ # @param [Hash] params ({})
961
+ def list_datasource_packages(params = {}, options = {})
962
+ req = build_request(:list_datasource_packages, params)
963
+ req.send_request(options)
964
+ end
965
+
801
966
  # Returns the list of behavior graphs that the calling account is an
802
967
  # administrator account of. This operation can only be called by an
803
968
  # administrator account.
@@ -899,6 +1064,11 @@ module Aws::Detective
899
1064
  # resp.invitations[0].percent_of_graph_utilization #=> Float
900
1065
  # resp.invitations[0].percent_of_graph_utilization_updated_time #=> Time
901
1066
  # resp.invitations[0].invitation_type #=> String, one of "INVITATION", "ORGANIZATION"
1067
+ # resp.invitations[0].volume_usage_by_datasource_package #=> Hash
1068
+ # resp.invitations[0].volume_usage_by_datasource_package["DatasourcePackage"].volume_usage_in_bytes #=> Integer
1069
+ # resp.invitations[0].volume_usage_by_datasource_package["DatasourcePackage"].volume_usage_update_time #=> Time
1070
+ # resp.invitations[0].datasource_package_ingest_states #=> Hash
1071
+ # resp.invitations[0].datasource_package_ingest_states["DatasourcePackage"] #=> String, one of "STARTED", "STOPPED", "DISABLED"
902
1072
  # resp.next_token #=> String
903
1073
  #
904
1074
  # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListInvitations AWS API Documentation
@@ -965,6 +1135,11 @@ module Aws::Detective
965
1135
  # resp.member_details[0].percent_of_graph_utilization #=> Float
966
1136
  # resp.member_details[0].percent_of_graph_utilization_updated_time #=> Time
967
1137
  # resp.member_details[0].invitation_type #=> String, one of "INVITATION", "ORGANIZATION"
1138
+ # resp.member_details[0].volume_usage_by_datasource_package #=> Hash
1139
+ # resp.member_details[0].volume_usage_by_datasource_package["DatasourcePackage"].volume_usage_in_bytes #=> Integer
1140
+ # resp.member_details[0].volume_usage_by_datasource_package["DatasourcePackage"].volume_usage_update_time #=> Time
1141
+ # resp.member_details[0].datasource_package_ingest_states #=> Hash
1142
+ # resp.member_details[0].datasource_package_ingest_states["DatasourcePackage"] #=> String, one of "STARTED", "STOPPED", "DISABLED"
968
1143
  # resp.next_token #=> String
969
1144
  #
970
1145
  # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListMembers AWS API Documentation
@@ -1175,6 +1350,32 @@ module Aws::Detective
1175
1350
  req.send_request(options)
1176
1351
  end
1177
1352
 
1353
+ # Starts a data source packages for the behavior graph.
1354
+ #
1355
+ # @option params [required, String] :graph_arn
1356
+ # The ARN of the behavior graph.
1357
+ #
1358
+ # @option params [required, Array<String>] :datasource_packages
1359
+ # The data source package start for the behavior graph.
1360
+ #
1361
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1362
+ #
1363
+ # @example Request syntax with placeholder values
1364
+ #
1365
+ # resp = client.update_datasource_packages({
1366
+ # graph_arn: "GraphArn", # required
1367
+ # datasource_packages: ["DETECTIVE_CORE"], # required, accepts DETECTIVE_CORE, EKS_AUDIT
1368
+ # })
1369
+ #
1370
+ # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/UpdateDatasourcePackages AWS API Documentation
1371
+ #
1372
+ # @overload update_datasource_packages(params = {})
1373
+ # @param [Hash] params ({})
1374
+ def update_datasource_packages(params = {}, options = {})
1375
+ req = build_request(:update_datasource_packages, params)
1376
+ req.send_request(options)
1377
+ end
1378
+
1178
1379
  # Updates the configuration for the Organizations integration in the
1179
1380
  # current Region. Can only be called by the Detective administrator
1180
1381
  # account for the organization.
@@ -1217,7 +1418,7 @@ module Aws::Detective
1217
1418
  params: params,
1218
1419
  config: config)
1219
1420
  context[:gem_name] = 'aws-sdk-detective'
1220
- context[:gem_version] = '1.28.0'
1421
+ context[:gem_version] = '1.30.0'
1221
1422
  Seahorse::Client::Request.new(handlers, context)
1222
1423
  end
1223
1424