aws-sdk-account 1.51.0 → 1.52.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: 76414279b72985baa0bd66f99cff35e713d160fe1b66fa8020c4ed85088ca2ab
4
- data.tar.gz: 3eb3185706e3877f67a6738e58fba3d7bd563b532002a259b0bed3e1f0ec261e
3
+ metadata.gz: 1b78f54f4250b90ecbe4c38f8e881f5494497c70b27c9dfbbd34df66d2ae9988
4
+ data.tar.gz: f41631c1696f097d98061b69f726df2ec082097d69948f8ae91bf8294a096b6d
5
5
  SHA512:
6
- metadata.gz: 0cab3eb97c43c700693c7477bd8c9555dd2c6aaab1db5847c4b7f0acfafec792543ca27aa17894c9db48e53c86537e8e92e0fe0c9a41fb2b51361d9b68407f38
7
- data.tar.gz: 1a9d0f63cdc269396151c1f923cdea33573fcc05bda0999356e69c1a9eb9a5d8827e858241a22acdd18e242717801ab1d82ca304bbc6cb9891bab3f5eb2e0ae6
6
+ metadata.gz: 4c01795c19cec78e58034c4f67e6da9828e45d310f629d042036eb78cd0837da39b8ddf8fec6d3b3d1a4311ba0db615a8226bf962c5f0ff44cdbf90e77731cff
7
+ data.tar.gz: 07d36566cfd9c2189028a6d23493610e2aa89b1e436468b0485a47d4614a23756701ab2995a5750a59173764145785c6d5661e8249616a75d3254c48d0f677d1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.52.0 (2025-12-09)
5
+ ------------------
6
+
7
+ * Feature - This release adds a new API (GetGovCloudAccountInformation) used to retrieve information about a linked GovCloud account from the standard AWS partition.
8
+
4
9
  1.51.0 (2025-11-21)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.51.0
1
+ 1.52.0
@@ -544,19 +544,20 @@ module Aws::Account
544
544
  # account.
545
545
  #
546
546
  # For complete details about how to use the alternate contact
547
- # operations, see [Access or updating the alternate contacts][1].
547
+ # operations, see [Update the alternate contacts for your Amazon Web
548
+ # Services account][1].
548
549
  #
549
550
  # <note markdown="1"> Before you can update the alternate contact information for an Amazon
550
551
  # Web Services account that is managed by Organizations, you must first
551
552
  # enable integration between Amazon Web Services Account Management and
552
- # Organizations. For more information, see [Enabling trusted access for
553
+ # Organizations. For more information, see [Enable trusted access for
553
554
  # Amazon Web Services Account Management][2].
554
555
  #
555
556
  # </note>
556
557
  #
557
558
  #
558
559
  #
559
- # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
560
+ # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-alternate.html
560
561
  # [2]: https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html
561
562
  #
562
563
  # @option params [String] :account_id
@@ -572,7 +573,7 @@ module Aws::Account
572
573
  # same organization. The organization must have [all features
573
574
  # enabled][2], and the organization must have [trusted access][3]
574
575
  # enabled for the Account Management service, and optionally a
575
- # [delegated admin][4] account assigned.
576
+ # [delegated administrator][4] account assigned.
576
577
  #
577
578
  # <note markdown="1"> The management account can't specify its own `AccountId`; it must
578
579
  # call the operation in standalone context by not including the
@@ -589,8 +590,8 @@ module Aws::Account
589
590
  #
590
591
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
591
592
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
592
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
593
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
593
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
594
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
594
595
  #
595
596
  # @option params [required, String] :alternate_contact_type
596
597
  # Specifies which of the alternate contacts to delete.
@@ -755,7 +756,7 @@ module Aws::Account
755
756
  # same organization. The organization must have [all features
756
757
  # enabled][2], and the organization must have [trusted access][3]
757
758
  # enabled for the Account Management service, and optionally a
758
- # [delegated admin][4] account assigned.
759
+ # [delegated administrator][4] account assigned.
759
760
  #
