aws-sdk-account 1.39.0 → 1.40.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: c9c474068d8607d8e238de7b503c442af7b5fe9fb37d54761b0cecacbc45e2a1
4
- data.tar.gz: 8e54c9df866a41a473cabe903e5787937d0f9ca26f18e84c634aa2e5e06117eb
3
+ metadata.gz: f9f9a9181f217f66e40bed03661ab482b59be06383f7ce0779dab24e86de8cbf
4
+ data.tar.gz: 40e3c586aac14512e52c9f0b1cb6c736b28d71baf8b78aeeab9de88c9669daca
5
5
  SHA512:
6
- metadata.gz: 185b54f6484532bf606f6b15a257d14225458678c377829292ce6886aa4640282119bd41d368099dfd8d13d9fcefea8021a7ddd4ad541d4efe580fc37be59ecd
7
- data.tar.gz: 9e4504732e9d35a1dd7def61c7a208a08fd5b8083b869bd2ebcc978583b4d659377f82df92ea78698f0e2c2919a36da40de05de91a0ec81e6b9e88e8646df81e
6
+ metadata.gz: 1c6e2d95bff937a5dd6b6bbbff2f58e2e5bdf56972c677a70ad0ea042ce8c105578692de129bd033f6178c4bedb0113951d1deeb2b3ff02d1a77a04f64d1b3e5
7
+ data.tar.gz: 06dffdcc2dd7bac34a89e160b45cd31e459df53017957140db761ae76f11ccd314eb44a3d0c393a9fe93d6f00cce764e7e15d54453d553b0b897d313735cda91
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.40.0 (2025-04-22)
5
+ ------------------
6
+
7
+ * Feature - AWS Account Management now supports account name update via IAM principals.
8
+
4
9
  1.39.0 (2025-02-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.39.0
1
+ 1.40.0
@@ -497,8 +497,8 @@ module Aws::Account
497
497
  #
498
498
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
499
499
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
500
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
501
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
500
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
501
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
502
502
  #
503
503
  # @option params [required, String] :otp
504
504
  # The OTP code sent to the `PrimaryEmail` specified on the
@@ -642,8 +642,8 @@ module Aws::Account
642
642
  #
643
643
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
644
644
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
645
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
646
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
645
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
646
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
647
647
  #
648
648
  # @option params [required, String] :region_name
649
649
  # Specifies the Region-code for a given Region name (for example,
@@ -701,8 +701,8 @@ module Aws::Account
701
701
  #
702
702
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
703
703
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
704
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
705
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
704
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
705
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
706
706
  #
707
707
  # @option params [required, String] :region_name
708
708
  # Specifies the Region-code for a given Region name (for example,
@@ -731,6 +731,71 @@ module Aws::Account
731
731
  req.send_request(options)
732
732
  end
733
733
 
734
+ # Retrieves information about the specified account including its
735
+ # account name, account ID, and account creation date and time. To use
736
+ # this API, an IAM user or role must have the
737
+ # `account:GetAccountInformation` IAM permission.
738
+ #
739
+ # @option params [String] :account_id
740
+ # Specifies the 12 digit account ID number of the Amazon Web Services
741
+ # account that you want to access or modify with this operation.
742
+ #
743
+ # If you do not specify this parameter, it defaults to the Amazon Web
744
+ # Services account of the identity used to call the operation.
745
+ #
746
+ # To use this parameter, the caller must be an identity in the
747
+ # [organization's management account][1] or a delegated administrator
748
+ # account, and the specified account ID must be a member account in the
749
+ # same organization. The organization must have [all features
750
+ # enabled][2], and the organization must have [trusted access][3]
751
+ # enabled for the Account Management service, and optionally a
752
+ # [delegated admin][4] account assigned.
753
+ #
754
+ # <note markdown="1"> The management account can't specify its own `AccountId`; it must
755
+ # call the operation in standalone context by not including the
756
+ # `AccountId` parameter.
757
+ #
758
+ # </note>
759
+ #
760
+ # To call this operation on an account that is not a member of an
761
+ # organization, then don't specify this parameter, and call the
762
+ # operation using an identity belonging to the account whose contacts
763
+ # you wish to retrieve or modify.
764
+ #
765
+ #
766
+ #
767
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
768
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
769
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
770
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
771
+ #
772
+ # @return [Types::GetAccountInformationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
773
+ #
774
+ # * {Types::GetAccountInformationResponse#account_created_date #account_created_date} => Time
775
+ # * {Types::GetAccountInformationResponse#account_id #account_id} => String
776
+ # * {Types::GetAccountInformationResponse#account_name #account_name} => String
777
+ #
778
+ # @example Request syntax with placeholder values
779
+ #
780
+ # resp = client.get_account_information({
781
+ # account_id: "AccountId",
782
+ # })
783
+ #
784
+ # @example Response structure
785
+ #
786
+ # resp.account_created_date #=> Time
787
+ # resp.account_id #=> String
788
+ # resp.account_name #=> String
789
+ #
790
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAccountInformation AWS API Documentation
791
+ #
792
+ # @overload get_account_information(params = {})
793
+ # @param [Hash] params ({})
794
+ def get_account_information(params = {}, options = {})
795
+ req = build_request(:get_account_information, params)
796
+ req.send_request(options)
797
+ end
798
+
734
799
  # Retrieves the specified alternate contact attached to an Amazon Web
735
800
  # Services account.
736
801
  #
@@ -852,8 +917,8 @@ module Aws::Account
852
917
  #
853
918
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
854
919
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
855
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
856
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
920
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
921
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
857
922
  #
858
923
  # @return [Types::GetContactInformationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
859
924
  #
@@ -914,8 +979,8 @@ module Aws::Account
914
979
  #
915
980
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
916
981
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
917
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
918
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
982
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
983
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
919
984
  #
920
985
  # @return [Types::GetPrimaryEmailResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
921
986
  #
@@ -970,8 +1035,8 @@ module Aws::Account
970
1035
  #
971
1036
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
972
1037
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
973
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
974
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
1038
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
1039
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
975
1040
  #
976
1041
  # @option params [required, String] :region_name
977
1042
  # Specifies the Region-code for a given Region name (for example,
@@ -1036,8 +1101,8 @@ module Aws::Account
1036
1101
  #
1037
1102
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
1038
1103
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
1039
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
1040
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
1104
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
1105
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
1041
1106
  #
1042
1107
  # @option params [Integer] :max_results
1043
1108
  # The total number of items to return in the command’s output. If the
@@ -1101,6 +1166,63 @@ module Aws::Account
1101
1166
  req.send_request(options)
1102
1167
  end
1103
1168
 
1169
+ # Updates the account name of the specified account. To use this API,
1170
+ # IAM principals must have the `account:PutAccountName` IAM permission.
1171
+ #
1172
+ # @option params [String] :account_id
1173
+ # Specifies the 12 digit account ID number of the Amazon Web Services
1174
+ # account that you want to access or modify with this operation.
1175
+ #
1176
+ # If you do not specify this parameter, it defaults to the Amazon Web
1177
+ # Services account of the identity used to call the operation.
1178
+ #
1179
+ # To use this parameter, the caller must be an identity in the
1180
+ # [organization's management account][1] or a delegated administrator
1181
+ # account, and the specified account ID must be a member account in the
1182
+ # same organization. The organization must have [all features
1183
+ # enabled][2], and the organization must have [trusted access][3]
1184
+ # enabled for the Account Management service, and optionally a
1185
+ # [delegated admin][4] account assigned.
1186
+ #
1187
+ # <note markdown="1"> The management account can't specify its own `AccountId`; it must
1188
+ # call the operation in standalone context by not including the
1189
+ # `AccountId` parameter.
1190
+ #
1191
+ # </note>
1192
+ #
1193
+ # To call this operation on an account that is not a member of an
1194
+ # organization, then don't specify this parameter, and call the
1195
+ # operation using an identity belonging to the account whose contacts
1196
+ # you wish to retrieve or modify.
1197
+ #
1198
+ #
1199
+ #
1200
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
1201
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
1202
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
1203
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
1204
+ #
1205
+ # @option params [required, String] :account_name
1206
+ # The name of the account.
1207
+ #
1208
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1209
+ #
1210
+ # @example Request syntax with placeholder values
1211
+ #
1212
+ # resp = client.put_account_name({
1213
+ # account_id: "AccountId",
1214
+ # account_name: "AccountName", # required
1215
+ # })
1216
+ #
1217
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAccountName AWS API Documentation
1218
+ #
1219
+ # @overload put_account_name(params = {})
1220
+ # @param [Hash] params ({})
1221
+ def put_account_name(params = {}, options = {})
1222
+ req = build_request(:put_account_name, params)
1223
+ req.send_request(options)
1224
+ end
1225
+
1104
1226
  # Modifies the specified alternate contact attached to an Amazon Web
1105
1227
  # Services account.
1106
1228
  #
@@ -1228,8 +1350,8 @@ module Aws::Account
1228
1350
  #
1229
1351
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
1230
1352
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
1231
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
1232
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
1353
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
1354
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
1233
1355
  #
1234
1356
  # @option params [required, Types::ContactInformation] :contact_information
1235
1357
  # Contains the details of the primary contact information associated
@@ -1292,8 +1414,8 @@ module Aws::Account
1292
1414
  #
1293
1415
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
1294
1416
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
1295
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
1296
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
1417
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
1418
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
1297
1419
  #
1298
1420
  # @option params [required, String] :primary_email
1299
1421
  # The new primary email address (also known as the root user email
@@ -1341,7 +1463,7 @@ module Aws::Account
1341
1463
  tracer: tracer
1342
1464
  )
