aws-sdk-detective 1.15.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 696a5c8b86171f89a252943b73ccad374f1e71bde89433bbb82ab47795ef9b6e
4
- data.tar.gz: 839298b10450f7ad86d32ec0882b69ff277a269864cc2381e67a3c73931d4156
3
+ metadata.gz: c018250c68b941bafc0e55a7690058e972851dbc161afd2d8e20efa74b2798bf
4
+ data.tar.gz: 243fc285b59544fabb1f0dc9c54bfc73e5d720e36cc470f2803a7633edc90d69
5
5
  SHA512:
6
- metadata.gz: 672a1dd7a6ae50076c7dd01f6f9858d32cc9011bf983c3d3eefe466b8a6b705c3da66d70538da3c917ce4057b722ad428e8541406350b14422c9cd7ec825fac9
7
- data.tar.gz: a043fe3cb3c8538b65064abdc8f483fef3f1ea478b915f4f4b8c9f9f441b0aefe2ff69543df6d0a4503fede86c98820441590962bf19d12d91a249dcb12ee955
6
+ metadata.gz: 7c7f2e1cc13c8ced77549d21b31a75b2a01665b60ea52b15a15f1c4fbb2b388b68220461c5cb3fb1a4c5f714baad20b8cd81c5f06eb06ba46ba22e9bd2bcd059
7
+ data.tar.gz: 3531f34f385d3b6b60cbb6508a1b0098b3c9b20dc73375927b337fd9d5bd5cee8c7dc7c68fda2b0cd412c97fefa9280338add2ca1534b6b9b8dee4b38f1485e3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.19.0 (2021-07-28)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.18.0 (2021-05-14)
10
+ ------------------
11
+
12
+ * Feature - Updated descriptions of array parameters to add the restrictions on the array and value lengths.
13
+
14
+ 1.17.0 (2021-04-21)
15
+ ------------------
16
+
17
+ * Feature - Added parameters to track the data volume in bytes for a member account. Deprecated the existing parameters that tracked the volume as a percentage of the allowed volume for a behavior graph. Changes reflected in MemberDetails object.
18
+
19
+ 1.16.0 (2021-03-31)
20
+ ------------------
21
+
22
+ * Feature - Added the ability to assign tag values to Detective behavior graphs. Tag values can be used for attribute-based access control, and for cost allocation for billing.
23
+
4
24
  1.15.0 (2021-03-10)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.0
1
+ 1.19.0
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-detective/customizations'
48
48
  # @!group service
49
49
  module Aws::Detective
50
50
 
51
- GEM_VERSION = '1.15.0'
51
+ GEM_VERSION = '1.19.0'
52
52
 
53
53
  end
@@ -381,10 +381,24 @@ module Aws::Detective
381
381
  # the same administrator account, it always returns the same behavior
382
382
  # graph ARN. It does not create a new behavior graph.
383
383
  #
384
+ # @option params [Hash<String,String>] :tags
385
+ # The tags to assign to the new behavior graph. You can add up to 50
386
+ # tags. For each tag, you provide the tag key and the tag value. Each
387
+ # tag key can contain up to 128 characters. Each tag value can contain
388
+ # up to 256 characters.
389
+ #
384
390
  # @return [Types::CreateGraphResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
385
391
  #
386
392
  # * {Types::CreateGraphResponse#graph_arn #graph_arn} => String
387
393
  #
394
+ # @example Request syntax with placeholder values
395
+ #
396
+ # resp = client.create_graph({
397
+ # tags: {
398
+ # "TagKey" => "TagValue",
399
+ # },
400
+ # })
401
+ #
388
402
  # @example Response structure
389
403
  #
390
404
  # resp.graph_arn #=> String
@@ -436,8 +450,9 @@ module Aws::Detective
436
450
  #
437
451
  # @option params [required, Array<Types::Account>] :accounts
438
452
  # The list of AWS accounts to invite to become member accounts in the
439
- # behavior graph. For each invited account, the account list contains
440
- # the account identifier and the AWS account root user email address.
453
+ # behavior graph. You can invite up to 50 accounts at a time. For each
454
+ # invited account, the account list contains the account identifier and
455
+ # the AWS account root user email address.
441
456
  #