760
761
  # <note markdown="1"> The management account can't specify its own `AccountId`; it must
761
762
  # call the operation in standalone context by not including the
@@ -772,8 +773,8 @@ module Aws::Account
772
773
  #
773
774
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
774
775
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
775
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
776
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
776
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
777
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
777
778
  #
778
779
  # @return [Types::GetAccountInformationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
779
780
  #
@@ -806,19 +807,20 @@ module Aws::Account
806
807
  # Services account.
807
808
  #
808
809
  # For complete details about how to use the alternate contact
809
- # operations, see [Access or updating the alternate contacts][1].
810
+ # operations, see [Update the alternate contacts for your Amazon Web
811
+ # Services account][1].
810
812
  #
811
813
  # <note markdown="1"> Before you can update the alternate contact information for an Amazon
812
814
  # Web Services account that is managed by Organizations, you must first
813
815
  # enable integration between Amazon Web Services Account Management and
814
- # Organizations. For more information, see [Enabling trusted access for
816
+ # Organizations. For more information, see [Enable trusted access for
815
817
  # Amazon Web Services Account Management][2].
816
818
  #
817
819
  # </note>
818
820
  #
819
821
  #
820
822
  #
821
- # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
823
+ # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-alternate.html
822
824
  # [2]: https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html
823
825
  #
824
826
  # @option params [String] :account_id
@@ -834,7 +836,7 @@ module Aws::Account
834
836
  # same organization. The organization must have [all features
835
837
  # enabled][2], and the organization must have [trusted access][3]
836
838
  # enabled for the Account Management service, and optionally a
837
- # [delegated admin][4] account assigned.
839
+ # [delegated administrator][4] account assigned.
838
840
  #
839
841
  # <note markdown="1"> The management account can't specify its own `AccountId`; it must
840
842
  # call the operation in standalone context by not including the
@@ -851,8 +853,8 @@ module Aws::Account
851
853
  #
852
854
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
853
855
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
854
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
855
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
856
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
857
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
856
858
  #
857
859
  # @option params [required, String] :alternate_contact_type
858
860
  # Specifies which alternate contact you want to retrieve.
@@ -889,11 +891,12 @@ module Aws::Account
889
891
  # account.
890
892
  #
891
893
  # For complete details about how to use the primary contact operations,
892
- # see [Update the primary and alternate contact information][1].
894
+ # see [Update the primary contact for your Amazon Web Services
895
+ # account][1].
893
896
  #
894
897
  #
895
898
  #
896
- # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
899
+ # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-primary.html
897
900
  #
898
901
  # @option params [String] :account_id
899
902
  # Specifies the 12-digit account ID number of the Amazon Web Services
@@ -960,6 +963,69 @@ module Aws::Account
960
963
  req.send_request(options)
961
964
  end
962
965
 
