aws-sdk-organizations 1.67.0 → 1.70.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,6 +20,7 @@ module Aws::Organizations
20
20
  AccessDeniedForDependencyException = Shapes::StructureShape.new(name: 'AccessDeniedForDependencyException')
21
21
  AccessDeniedForDependencyExceptionReason = Shapes::StringShape.new(name: 'AccessDeniedForDependencyExceptionReason')
22
22
  Account = Shapes::StructureShape.new(name: 'Account')
23
+ AccountAlreadyClosedException = Shapes::StructureShape.new(name: 'AccountAlreadyClosedException')
23
24
  AccountAlreadyRegisteredException = Shapes::StructureShape.new(name: 'AccountAlreadyRegisteredException')
24
25
  AccountArn = Shapes::StringShape.new(name: 'AccountArn')
25
26
  AccountId = Shapes::StringShape.new(name: 'AccountId')
@@ -41,10 +42,13 @@ module Aws::Organizations
41
42
  ChildNotFoundException = Shapes::StructureShape.new(name: 'ChildNotFoundException')
42
43
  ChildType = Shapes::StringShape.new(name: 'ChildType')
43
44
  Children = Shapes::ListShape.new(name: 'Children')
45
+ CloseAccountRequest = Shapes::StructureShape.new(name: 'CloseAccountRequest')
44
46
  ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
47
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
45
48
  ConstraintViolationException = Shapes::StructureShape.new(name: 'ConstraintViolationException')
46
49
  ConstraintViolationExceptionReason = Shapes::StringShape.new(name: 'ConstraintViolationExceptionReason')
47
50
  CreateAccountFailureReason = Shapes::StringShape.new(name: 'CreateAccountFailureReason')
51
+ CreateAccountName = Shapes::StringShape.new(name: 'CreateAccountName')
48
52
  CreateAccountRequest = Shapes::StructureShape.new(name: 'CreateAccountRequest')
49
53
  CreateAccountRequestId = Shapes::StringShape.new(name: 'CreateAccountRequestId')
50
54
  CreateAccountResponse = Shapes::StructureShape.new(name: 'CreateAccountResponse')
@@ -265,6 +269,9 @@ module Aws::Organizations
265
269
  Account.add_member(:joined_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "JoinedTimestamp"))
266
270
  Account.struct_class = Types::Account
267
271
 
272
+ AccountAlreadyClosedException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
273
+ AccountAlreadyClosedException.struct_class = Types::AccountAlreadyClosedException
274
+
268
275
  AccountAlreadyRegisteredException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
269
276
  AccountAlreadyRegisteredException.struct_class = Types::AccountAlreadyRegisteredException
270
277
 
@@ -301,15 +308,21 @@ module Aws::Organizations
301
308
 
302
309
  Children.member = Shapes::ShapeRef.new(shape: Child)
303
310
 
311
+ CloseAccountRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
312
+ CloseAccountRequest.struct_class = Types::CloseAccountRequest
313
+
304
314
  ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
305
315
  ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
306
316
 
317
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
318
+ ConflictException.struct_class = Types::ConflictException
319
+
307
320
  ConstraintViolationException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
308
321
  ConstraintViolationException.add_member(:reason, Shapes::ShapeRef.new(shape: ConstraintViolationExceptionReason, location_name: "Reason"))
309
322
  ConstraintViolationException.struct_class = Types::ConstraintViolationException
310
323
 
311
324
  CreateAccountRequest.add_member(:email, Shapes::ShapeRef.new(shape: Email, required: true, location_name: "Email"))
312
- CreateAccountRequest.add_member(:account_name, Shapes::ShapeRef.new(shape: AccountName, required: true, location_name: "AccountName"))
325
+ CreateAccountRequest.add_member(:account_name, Shapes::ShapeRef.new(shape: CreateAccountName, required: true, location_name: "AccountName"))
313
326
  CreateAccountRequest.add_member(:role_name, Shapes::ShapeRef.new(shape: RoleName, location_name: "RoleName"))
314
327
  CreateAccountRequest.add_member(:iam_user_access_to_billing, Shapes::ShapeRef.new(shape: IAMUserAccessToBilling, location_name: "IamUserAccessToBilling"))
315
328
  CreateAccountRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
@@ -321,7 +334,7 @@ module Aws::Organizations
321
334
  CreateAccountStates.member = Shapes::ShapeRef.new(shape: CreateAccountState)
322
335
 
323
336
  CreateAccountStatus.add_member(:id, Shapes::ShapeRef.new(shape: CreateAccountRequestId, location_name: "Id"))
324
- CreateAccountStatus.add_member(:account_name, Shapes::ShapeRef.new(shape: AccountName, location_name: "AccountName"))
337
+ CreateAccountStatus.add_member(:account_name, Shapes::ShapeRef.new(shape: CreateAccountName, location_name: "AccountName"))
325
338
  CreateAccountStatus.add_member(:state, Shapes::ShapeRef.new(shape: CreateAccountState, location_name: "State"))