1343
1465
  context[:gem_name] = 'aws-sdk-account'
1344
- context[:gem_version] = '1.39.0'
1466
+ context[:gem_version] = '1.40.0'
1345
1467
  Seahorse::Client::Request.new(handlers, context)
1346
1468
  end
1347
1469
 
@@ -17,7 +17,9 @@ module Aws::Account
17
17
  AcceptPrimaryEmailUpdateRequest = Shapes::StructureShape.new(name: 'AcceptPrimaryEmailUpdateRequest')
18
18
  AcceptPrimaryEmailUpdateResponse = Shapes::StructureShape.new(name: 'AcceptPrimaryEmailUpdateResponse')
19
19
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
20
+ AccountCreatedDate = Shapes::TimestampShape.new(name: 'AccountCreatedDate', timestampFormat: "iso8601")
20
21
  AccountId = Shapes::StringShape.new(name: 'AccountId')
22
+ AccountName = Shapes::StringShape.new(name: 'AccountName')
21
23
  AddressLine = Shapes::StringShape.new(name: 'AddressLine')
22
24
  AlternateContact = Shapes::StructureShape.new(name: 'AlternateContact')
23
25
  AlternateContactType = Shapes::StringShape.new(name: 'AlternateContactType')
@@ -33,6 +35,8 @@ module Aws::Account
33
35
  EmailAddress = Shapes::StringShape.new(name: 'EmailAddress')