966
+ # Retrieves information about the GovCloud account linked to the
967
+ # specified standard account (if it exists) including the GovCloud
968
+ # account ID and state. To use this API, an IAM user or role must have
969
+ # the `account:GetGovCloudAccountInformation` IAM permission.
970
+ #
971
+ # @option params [String] :standard_account_id
972
+ # Specifies the 12 digit account ID number of the Amazon Web Services
973
+ # account that you want to access or modify with this operation.
974
+ #
975
+ # If you do not specify this parameter, it defaults to the Amazon Web
976
+ # Services account of the identity used to call the operation.
977
+ #
978
+ # To use this parameter, the caller must be an identity in the
979
+ # [organization's management account][1] or a delegated administrator
980
+ # account, and the specified account ID must be a member account in the
981
+ # same organization. The organization must have [all features
982
+ # enabled][2], and the organization must have [trusted access][3]
983
+ # enabled for the Account Management service, and optionally a
984
+ # [delegated administrator][4] account assigned.
985
+ #
986
+ # <note markdown="1"> The management account can't specify its own `AccountId`; it must
987
+ # call the operation in standalone context by not including the
988
+ # `AccountId` parameter.
989
+ #
990
+ # </note>
991
+ #
992
+ # To call this operation on an account that is not a member of an
993
+ # organization, then don't specify this parameter, and call the
994
+ # operation using an identity belonging to the account whose contacts
995
+ # you wish to retrieve or modify.
996
+ #
997
+ #
998
+ #
999
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
1000
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
1001
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
1002
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
1003
+ #
1004
+ # @return [Types::GetGovCloudAccountInformationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1005
+ #
1006
+ # * {Types::GetGovCloudAccountInformationResponse#account_state #account_state} => String
1007
+ # * {Types::GetGovCloudAccountInformationResponse#gov_cloud_account_id #gov_cloud_account_id} => String
1008
+ #
1009
+ # @example Request syntax with placeholder values
1010
+ #
1011
+ # resp = client.get_gov_cloud_account_information({
1012
+ # standard_account_id: "AccountId",
1013
+ # })
1014
+ #
1015
+ # @example Response structure
1016
+ #
1017
+ # resp.account_state #=> String, one of "PENDING_ACTIVATION", "ACTIVE", "SUSPENDED", "CLOSED"
1018
+ # resp.gov_cloud_account_id #=> String
1019
+ #
1020
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetGovCloudAccountInformation AWS API Documentation
1021
+ #
1022
+ # @overload get_gov_cloud_account_information(params = {})
1023
+ # @param [Hash] params ({})
1024
+ def get_gov_cloud_account_information(params = {}, options = {})
1025
+ req = build_request(:get_gov_cloud_account_information, params)
1026
+ req.send_request(options)
1027
+ end
1028
+
963
1029
  # Retrieves the primary email address for the specified account.
964
1030
  #
965
1031
  # @option params [required, String] :account_id
@@ -1188,7 +1254,7 @@ module Aws::Account
1188
1254
  # same organization. The organization must have [all features
1189
1255
  # enabled][2], and the organization must have [trusted access][3]
1190
1256
  # enabled for the Account Management service, and optionally a
1191
- # [delegated admin][4] account assigned.
1257
+ # [delegated administrator][4] account assigned.
1192
1258
  #
1193
1259
  # <note markdown="1"> The management account can't specify its own `AccountId`; it must
1194
1260
  # call the operation in standalone context by not including the
@@ -1205,8 +1271,8 @@ module Aws::Account
1205
1271
  #
1206
1272
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
1207
1273
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
1208
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
1209
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
1274
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
1275
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
1210
1276
  #
1211
1277
  # @option params [required, String] :account_name
1212
1278
  # The name of the account.
@@ -1233,19 +1299,20 @@ module Aws::Account
1233
1299
  # Services account.
1234
1300
  #
1235
1301
  # For complete details about how to use the alternate contact
1236
- # operations, see [Access or updating the alternate contacts][1].
1302
+ # operations, see [Update the alternate contacts for your Amazon Web
1303
+ # Services account][1].
1237
1304
  #
1238
1305
  # <note markdown="1"> Before you can update the alternate contact information for an Amazon
1239
1306
  # Web Services account that is managed by Organizations, you must first
1240
1307
  # enable integration between Amazon Web Services Account Management and
1241
- # Organizations. For more information, see [Enabling trusted access for
1308
+ # Organizations. For more information, see [Enable trusted access for
1242
1309
  # Amazon Web Services Account Management][2].
1243
1310
  #
1244
1311
  # </note>
1245
1312
  #
1246
1313
  #
1247
1314
  #
1248
- # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
1315
+ # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-alternate.html
1249
1316
  # [2]: https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html
1250
1317
  #
1251
1318
  # @option params [String] :account_id
@@ -1261,7 +1328,7 @@ module Aws::Account
1261
1328
  # same organization. The organization must have [all features
1262
1329
  # enabled][2], and the organization must have [trusted access][3]
1263
1330
  # enabled for the Account Management service, and optionally a
