aws-sdk-detective 1.23.0 → 1.27.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.
@@ -18,6 +18,8 @@ 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
+ Administrator = Shapes::StructureShape.new(name: 'Administrator')
22
+ AdministratorList = Shapes::ListShape.new(name: 'AdministratorList')
21
23
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
22
24
  ByteValue = Shapes::IntegerShape.new(name: 'ByteValue')
23
25
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
@@ -28,9 +30,12 @@ module Aws::Detective
28
30
  DeleteGraphRequest = Shapes::StructureShape.new(name: 'DeleteGraphRequest')
29
31
  DeleteMembersRequest = Shapes::StructureShape.new(name: 'DeleteMembersRequest')
30
32
  DeleteMembersResponse = Shapes::StructureShape.new(name: 'DeleteMembersResponse')
33
+ DescribeOrganizationConfigurationRequest = Shapes::StructureShape.new(name: 'DescribeOrganizationConfigurationRequest')
34
+ DescribeOrganizationConfigurationResponse = Shapes::StructureShape.new(name: 'DescribeOrganizationConfigurationResponse')
31
35
  DisassociateMembershipRequest = Shapes::StructureShape.new(name: 'DisassociateMembershipRequest')
32
36
  EmailAddress = Shapes::StringShape.new(name: 'EmailAddress')
33
37
  EmailMessage = Shapes::StringShape.new(name: 'EmailMessage')
38
+ EnableOrganizationAdminAccountRequest = Shapes::StructureShape.new(name: 'EnableOrganizationAdminAccountRequest')
34
39
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
35
40
  GetMembersRequest = Shapes::StructureShape.new(name: 'GetMembersRequest')
36
41
  GetMembersResponse = Shapes::StructureShape.new(name: 'GetMembersResponse')
@@ -38,12 +43,15 @@ module Aws::Detective
38
43
  GraphArn = Shapes::StringShape.new(name: 'GraphArn')
39
44
  GraphList = Shapes::ListShape.new(name: 'GraphList')
40
45
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
46
+ InvitationType = Shapes::StringShape.new(name: 'InvitationType')
41
47
  ListGraphsRequest = Shapes::StructureShape.new(name: 'ListGraphsRequest')
42
48
  ListGraphsResponse = Shapes::StructureShape.new(name: 'ListGraphsResponse')
43
49
  ListInvitationsRequest = Shapes::StructureShape.new(name: 'ListInvitationsRequest')
44
50
  ListInvitationsResponse = Shapes::StructureShape.new(name: 'ListInvitationsResponse')
45
51
  ListMembersRequest = Shapes::StructureShape.new(name: 'ListMembersRequest')
46
52
  ListMembersResponse = Shapes::StructureShape.new(name: 'ListMembersResponse')
53
+ ListOrganizationAdminAccountsRequest = Shapes::StructureShape.new(name: 'ListOrganizationAdminAccountsRequest')
54
+ ListOrganizationAdminAccountsResponse = Shapes::StructureShape.new(name: 'ListOrganizationAdminAccountsResponse')
47
55
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
48
56
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
49
57
  MemberDetail = Shapes::StructureShape.new(name: 'MemberDetail')
@@ -64,11 +72,13 @@ module Aws::Detective
64
72
  TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
65
73
  TagValue = Shapes::StringShape.new(name: 'TagValue')
66
74
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp', timestampFormat: "iso8601")
75
+ TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
67
76
  UnprocessedAccount = Shapes::StructureShape.new(name: 'UnprocessedAccount')
68
77
  UnprocessedAccountList = Shapes::ListShape.new(name: 'UnprocessedAccountList')
69
78
  UnprocessedReason = Shapes::StringShape.new(name: 'UnprocessedReason')
70
79
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
71
80
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
81
+ UpdateOrganizationConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateOrganizationConfigurationRequest')
72
82
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
73
83
 
74
84
  AcceptInvitationRequest.add_member(:graph_arn, Shapes::ShapeRef.new(shape: GraphArn, required: true, location_name: "GraphArn"))
@@ -82,6 +92,13 @@ module Aws::Detective
82
92
 
83
93
  AccountList.member = Shapes::ShapeRef.new(shape: Account)
84
94
 