34
36
  EnableRegionRequest = Shapes::StructureShape.new(name: 'EnableRegionRequest')
35
37
  FullName = Shapes::StringShape.new(name: 'FullName')
38
+ GetAccountInformationRequest = Shapes::StructureShape.new(name: 'GetAccountInformationRequest')
39
+ GetAccountInformationResponse = Shapes::StructureShape.new(name: 'GetAccountInformationResponse')
36
40
  GetAlternateContactRequest = Shapes::StructureShape.new(name: 'GetAlternateContactRequest')
37
41
  GetAlternateContactResponse = Shapes::StructureShape.new(name: 'GetAlternateContactResponse')
38
42
  GetContactInformationRequest = Shapes::StructureShape.new(name: 'GetContactInformationRequest')
@@ -52,6 +56,7 @@ module Aws::Account
52
56
  PostalCode = Shapes::StringShape.new(name: 'PostalCode')
53
57
  PrimaryEmailAddress = Shapes::StringShape.new(name: 'PrimaryEmailAddress')
54
58
  PrimaryEmailUpdateStatus = Shapes::StringShape.new(name: 'PrimaryEmailUpdateStatus')
59
+ PutAccountNameRequest = Shapes::StructureShape.new(name: 'PutAccountNameRequest')
55
60
  PutAlternateContactRequest = Shapes::StructureShape.new(name: 'PutAlternateContactRequest')
56
61
  PutContactInformationRequest = Shapes::StructureShape.new(name: 'PutContactInformationRequest')
57
62
  Region = Shapes::StructureShape.new(name: 'Region')
@@ -81,6 +86,7 @@ module Aws::Account
81
86
  AcceptPrimaryEmailUpdateResponse.add_member(:status, Shapes::ShapeRef.new(shape: PrimaryEmailUpdateStatus, location_name: "Status"))
82
87
  AcceptPrimaryEmailUpdateResponse.struct_class = Types::AcceptPrimaryEmailUpdateResponse
83
88
 
89
+ AccessDeniedException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
84
90
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
85
91
  AccessDeniedException.struct_class = Types::AccessDeniedException
86
92
 
@@ -91,6 +97,7 @@ module Aws::Account
91
97
  AlternateContact.add_member(:title, Shapes::ShapeRef.new(shape: Title, location_name: "Title"))
92
98
  AlternateContact.struct_class = Types::AlternateContact
93
99
 
100
+ ConflictException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
94
101
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
95
102
  ConflictException.struct_class = Types::ConflictException
96
103
 
@@ -120,6 +127,14 @@ module Aws::Account
120
127
  EnableRegionRequest.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, required: true, location_name: "RegionName"))
121
128
  EnableRegionRequest.struct_class = Types::EnableRegionRequest
122
129
 
130
+ GetAccountInformationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
131
+ GetAccountInformationRequest.struct_class = Types::GetAccountInformationRequest
132
+
133
+ GetAccountInformationResponse.add_member(:account_created_date, Shapes::ShapeRef.new(shape: AccountCreatedDate, location_name: "AccountCreatedDate"))
134
+ GetAccountInformationResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
135
+ GetAccountInformationResponse.add_member(:account_name, Shapes::ShapeRef.new(shape: AccountName, location_name: "AccountName"))
136
+ GetAccountInformationResponse.struct_class = Types::GetAccountInformationResponse
137
+
123
138
  GetAlternateContactRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
124
139
  GetAlternateContactRequest.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, required: true, location_name: "AlternateContactType"))
125
140
  GetAlternateContactRequest.struct_class = Types::GetAlternateContactRequest