1264
- # [delegated admin][4] account assigned.
1331
+ # [delegated administrator][4] account assigned.
1265
1332
  #
1266
1333
  # <note markdown="1"> The management account can't specify its own `AccountId`; it must
1267
1334
  # call the operation in standalone context by not including the
@@ -1278,8 +1345,8 @@ module Aws::Account
1278
1345
  #
1279
1346
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
1280
1347
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
1281
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
1282
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
1348
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
1349
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
1283
1350
  #
1284
1351
  # @option params [required, String] :alternate_contact_type
1285
1352
  # Specifies which alternate contact you want to create or update.
@@ -1322,11 +1389,12 @@ module Aws::Account
1322
1389
  # account.
1323
1390
  #
1324
1391
  # For complete details about how to use the primary contact operations,
1325
- # see [Update the primary and alternate contact information][1].
1392
+ # see [Update the primary contact for your Amazon Web Services
1393
+ # account][1].
1326
1394
  #
1327
1395
  #
1328
1396
  #
1329
- # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
1397
+ # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-primary.html
1330
1398
  #
1331
1399
  # @option params [String] :account_id
1332
1400
  # Specifies the 12-digit account ID number of the Amazon Web Services
@@ -1338,8 +1406,8 @@ module Aws::Account
1338
1406
  # specified account ID must be a member account in the same
1339
1407
  # organization. The organization must have [all features enabled][2],
1340
1408
  # and the organization must have [trusted access][3] enabled for the
1341
- # Account Management service, and optionally a [delegated admin][4]
1342
- # account assigned.
1409
+ # Account Management service, and optionally a [delegated
1410
+ # administrator][4] account assigned.
1343
1411
  #
1344
1412
  # <note markdown="1"> The management account can't specify its own `AccountId`. It must
1345
1413
  # call the operation in standalone context by not including the
@@ -1356,7 +1424,7 @@ module Aws::Account
1356
1424
  #
1357
1425
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
1358
1426
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
1359
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
1427
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
1360
1428
  # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
1361
1429
  #
1362
1430
  # @option params [required, Types::ContactInformation] :contact_information
@@ -1469,7 +1537,7 @@ module Aws::Account
1469
1537
  tracer: tracer
1470
1538
  )
1471
1539
  context[:gem_name] = 'aws-sdk-account'
1472
- context[:gem_version] = '1.51.0'
1540
+ context[:gem_version] = '1.52.0'
1473
1541
  Seahorse::Client::Request.new(handlers, context)
1474
1542
  end
1475
1543
 
@@ -23,6 +23,7 @@ module Aws::Account
23
23
  AddressLine = Shapes::StringShape.new(name: 'AddressLine')
24
24
  AlternateContact = Shapes::StructureShape.new(name: 'AlternateContact')
25
25
  AlternateContactType = Shapes::StringShape.new(name: 'AlternateContactType')
26
+ AwsAccountState = Shapes::StringShape.new(name: 'AwsAccountState')
26
27
  City = Shapes::StringShape.new(name: 'City')
27
28
  CompanyName = Shapes::StringShape.new(name: 'CompanyName')
28
29
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
@@ -41,6 +42,8 @@ module Aws::Account
41
42
  GetAlternateContactResponse = Shapes::StructureShape.new(name: 'GetAlternateContactResponse')
42
43
  GetContactInformationRequest = Shapes::StructureShape.new(name: 'GetContactInformationRequest')
43
44
  GetContactInformationResponse = Shapes::StructureShape.new(name: 'GetContactInformationResponse')
45
+ GetGovCloudAccountInformationRequest = Shapes::StructureShape.new(name: 'GetGovCloudAccountInformationRequest')
46
+ GetGovCloudAccountInformationResponse = Shapes::StructureShape.new(name: 'GetGovCloudAccountInformationResponse')
44
47
  GetPrimaryEmailRequest = Shapes::StructureShape.new(name: 'GetPrimaryEmailRequest')