326
339
  CreateAccountStatus.add_member(:requested_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "RequestedTimestamp"))
327
340
  CreateAccountStatus.add_member(:completed_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CompletedTimestamp"))
@@ -336,7 +349,7 @@ module Aws::Organizations
336
349
  CreateAccountStatuses.member = Shapes::ShapeRef.new(shape: CreateAccountStatus)
337
350
 
338
351
  CreateGovCloudAccountRequest.add_member(:email, Shapes::ShapeRef.new(shape: Email, required: true, location_name: "Email"))
339
- CreateGovCloudAccountRequest.add_member(:account_name, Shapes::ShapeRef.new(shape: AccountName, required: true, location_name: "AccountName"))
352
+ CreateGovCloudAccountRequest.add_member(:account_name, Shapes::ShapeRef.new(shape: CreateAccountName, required: true, location_name: "AccountName"))
340
353
  CreateGovCloudAccountRequest.add_member(:role_name, Shapes::ShapeRef.new(shape: RoleName, location_name: "RoleName"))
341
354
  CreateGovCloudAccountRequest.add_member(:iam_user_access_to_billing, Shapes::ShapeRef.new(shape: IAMUserAccessToBilling, location_name: "IamUserAccessToBilling"))
342
355
  CreateGovCloudAccountRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
@@ -939,6 +952,25 @@ module Aws::Organizations
939
952
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
940
953
  end)
941
954
 
955
+ api.add_operation(:close_account, Seahorse::Model::Operation.new.tap do |o|
956
+ o.name = "CloseAccount"
957
+ o.http_method = "POST"
958
+ o.http_request_uri = "/"
959
+ o.input = Shapes::ShapeRef.new(shape: CloseAccountRequest)
960
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
961
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
962
+ o.errors << Shapes::ShapeRef.new(shape: AccountAlreadyClosedException)
963
+ o.errors << Shapes::ShapeRef.new(shape: AccountNotFoundException)
964
+ o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
965
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
966
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
967
+ o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
968
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
969
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
970
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
971
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedAPIEndpointException)
972
+ end)
973
+
942
974
  api.add_operation(:create_account, Seahorse::Model::Operation.new.tap do |o|
943
975
  o.name = "CreateAccount"
944
976
  o.http_method = "POST"
@@ -30,6 +30,7 @@ module Aws::Organizations
30
30
  # * {AWSOrganizationsNotInUseException}
31
31
  # * {AccessDeniedException}
32
32
  # * {AccessDeniedForDependencyException}
33
+ # * {AccountAlreadyClosedException}
33
34
  # * {AccountAlreadyRegisteredException}
34
35
  # * {AccountNotFoundException}
35
36
  # * {AccountNotRegisteredException}
@@ -37,6 +38,7 @@ module Aws::Organizations
37
38
  # * {AlreadyInOrganizationException}
38
39
  # * {ChildNotFoundException}
39
40
  # * {ConcurrentModificationException}
41
+ # * {ConflictException}
40
42
  # * {ConstraintViolationException}
41
43
  # * {CreateAccountStatusNotFoundException}
42
44
  # * {DestinationParentNotFoundException}
@@ -128,6 +130,21 @@ module Aws::Organizations
128
130
  end
129
131
  end
130
132
 
133
+ class AccountAlreadyClosedException < ServiceError
134
+
135
+ # @param [Seahorse::Client::RequestContext] context
136
+ # @param [String] message
137
+ # @param [Aws::Organizations::Types::AccountAlreadyClosedException] data
138
+ def initialize(context, message, data = Aws::EmptyStructure.new)
139
+ super(context, message, data)
140
+ end
141
+
142
+ # @return [String]
143
+ def message
144
+ @message || @data[:message]
145
+ end
146
+ end
147
+
131
148
  class AccountAlreadyRegisteredException < ServiceError
132
149
 
133
150
  # @param [Seahorse::Client::RequestContext] context
@@ -233,6 +250,21 @@ module Aws::Organizations
233
250
  end
234
251
  end
235
252
 
253
+ class ConflictException < ServiceError
254
+
255
+ # @param [Seahorse::Client::RequestContext] context
256
+ # @param [String] message
257
+ # @param [Aws::Organizations::Types::ConflictException] data
258
+ def initialize(context, message, data = Aws::EmptyStructure.new)
259
+ super(context, message, data)
260
+ end
261
+
262
+ # @return [String]
263
+ def message
264
+ @message || @data[:message]
265
+ end
266
+ end
267
+
236
268
  class ConstraintViolationException < ServiceError
237
269
 
238
270
  # @param [Seahorse::Client::RequestContext] context