@@ -147,6 +162,7 @@ module Aws::Account
147
162
  GetRegionOptStatusResponse.add_member(:region_opt_status, Shapes::ShapeRef.new(shape: RegionOptStatus, location_name: "RegionOptStatus"))
148
163
  GetRegionOptStatusResponse.struct_class = Types::GetRegionOptStatusResponse
149
164
 
165
+ InternalServerException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
150
166
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
151
167
  InternalServerException.struct_class = Types::InternalServerException
152
168
 
@@ -160,6 +176,10 @@ module Aws::Account
160
176
  ListRegionsResponse.add_member(:regions, Shapes::ShapeRef.new(shape: RegionOptList, location_name: "Regions"))
161
177
  ListRegionsResponse.struct_class = Types::ListRegionsResponse
162
178
 
179
+ PutAccountNameRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
180
+ PutAccountNameRequest.add_member(:account_name, Shapes::ShapeRef.new(shape: AccountName, required: true, location_name: "AccountName"))
181
+ PutAccountNameRequest.struct_class = Types::PutAccountNameRequest
182
+
163
183
  PutAlternateContactRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
164
184
  PutAlternateContactRequest.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, required: true, location_name: "AlternateContactType"))
165
185
  PutAlternateContactRequest.add_member(:email_address, Shapes::ShapeRef.new(shape: EmailAddress, required: true, location_name: "EmailAddress"))
@@ -180,6 +200,7 @@ module Aws::Account
180
200
 
181
201
  RegionOptStatusList.member = Shapes::ShapeRef.new(shape: RegionOptStatus)
182
202
 
203
+ ResourceNotFoundException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
183
204
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
184
205
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
185
206
 
@@ -190,6 +211,7 @@ module Aws::Account
190
211
  StartPrimaryEmailUpdateResponse.add_member(:status, Shapes::ShapeRef.new(shape: PrimaryEmailUpdateStatus, location_name: "Status"))
191
212
  StartPrimaryEmailUpdateResponse.struct_class = Types::StartPrimaryEmailUpdateResponse
192
213
 
214
+ TooManyRequestsException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
193
215
  TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
194
216
  TooManyRequestsException.struct_class = Types::TooManyRequestsException
195
217
 
@@ -231,9 +253,9 @@ module Aws::Account
231
253
  o.input = Shapes::ShapeRef.new(shape: AcceptPrimaryEmailUpdateRequest)
232
254
  o.output = Shapes::ShapeRef.new(shape: AcceptPrimaryEmailUpdateResponse)
233
255
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
256
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
234
257
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
235
258
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
236
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
237
259
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
238
260
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
239
261
  end)
@@ -257,9 +279,9 @@ module Aws::Account
257
279
  o.http_request_uri = "/disableRegion"
258
280
  o.input = Shapes::ShapeRef.new(shape: DisableRegionRequest)
259
281
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
282
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
260
283
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
261
284
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
262
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
263
285
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
264
286
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
265
287
  end)
@@ -270,9 +292,21 @@ module Aws::Account
270
292
  o.http_request_uri = "/enableRegion"
271
293
  o.input = Shapes::ShapeRef.new(shape: EnableRegionRequest)
272
294
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
295
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
273
296
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
274
297
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
298
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
299
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
300
+ end)
301
+
302
+ api.add_operation(:get_account_information, Seahorse::Model::Operation.new.tap do |o|
303
+ o.name = "GetAccountInformation"
304
+ o.http_method = "POST"
305
+ o.http_request_uri = "/getAccountInformation"
306
+ o.input = Shapes::ShapeRef.new(shape: GetAccountInformationRequest)
307
+ o.output = Shapes::ShapeRef.new(shape: GetAccountInformationResponse)
275
308
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
309
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
276
310
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
277
311
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
278
312
  end)
@@ -310,8 +344,8 @@ module Aws::Account
310
344
  o.input = Shapes::ShapeRef.new(shape: GetPrimaryEmailRequest)
311
345
  o.output = Shapes::ShapeRef.new(shape: GetPrimaryEmailResponse)
312
346
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
313
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
314
347
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
348
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
315
349
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
316
350
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
317
351
  end)
@@ -322,8 +356,8 @@ module Aws::Account
322
356
  o.http_request_uri = "/getRegionOptStatus"
323
357
  o.input = Shapes::ShapeRef.new(shape: GetRegionOptStatusRequest)
324
358
  o.output = Shapes::ShapeRef.new(shape: GetRegionOptStatusResponse)
325
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
326
359
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
360
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
327
361
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
328
362
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
329
363
  end)
@@ -334,8 +368,8 @@ module Aws::Account
334
368
  o.http_request_uri = "/listRegions"
335
369
  o.input = Shapes::ShapeRef.new(shape: ListRegionsRequest)
336
370
  o.output = Shapes::ShapeRef.new(shape: ListRegionsResponse)