45
48
  GetPrimaryEmailResponse = Shapes::StructureShape.new(name: 'GetPrimaryEmailResponse')
46
49
  GetRegionOptStatusRequest = Shapes::StructureShape.new(name: 'GetRegionOptStatusRequest')
@@ -65,6 +68,7 @@ module Aws::Account
65
68
  RegionOptStatus = Shapes::StringShape.new(name: 'RegionOptStatus')
66
69
  RegionOptStatusList = Shapes::ListShape.new(name: 'RegionOptStatusList')
67
70
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
71
+ ResourceUnavailableException = Shapes::StructureShape.new(name: 'ResourceUnavailableException')
68
72
  SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
69
73
  StartPrimaryEmailUpdateRequest = Shapes::StructureShape.new(name: 'StartPrimaryEmailUpdateRequest')
70
74
  StartPrimaryEmailUpdateResponse = Shapes::StructureShape.new(name: 'StartPrimaryEmailUpdateResponse')
@@ -148,6 +152,13 @@ module Aws::Account
148
152
  GetContactInformationResponse.add_member(:contact_information, Shapes::ShapeRef.new(shape: ContactInformation, location_name: "ContactInformation"))
149
153
  GetContactInformationResponse.struct_class = Types::GetContactInformationResponse
150
154
 
155
+ GetGovCloudAccountInformationRequest.add_member(:standard_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "StandardAccountId"))
156
+ GetGovCloudAccountInformationRequest.struct_class = Types::GetGovCloudAccountInformationRequest
157
+
158
+ GetGovCloudAccountInformationResponse.add_member(:account_state, Shapes::ShapeRef.new(shape: AwsAccountState, required: true, location_name: "AccountState"))
159
+ GetGovCloudAccountInformationResponse.add_member(:gov_cloud_account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "GovCloudAccountId"))
160
+ GetGovCloudAccountInformationResponse.struct_class = Types::GetGovCloudAccountInformationResponse
161
+
151
162
  GetPrimaryEmailRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
152
163
  GetPrimaryEmailRequest.struct_class = Types::GetPrimaryEmailRequest
153
164
 
@@ -204,6 +215,10 @@ module Aws::Account
204
215
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
205
216
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
206
217
 
218
+ ResourceUnavailableException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
219
+ ResourceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
220
+ ResourceUnavailableException.struct_class = Types::ResourceUnavailableException
221
+
207
222
  StartPrimaryEmailUpdateRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
208
223
  StartPrimaryEmailUpdateRequest.add_member(:primary_email, Shapes::ShapeRef.new(shape: PrimaryEmailAddress, required: true, location_name: "PrimaryEmail"))
209
224
  StartPrimaryEmailUpdateRequest.struct_class = Types::StartPrimaryEmailUpdateRequest
@@ -337,6 +352,20 @@ module Aws::Account
337
352
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
338
353
  end)
339
354
 