442
457
  # @return [Types::CreateMembersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
443
458
  #
@@ -470,6 +485,8 @@ module Aws::Detective
470
485
  # resp.members[0].disabled_reason #=> String, one of "VOLUME_TOO_HIGH", "VOLUME_UNKNOWN"
471
486
  # resp.members[0].invited_time #=> Time
472
487
  # resp.members[0].updated_time #=> Time
488
+ # resp.members[0].volume_usage_in_bytes #=> Integer
489
+ # resp.members[0].volume_usage_updated_time #=> Time
473
490
  # resp.members[0].percent_of_graph_utilization #=> Float
474
491
  # resp.members[0].percent_of_graph_utilization_updated_time #=> Time
475
492
  # resp.unprocessed_accounts #=> Array
@@ -524,7 +541,8 @@ module Aws::Detective
524
541
  #
525
542
  # @option params [required, Array<String>] :account_ids
526
543
  # The list of AWS account identifiers for the member accounts to delete
527
- # from the behavior graph.
544
+ # from the behavior graph. You can delete up to 50 member accounts at a
545
+ # time.
528
546
  #
529
547
  # @return [Types::DeleteMembersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
530
548
  #
@@ -590,7 +608,8 @@ module Aws::Detective
590
608
  #
591
609
  # @option params [required, Array<String>] :account_ids
592
610
  # The list of AWS account identifiers for the member account for which
593
- # to return member details.
611
+ # to return member details. You can request details for up to 50 member
612
+ # accounts at a time.
594
613
  #
595
614
  # You cannot use `GetMembers` to retrieve information about member
596
615
  # accounts that were removed from the behavior graph.
@@ -619,6 +638,8 @@ module Aws::Detective
619
638
  # resp.member_details[0].disabled_reason #=> String, one of "VOLUME_TOO_HIGH", "VOLUME_UNKNOWN"
620
639
  # resp.member_details[0].invited_time #=> Time
621
640
  # resp.member_details[0].updated_time #=> Time
641
+ # resp.member_details[0].volume_usage_in_bytes #=> Integer
642
+ # resp.member_details[0].volume_usage_updated_time #=> Time
622
643
  # resp.member_details[0].percent_of_graph_utilization #=> Float
623
644
  # resp.member_details[0].percent_of_graph_utilization_updated_time #=> Time
624
645
  # resp.unprocessed_accounts #=> Array
@@ -730,6 +751,8 @@ module Aws::Detective
730
751
  # resp.invitations[0].disabled_reason #=> String, one of "VOLUME_TOO_HIGH", "VOLUME_UNKNOWN"
731
752
  # resp.invitations[0].invited_time #=> Time
732
753
  # resp.invitations[0].updated_time #=> Time
754
+ # resp.invitations[0].volume_usage_in_bytes #=> Integer
755
+ # resp.invitations[0].volume_usage_updated_time #=> Time
733
756
  # resp.invitations[0].percent_of_graph_utilization #=> Float
734
757
  # resp.invitations[0].percent_of_graph_utilization_updated_time #=> Time
735
758
  # resp.next_token #=> String
@@ -787,6 +810,8 @@ module Aws::Detective
787
810
  # resp.member_details[0].disabled_reason #=> String, one of "VOLUME_TOO_HIGH", "VOLUME_UNKNOWN"
788
811
  # resp.member_details[0].invited_time #=> Time
789
812
  # resp.member_details[0].updated_time #=> Time
813
+ # resp.member_details[0].volume_usage_in_bytes #=> Integer
814
+ # resp.member_details[0].volume_usage_updated_time #=> Time
790
815
  # resp.member_details[0].percent_of_graph_utilization #=> Float
791
816
  # resp.member_details[0].percent_of_graph_utilization_updated_time #=> Time
792
817
  # resp.next_token #=> String
@@ -800,6 +825,35 @@ module Aws::Detective
800
825
  req.send_request(options)
801
826
  end
802
827
 
