aws-sdk-detective 1.13.0 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-detective.rb +1 -1
- data/lib/aws-sdk-detective/client.rb +38 -23
- data/lib/aws-sdk-detective/client_api.rb +4 -1
- data/lib/aws-sdk-detective/types.rb +22 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16ec3e5ef9015e79f12ef04018889e7b591aa523fe83f023699a697614671dba
|
4
|
+
data.tar.gz: ec0729aa4406c38b7897b6f9ac3a935a9b7c4289dee2120039b4c95917658dcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6c9f0aa7ad87077adabbd80532f45cc1593962aaa0d9c33ea76f499c482901c6e8b5bf012d58b8370a0d648f8fbec9fcfe4299e508fa9707f47091c27b424c8
|
7
|
+
data.tar.gz: b488c4a6c01a0d494e388fd330c099cfa2e1def1f6bef06b1ba652d84ea6523821a8fbb5026ee78067008a70784140d9f5034de9fb73f1a37e96bc1cfdcfb82b
|
data/lib/aws-sdk-detective.rb
CHANGED
@@ -359,8 +359,8 @@ module Aws::Detective
|
|
359
359
|
end
|
360
360
|
|
361
361
|
# Creates a new behavior graph for the calling account, and sets that
|
362
|
-
# account as the
|
363
|
-
# that is enabling Detective.
|
362
|
+
# account as the administrator account. This operation is called by the
|
363
|
+
# account that is enabling Detective.
|
364
364
|
#
|
365
365
|
# Before you try to enable Detective, make sure that your account has
|
366
366
|
# been enrolled in Amazon GuardDuty for at least 48 hours. If you do not
|
@@ -376,10 +376,10 @@ module Aws::Detective
|
|
376
376
|
# `CreateGraph` triggers a process to create the corresponding data
|
377
377
|
# tables for the new behavior graph.
|
378
378
|
#
|
379
|
-
# An account can only be the
|
380
|
-
# within a Region. If the same account calls `CreateGraph` with
|
381
|
-
#
|
382
|
-
# not create a new behavior graph.
|
379
|
+
# An account can only be the administrator account for one behavior
|
380
|
+
# graph within a Region. If the same account calls `CreateGraph` with
|
381
|
+
# the same administrator account, it always returns the same behavior
|
382
|
+
# graph ARN. It does not create a new behavior graph.
|
383
383
|
#
|
384
384
|
# @return [Types::CreateGraphResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
385
385
|
#
|
@@ -400,10 +400,12 @@ module Aws::Detective
|
|
400
400
|
|
401
401
|
# Sends a request to invite the specified AWS accounts to be member
|
402
402
|
# accounts in the behavior graph. This operation can only be called by
|
403
|
-
# the
|
403
|
+
# the administrator account for a behavior graph.
|
404
404
|
#
|
405
|
-
# `CreateMembers` verifies the accounts and then
|
406
|
-
#
|
405
|
+
# `CreateMembers` verifies the accounts and then invites the verified
|
406
|
+
# accounts. The administrator can optionally specify to not send
|
407
|
+
# invitation emails to the member accounts. This would be used when the
|
408
|
+
# administrator manages their member accounts centrally.
|
407
409
|
#
|
408
410
|
# The request provides the behavior graph ARN and the list of accounts
|
409
411
|
# to invite.
|
@@ -412,8 +414,8 @@ module Aws::Detective
|
|
412
414
|
#
|
413
415
|
# * The accounts that `CreateMembers` was able to start the verification
|
414
416
|
# for. This list includes member accounts that are being verified,
|
415
|
-
# that have passed verification and are
|
416
|
-
#
|
417
|
+
# that have passed verification and are to be invited, and that have
|
418
|
+
# failed verification.
|
417
419
|
#
|
418
420
|
# * The accounts that `CreateMembers` was unable to process. This list
|
419
421
|
# includes accounts that were already invited to be member accounts in
|
@@ -427,6 +429,11 @@ module Aws::Detective
|
|
427
429
|
# Customized message text to include in the invitation email message to
|
428
430
|
# the invited member accounts.
|
429
431
|
#
|
432
|
+
# @option params [Boolean] :disable_email_notification
|
433
|
+
# if set to `true`, then the member accounts do not receive email
|
434
|
+
# notifications. By default, this is set to `false`, and the member
|
435
|
+
# accounts receive email notifications.
|
436
|
+
#
|
430
437
|
# @option params [required, Array<Types::Account>] :accounts
|
431
438
|
# The list of AWS accounts to invite to become member accounts in the
|
432
439
|
# behavior graph. For each invited account, the account list contains
|
@@ -442,6 +449,7 @@ module Aws::Detective
|
|
442
449
|
# resp = client.create_members({
|
443
450
|
# graph_arn: "GraphArn", # required
|
444
451
|
# message: "EmailMessage",
|
452
|
+
# disable_email_notification: false,
|
445
453
|
# accounts: [ # required
|
446
454
|
# {
|
447
455
|
# account_id: "AccountId", # required
|
@@ -457,6 +465,7 @@ module Aws::Detective
|
|
457
465
|
# resp.members[0].email_address #=> String
|
458
466
|
# resp.members[0].graph_arn #=> String
|
459
467
|
# resp.members[0].master_id #=> String
|
468
|
+
# resp.members[0].administrator_id #=> String
|
460
469
|
# resp.members[0].status #=> String, one of "INVITED", "VERIFICATION_IN_PROGRESS", "VERIFICATION_FAILED", "ENABLED", "ACCEPTED_BUT_DISABLED"
|
461
470
|
# resp.members[0].disabled_reason #=> String, one of "VOLUME_TOO_HIGH", "VOLUME_UNKNOWN"
|
462
471
|
# resp.members[0].invited_time #=> Time
|
@@ -480,8 +489,8 @@ module Aws::Detective
|
|
480
489
|
# This operation removes the graph from each member account's list of
|
481
490
|
# behavior graphs.
|
482
491
|
#
|
483
|
-
# `DeleteGraph` can only be called by the
|
484
|
-
# graph.
|
492
|
+
# `DeleteGraph` can only be called by the administrator account for a
|
493
|
+
# behavior graph.
|
485
494
|
#
|
486
495
|
# @option params [required, String] :graph_arn
|
487
496
|
# The ARN of the behavior graph to disable.
|
@@ -503,11 +512,12 @@ module Aws::Detective
|
|
503
512
|
req.send_request(options)
|
504
513
|
end
|
505
514
|
|
506
|
-
# Deletes one or more member accounts from the
|
507
|
-
# graph. This operation can only be called by a Detective
|
508
|
-
# account. That account cannot use `DeleteMembers` to
|
509
|
-
# account from the behavior graph. To disable a
|
510
|
-
#
|
515
|
+
# Deletes one or more member accounts from the administrator account's
|
516
|
+
# behavior graph. This operation can only be called by a Detective
|
517
|
+
# administrator account. That account cannot use `DeleteMembers` to
|
518
|
+
# delete their own account from the behavior graph. To disable a
|
519
|
+
# behavior graph, the administrator account uses the `DeleteGraph` API
|
520
|
+
# method.
|
511
521
|
#
|
512
522
|
# @option params [required, String] :graph_arn
|
513
523
|
# The ARN of the behavior graph to delete members from.
|
@@ -604,6 +614,7 @@ module Aws::Detective
|
|
604
614
|
# resp.member_details[0].email_address #=> String
|
605
615
|
# resp.member_details[0].graph_arn #=> String
|
606
616
|
# resp.member_details[0].master_id #=> String
|
617
|
+
# resp.member_details[0].administrator_id #=> String
|
607
618
|
# resp.member_details[0].status #=> String, one of "INVITED", "VERIFICATION_IN_PROGRESS", "VERIFICATION_FAILED", "ENABLED", "ACCEPTED_BUT_DISABLED"
|
608
619
|
# resp.member_details[0].disabled_reason #=> String, one of "VOLUME_TOO_HIGH", "VOLUME_UNKNOWN"
|
609
620
|
# resp.member_details[0].invited_time #=> Time
|
@@ -623,11 +634,13 @@ module Aws::Detective
|
|
623
634
|
req.send_request(options)
|
624
635
|
end
|
625
636
|
|
626
|
-
# Returns the list of behavior graphs that the calling account is
|
627
|
-
#
|
637
|
+
# Returns the list of behavior graphs that the calling account is an
|
638
|
+
# administrator account of. This operation can only be called by an
|
639
|
+
# administrator account.
|
628
640
|
#
|
629
|
-
# Because an account can currently only be the
|
630
|
-
# graph within a Region, the results always contain a single
|
641
|
+
# Because an account can currently only be the administrator of one
|
642
|
+
# behavior graph within a Region, the results always contain a single
|
643
|
+
# behavior graph.
|
631
644
|
#
|
632
645
|
# @option params [String] :next_token
|
633
646
|
# For requests to get the next page of results, the pagination token
|
@@ -712,6 +725,7 @@ module Aws::Detective
|
|
712
725
|
# resp.invitations[0].email_address #=> String
|
713
726
|
# resp.invitations[0].graph_arn #=> String
|
714
727
|
# resp.invitations[0].master_id #=> String
|
728
|
+
# resp.invitations[0].administrator_id #=> String
|
715
729
|
# resp.invitations[0].status #=> String, one of "INVITED", "VERIFICATION_IN_PROGRESS", "VERIFICATION_FAILED", "ENABLED", "ACCEPTED_BUT_DISABLED"
|
716
730
|
# resp.invitations[0].disabled_reason #=> String, one of "VOLUME_TOO_HIGH", "VOLUME_UNKNOWN"
|
717
731
|
# resp.invitations[0].invited_time #=> Time
|
@@ -768,6 +782,7 @@ module Aws::Detective
|
|
768
782
|
# resp.member_details[0].email_address #=> String
|
769
783
|
# resp.member_details[0].graph_arn #=> String
|
770
784
|
# resp.member_details[0].master_id #=> String
|
785
|
+
# resp.member_details[0].administrator_id #=> String
|
771
786
|
# resp.member_details[0].status #=> String, one of "INVITED", "VERIFICATION_IN_PROGRESS", "VERIFICATION_FAILED", "ENABLED", "ACCEPTED_BUT_DISABLED"
|
772
787
|
# resp.member_details[0].disabled_reason #=> String, one of "VOLUME_TOO_HIGH", "VOLUME_UNKNOWN"
|
773
788
|
# resp.member_details[0].invited_time #=> Time
|
@@ -863,7 +878,7 @@ module Aws::Detective
|
|
863
878
|
params: params,
|
864
879
|
config: config)
|
865
880
|
context[:gem_name] = 'aws-sdk-detective'
|
866
|
-
context[:gem_version] = '1.
|
881
|
+
context[:gem_version] = '1.14.0'
|
867
882
|
Seahorse::Client::Request.new(handlers, context)
|
868
883
|
end
|
869
884
|
|
@@ -18,6 +18,7 @@ module Aws::Detective
|
|
18
18
|
AccountId = Shapes::StringShape.new(name: 'AccountId')
|
19
19
|
AccountIdList = Shapes::ListShape.new(name: 'AccountIdList')
|
20
20
|
AccountList = Shapes::ListShape.new(name: 'AccountList')
|
21
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
21
22
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
22
23
|
CreateGraphResponse = Shapes::StructureShape.new(name: 'CreateGraphResponse')
|
23
24
|
CreateMembersRequest = Shapes::StructureShape.new(name: 'CreateMembersRequest')
|
@@ -77,6 +78,7 @@ module Aws::Detective
|
|
77
78
|
|
78
79
|
CreateMembersRequest.add_member(:graph_arn, Shapes::ShapeRef.new(shape: GraphArn, required: true, location_name: "GraphArn"))
|
79
80
|
CreateMembersRequest.add_member(:message, Shapes::ShapeRef.new(shape: EmailMessage, location_name: "Message"))
|
81
|
+
CreateMembersRequest.add_member(:disable_email_notification, Shapes::ShapeRef.new(shape: Boolean, location_name: "DisableEmailNotification"))
|
80
82
|
CreateMembersRequest.add_member(:accounts, Shapes::ShapeRef.new(shape: AccountList, required: true, location_name: "Accounts"))
|
81
83
|
CreateMembersRequest.struct_class = Types::CreateMembersRequest
|
82
84
|
|
@@ -143,7 +145,8 @@ module Aws::Detective
|
|
143
145
|
MemberDetail.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
144
146
|
MemberDetail.add_member(:email_address, Shapes::ShapeRef.new(shape: EmailAddress, location_name: "EmailAddress"))
|
145
147
|
MemberDetail.add_member(:graph_arn, Shapes::ShapeRef.new(shape: GraphArn, location_name: "GraphArn"))
|
146
|
-
MemberDetail.add_member(:master_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "MasterId"))
|
148
|
+
MemberDetail.add_member(:master_id, Shapes::ShapeRef.new(shape: AccountId, deprecated: true, location_name: "MasterId", metadata: {"deprecatedMessage"=>"This property is deprecated, use AdministratorId instead."}))
|
149
|
+
MemberDetail.add_member(:administrator_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AdministratorId"))
|
147
150
|
MemberDetail.add_member(:status, Shapes::ShapeRef.new(shape: MemberStatus, location_name: "Status"))
|
148
151
|
MemberDetail.add_member(:disabled_reason, Shapes::ShapeRef.new(shape: MemberDisabledReason, location_name: "DisabledReason"))
|
149
152
|
MemberDetail.add_member(:invited_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "InvitedTime"))
|
@@ -32,7 +32,8 @@ module Aws::Detective
|
|
32
32
|
include Aws::Structure
|
33
33
|
end
|
34
34
|
|
35
|
-
# An AWS account that is the
|
35
|
+
# An AWS account that is the administrator account of or a member of a
|
36
|
+
# behavior graph.
|
36
37
|
#
|
37
38
|
# @note When making an API call, you may pass Account
|
38
39
|
# data as a hash:
|
@@ -90,6 +91,7 @@ module Aws::Detective
|
|
90
91
|
# {
|
91
92
|
# graph_arn: "GraphArn", # required
|
92
93
|
# message: "EmailMessage",
|
94
|
+
# disable_email_notification: false,
|
93
95
|
# accounts: [ # required
|
94
96
|
# {
|
95
97
|
# account_id: "AccountId", # required
|
@@ -108,6 +110,12 @@ module Aws::Detective
|
|
108
110
|
# to the invited member accounts.
|
109
111
|
# @return [String]
|
110
112
|
#
|
113
|
+
# @!attribute [rw] disable_email_notification
|
114
|
+
# if set to `true`, then the member accounts do not receive email
|
115
|
+
# notifications. By default, this is set to `false`, and the member
|
116
|
+
# accounts receive email notifications.
|
117
|
+
# @return [Boolean]
|
118
|
+
#
|
111
119
|
# @!attribute [rw] accounts
|
112
120
|
# The list of AWS accounts to invite to become member accounts in the
|
113
121
|
# behavior graph. For each invited account, the account list contains
|
@@ -119,6 +127,7 @@ module Aws::Detective
|
|
119
127
|
class CreateMembersRequest < Struct.new(
|
120
128
|
:graph_arn,
|
121
129
|
:message,
|
130
|
+
:disable_email_notification,
|
122
131
|
:accounts)
|
123
132
|
SENSITIVE = []
|
124
133
|
include Aws::Structure
|
@@ -350,7 +359,8 @@ module Aws::Detective
|
|
350
359
|
end
|
351
360
|
|
352
361
|
# @!attribute [rw] graph_list
|
353
|
-
# A list of behavior graphs that the account is
|
362
|
+
# A list of behavior graphs that the account is an administrator
|
363
|
+
# account for.
|
354
364
|
# @return [Array<Types::Graph>]
|
355
365
|
#
|
356
366
|
# @!attribute [rw] next_token
|
@@ -494,8 +504,15 @@ module Aws::Detective
|
|
494
504
|
# @return [String]
|
495
505
|
#
|
496
506
|
# @!attribute [rw] master_id
|
497
|
-
#
|
498
|
-
#
|
507
|
+
# Deprecated. Instead of `MasterId`, use `AdministratorId`.
|
508
|
+
#
|
509
|
+
# The AWS account identifier of the administrator account for the
|
510
|
+
# behavior graph.
|
511
|
+
# @return [String]
|
512
|
+
#
|
513
|
+
# @!attribute [rw] administrator_id
|
514
|
+
# The AWS account identifier of the administrator account for the
|
515
|
+
# behavior graph.
|
499
516
|
# @return [String]
|
500
517
|
#
|
501
518
|
# @!attribute [rw] status
|
@@ -578,6 +595,7 @@ module Aws::Detective
|
|
578
595
|
:email_address,
|
579
596
|
:graph_arn,
|
580
597
|
:master_id,
|
598
|
+
:administrator_id,
|
581
599
|
:status,
|
582
600
|
:disabled_reason,
|
583
601
|
:invited_time,
|
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.14.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: 2021-02-
|
11
|
+
date: 2021-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|