337
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
338
371
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
372
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
339
373
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
340
374
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
341
375
  o[:pager] = Aws::Pager.new(
@@ -346,6 +380,18 @@ module Aws::Account
346
380
  )
347
381
  end)
348
382
 
383
+ api.add_operation(:put_account_name, Seahorse::Model::Operation.new.tap do |o|
384
+ o.name = "PutAccountName"
385
+ o.http_method = "POST"
386
+ o.http_request_uri = "/putAccountName"
387
+ o.input = Shapes::ShapeRef.new(shape: PutAccountNameRequest)
388
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
389
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
390
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
391
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
392
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
393
+ end)
394
+
349
395
  api.add_operation(:put_alternate_contact, Seahorse::Model::Operation.new.tap do |o|
350
396
  o.name = "PutAlternateContact"
351
397
  o.http_method = "POST"
@@ -377,9 +423,9 @@ module Aws::Account
377
423
  o.input = Shapes::ShapeRef.new(shape: StartPrimaryEmailUpdateRequest)
378
424
  o.output = Shapes::ShapeRef.new(shape: StartPrimaryEmailUpdateResponse)
379
425
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
426
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
380
427
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
381
428
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
382
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
383
429
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
384
430
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
385
431
  end)
@@ -49,6 +49,11 @@ module Aws::Account
49
49
  super(context, message, data)
50
50
  end
51
51
 
52
+ # @return [String]
53
+ def error_type
54
+ @data[:error_type]
55
+ end
56
+
52
57
  # @return [String]
53
58
  def message
54
59
  @message || @data[:message]
@@ -64,6 +69,11 @@ module Aws::Account
64
69
  super(context, message, data)
65
70
  end
66
71
 
72
+ # @return [String]
73
+ def error_type
74
+ @data[:error_type]
75
+ end
76
+
67
77
  # @return [String]
68
78
  def message
69
79
  @message || @data[:message]
@@ -79,6 +89,11 @@ module Aws::Account
79
89
  super(context, message, data)
80
90
  end
81
91
 
92
+ # @return [String]
93
+ def error_type
94
+ @data[:error_type]
95
+ end
96
+
82
97
  # @return [String]
83
98
  def message
84
99
  @message || @data[:message]
@@ -98,6 +113,11 @@ module Aws::Account
98
113
  super(context, message, data)
99
114
  end
100
115
 
116
+ # @return [String]
117
+ def error_type
118
+ @data[:error_type]
119
+ end
120
+
101
121
  # @return [String]
102
122
  def message
103
123
  @message || @data[:message]
@@ -113,6 +133,11 @@ module Aws::Account
113
133
  super(context, message, data)
114
134
  end
115
135
 
136
+ # @return [String]
137
+ def error_type
138
+ @data[:error_type]
139
+ end
140
+
116
141
  # @return [String]
117
142
  def message
118
143
  @message || @data[:message]
@@ -33,8 +33,8 @@ module Aws::Account
33
33
  #
34
34
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
35
35
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
36
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
37
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
36
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
37
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
38
38
  # @return [String]
39
39
  #
40
40
  # @!attribute [rw] otp
@@ -73,12 +73,18 @@ module Aws::Account
73
73
  # The operation failed because the calling identity doesn't have the
74
74
  # minimum required permissions.
75
75
  #
76
+ # @!attribute [rw] error_type
77
+ # The value populated to the `x-amzn-ErrorType` response header by API
78
+ # Gateway.
79
+ # @return [String]
80
+ #
76
81
  # @!attribute [rw] message
77
82
  # @return [String]
78
83
  #
79
84
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/AccessDeniedException AWS API Documentation
80
85
  #
81
86
  class AccessDeniedException < Struct.new(
87
+ :error_type,
82
88
  :message)
83
89
  SENSITIVE = []
84
90
  include Aws::Structure
@@ -122,7 +128,13 @@ module Aws::Account
122
128
  # The request could not be processed because of a conflict in the
123
129
  # current status of the resource. For example, this happens if you try
124
130
  # to enable a Region that is currently being disabled (in a status of
125
- # DISABLING).
131
+ # DISABLING) or if you try to change an account’s root user email to an
132
+ # email address which is already in use.
133
+ #
134
+ # @!attribute [rw] error_type
135
+ # The value populated to the `x-amzn-ErrorType` response header by API
136
+ # Gateway.
137
+ # @return [String]
126
138
  #
127
139
  # @!attribute [rw] message
128
140
  # @return [String]
@@ -130,6 +142,7 @@ module Aws::Account
130
142
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ConflictException AWS API Documentation
131
143
  #
132
144
  class ConflictException < Struct.new(
145
+ :error_type,
133
146
  :message)
134
147
  SENSITIVE = []
135
148
  include Aws::Structure
@@ -289,8 +302,8 @@ module Aws::Account
289
302
  #
290
303
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
291
304
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
292
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
293
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
305
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
306
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
294
307
  # @return [String]
295
308
  #
296
309
  # @!attribute [rw] region_name