828
+ # Returns the tag values that are assigned to a behavior graph.
829
+ #
830
+ # @option params [required, String] :resource_arn
831
+ # The ARN of the behavior graph for which to retrieve the tag values.
832
+ #
833
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
834
+ #
835
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
836
+ #
837
+ # @example Request syntax with placeholder values
838
+ #
839
+ # resp = client.list_tags_for_resource({
840
+ # resource_arn: "GraphArn", # required
841
+ # })
842
+ #
843
+ # @example Response structure
844
+ #
845
+ # resp.tags #=> Hash
846
+ # resp.tags["TagKey"] #=> String
847
+ #
848
+ # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListTagsForResource AWS API Documentation
849
+ #
850
+ # @overload list_tags_for_resource(params = {})
851
+ # @param [Hash] params ({})
852
+ def list_tags_for_resource(params = {}, options = {})
853
+ req = build_request(:list_tags_for_resource, params)
854
+ req.send_request(options)
855
+ end
856
+
803
857
  # Rejects an invitation to contribute the account data to a behavior
804
858
  # graph. This operation must be called by a member account that has the
805
859
  # `INVITED` status.
@@ -865,6 +919,64 @@ module Aws::Detective
865
919
  req.send_request(options)
866
920
  end
867
921
 
922
+ # Applies tag values to a behavior graph.
923
+ #
924
+ # @option params [required, String] :resource_arn
925
+ # The ARN of the behavior graph to assign the tags to.
926
+ #
927
+ # @option params [required, Hash<String,String>] :tags
928
+ # The tags to assign to the behavior graph. You can add up to 50 tags.
929
+ # For each tag, you provide the tag key and the tag value. Each tag key
930
+ # can contain up to 128 characters. Each tag value can contain up to 256
931
+ # characters.
932
+ #
933
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
934
+ #
935
+ # @example Request syntax with placeholder values
936
+ #
937
+ # resp = client.tag_resource({
938
+ # resource_arn: "GraphArn", # required
939
+ # tags: { # required
940
+ # "TagKey" => "TagValue",
941
+ # },
942
+ # })
943
+ #
944
+ # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/TagResource AWS API Documentation
945
+ #
946
+ # @overload tag_resource(params = {})
947
+ # @param [Hash] params ({})
948
+ def tag_resource(params = {}, options = {})
949
+ req = build_request(:tag_resource, params)
950
+ req.send_request(options)
951
+ end
952
+
953
+ # Removes tags from a behavior graph.
954
+ #
955
+ # @option params [required, String] :resource_arn
956
+ # The ARN of the behavior graph to remove the tags from.
957
+ #
958
+ # @option params [required, Array<String>] :tag_keys
959
+ # The tag keys of the tags to remove from the behavior graph. You can
960
+ # remove up to 50 tags at a time.
961
+ #
962
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
963
+ #
964
+ # @example Request syntax with placeholder values
965
+ #
966
+ # resp = client.untag_resource({
967
+ # resource_arn: "GraphArn", # required
968
+ # tag_keys: ["TagKey"], # required
969
+ # })
970
+ #
971
+ # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/UntagResource AWS API Documentation
972
+ #
973
+ # @overload untag_resource(params = {})
974
+ # @param [Hash] params ({})
975
+ def untag_resource(params = {}, options = {})
976
+ req = build_request(:untag_resource, params)
977
+ req.send_request(options)
978
+ end
979
+
868
980
  # @!endgroup
869
981
 
870
982
  # @param params ({})
@@ -878,7 +990,7 @@ module Aws::Detective
878
990
  params: params,
879
991
  config: config)
880
992
  context[:gem_name] = 'aws-sdk-detective'
881
- context[:gem_version] = '1.15.0'
993
+ context[:gem_version] = '1.19.0'
882
994
  Seahorse::Client::Request.new(handlers, context)
883
995
  end
884
996
 
@@ -19,7 +19,9 @@ module Aws::Detective
19
19
  AccountIdList = Shapes::ListShape.new(name: 'AccountIdList')
20
20
  AccountList = Shapes::ListShape.new(name: 'AccountList')
21
21
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
22
+ ByteValue = Shapes::IntegerShape.new(name: 'ByteValue')
22
23
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
24
+ CreateGraphRequest = Shapes::StructureShape.new(name: 'CreateGraphRequest')
23
25
  CreateGraphResponse = Shapes::StructureShape.new(name: 'CreateGraphResponse')
