aws-sdk-detective 1.2.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-detective.rb +1 -1
- data/lib/aws-sdk-detective/client.rb +93 -47
- data/lib/aws-sdk-detective/client_api.rb +24 -0
- data/lib/aws-sdk-detective/resource.rb +1 -7
- data/lib/aws-sdk-detective/types.rb +81 -11
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9ac302bd55605b0ae45d5394348509cdc3bd7069a95c1ed248dd8f851b9ee227
|
4
|
+
data.tar.gz: 13169e1fb98c3661c48806bc70e133a6372f3ac43c6ad4568fcfceee4b4d89ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7311b9d5ae10a7b19d0865c45de6295b18b1a1c67afdd2f60fc7714c3b0e3c028f531bc1320df90632cc8098bcdb9faf121b0ed3916dd5e56182e832078117d
|
7
|
+
data.tar.gz: 9f8c98a3461f8151be11467fda424d54e0a0a5fb0c9c96b0dc28e55926ebbec2e8875b387dc3ebcbc2a5dffa98590b07c531462174729f3312b65ab9f056db5d
|
data/lib/aws-sdk-detective.rb
CHANGED
@@ -24,6 +24,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
24
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
25
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
26
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
27
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
28
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
29
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
30
|
|
@@ -32,11 +33,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:detective)
|
|
32
33
|
module Aws::Detective
|
33
34
|
# An API client for Detective. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
35
|
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
36
|
+
# client = Aws::Detective::Client.new(
|
37
|
+
# region: region_name,
|
38
|
+
# credentials: credentials,
|
39
|
+
# # ...
|
40
|
+
# )
|
40
41
|
#
|
41
42
|
# For details on configuring region and credentials see
|
42
43
|
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
@@ -69,6 +70,7 @@ module Aws::Detective
|
|
69
70
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
71
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
72
|
add_plugin(Aws::Plugins::TransferEncoding)
|
73
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
74
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
75
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
74
76
|
|
@@ -105,7 +107,7 @@ module Aws::Detective
|
|
105
107
|
# @option options [required, String] :region
|
106
108
|
# The AWS region to connect to. The configured `:region` is
|
107
109
|
# used to determine the service `:endpoint`. When not passed,
|
108
|
-
# a default `:region` is
|
110
|
+
# a default `:region` is searched for in the following locations:
|
109
111
|
#
|
110
112
|
# * `Aws.config[:region]`
|
111
113
|
# * `ENV['AWS_REGION']`
|
@@ -161,7 +163,7 @@ module Aws::Detective
|
|
161
163
|
# @option options [String] :endpoint
|
162
164
|
# The client endpoint is normally constructed from the `:region`
|
163
165
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be
|
166
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
167
|
#
|
166
168
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
169
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +178,7 @@ module Aws::Detective
|
|
176
178
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
179
|
#
|
178
180
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
181
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
182
|
#
|
181
183
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
184
|
# The log formatter.
|
@@ -229,15 +231,19 @@ module Aws::Detective
|
|
229
231
|
#
|
230
232
|
# @option options [String] :retry_mode ("legacy")
|
231
233
|
# Specifies which retry algorithm to use. Values are:
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
234
|
+
#
|
235
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
236
|
+
# no retry mode is provided.
|
237
|
+
#
|
238
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
239
|
+
# This includes support for retry quotas, which limit the number of
|
240
|
+
# unsuccessful retries a client can make.
|
241
|
+
#
|
242
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
243
|
+
# functionality of `standard` mode along with automatic client side
|
244
|
+
# throttling. This is a provisional mode that may change behavior
|
245
|
+
# in the future.
|
246
|
+
#
|
241
247
|
#
|
242
248
|
# @option options [String] :secret_access_key
|
243
249
|
#
|
@@ -265,8 +271,7 @@ module Aws::Detective
|
|
265
271
|
#
|
266
272
|
# @option options [Integer] :http_read_timeout (60) The default
|
267
273
|
# number of seconds to wait for response data. This value can
|
268
|
-
# safely be set
|
269
|
-
# per-request on the session yielded by {#session_for}.
|
274
|
+
# safely be set per-request on the session.
|
270
275
|
#
|
271
276
|
# @option options [Float] :http_idle_timeout (5) The number of
|
272
277
|
# seconds a connection is allowed to sit idle before it is
|
@@ -278,7 +283,7 @@ module Aws::Detective
|
|
278
283
|
# request body. This option has no effect unless the request has
|
279
284
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
280
285
|
# disables this behaviour. This value can safely be set per
|
281
|
-
# request on the session
|
286
|
+
# request on the session.
|
282
287
|
#
|
283
288
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
284
289
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -305,8 +310,6 @@ module Aws::Detective
|
|
305
310
|
|
306
311
|
# @!group API Operations
|
307
312
|
|
308
|
-
# Amazon Detective is currently in preview.
|
309
|
-
#
|
310
313
|
# Accepts an invitation for the member account to contribute data to a
|
311
314
|
# behavior graph. This operation can only be called by an invited member
|
312
315
|
# account.
|
@@ -338,12 +341,17 @@ module Aws::Detective
|
|
338
341
|
req.send_request(options)
|
339
342
|
end
|
340
343
|
|
341
|
-
# Amazon Detective is currently in preview.
|
342
|
-
#
|
343
344
|
# Creates a new behavior graph for the calling account, and sets that
|
344
345
|
# account as the master account. This operation is called by the account
|
345
346
|
# that is enabling Detective.
|
346
347
|
#
|
348
|
+
# Before you try to enable Detective, make sure that your account has
|
349
|
+
# been enrolled in Amazon GuardDuty for at least 48 hours. If you do not
|
350
|
+
# meet this requirement, you cannot enable Detective. If you do meet the
|
351
|
+
# GuardDuty prerequisite, then when you make the request to enable
|
352
|
+
# Detective, it checks whether your data volume is within the Detective
|
353
|
+
# quota. If it exceeds the quota, then you cannot enable Detective.
|
354
|
+
#
|
347
355
|
# The operation also enables Detective for the calling account in the
|
348
356
|
# currently selected Region. It returns the ARN of the new behavior
|
349
357
|
# graph.
|
@@ -373,8 +381,6 @@ module Aws::Detective
|
|
373
381
|
req.send_request(options)
|
374
382
|
end
|
375
383
|
|
376
|
-
# Amazon Detective is currently in preview.
|
377
|
-
#
|
378
384
|
# Sends a request to invite the specified AWS accounts to be member
|
379
385
|
# accounts in the behavior graph. This operation can only be called by
|
380
386
|
# the master account for a behavior graph.
|
@@ -434,9 +440,12 @@ module Aws::Detective
|
|
434
440
|
# resp.members[0].email_address #=> String
|
435
441
|
# resp.members[0].graph_arn #=> String
|
436
442
|
# resp.members[0].master_id #=> String
|
437
|
-
# resp.members[0].status #=> String, one of "INVITED", "VERIFICATION_IN_PROGRESS", "VERIFICATION_FAILED", "ENABLED"
|
443
|
+
# resp.members[0].status #=> String, one of "INVITED", "VERIFICATION_IN_PROGRESS", "VERIFICATION_FAILED", "ENABLED", "ACCEPTED_BUT_DISABLED"
|
444
|
+
# resp.members[0].disabled_reason #=> String, one of "VOLUME_TOO_HIGH", "VOLUME_UNKNOWN"
|
438
445
|
# resp.members[0].invited_time #=> Time
|
439
446
|
# resp.members[0].updated_time #=> Time
|
447
|
+
# resp.members[0].percent_of_graph_utilization #=> Float
|
448
|
+
# resp.members[0].percent_of_graph_utilization_updated_time #=> Time
|
440
449
|
# resp.unprocessed_accounts #=> Array
|
441
450
|
# resp.unprocessed_accounts[0].account_id #=> String
|
442
451
|
# resp.unprocessed_accounts[0].reason #=> String
|
@@ -450,8 +459,6 @@ module Aws::Detective
|
|
450
459
|
req.send_request(options)
|
451
460
|
end
|
452
461
|
|
453
|
-
# Amazon Detective is currently in preview.
|
454
|
-
#
|
455
462
|
# Disables the specified behavior graph and queues it to be deleted.
|
456
463
|
# This operation removes the graph from each member account's list of
|
457
464
|
# behavior graphs.
|
@@ -479,8 +486,6 @@ module Aws::Detective
|
|
479
486
|
req.send_request(options)
|
480
487
|
end
|
481
488
|
|
482
|
-
# Amazon Detective is currently in preview.
|
483
|
-
#
|
484
489
|
# Deletes one or more member accounts from the master account behavior
|
485
490
|
# graph. This operation can only be called by a Detective master
|
486
491
|
# account. That account cannot use `DeleteMembers` to delete their own
|
@@ -523,8 +528,6 @@ module Aws::Detective
|
|
523
528
|
req.send_request(options)
|
524
529
|
end
|
525
530
|
|
526
|
-
# Amazon Detective is currently in preview.
|
527
|
-
#
|
528
531
|
# Removes the member account from the specified behavior graph. This
|
529
532
|
# operation can only be called by a member account that has the
|
530
533
|
# `ENABLED` status.
|
@@ -552,8 +555,6 @@ module Aws::Detective
|
|
552
555
|
req.send_request(options)
|
553
556
|
end
|
554
557
|
|
555
|
-
# Amazon Detective is currently in preview.
|
556
|
-
#
|
557
558
|
# Returns the membership details for specified member accounts for a
|
558
559
|
# behavior graph.
|
559
560
|
#
|
@@ -586,9 +587,12 @@ module Aws::Detective
|
|
586
587
|
# resp.member_details[0].email_address #=> String
|
587
588
|
# resp.member_details[0].graph_arn #=> String
|
588
589
|
# resp.member_details[0].master_id #=> String
|
589
|
-
# resp.member_details[0].status #=> String, one of "INVITED", "VERIFICATION_IN_PROGRESS", "VERIFICATION_FAILED", "ENABLED"
|
590
|
+
# resp.member_details[0].status #=> String, one of "INVITED", "VERIFICATION_IN_PROGRESS", "VERIFICATION_FAILED", "ENABLED", "ACCEPTED_BUT_DISABLED"
|
591
|
+
# resp.member_details[0].disabled_reason #=> String, one of "VOLUME_TOO_HIGH", "VOLUME_UNKNOWN"
|
590
592
|
# resp.member_details[0].invited_time #=> Time
|
591
593
|
# resp.member_details[0].updated_time #=> Time
|
594
|
+
# resp.member_details[0].percent_of_graph_utilization #=> Float
|
595
|
+
# resp.member_details[0].percent_of_graph_utilization_updated_time #=> Time
|
592
596
|
# resp.unprocessed_accounts #=> Array
|
593
597
|
# resp.unprocessed_accounts[0].account_id #=> String
|
594
598
|
# resp.unprocessed_accounts[0].reason #=> String
|
@@ -602,8 +606,6 @@ module Aws::Detective
|
|
602
606
|
req.send_request(options)
|
603
607
|
end
|
604
608
|
|
605
|
-
# Amazon Detective is currently in preview.
|
606
|
-
#
|
607
609
|
# Returns the list of behavior graphs that the calling account is a
|
608
610
|
# master of. This operation can only be called by a master account.
|
609
611
|
#
|
@@ -625,6 +627,8 @@ module Aws::Detective
|
|
625
627
|
# * {Types::ListGraphsResponse#graph_list #graph_list} => Array<Types::Graph>
|
626
628
|
# * {Types::ListGraphsResponse#next_token #next_token} => String
|
627
629
|
#
|
630
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
631
|
+
#
|
628
632
|
# @example Request syntax with placeholder values
|
629
633
|
#
|
630
634
|
# resp = client.list_graphs({
|
@@ -648,8 +652,6 @@ module Aws::Detective
|
|
648
652
|
req.send_request(options)
|
649
653
|
end
|
650
654
|
|
651
|
-
# Amazon Detective is currently in preview.
|
652
|
-
#
|
653
655
|
# Retrieves the list of open and accepted behavior graph invitations for
|
654
656
|
# the member account. This operation can only be called by a member
|
655
657
|
# account.
|
@@ -677,6 +679,8 @@ module Aws::Detective
|
|
677
679
|
# * {Types::ListInvitationsResponse#invitations #invitations} => Array<Types::MemberDetail>
|
678
680
|
# * {Types::ListInvitationsResponse#next_token #next_token} => String
|
679
681
|
#
|
682
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
683
|
+
#
|
680
684
|
# @example Request syntax with placeholder values
|
681
685
|
#
|
682
686
|
# resp = client.list_invitations({
|
@@ -691,9 +695,12 @@ module Aws::Detective
|
|
691
695
|
# resp.invitations[0].email_address #=> String
|
692
696
|
# resp.invitations[0].graph_arn #=> String
|
693
697
|
# resp.invitations[0].master_id #=> String
|
694
|
-
# resp.invitations[0].status #=> String, one of "INVITED", "VERIFICATION_IN_PROGRESS", "VERIFICATION_FAILED", "ENABLED"
|
698
|
+
# resp.invitations[0].status #=> String, one of "INVITED", "VERIFICATION_IN_PROGRESS", "VERIFICATION_FAILED", "ENABLED", "ACCEPTED_BUT_DISABLED"
|
699
|
+
# resp.invitations[0].disabled_reason #=> String, one of "VOLUME_TOO_HIGH", "VOLUME_UNKNOWN"
|
695
700
|
# resp.invitations[0].invited_time #=> Time
|
696
701
|
# resp.invitations[0].updated_time #=> Time
|
702
|
+
# resp.invitations[0].percent_of_graph_utilization #=> Float
|
703
|
+
# resp.invitations[0].percent_of_graph_utilization_updated_time #=> Time
|
697
704
|
# resp.next_token #=> String
|
698
705
|
#
|
699
706
|
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListInvitations AWS API Documentation
|
@@ -705,8 +712,6 @@ module Aws::Detective
|
|
705
712
|
req.send_request(options)
|
706
713
|
end
|
707
714
|
|
708
|
-
# Amazon Detective is currently in preview.
|
709
|
-
#
|
710
715
|
# Retrieves the list of member accounts for a behavior graph. Does not
|
711
716
|
# return member accounts that were removed from the behavior graph.
|
712
717
|
#
|
@@ -729,6 +734,8 @@ module Aws::Detective
|
|
729
734
|
# * {Types::ListMembersResponse#member_details #member_details} => Array<Types::MemberDetail>
|
730
735
|
# * {Types::ListMembersResponse#next_token #next_token} => String
|
731
736
|
#
|
737
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
738
|
+
#
|
732
739
|
# @example Request syntax with placeholder values
|
733
740
|
#
|
734
741
|
# resp = client.list_members({
|
@@ -744,9 +751,12 @@ module Aws::Detective
|
|
744
751
|
# resp.member_details[0].email_address #=> String
|
745
752
|
# resp.member_details[0].graph_arn #=> String
|
746
753
|
# resp.member_details[0].master_id #=> String
|
747
|
-
# resp.member_details[0].status #=> String, one of "INVITED", "VERIFICATION_IN_PROGRESS", "VERIFICATION_FAILED", "ENABLED"
|
754
|
+
# resp.member_details[0].status #=> String, one of "INVITED", "VERIFICATION_IN_PROGRESS", "VERIFICATION_FAILED", "ENABLED", "ACCEPTED_BUT_DISABLED"
|
755
|
+
# resp.member_details[0].disabled_reason #=> String, one of "VOLUME_TOO_HIGH", "VOLUME_UNKNOWN"
|
748
756
|
# resp.member_details[0].invited_time #=> Time
|
749
757
|
# resp.member_details[0].updated_time #=> Time
|
758
|
+
# resp.member_details[0].percent_of_graph_utilization #=> Float
|
759
|
+
# resp.member_details[0].percent_of_graph_utilization_updated_time #=> Time
|
750
760
|
# resp.next_token #=> String
|
751
761
|
#
|
752
762
|
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListMembers AWS API Documentation
|
@@ -758,8 +768,6 @@ module Aws::Detective
|
|
758
768
|
req.send_request(options)
|
759
769
|
end
|
760
770
|
|
761
|
-
# Amazon Detective is currently in preview.
|
762
|
-
#
|
763
771
|
# Rejects an invitation to contribute the account data to a behavior
|
764
772
|
# graph. This operation must be called by a member account that has the
|
765
773
|
# `INVITED` status.
|
@@ -787,6 +795,44 @@ module Aws::Detective
|
|
787
795
|
req.send_request(options)
|
788
796
|
end
|
789
797
|
|
798
|
+
# Sends a request to enable data ingest for a member account that has a
|
799
|
+
# status of `ACCEPTED_BUT_DISABLED`.
|
800
|
+
#
|
801
|
+
# For valid member accounts, the status is updated as follows.
|
802
|
+
#
|
803
|
+
# * If Detective enabled the member account, then the new status is
|
804
|
+
# `ENABLED`.
|
805
|
+
#
|
806
|
+
# * If Detective cannot enable the member account, the status remains
|
807
|
+
# `ACCEPTED_BUT_DISABLED`.
|
808
|
+
#
|
809
|
+
# @option params [required, String] :graph_arn
|
810
|
+
# The ARN of the behavior graph.
|
811
|
+
#
|
812
|
+
# @option params [required, String] :account_id
|
813
|
+
# The account ID of the member account to try to enable.
|
814
|
+
#
|
815
|
+
# The account must be an invited member account with a status of
|
816
|
+
# `ACCEPTED_BUT_DISABLED`.
|
817
|
+
#
|
818
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
819
|
+
#
|
820
|
+
# @example Request syntax with placeholder values
|
821
|
+
#
|
822
|
+
# resp = client.start_monitoring_member({
|
823
|
+
# graph_arn: "GraphArn", # required
|
824
|
+
# account_id: "AccountId", # required
|
825
|
+
# })
|
826
|
+
#
|
827
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/StartMonitoringMember AWS API Documentation
|
828
|
+
#
|
829
|
+
# @overload start_monitoring_member(params = {})
|
830
|
+
# @param [Hash] params ({})
|
831
|
+
def start_monitoring_member(params = {}, options = {})
|
832
|
+
req = build_request(:start_monitoring_member, params)
|
833
|
+
req.send_request(options)
|
834
|
+
end
|
835
|
+
|
790
836
|
# @!endgroup
|
791
837
|
|
792
838
|
# @param params ({})
|
@@ -800,7 +846,7 @@ module Aws::Detective
|
|
800
846
|
params: params,
|
801
847
|
config: config)
|
802
848
|
context[:gem_name] = 'aws-sdk-detective'
|
803
|
-
context[:gem_version] = '1.
|
849
|
+
context[:gem_version] = '1.7.1'
|
804
850
|
Seahorse::Client::Request.new(handlers, context)
|
805
851
|
end
|
806
852
|
|
@@ -41,12 +41,15 @@ module Aws::Detective
|
|
41
41
|
ListMembersResponse = Shapes::StructureShape.new(name: 'ListMembersResponse')
|
42
42
|
MemberDetail = Shapes::StructureShape.new(name: 'MemberDetail')
|
43
43
|
MemberDetailList = Shapes::ListShape.new(name: 'MemberDetailList')
|
44
|
+
MemberDisabledReason = Shapes::StringShape.new(name: 'MemberDisabledReason')
|
44
45
|
MemberResultsLimit = Shapes::IntegerShape.new(name: 'MemberResultsLimit')
|
45
46
|
MemberStatus = Shapes::StringShape.new(name: 'MemberStatus')
|
46
47
|
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
48
|
+
Percentage = Shapes::FloatShape.new(name: 'Percentage')
|
47
49
|
RejectInvitationRequest = Shapes::StructureShape.new(name: 'RejectInvitationRequest')
|
48
50
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
49
51
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
52
|
+
StartMonitoringMemberRequest = Shapes::StructureShape.new(name: 'StartMonitoringMemberRequest')
|
50
53
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
51
54
|
UnprocessedAccount = Shapes::StructureShape.new(name: 'UnprocessedAccount')
|
52
55
|
UnprocessedAccountList = Shapes::ListShape.new(name: 'UnprocessedAccountList')
|
@@ -140,8 +143,11 @@ module Aws::Detective
|
|
140
143
|
MemberDetail.add_member(:graph_arn, Shapes::ShapeRef.new(shape: GraphArn, location_name: "GraphArn"))
|
141
144
|
MemberDetail.add_member(:master_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "MasterId"))
|
142
145
|
MemberDetail.add_member(:status, Shapes::ShapeRef.new(shape: MemberStatus, location_name: "Status"))
|
146
|
+
MemberDetail.add_member(:disabled_reason, Shapes::ShapeRef.new(shape: MemberDisabledReason, location_name: "DisabledReason"))
|
143
147
|
MemberDetail.add_member(:invited_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "InvitedTime"))
|
144
148
|
MemberDetail.add_member(:updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedTime"))
|
149
|
+
MemberDetail.add_member(:percent_of_graph_utilization, Shapes::ShapeRef.new(shape: Percentage, location_name: "PercentOfGraphUtilization"))
|
150
|
+
MemberDetail.add_member(:percent_of_graph_utilization_updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "PercentOfGraphUtilizationUpdatedTime"))
|
145
151
|
MemberDetail.struct_class = Types::MemberDetail
|
146
152
|
|
147
153
|
MemberDetailList.member = Shapes::ShapeRef.new(shape: MemberDetail)
|
@@ -155,6 +161,10 @@ module Aws::Detective
|
|
155
161
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
156
162
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
157
163
|
|
164
|
+
StartMonitoringMemberRequest.add_member(:graph_arn, Shapes::ShapeRef.new(shape: GraphArn, required: true, location_name: "GraphArn"))
|
165
|
+
StartMonitoringMemberRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
166
|
+
StartMonitoringMemberRequest.struct_class = Types::StartMonitoringMemberRequest
|
167
|
+
|
158
168
|
UnprocessedAccount.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
159
169
|
UnprocessedAccount.add_member(:reason, Shapes::ShapeRef.new(shape: UnprocessedReason, location_name: "Reason"))
|
160
170
|
UnprocessedAccount.struct_class = Types::UnprocessedAccount
|
@@ -202,6 +212,7 @@ module Aws::Detective
|
|
202
212
|
o.output = Shapes::ShapeRef.new(shape: CreateGraphResponse)
|
203
213
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
204
214
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
215
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
205
216
|
end)
|
206
217
|
|
207
218
|
api.add_operation(:create_members, Seahorse::Model::Operation.new.tap do |o|
|
@@ -322,6 +333,19 @@ module Aws::Detective
|
|
322
333
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
323
334
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
324
335
|
end)
|
336
|
+
|
337
|
+
api.add_operation(:start_monitoring_member, Seahorse::Model::Operation.new.tap do |o|
|
338
|
+
o.name = "StartMonitoringMember"
|
339
|
+
o.http_method = "POST"
|
340
|
+
o.http_request_uri = "/graph/member/monitoringstate"
|
341
|
+
o.input = Shapes::ShapeRef.new(shape: StartMonitoringMemberRequest)
|
342
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
343
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
344
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
345
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
346
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
347
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
348
|
+
end)
|
325
349
|
end
|
326
350
|
|
327
351
|
end
|
@@ -6,13 +6,7 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::Detective
|
9
|
-
|
10
|
-
# To create a resource object:
|
11
|
-
# resource = Aws::Detective::Resource.new(region: 'us-west-2')
|
12
|
-
# You can supply a client object with custom configuration that will be used for all resource operations.
|
13
|
-
# If you do not pass +:client+, a default client will be constructed.
|
14
|
-
# client = Aws::Detective::Client.new(region: 'us-west-2')
|
15
|
-
# resource = Aws::Detective::Resource.new(client: client)
|
9
|
+
|
16
10
|
class Resource
|
17
11
|
|
18
12
|
# @param options ({})
|
@@ -29,8 +29,6 @@ module Aws::Detective
|
|
29
29
|
include Aws::Structure
|
30
30
|
end
|
31
31
|
|
32
|
-
# Amazon Detective is currently in preview.
|
33
|
-
#
|
34
32
|
# An AWS account that is the master of or a member of a behavior graph.
|
35
33
|
#
|
36
34
|
# @note When making an API call, you may pass Account
|
@@ -274,8 +272,6 @@ module Aws::Detective
|
|
274
272
|
include Aws::Structure
|
275
273
|
end
|
276
274
|
|
277
|
-
# Amazon Detective is currently in preview.
|
278
|
-
#
|
279
275
|
# A behavior graph in Detective.
|
280
276
|
#
|
281
277
|
# @!attribute [rw] arn
|
@@ -459,8 +455,6 @@ module Aws::Detective
|
|
459
455
|
include Aws::Structure
|
460
456
|
end
|
461
457
|
|
462
|
-
# Amazon Detective is currently in preview.
|
463
|
-
#
|
464
458
|
# Details about a member account that was invited to contribute to a
|
465
459
|
# behavior graph.
|
466
460
|
#
|
@@ -502,10 +496,29 @@ module Aws::Detective
|
|
502
496
|
# * `ENABLED` - Indicates that the member account accepted the
|
503
497
|
# invitation to contribute to the behavior graph.
|
504
498
|
#
|
499
|
+
# * `ACCEPTED_BUT_DISABLED` - Indicates that the member account
|
500
|
+
# accepted the invitation but is prevented from contributing data to
|
501
|
+
# the behavior graph. `DisabledReason` provides the reason why the
|
502
|
+
# member account is not enabled.
|
503
|
+
#
|
505
504
|
# Member accounts that declined an invitation or that were removed
|
506
505
|
# from the behavior graph are not included.
|
507
506
|
# @return [String]
|
508
507
|
#
|
508
|
+
# @!attribute [rw] disabled_reason
|
509
|
+
# For member accounts with a status of `ACCEPTED_BUT_DISABLED`, the
|
510
|
+
# reason that the member account is not enabled.
|
511
|
+
#
|
512
|
+
# The reason can have one of the following values:
|
513
|
+
#
|
514
|
+
# * `VOLUME_TOO_HIGH` - Indicates that adding the member account would
|
515
|
+
# cause the data volume for the behavior graph to be too high.
|
516
|
+
#
|
517
|
+
# * `VOLUME_UNKNOWN` - Indicates that Detective is unable to verify
|
518
|
+
# the data volume for the member account. This is usually because
|
519
|
+
# the member account is not enrolled in Amazon GuardDuty.
|
520
|
+
# @return [String]
|
521
|
+
#
|
509
522
|
# @!attribute [rw] invited_time
|
510
523
|
# The date and time that Detective sent the invitation to the member
|
511
524
|
# account. The value is in milliseconds since the epoch.
|
@@ -516,6 +529,26 @@ module Aws::Detective
|
|
516
529
|
# value is in milliseconds since the epoch.
|
517
530
|
# @return [Time]
|
518
531
|
#
|
532
|
+
# @!attribute [rw] percent_of_graph_utilization
|
533
|
+
# The member account data volume as a percentage of the maximum
|
534
|
+
# allowed data volume. 0 indicates 0 percent, and 100 indicates 100
|
535
|
+
# percent.
|
536
|
+
#
|
537
|
+
# Note that this is not the percentage of the behavior graph data
|
538
|
+
# volume.
|
539
|
+
#
|
540
|
+
# For example, the data volume for the behavior graph is 80 GB per
|
541
|
+
# day. The maximum data volume is 160 GB per day. If the data volume
|
542
|
+
# for the member account is 40 GB per day, then
|
543
|
+
# `PercentOfGraphUtilization` is 25. It represents 25% of the maximum
|
544
|
+
# allowed data volume.
|
545
|
+
# @return [Float]
|
546
|
+
#
|
547
|
+
# @!attribute [rw] percent_of_graph_utilization_updated_time
|
548
|
+
# The date and time when the graph utilization percentage was last
|
549
|
+
# updated.
|
550
|
+
# @return [Time]
|
551
|
+
#
|
519
552
|
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/MemberDetail AWS API Documentation
|
520
553
|
#
|
521
554
|
class MemberDetail < Struct.new(
|
@@ -524,8 +557,11 @@ module Aws::Detective
|
|
524
557
|
:graph_arn,
|
525
558
|
:master_id,
|
526
559
|
:status,
|
560
|
+
:disabled_reason,
|
527
561
|
:invited_time,
|
528
|
-
:updated_time
|
562
|
+
:updated_time,
|
563
|
+
:percent_of_graph_utilization,
|
564
|
+
:percent_of_graph_utilization_updated_time)
|
529
565
|
include Aws::Structure
|
530
566
|
end
|
531
567
|
|
@@ -562,9 +598,18 @@ module Aws::Detective
|
|
562
598
|
include Aws::Structure
|
563
599
|
end
|
564
600
|
|
565
|
-
# This request
|
566
|
-
#
|
567
|
-
#
|
601
|
+
# This request cannot be completed for one of the following reasons.
|
602
|
+
#
|
603
|
+
# * The request would cause the number of member accounts in the
|
604
|
+
# behavior graph to exceed the maximum allowed. A behavior graph
|
605
|
+
# cannot have more than 1000 member accounts.
|
606
|
+
#
|
607
|
+
# * The request would cause the data rate for the behavior graph to
|
608
|
+
# exceed the maximum allowed.
|
609
|
+
#
|
610
|
+
# * Detective is unable to verify the data rate for the member account.
|
611
|
+
# This is usually because the member account is not enrolled in Amazon
|
612
|
+
# GuardDuty.
|
568
613
|
#
|
569
614
|
# @!attribute [rw] message
|
570
615
|
# @return [String]
|
@@ -576,8 +621,33 @@ module Aws::Detective
|
|
576
621
|
include Aws::Structure
|
577
622
|
end
|
578
623
|
|
579
|
-
#
|
624
|
+
# @note When making an API call, you may pass StartMonitoringMemberRequest
|
625
|
+
# data as a hash:
|
580
626
|
#
|
627
|
+
# {
|
628
|
+
# graph_arn: "GraphArn", # required
|
629
|
+
# account_id: "AccountId", # required
|
630
|
+
# }
|
631
|
+
#
|
632
|
+
# @!attribute [rw] graph_arn
|
633
|
+
# The ARN of the behavior graph.
|
634
|
+
# @return [String]
|
635
|
+
#
|
636
|
+
# @!attribute [rw] account_id
|
637
|
+
# The account ID of the member account to try to enable.
|
638
|
+
#
|
639
|
+
# The account must be an invited member account with a status of
|
640
|
+
# `ACCEPTED_BUT_DISABLED`.
|
641
|
+
# @return [String]
|
642
|
+
#
|
643
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/StartMonitoringMemberRequest AWS API Documentation
|
644
|
+
#
|
645
|
+
class StartMonitoringMemberRequest < Struct.new(
|
646
|
+
:graph_arn,
|
647
|
+
:account_id)
|
648
|
+
include Aws::Structure
|
649
|
+
end
|
650
|
+
|
581
651
|
# A member account that was included in a request but for which the
|
582
652
|
# request could not be processed.
|
583
653
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-detective
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.1
|
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: 2020-
|
11
|
+
date: 2020-06-11 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.
|
22
|
+
version: 3.99.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.
|
32
|
+
version: 3.99.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.
|
84
|
+
rubygems_version: 2.7.6.2
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: AWS SDK for Ruby - Amazon Detective
|