@@ -340,8 +353,8 @@ module Aws::Account
340
353
  #
341
354
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
342
355
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
343
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
344
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
356
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
357
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
345
358
  # @return [String]
346
359
  #
347
360
  # @!attribute [rw] region_name
@@ -364,6 +377,93 @@ module Aws::Account
364
377
  include Aws::Structure
365
378
  end
366
379
 
380
+ # @!attribute [rw] account_id
381
+ # Specifies the 12 digit account ID number of the Amazon Web Services
382
+ # account that you want to access or modify with this operation.
383
+ #
384
+ # If you do not specify this parameter, it defaults to the Amazon Web
385
+ # Services account of the identity used to call the operation.
386
+ #
387
+ # To use this parameter, the caller must be an identity in the
388
+ # [organization's management account][1] or a delegated administrator
389
+ # account, and the specified account ID must be a member account in
390
+ # the same organization. The organization must have [all features
391
+ # enabled][2], and the organization must have [trusted access][3]
392
+ # enabled for the Account Management service, and optionally a
393
+ # [delegated admin][4] account assigned.
394
+ #
395
+ # <note markdown="1"> The management account can't specify its own `AccountId`; it must
396
+ # call the operation in standalone context by not including the
397
+ # `AccountId` parameter.
398
+ #
399
+ # </note>
400
+ #
401
+ # To call this operation on an account that is not a member of an
402
+ # organization, then don't specify this parameter, and call the
403
+ # operation using an identity belonging to the account whose contacts
404
+ # you wish to retrieve or modify.
405
+ #
406
+ #
407
+ #
408
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
409
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
410
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
411
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
412
+ # @return [String]
413
+ #
414
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAccountInformationRequest AWS API Documentation
415
+ #
416
+ class GetAccountInformationRequest < Struct.new(
417
+ :account_id)
418
+ SENSITIVE = []
419
+ include Aws::Structure
420
+ end
421
+
422
+ # @!attribute [rw] account_created_date
423
+ # The date and time the account was created.
424
+ # @return [Time]
425
+ #
426
+ # @!attribute [rw] account_id
427
+ # Specifies the 12-digit account ID number of the Amazon Web Services
428
+ # account that you want to access or modify with this operation. To
429
+ # use this parameter, the caller must be an identity in the
430
+ # [organization's management account][1] or a delegated administrator
431
+ # account. The specified account ID must be a member account in the
432
+ # same organization. The organization must have [all features
433
+ # enabled][2], and the organization must have [trusted access][3]
434
+ # enabled for the Account Management service, and optionally a
435
+ # [delegated admin][4] account assigned.
436
+ #
437
+ # This operation can only be called from the management account or the
438
+ # delegated administrator account of an organization for a member
439
+ # account.
440
+ #
441
+ # <note markdown="1"> The management account can't specify its own `AccountId`.
442
+ #
443
+ # </note>
444
+ #
445
+ #
446
+ #
447
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
448
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
449
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
450
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
451
+ # @return [String]
452
+ #
453
+ # @!attribute [rw] account_name
454
+ # The name of the account.
455
+ # @return [String]
456
+ #
457
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAccountInformationResponse AWS API Documentation
458
+ #
459
+ class GetAccountInformationResponse < Struct.new(
460
+ :account_created_date,
461
+ :account_id,
462
+ :account_name)
463
+ SENSITIVE = [:account_name]
464
+ include Aws::Structure
465
+ end
466
+
367
467
  # @!attribute [rw] account_id
368
468
  # Specifies the 12 digit account ID number of the Amazon Web Services
369
469
  # account that you want to access or modify with this operation.
@@ -452,8 +552,8 @@ module Aws::Account
452
552
  #
453
553
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
454
554
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
455
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
456
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
555
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
556
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
457
557
  # @return [String]
458
558
  #
459
559
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformationRequest AWS API Documentation
@@ -500,8 +600,8 @@ module Aws::Account
500
600
  #
501
601
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
502
602
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
503
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
504
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
603
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
604
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
505
605
  # @return [String]
506
606
  #
507
607
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetPrimaryEmailRequest AWS API Documentation
@@ -553,8 +653,8 @@ module Aws::Account
553
653
  #
554
654
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
555
655
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
556
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
557
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
656
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
657
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
558
658
  # @return [String]
559
659
  #
560
660
  # @!attribute [rw] region_name
@@ -593,12 +693,18 @@ module Aws::Account
593
693
  # The operation failed because of an error internal to Amazon Web
594
694
  # Services. Try your operation again later.
595
695
  #
696
+ # @!attribute [rw] error_type
697
+ # The value populated to the `x-amzn-ErrorType` response header by API
698
+ # Gateway.
699
+ # @return [String]
700
+ #
596
701
  # @!attribute [rw] message
597
702
  # @return [String]
598
703
  #
599
704
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/InternalServerException AWS API Documentation
600
705
  #