24
26
  CreateMembersRequest = Shapes::StructureShape.new(name: 'CreateMembersRequest')
25
27
  CreateMembersResponse = Shapes::StructureShape.new(name: 'CreateMembersResponse')
@@ -42,6 +44,8 @@ module Aws::Detective
42
44
  ListInvitationsResponse = Shapes::StructureShape.new(name: 'ListInvitationsResponse')
43
45
  ListMembersRequest = Shapes::StructureShape.new(name: 'ListMembersRequest')
44
46
  ListMembersResponse = Shapes::StructureShape.new(name: 'ListMembersResponse')
47
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
48
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
45
49
  MemberDetail = Shapes::StructureShape.new(name: 'MemberDetail')
46
50
  MemberDetailList = Shapes::ListShape.new(name: 'MemberDetailList')
47
51
  MemberDisabledReason = Shapes::StringShape.new(name: 'MemberDisabledReason')
@@ -53,10 +57,18 @@ module Aws::Detective
53
57
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
54
58
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
55
59
  StartMonitoringMemberRequest = Shapes::StructureShape.new(name: 'StartMonitoringMemberRequest')
60
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
61
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
62
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
63
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
64
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
65
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
56
66
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp', timestampFormat: "iso8601")
57
67
  UnprocessedAccount = Shapes::StructureShape.new(name: 'UnprocessedAccount')
58
68
  UnprocessedAccountList = Shapes::ListShape.new(name: 'UnprocessedAccountList')
59
69
  UnprocessedReason = Shapes::StringShape.new(name: 'UnprocessedReason')
70
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
71
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
60
72
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
61
73
 
62
74
  AcceptInvitationRequest.add_member(:graph_arn, Shapes::ShapeRef.new(shape: GraphArn, required: true, location_name: "GraphArn"))
@@ -73,6 +85,9 @@ module Aws::Detective
73
85
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
74
86
  ConflictException.struct_class = Types::ConflictException
75
87
 
88
+ CreateGraphRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
89
+ CreateGraphRequest.struct_class = Types::CreateGraphRequest
90
+
76
91
  CreateGraphResponse.add_member(:graph_arn, Shapes::ShapeRef.new(shape: GraphArn, location_name: "GraphArn"))
77
92
  CreateGraphResponse.struct_class = Types::CreateGraphResponse
78
93
 
@@ -142,17 +157,25 @@ module Aws::Detective
142
157
  ListMembersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
143
158
  ListMembersResponse.struct_class = Types::ListMembersResponse
144
159
 
160
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: GraphArn, required: true, location: "uri", location_name: "ResourceArn"))
161
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
162
+
163
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
164
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
165
+
145
166
  MemberDetail.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
146
167
  MemberDetail.add_member(:email_address, Shapes::ShapeRef.new(shape: EmailAddress, location_name: "EmailAddress"))
147
168
  MemberDetail.add_member(:graph_arn, Shapes::ShapeRef.new(shape: GraphArn, location_name: "GraphArn"))
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."}))
169
+ 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
170
  MemberDetail.add_member(:administrator_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AdministratorId"))
150
171
  MemberDetail.add_member(:status, Shapes::ShapeRef.new(shape: MemberStatus, location_name: "Status"))
151
172
  MemberDetail.add_member(:disabled_reason, Shapes::ShapeRef.new(shape: MemberDisabledReason, location_name: "DisabledReason"))
152
173
  MemberDetail.add_member(:invited_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "InvitedTime"))
153
174
  MemberDetail.add_member(:updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedTime"))
154
- MemberDetail.add_member(:percent_of_graph_utilization, Shapes::ShapeRef.new(shape: Percentage, location_name: "PercentOfGraphUtilization"))
155
- MemberDetail.add_member(:percent_of_graph_utilization_updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "PercentOfGraphUtilizationUpdatedTime"))
175
+ MemberDetail.add_member(:volume_usage_in_bytes, Shapes::ShapeRef.new(shape: ByteValue, location_name: "VolumeUsageInBytes"))
176
+ MemberDetail.add_member(:volume_usage_updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "VolumeUsageUpdatedTime"))
177
+ MemberDetail.add_member(:percent_of_graph_utilization, Shapes::ShapeRef.new(shape: Percentage, deprecated: true, location_name: "PercentOfGraphUtilization", metadata: {"deprecatedMessage"=>"This property is deprecated. Use VolumeUsageInBytes instead."}))
178
+ MemberDetail.add_member(:percent_of_graph_utilization_updated_time, Shapes::ShapeRef.new(shape: Timestamp, deprecated: true, location_name: "PercentOfGraphUtilizationUpdatedTime", metadata: {"deprecatedMessage"=>"This property is deprecated. Use VolumeUsageUpdatedTime instead."}))
156
179
  MemberDetail.struct_class = Types::MemberDetail