355
+ api.add_operation(:get_gov_cloud_account_information, Seahorse::Model::Operation.new.tap do |o|
356
+ o.name = "GetGovCloudAccountInformation"
357
+ o.http_method = "POST"
358
+ o.http_request_uri = "/getGovCloudAccountInformation"
359
+ o.input = Shapes::ShapeRef.new(shape: GetGovCloudAccountInformationRequest)
360
+ o.output = Shapes::ShapeRef.new(shape: GetGovCloudAccountInformationResponse)
361
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
362
+ o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
363
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
364
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
365
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
366
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
367
+ end)
368
+
340
369
  api.add_operation(:get_primary_email, Seahorse::Model::Operation.new.tap do |o|
341
370
  o.name = "GetPrimaryEmail"
342
371
  o.http_method = "POST"
@@ -31,6 +31,7 @@ module Aws::Account
31
31
  # * {ConflictException}
32
32
  # * {InternalServerException}
33
33
  # * {ResourceNotFoundException}
34
+ # * {ResourceUnavailableException}
34
35
  # * {TooManyRequestsException}
35
36
  # * {ValidationException}
36
37
  #
@@ -124,6 +125,26 @@ module Aws::Account
124
125
  end
125
126
  end
126
127
 
128
+ class ResourceUnavailableException < ServiceError
129
+
130
+ # @param [Seahorse::Client::RequestContext] context
131
+ # @param [String] message
132
+ # @param [Aws::Account::Types::ResourceUnavailableException] data
133
+ def initialize(context, message, data = Aws::EmptyStructure.new)
134
+ super(context, message, data)
135
+ end
136
+
137
+ # @return [String]
138
+ def error_type
139
+ @data[:error_type]
140
+ end
141
+
142
+ # @return [String]
143
+ def message
144
+ @message || @data[:message]
145
+ end
146
+ end
147
+
127
148
  class TooManyRequestsException < ServiceError
128
149
 
129
150
  # @param [Seahorse::Client::RequestContext] context
@@ -240,7 +240,7 @@ module Aws::Account
240
240
  # the same organization. The organization must have [all features
241
241
  # enabled][2], and the organization must have [trusted access][3]
242
242
  # enabled for the Account Management service, and optionally a
243
- # [delegated admin][4] account assigned.
243
+ # [delegated administrator][4] account assigned.
244
244
  #
245
245
  # <note markdown="1"> The management account can't specify its own `AccountId`; it must
246
246
  # call the operation in standalone context by not including the
@@ -257,8 +257,8 @@ module Aws::Account
257
257
  #
258
258
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
259
259
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
260
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
261
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
260
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
261
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
262
262
  # @return [String]
263
263
  #
264
264
  # @!attribute [rw] alternate_contact_type
@@ -390,7 +390,7 @@ module Aws::Account
390
390
  # the same organization. The organization must have [all features
391
391
  # enabled][2], and the organization must have [trusted access][3]
392
392
  # enabled for the Account Management service, and optionally a
393
- # [delegated admin][4] account assigned.
393
+ # [delegated administrator][4] account assigned.
394
394
  #
395
395
  # <note markdown="1"> The management account can't specify its own `AccountId`; it must
396
396
  # call the operation in standalone context by not including the
@@ -407,8 +407,8 @@ module Aws::Account
407
407
  #
408
408
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
409
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
410
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
411
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
412
412
  # @return [String]
413
413
  #
414
414
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAccountInformationRequest AWS API Documentation
@@ -477,7 +477,7 @@ module Aws::Account
477
477
  # the same organization. The organization must have [all features
478
478
  # enabled][2], and the organization must have [trusted access][3]
479
479
  # enabled for the Account Management service, and optionally a
480
- # [delegated admin][4] account assigned.
480
+ # [delegated administrator][4] account assigned.
481
481
  #
482
482
  # <note markdown="1"> The management account can't specify its own `AccountId`; it must
483
483
  # call the operation in standalone context by not including the
@@ -494,8 +494,8 @@ module Aws::Account
494
494
  #
495
495
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
496
496
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
497
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
498
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
497
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
498
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
499
499
  # @return [String]
500
500
  #
501
501
  # @!attribute [rw] alternate_contact_type
@@ -577,6 +577,65 @@ module Aws::Account
577
577
  include Aws::Structure
578
578
  end
579
579
 
580
+ # @!attribute [rw] standard_account_id
581
+ # Specifies the 12 digit account ID number of the Amazon Web Services
582
+ # account that you want to access or modify with this operation.
583
+ #
584
+ # If you do not specify this parameter, it defaults to the Amazon Web
585
+ # Services account of the identity used to call the operation.
586
+ #
587
+ # To use this parameter, the caller must be an identity in the
588
+ # [organization's management account][1] or a delegated administrator
589
+ # account, and the specified account ID must be a member account in
590
+ # the same organization. The organization must have [all features
591
+ # enabled][2], and the organization must have [trusted access][3]
592
+ # enabled for the Account Management service, and optionally a
593
+ # [delegated administrator][4] account assigned.
594
+ #
595
+ # <note markdown="1"> The management account can't specify its own `AccountId`; it must
596
+ # call the operation in standalone context by not including the
597
+ # `AccountId` parameter.
598
+ #
599
+ # </note>
600
+ #
601
+ # To call this operation on an account that is not a member of an
602
+ # organization, then don't specify this parameter, and call the
603
+ # operation using an identity belonging to the account whose contacts
604
+ # you wish to retrieve or modify.
605
+ #
606
+ #
607
+ #
608
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
609
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
610
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
611
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
612
+ # @return [String]
613
+ #
614
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetGovCloudAccountInformationRequest AWS API Documentation
615
+ #
616
+ class GetGovCloudAccountInformationRequest < Struct.new(
617
+ :standard_account_id)
618
+ SENSITIVE = []
619
+ include Aws::Structure
620
+ end
621
+
622
+ # @!attribute [rw] account_state
623
+ # The account state of the linked GovCloud account.
624
+ # @return [String]
625
+ #
626
+ # @!attribute [rw] gov_cloud_account_id
627
+ # The 12-digit account ID number of the linked GovCloud account.
628
+ # @return [String]
629
+ #
630
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetGovCloudAccountInformationResponse AWS API Documentation
631
+ #
632
+ class GetGovCloudAccountInformationResponse < Struct.new(
633
+ :account_state,
634
+ :gov_cloud_account_id)
635
+ SENSITIVE = []
636
+ include Aws::Structure
637
+ end
638
+
580
639
  # @!attribute [rw] account_id
581
640
  # Specifies the 12-digit account ID number of the Amazon Web Services
582
641
  # account that you want to access or modify with this operation. To
@@ -820,7 +879,7 @@ module Aws::Account
820
879
  # the same organization. The organization must have [all features
821
880
  # enabled][2], and the organization must have [trusted access][3]
822
881
  # enabled for the Account Management service, and optionally a
823
- # [delegated admin][4] account assigned.
882
+ # [delegated administrator][4] account assigned.
824
883
  #
825
884
  # <note markdown="1"> The management account can't specify its own `AccountId`; it must
826
885
  # call the operation in standalone context by not including the
@@ -837,8 +896,8 @@ module Aws::Account
837
896
  #
838
897
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
839
898
  # [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
899
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
900
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
842
901
  # @return [String]
843
902
  #
844
903
  # @!attribute [rw] account_name
@@ -867,7 +926,7 @@ module Aws::Account
867
926
  # the same organization. The organization must have [all features
868
927
  # enabled][2], and the organization must have [trusted access][3]
869
928
  # enabled for the Account Management service, and optionally a
870
- # [delegated admin][4] account assigned.
929
+ # [delegated administrator][4] account assigned.
871
930
  #
872
931
  # <note markdown="1"> The management account can't specify its own `AccountId`; it must
873
932
  # call the operation in standalone context by not including the
@@ -884,8 +943,8 @@ module Aws::Account
884
943
  #
885
944
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
886
945
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
887
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
888
- # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
946
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
947
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
889
948
  # @return [String]
890
949
  #
891
950
  # @!attribute [rw] alternate_contact_type
@@ -932,7 +991,7 @@ module Aws::Account
932
991
  # same organization. The organization must have [all features
933
992
  # enabled][2], and the organization must have [trusted access][3]
934
993
  # enabled for the Account Management service, and optionally a
935
- # [delegated admin][4] account assigned.
994
+ # [delegated administrator][4] account assigned.
936
995
  #
937
996
  # <note markdown="1"> The management account can't specify its own `AccountId`. It must
938
997
  # call the operation in standalone context by not including the
@@ -949,7 +1008,7 @@ module Aws::Account
949
1008
  #
950
1009
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
951
1010
  # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
952
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
1011
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
953
1012
  # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
954
1013
  # @return [String]
955
1014
  #
@@ -1008,6 +1067,26 @@ module Aws::Account
1008
1067
  include Aws::Structure
1009
1068
  end
1010
1069
 
1070
+ # The operation failed because it specified a resource that is not
1071
+ # currently available.
1072
+ #
1073
+ # @!attribute [rw] error_type
1074
+ # The value populated to the `x-amzn-ErrorType` response header by API
1075
+ # Gateway.
1076
+ # @return [String]
1077
+ #
1078
+ # @!attribute [rw] message
1079
+ # @return [String]
1080
+ #
1081
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ResourceUnavailableException AWS API Documentation
1082
+ #
1083
+ class ResourceUnavailableException < Struct.new(
1084
+ :error_type,
1085
+ :message)
1086
+ SENSITIVE = []
1087
+ include Aws::Structure
1088
+ end
1089
+
1011
1090
  # @!attribute [rw] account_id
1012
1091
  # Specifies the 12-digit account ID number of the Amazon Web Services
1013
1092
  # account that you want to access or modify with this operation. To
@@ -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.51.0'
57
+ GEM_VERSION = '1.52.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -144,6 +144,17 @@ module Aws
144
144
  ) -> _GetContactInformationResponseSuccess