601
706
  class InternalServerException < Struct.new(
707
+ :error_type,
602
708
  :message)
603
709
  SENSITIVE = []
604
710
  include Aws::Structure
@@ -632,8 +738,8 @@ module Aws::Account
632
738
  #
633
739
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
634
740
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
635
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
636
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
741
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
742
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
637
743
  # @return [String]
638
744
  #
639
745
  # @!attribute [rw] max_results
@@ -701,6 +807,53 @@ module Aws::Account
701
807
  include Aws::Structure
702
808
  end
703
809
 
810
+ # @!attribute [rw] account_id
811
+ # Specifies the 12 digit account ID number of the Amazon Web Services
812
+ # account that you want to access or modify with this operation.
813
+ #
814
+ # If you do not specify this parameter, it defaults to the Amazon Web
815
+ # Services account of the identity used to call the operation.
816
+ #
817
+ # To use this parameter, the caller must be an identity in the
818
+ # [organization's management account][1] or a delegated administrator
819
+ # account, and the specified account ID must be a member account in
820
+ # the same organization. The organization must have [all features
821
+ # enabled][2], and the organization must have [trusted access][3]
822
+ # enabled for the Account Management service, and optionally a
823
+ # [delegated admin][4] account assigned.
824
+ #
825
+ # <note markdown="1"> The management account can't specify its own `AccountId`; it must
826
+ # call the operation in standalone context by not including the
827
+ # `AccountId` parameter.
828
+ #
829
+ # </note>
830
+ #
831
+ # To call this operation on an account that is not a member of an
832
+ # organization, then don't specify this parameter, and call the
833
+ # operation using an identity belonging to the account whose contacts
834
+ # you wish to retrieve or modify.
835
+ #
836
+ #
837
+ #
838
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
839
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
840
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
841
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
842
+ # @return [String]
843
+ #
844
+ # @!attribute [rw] account_name
845
+ # The name of the account.
846
+ # @return [String]
847
+ #
848
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAccountNameRequest AWS API Documentation
849
+ #
850
+ class PutAccountNameRequest < Struct.new(
851
+ :account_id,
852
+ :account_name)
853
+ SENSITIVE = [:account_name]
854
+ include Aws::Structure
855
+ end
856
+
704
857
  # @!attribute [rw] account_id
705
858
  # Specifies the 12 digit account ID number of the Amazon Web Services
706
859
  # account that you want to access or modify with this operation.
@@ -796,8 +949,8 @@ module Aws::Account
796
949
  #
797
950
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
798
951
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
799
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
800
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
952
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
953
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
801
954
  # @return [String]
802
955
  #
803
956
  # @!attribute [rw] contact_information
@@ -838,12 +991,18 @@ module Aws::Account
838
991
  # The operation failed because it specified a resource that can't be
839
992
  # found.
840
993
  #
994
+ # @!attribute [rw] error_type
995
+ # The value populated to the `x-amzn-ErrorType` response header by API
996
+ # Gateway.
997
+ # @return [String]
998
+ #
841
999
  # @!attribute [rw] message
842
1000
  # @return [String]
843
1001
  #
844
1002
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ResourceNotFoundException AWS API Documentation
845
1003
  #
846
1004
  class ResourceNotFoundException < Struct.new(
1005
+ :error_type,
847
1006
  :message)
848
1007
  SENSITIVE = []
849
1008
  include Aws::Structure
@@ -872,8 +1031,8 @@ module Aws::Account
872
1031
  #
873
1032
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
874
1033
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
875
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
876
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
1034
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
1035
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
877
1036
  # @return [String]
878
1037
  #
879
1038
  # @!attribute [rw] primary_email
@@ -905,12 +1064,18 @@ module Aws::Account
905
1064
  # The operation failed because it was called too frequently and exceeded
906
1065
  # a throttle limit.
907
1066
  #
1067
+ # @!attribute [rw] error_type
1068
+ # The value populated to the `x-amzn-ErrorType` response header by API
1069
+ # Gateway.
1070
+ # @return [String]
1071
+ #
908
1072
  # @!attribute [rw] message
909
1073
  # @return [String]
910
1074
  #
911
1075
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/TooManyRequestsException AWS API Documentation
912
1076
  #
913
1077
  class TooManyRequestsException < Struct.new(
1078
+ :error_type,
914
1079
  :message)
915
1080
  SENSITIVE = []
916
1081
  include Aws::Structure
@@ -54,7 +54,7 @@ module Aws::Account
54
54
  autoload :EndpointProvider, 'aws-sdk-account/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-account/endpoints'
56
56
 
57
- GEM_VERSION = '1.39.0'
57
+ GEM_VERSION = '1.40.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -110,6 +110,18 @@ module Aws
110
110
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
111
111
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
112
112
 