157
180
 
158
181
  MemberDetailList.member = Shapes::ShapeRef.new(shape: MemberDetail)
@@ -170,12 +193,29 @@ module Aws::Detective
170
193
  StartMonitoringMemberRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
171
194
  StartMonitoringMemberRequest.struct_class = Types::StartMonitoringMemberRequest
172
195
 
196
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
197
+
198
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
199
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
200
+
201
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: GraphArn, required: true, location: "uri", location_name: "ResourceArn"))
202
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
203
+ TagResourceRequest.struct_class = Types::TagResourceRequest
204
+
205
+ TagResourceResponse.struct_class = Types::TagResourceResponse
206
+
173
207
  UnprocessedAccount.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
174
208
  UnprocessedAccount.add_member(:reason, Shapes::ShapeRef.new(shape: UnprocessedReason, location_name: "Reason"))
175
209
  UnprocessedAccount.struct_class = Types::UnprocessedAccount
176
210
 
177
211
  UnprocessedAccountList.member = Shapes::ShapeRef.new(shape: UnprocessedAccount)
178
212
 
213
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: GraphArn, required: true, location: "uri", location_name: "ResourceArn"))
214
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
215
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
216
+
217
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
218
+
179
219
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
180
220
  ValidationException.struct_class = Types::ValidationException
181
221
 
@@ -213,7 +253,7 @@ module Aws::Detective
213
253
  o.name = "CreateGraph"
214
254
  o.http_method = "POST"
215
255
  o.http_request_uri = "/graph"
216
- o.input = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
256
+ o.input = Shapes::ShapeRef.new(shape: CreateGraphRequest)
217
257
  o.output = Shapes::ShapeRef.new(shape: CreateGraphResponse)
218
258
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
219
259
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
@@ -327,6 +367,17 @@ module Aws::Detective
327
367
  )
328
368
  end)
329
369
 
370
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
371
+ o.name = "ListTagsForResource"
372
+ o.http_method = "GET"
373
+ o.http_request_uri = "/tags/{ResourceArn}"
374
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
375
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
376
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
377
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
378
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
379
+ end)
380
+
330
381
  api.add_operation(:reject_invitation, Seahorse::Model::Operation.new.tap do |o|
331
382
  o.name = "RejectInvitation"
332
383
  o.http_method = "POST"
@@ -351,6 +402,28 @@ module Aws::Detective
351
402
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
352
403
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
353
404
  end)
405
+
406
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
407
+ o.name = "TagResource"
408
+ o.http_method = "POST"
409
+ o.http_request_uri = "/tags/{ResourceArn}"
410
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
411
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
412
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
413
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
414
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
415
+ end)
416
+
417
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
418
+ o.name = "UntagResource"
419
+ o.http_method = "DELETE"
420
+ o.http_request_uri = "/tags/{ResourceArn}"
421
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
422
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
423
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
424
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
425
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
426
+ end)
354
427
  end
355
428
 
356
429
  end
@@ -73,6 +73,30 @@ module Aws::Detective
73
73
  include Aws::Structure
74
74
  end
75
75
 
76
+ # @note When making an API call, you may pass CreateGraphRequest
77
+ # data as a hash:
78
+ #
79
+ # {
80
+ # tags: {
81
+ # "TagKey" => "TagValue",
82
+ # },
83
+ # }
84
+ #
85
+ # @!attribute [rw] tags
86
+ # The tags to assign to the new behavior graph. You can add up to 50
87
+ # tags. For each tag, you provide the tag key and the tag value. Each
88
+ # tag key can contain up to 128 characters. Each tag value can contain
89
+ # up to 256 characters.
90
+ # @return [Hash<String,String>]
91
+ #
92
+ # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/CreateGraphRequest AWS API Documentation
93
+ #
94
+ class CreateGraphRequest < Struct.new(
95
+ :tags)
96
+ SENSITIVE = []
97
+ include Aws::Structure
98
+ end
99
+
76
100
  # @!attribute [rw] graph_arn