145
145
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetContactInformationResponseSuccess
146
146
 
147
+ interface _GetGovCloudAccountInformationResponseSuccess
148
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetGovCloudAccountInformationResponse]
149
+ def account_state: () -> ("PENDING_ACTIVATION" | "ACTIVE" | "SUSPENDED" | "CLOSED")
150
+ def gov_cloud_account_id: () -> ::String
151
+ end
152
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Account/Client.html#get_gov_cloud_account_information-instance_method
153
+ def get_gov_cloud_account_information: (
154
+ ?standard_account_id: ::String
155
+ ) -> _GetGovCloudAccountInformationResponseSuccess
156
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetGovCloudAccountInformationResponseSuccess
157
+
147
158
  interface _GetPrimaryEmailResponseSuccess
148
159
  include ::Seahorse::Client::_ResponseSuccess[Types::GetPrimaryEmailResponse]
149
160
  def primary_email: () -> ::String
data/sig/errors.rbs CHANGED
@@ -27,6 +27,10 @@ module Aws
27
27
  def error_type: () -> ::String
28
28
  def message: () -> ::String
29
29
  end
30
+ class ResourceUnavailableException < ::Aws::Errors::ServiceError
31
+ def error_type: () -> ::String
32
+ def message: () -> ::String
33
+ end
30
34
  class TooManyRequestsException < ::Aws::Errors::ServiceError