95
+ Administrator.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
96
+ Administrator.add_member(:graph_arn, Shapes::ShapeRef.new(shape: GraphArn, location_name: "GraphArn"))
97
+ Administrator.add_member(:delegation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DelegationTime"))
98
+ Administrator.struct_class = Types::Administrator
99
+
100
+ AdministratorList.member = Shapes::ShapeRef.new(shape: Administrator)
101
+
85
102
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
86
103
  ConflictException.struct_class = Types::ConflictException
87
104
 
@@ -112,9 +129,18 @@ module Aws::Detective
112
129
  DeleteMembersResponse.add_member(:unprocessed_accounts, Shapes::ShapeRef.new(shape: UnprocessedAccountList, location_name: "UnprocessedAccounts"))
113
130
  DeleteMembersResponse.struct_class = Types::DeleteMembersResponse
114
131
 
132
+ DescribeOrganizationConfigurationRequest.add_member(:graph_arn, Shapes::ShapeRef.new(shape: GraphArn, required: true, location_name: "GraphArn"))
133
+ DescribeOrganizationConfigurationRequest.struct_class = Types::DescribeOrganizationConfigurationRequest
134
+
135
+ DescribeOrganizationConfigurationResponse.add_member(:auto_enable, Shapes::ShapeRef.new(shape: Boolean, location_name: "AutoEnable"))
136
+ DescribeOrganizationConfigurationResponse.struct_class = Types::DescribeOrganizationConfigurationResponse
137
+
115
138
  DisassociateMembershipRequest.add_member(:graph_arn, Shapes::ShapeRef.new(shape: GraphArn, required: true, location_name: "GraphArn"))
116
139
  DisassociateMembershipRequest.struct_class = Types::DisassociateMembershipRequest
117
140
 
141
+ EnableOrganizationAdminAccountRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
142
+ EnableOrganizationAdminAccountRequest.struct_class = Types::EnableOrganizationAdminAccountRequest
143
+
118
144
  GetMembersRequest.add_member(:graph_arn, Shapes::ShapeRef.new(shape: GraphArn, required: true, location_name: "GraphArn"))
119
145
  GetMembersRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIdList, required: true, location_name: "AccountIds"))
120
146
  GetMembersRequest.struct_class = Types::GetMembersRequest
@@ -157,6 +183,14 @@ module Aws::Detective
157
183
  ListMembersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
158
184
  ListMembersResponse.struct_class = Types::ListMembersResponse
159
185
 
186
+ ListOrganizationAdminAccountsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
187
+ ListOrganizationAdminAccountsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MemberResultsLimit, location_name: "MaxResults"))
188
+ ListOrganizationAdminAccountsRequest.struct_class = Types::ListOrganizationAdminAccountsRequest
189
+
190
+ ListOrganizationAdminAccountsResponse.add_member(:administrators, Shapes::ShapeRef.new(shape: AdministratorList, location_name: "Administrators"))
191
+ ListOrganizationAdminAccountsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
192
+ ListOrganizationAdminAccountsResponse.struct_class = Types::ListOrganizationAdminAccountsResponse
193
+
160
194
  ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: GraphArn, required: true, location: "uri", location_name: "ResourceArn"))
161
195
  ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
162
196
 
@@ -176,6 +210,7 @@ module Aws::Detective
176
210
  MemberDetail.add_member(:volume_usage_updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "VolumeUsageUpdatedTime"))
177
211
  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
212
  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."}))
213
+ MemberDetail.add_member(:invitation_type, Shapes::ShapeRef.new(shape: InvitationType, location_name: "InvitationType"))
179
214
  MemberDetail.struct_class = Types::MemberDetail
180
215
 
181
216
  MemberDetailList.member = Shapes::ShapeRef.new(shape: MemberDetail)
@@ -204,6 +239,9 @@ module Aws::Detective
204
239
 
205
240
  TagResourceResponse.struct_class = Types::TagResourceResponse
206
241
 
242
+ TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
243
+ TooManyRequestsException.struct_class = Types::TooManyRequestsException
244
+
207
245
  UnprocessedAccount.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
208
246
  UnprocessedAccount.add_member(:reason, Shapes::ShapeRef.new(shape: UnprocessedReason, location_name: "Reason"))
209
247
  UnprocessedAccount.struct_class = Types::UnprocessedAccount
@@ -216,6 +254,10 @@ module Aws::Detective
216
254
 
217
255
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
218
256
 
257
+ UpdateOrganizationConfigurationRequest.add_member(:graph_arn, Shapes::ShapeRef.new(shape: GraphArn, required: true, location_name: "GraphArn"))
258
+ UpdateOrganizationConfigurationRequest.add_member(:auto_enable, Shapes::ShapeRef.new(shape: Boolean, location_name: "AutoEnable"))
259
+ UpdateOrganizationConfigurationRequest.struct_class = Types::UpdateOrganizationConfigurationRequest
260
+
219
261
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
220
262
  ValidationException.struct_class = Types::ValidationException
221
263
 
@@ -295,6 +337,28 @@ module Aws::Detective
295
337
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
296
338
  end)