77
101
  # The ARN of the new behavior graph.
78
102
  # @return [String]
@@ -118,8 +142,9 @@ module Aws::Detective
118
142
  #
119
143
  # @!attribute [rw] accounts
120
144
  # The list of AWS accounts to invite to become member accounts in the
121
- # behavior graph. For each invited account, the account list contains
122
- # the account identifier and the AWS account root user email address.
145
+ # behavior graph. You can invite up to 50 accounts at a time. For each
146
+ # invited account, the account list contains the account identifier
147
+ # and the AWS account root user email address.
123
148
  # @return [Array<Types::Account>]
124
149
  #
125
150
  # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/CreateMembersRequest AWS API Documentation
@@ -189,7 +214,8 @@ module Aws::Detective
189
214
  #
190
215
  # @!attribute [rw] account_ids
191
216
  # The list of AWS account identifiers for the member accounts to
192
- # delete from the behavior graph.
217
+ # delete from the behavior graph. You can delete up to 50 member
218
+ # accounts at a time.
193
219
  # @return [Array<String>]
194
220
  #
195
221
  # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/DeleteMembersRequest AWS API Documentation
@@ -258,7 +284,8 @@ module Aws::Detective
258
284
  #
259
285
  # @!attribute [rw] account_ids
260
286
  # The list of AWS account identifiers for the member account for which
261
- # to return member details.
287
+ # to return member details. You can request details for up to 50
288
+ # member accounts at a time.
262
289
  #
263
290
  # You cannot use `GetMembers` to retrieve information about member
264
291
  # accounts that were removed from the behavior graph.
@@ -487,6 +514,38 @@ module Aws::Detective
487
514
  include Aws::Structure
488
515
  end
489
516
 
517
+ # @note When making an API call, you may pass ListTagsForResourceRequest
518
+ # data as a hash:
519
+ #
520
+ # {
521
+ # resource_arn: "GraphArn", # required
522
+ # }
523
+ #
524
+ # @!attribute [rw] resource_arn
525
+ # The ARN of the behavior graph for which to retrieve the tag values.
526
+ # @return [String]
527
+ #
528
+ # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListTagsForResourceRequest AWS API Documentation
529
+ #
530
+ class ListTagsForResourceRequest < Struct.new(
531
+ :resource_arn)
532
+ SENSITIVE = []
533
+ include Aws::Structure
534
+ end
535
+
536
+ # @!attribute [rw] tags
537
+ # The tag values that are assigned to the behavior graph. The request
538
+ # returns up to 50 tag values.
539
+ # @return [Hash<String,String>]
540
+ #
541
+ # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListTagsForResourceResponse AWS API Documentation
542
+ #
543
+ class ListTagsForResourceResponse < Struct.new(
544
+ :tags)
545
+ SENSITIVE = []
546
+ include Aws::Structure
547
+ end
548
+
490
549
  # Details about a member account that was invited to contribute to a
491
550
  # behavior graph.
492
551
  #
@@ -504,8 +563,6 @@ module Aws::Detective
504
563
  # @return [String]
505
564
  #
506
565
  # @!attribute [rw] master_id
507
- # Deprecated. Instead of `MasterId`, use `AdministratorId`.
508
- #
509
566
  # The AWS account identifier of the administrator account for the
510
567
  # behavior graph.
511
568
  # @return [String]
@@ -568,6 +625,15 @@ module Aws::Detective
568
625
  # value is in milliseconds since the epoch.
569
626
  # @return [Time]
570
627
  #
628
+ # @!attribute [rw] volume_usage_in_bytes
629
+ # The data volume in bytes per day for the member account.
630
+ # @return [Integer]
631
+ #
632
+ # @!attribute [rw] volume_usage_updated_time
633
+ # The data and time when the member account data volume was last
634
+ # updated.
635
+ # @return [Time]
636
+ #
571
637
  # @!attribute [rw] percent_of_graph_utilization