113
+ interface _GetAccountInformationResponseSuccess
114
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetAccountInformationResponse]
115
+ def account_created_date: () -> ::Time
116
+ def account_id: () -> ::String
117
+ def account_name: () -> ::String
118
+ end
119
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Account/Client.html#get_account_information-instance_method
120
+ def get_account_information: (
121
+ ?account_id: ::String
122
+ ) -> _GetAccountInformationResponseSuccess
123
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAccountInformationResponseSuccess
124
+
113
125
  interface _GetAlternateContactResponseSuccess
114
126
  include ::Seahorse::Client::_ResponseSuccess[Types::GetAlternateContactResponse]
115
127
  def alternate_contact: () -> Types::AlternateContact
@@ -167,6 +179,13 @@ module Aws
167
179
  ) -> _ListRegionsResponseSuccess
168
180
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRegionsResponseSuccess
169
181
 
182
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Account/Client.html#put_account_name-instance_method
183
+ def put_account_name: (
184
+ ?account_id: ::String,
185
+ account_name: ::String
186
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
187
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
188
+
170
189
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Account/Client.html#put_alternate_contact-instance_method
171
190
  def put_alternate_contact: (
172
191
  ?account_id: ::String,
data/sig/errors.rbs CHANGED
@@ -12,18 +12,23 @@ module Aws
12
12
  end
13
13
 
14
14
  class AccessDeniedException < ::Aws::Errors::ServiceError
15
+ def error_type: () -> ::String
15
16
  def message: () -> ::String
16
17
  end
17
18
  class ConflictException < ::Aws::Errors::ServiceError
19
+ def error_type: () -> ::String
18
20
  def message: () -> ::String
19
21
  end
20
22
  class InternalServerException < ::Aws::Errors::ServiceError
23
+ def error_type: () -> ::String
21
24
  def message: () -> ::String
22
25
  end
23
26
  class ResourceNotFoundException < ::Aws::Errors::ServiceError
27
+ def error_type: () -> ::String
24
28
  def message: () -> ::String
25
29
  end
26
30
  class TooManyRequestsException < ::Aws::Errors::ServiceError
31
+ def error_type: () -> ::String
27
32
  def message: () -> ::String
28
33
  end
29
34
  class ValidationException < ::Aws::Errors::ServiceError
data/sig/types.rbs CHANGED
@@ -21,6 +21,7 @@ module Aws::Account
21
21
  end
22
22
 
23
23
  class AccessDeniedException
24
+ attr_accessor error_type: ::String
24
25
  attr_accessor message: ::String
25
26
  SENSITIVE: []
26
27
  end
@@ -35,6 +36,7 @@ module Aws::Account
35
36
  end
36
37
 
37
38
  class ConflictException
39
+ attr_accessor error_type: ::String
38
40
  attr_accessor message: ::String
39
41
  SENSITIVE: []
40
42
  end
@@ -73,6 +75,18 @@ module Aws::Account
73
75
  SENSITIVE: []
74
76
  end
75
77
 
78
+ class GetAccountInformationRequest
79
+ attr_accessor account_id: ::String
80
+ SENSITIVE: []
81
+ end
82
+
83
+ class GetAccountInformationResponse
84
+ attr_accessor account_created_date: ::Time
85
+ attr_accessor account_id: ::String
86
+ attr_accessor account_name: ::String
87
+ SENSITIVE: [:account_name]
88
+ end
89
+
76
90
  class GetAlternateContactRequest
77
91
  attr_accessor account_id: ::String
78
92
  attr_accessor alternate_contact_type: ("BILLING" | "OPERATIONS" | "SECURITY")
@@ -117,6 +131,7 @@ module Aws::Account
117
131
  end
118
132
 
119
133
  class InternalServerException
134
+ attr_accessor error_type: ::String
120
135
  attr_accessor message: ::String
121
136
  SENSITIVE: []
122
137
  end
@@ -135,6 +150,12 @@ module Aws::Account
135
150
  SENSITIVE: []
136
151
  end
137
152
 
153
+ class PutAccountNameRequest
154
+ attr_accessor account_id: ::String
155
+ attr_accessor account_name: ::String
156
+ SENSITIVE: [:account_name]
157
+ end
158
+
138
159
  class PutAlternateContactRequest
139
160
  attr_accessor account_id: ::String
140
161
  attr_accessor alternate_contact_type: ("BILLING" | "OPERATIONS" | "SECURITY")
@@ -158,6 +179,7 @@ module Aws::Account
158
179
  end
159
180
 
160
181
  class ResourceNotFoundException
182
+ attr_accessor error_type: ::String
161
183
  attr_accessor message: ::String
162
184
  SENSITIVE: []
163
185
  end
@@ -174,6 +196,7 @@ module Aws::Account
174
196
  end
175
197
 
176
198
  class TooManyRequestsException
199
+ attr_accessor error_type: ::String
177
200
  attr_accessor message: ::String
178
201
  SENSITIVE: []
179
202
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-account
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.39.0
4
+ version: 1.40.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: 2025-02-18 00:00:00.000000000 Z
11
+ date: 2025-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core