31
35
  def error_type: () -> ::String
32
36
  def message: () -> ::String
data/sig/types.rbs CHANGED
@@ -108,6 +108,17 @@ module Aws::Account
108
108
  SENSITIVE: []
109
109
  end
110
110
 
111
+ class GetGovCloudAccountInformationRequest
112
+ attr_accessor standard_account_id: ::String
113
+ SENSITIVE: []
114
+ end
115
+
116
+ class GetGovCloudAccountInformationResponse
117
+ attr_accessor account_state: ("PENDING_ACTIVATION" | "ACTIVE" | "SUSPENDED" | "CLOSED")
118
+ attr_accessor gov_cloud_account_id: ::String
119
+ SENSITIVE: []
120
+ end
121
+
111
122
  class GetPrimaryEmailRequest
112
123
  attr_accessor account_id: ::String
113
124
  SENSITIVE: []
@@ -184,6 +195,12 @@ module Aws::Account
184
195
  SENSITIVE: []
185
196
  end
186
197
 
198
+ class ResourceUnavailableException
199
+ attr_accessor error_type: ::String
200
+ attr_accessor message: ::String
201
+ SENSITIVE: []
202
+ end
203
+
187
204
  class StartPrimaryEmailUpdateRequest
188
205
  attr_accessor account_id: ::String
189
206
  attr_accessor primary_email: ::String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-account
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.51.0
4
+ version: 1.52.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services