297
339
 
340
+ api.add_operation(:describe_organization_configuration, Seahorse::Model::Operation.new.tap do |o|
341
+ o.name = "DescribeOrganizationConfiguration"
342
+ o.http_method = "POST"
343
+ o.http_request_uri = "/orgs/describeOrganizationConfiguration"
344
+ o.input = Shapes::ShapeRef.new(shape: DescribeOrganizationConfigurationRequest)
345
+ o.output = Shapes::ShapeRef.new(shape: DescribeOrganizationConfigurationResponse)
346
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
347
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
348
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
349
+ end)
350
+
351
+ api.add_operation(:disable_organization_admin_account, Seahorse::Model::Operation.new.tap do |o|
352
+ o.name = "DisableOrganizationAdminAccount"
353
+ o.http_method = "POST"
354
+ o.http_request_uri = "/orgs/disableAdminAccount"
355
+ o.input = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
356
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
357
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
358
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
359
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
360
+ end)
361
+
298
362
  api.add_operation(:disassociate_membership, Seahorse::Model::Operation.new.tap do |o|
299
363
  o.name = "DisassociateMembership"
300
364
  o.http_method = "POST"
@@ -307,6 +371,17 @@ module Aws::Detective
307
371
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
308
372
  end)
309
373
 
374
+ api.add_operation(:enable_organization_admin_account, Seahorse::Model::Operation.new.tap do |o|
375
+ o.name = "EnableOrganizationAdminAccount"
376
+ o.http_method = "POST"
377
+ o.http_request_uri = "/orgs/enableAdminAccount"
378
+ o.input = Shapes::ShapeRef.new(shape: EnableOrganizationAdminAccountRequest)
379
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
380
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
381
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
382
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
383
+ end)
384
+
310
385
  api.add_operation(:get_members, Seahorse::Model::Operation.new.tap do |o|
311
386
  o.name = "GetMembers"
312
387
  o.http_method = "POST"
@@ -367,6 +442,23 @@ module Aws::Detective
367
442
  )
368
443
  end)
369
444
 
445
+ api.add_operation(:list_organization_admin_accounts, Seahorse::Model::Operation.new.tap do |o|
446
+ o.name = "ListOrganizationAdminAccounts"
447
+ o.http_method = "POST"
448
+ o.http_request_uri = "/orgs/adminAccountslist"
449
+ o.input = Shapes::ShapeRef.new(shape: ListOrganizationAdminAccountsRequest)
450
+ o.output = Shapes::ShapeRef.new(shape: ListOrganizationAdminAccountsResponse)
451
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
452
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
453
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
454
+ o[:pager] = Aws::Pager.new(
455
+ limit_key: "max_results",
456
+ tokens: {
457
+ "next_token" => "next_token"
458
+ }
459
+ )
460
+ end)
461
+
370
462
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
371
463
  o.name = "ListTagsForResource"
372
464
  o.http_method = "GET"
@@ -424,6 +516,17 @@ module Aws::Detective
424
516
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
425
517
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
426
518
  end)
519
+
520
+ api.add_operation(:update_organization_configuration, Seahorse::Model::Operation.new.tap do |o|
521
+ o.name = "UpdateOrganizationConfiguration"
522
+ o.http_method = "POST"
523
+ o.http_request_uri = "/orgs/updateOrganizationConfiguration"
524
+ o.input = Shapes::ShapeRef.new(shape: UpdateOrganizationConfigurationRequest)
525
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
526
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
527
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
528
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
529
+ end)
427
530
  end
428
531
 
429
532
  end
@@ -31,6 +31,7 @@ module Aws::Detective
31
31
  # * {InternalServerException}
32
32
  # * {ResourceNotFoundException}
33
33
  # * {ServiceQuotaExceededException}
34
+ # * {TooManyRequestsException}
34
35
  # * {ValidationException}
35
36
  #
36
37
  # Additionally, error classes are dynamically generated for service errors based on the error code
@@ -99,6 +100,21 @@ module Aws::Detective
99
100
  end
100
101
  end
101
102
 
103
+ class TooManyRequestsException < ServiceError
104
+
105
+ # @param [Seahorse::Client::RequestContext] context
106
+ # @param [String] message
107
+ # @param [Aws::Detective::Types::TooManyRequestsException] data
108
+ def initialize(context, message, data = Aws::EmptyStructure.new)
109
+ super(context, message, data)
110
+ end
111
+
112
+ # @return [String]
113
+ def message
114
+ @message || @data[:message]
115
+ end
116
+ end
117
+
102
118
  class ValidationException < ServiceError
103
119
 
104
120
  # @param [Seahorse::Client::RequestContext] context