572
638
  # The member account data volume as a percentage of the maximum
573
639
  # allowed data volume. 0 indicates 0 percent, and 100 indicates 100
@@ -600,6 +666,8 @@ module Aws::Detective
600
666
  :disabled_reason,
601
667
  :invited_time,
602
668
  :updated_time,
669
+ :volume_usage_in_bytes,
670
+ :volume_usage_updated_time,
603
671
  :percent_of_graph_utilization,
604
672
  :percent_of_graph_utilization_updated_time)
605
673
  SENSITIVE = []
@@ -693,6 +761,40 @@ module Aws::Detective
693
761
  include Aws::Structure
694
762
  end
695
763
 
764
+ # @note When making an API call, you may pass TagResourceRequest
765
+ # data as a hash:
766
+ #
767
+ # {
768
+ # resource_arn: "GraphArn", # required
769
+ # tags: { # required
770
+ # "TagKey" => "TagValue",
771
+ # },
772
+ # }
773
+ #
774
+ # @!attribute [rw] resource_arn
775
+ # The ARN of the behavior graph to assign the tags to.
776
+ # @return [String]
777
+ #
778
+ # @!attribute [rw] tags
779
+ # The tags to assign to the behavior graph. You can add up to 50 tags.
780
+ # For each tag, you provide the tag key and the tag value. Each tag
781
+ # key can contain up to 128 characters. Each tag value can contain up
782
+ # to 256 characters.
783
+ # @return [Hash<String,String>]
784
+ #
785
+ # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/TagResourceRequest AWS API Documentation
786
+ #
787
+ class TagResourceRequest < Struct.new(
788
+ :resource_arn,
789
+ :tags)
790
+ SENSITIVE = []
791
+ include Aws::Structure
792
+ end
793
+
794
+ # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/TagResourceResponse AWS API Documentation
795
+ #
796
+ class TagResourceResponse < Aws::EmptyStructure; end
797
+
696
798
  # A member account that was included in a request but for which the
697
799
  # request could not be processed.
698
800
  #
@@ -714,6 +816,36 @@ module Aws::Detective
714
816
  include Aws::Structure
715
817
  end
716
818
 
819
+ # @note When making an API call, you may pass UntagResourceRequest
820
+ # data as a hash:
821
+ #
822
+ # {
823
+ # resource_arn: "GraphArn", # required
824
+ # tag_keys: ["TagKey"], # required
825
+ # }
826
+ #
827
+ # @!attribute [rw] resource_arn
828
+ # The ARN of the behavior graph to remove the tags from.
829
+ # @return [String]
830
+ #
831
+ # @!attribute [rw] tag_keys
832
+ # The tag keys of the tags to remove from the behavior graph. You can
833
+ # remove up to 50 tags at a time.
834
+ # @return [Array<String>]
835
+ #
836
+ # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/UntagResourceRequest AWS API Documentation
837
+ #
838
+ class UntagResourceRequest < Struct.new(
839
+ :resource_arn,
840
+ :tag_keys)
841
+ SENSITIVE = []
842
+ include Aws::Structure
843
+ end
844
+
845
+ # @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/UntagResourceResponse AWS API Documentation
846
+ #
847
+ class UntagResourceResponse < Aws::EmptyStructure; end
848
+
717
849
  # The request parameters are invalid.
718
850
  #
719
851
  # @!attribute [rw] message
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.15.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: 2021-03-10 00:00:00.000000000 Z
11
+ date: 2021-07-28 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.112.0
22
+ version: 3.118.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.112.0
32
+ version: 3.118.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -66,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
66
66
  licenses:
67
67
  - Apache-2.0
68
68
  metadata:
69
- source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-detective
70
- changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-detective/CHANGELOG.md
69
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-detective
70
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-detective/CHANGELOG.md
71
71
  post_install_message:
72
72
  rdoc_options: []
73
73
  require_paths:
@@ -83,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubyforge_project:
87
- rubygems_version: 2.7.6.2
86
+ rubygems_version: 3.1.6
88
87
  signing_key:
89
88
  specification_version: 4
90
89
  summary: AWS SDK for Ruby - Amazon Detective