aws-sdk-account 1.56.0 → 1.57.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: 39ec6c2ddb7eea8512d3ea8ee346a806fa311559d32944b7098308d11a5ec24f
4
- data.tar.gz: 2921f0380cfad573bc76b5480f1bf2169f9ed3fbd13318ea9d1d2724acb0d40f
3
+ metadata.gz: 022ebe571a7451eae7a6076475d5667de6d3cbd043df48d864e27d5087004f4e
4
+ data.tar.gz: 8b12705019e4e43adb60457c5979f9e90c80a0ebca72fc351b8ba92e9a6a74e8
5
5
  SHA512:
6
- metadata.gz: 47e3a5267db1314eb8b41a522e5da5c33b3aedb0772da572cfcdf4084547c471a2ae68f223d62454b440dabaeed05a23ccfde667e34d97b038b61e31f1afc6dd
7
- data.tar.gz: 1045c5b402953d33a93b96c87633b86d853165883619d8f6302595acc1dc9a8ade8c88b8ad51bbeb9ddf9bf87a4e1fef409df491398c5df5f5e9463881d3cd13
6
+ metadata.gz: cd4dd02f1cfd5bba1ec4628a03df22d0d75a5a31aa3ae4c7b0219c6899399f2af07b94a47724173e0141395558bbf42436d2605ffd6b3da933ce9839a766d901
7
+ data.tar.gz: a8158df8372b765bbeb4b624ac6f7aa0e459d82a950bd5cc27a1c56b20cbbbd2be50fab917921d7c4922aef415b07c9fe1e794f56857e6eea9b410525c37f551
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.57.0 (2026-04-29)
5
+ ------------------
6
+
7
+ * Feature - Adds AccountState in the response for the GetAccountInformation API. Each state represents a specific phase in the account lifecycle. Use this information to manage account access, automate workflows, or trigger actions based on account state changes.
8
+
4
9
  1.56.0 (2026-03-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.56.0
1
+ 1.57.0
@@ -506,15 +506,15 @@ module Aws::Account
506
506
  # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
507
507
  # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
508
508
  #
509
- # @option params [required, String] :otp
510
- # The OTP code sent to the `PrimaryEmail` specified on the
511
- # `StartPrimaryEmailUpdate` API call.
512
- #
513
509
  # @option params [required, String] :primary_email
514
510
  # The new primary email address for use with the specified account. This
515
511
  # must match the `PrimaryEmail` from the `StartPrimaryEmailUpdate` API
516
512
  # call.
517
513
  #
514
+ # @option params [required, String] :otp
515
+ # The OTP code sent to the `PrimaryEmail` specified on the
516
+ # `StartPrimaryEmailUpdate` API call.
517
+ #
518
518
  # @return [Types::AcceptPrimaryEmailUpdateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
519
519
  #
520
520
  # * {Types::AcceptPrimaryEmailUpdateResponse#status #status} => String
@@ -523,8 +523,8 @@ module Aws::Account
523
523
  #
524
524
  # resp = client.accept_primary_email_update({
525
525
  # account_id: "AccountId", # required
526
- # otp: "Otp", # required
527
526
  # primary_email: "PrimaryEmailAddress", # required
527
+ # otp: "Otp", # required
528
528
  # })
529
529
  #
530
530
  # @example Response structure
@@ -560,6 +560,9 @@ module Aws::Account
560
560
  # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-alternate.html
561
561
  # [2]: https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html
562
562
  #
563
+ # @option params [required, String] :alternate_contact_type
564
+ # Specifies which of the alternate contacts to delete.
565
+ #
563
566
  # @option params [String] :account_id
564
567
  # Specifies the 12 digit account ID number of the Amazon Web Services
565
568
  # account that you want to access or modify with this operation.
@@ -593,16 +596,13 @@ module Aws::Account
593
596
  # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
594
597
  # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
595
598
  #
596
- # @option params [required, String] :alternate_contact_type
597
- # Specifies which of the alternate contacts to delete.
598
- #
599
599
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
600
600
  #
601
601
  # @example Request syntax with placeholder values
602
602
  #
603
603
  # resp = client.delete_alternate_contact({
604
- # account_id: "AccountId",
605
604
  # alternate_contact_type: "BILLING", # required, accepts BILLING, OPERATIONS, SECURITY
605
+ # account_id: "AccountId",
606
606
  # })
607
607
  #
608
608
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact AWS API Documentation
@@ -739,8 +739,8 @@ module Aws::Account
739
739
  end
740
740
 
741
741
  # Retrieves information about the specified account including its
742
- # account name, account ID, and account creation date and time. To use
743
- # this API, an IAM user or role must have the
742
+ # account name, account ID, account creation date and time, and account
743
+ # state. To use this API, an IAM user or role must have the
744
744
  # `account:GetAccountInformation` IAM permission.
745
745
  #
746
746
  # @option params [String] :account_id
@@ -778,9 +778,10 @@ module Aws::Account
778
778
  #
779
779
  # @return [Types::GetAccountInformationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
780
780
  #
781
- # * {Types::GetAccountInformationResponse#account_created_date #account_created_date} => Time
782
781
  # * {Types::GetAccountInformationResponse#account_id #account_id} => String
783
782
  # * {Types::GetAccountInformationResponse#account_name #account_name} => String
783
+ # * {Types::GetAccountInformationResponse#account_created_date #account_created_date} => Time
784
+ # * {Types::GetAccountInformationResponse#account_state #account_state} => String
784
785
  #
785
786
  # @example Request syntax with placeholder values
786
787
  #
@@ -790,9 +791,10 @@ module Aws::Account
790
791
  #
791
792
  # @example Response structure
792
793
  #
793
- # resp.account_created_date #=> Time
794
794
  # resp.account_id #=> String
795
795
  # resp.account_name #=> String
796
+ # resp.account_created_date #=> Time
797
+ # resp.account_state #=> String, one of "PENDING_ACTIVATION", "ACTIVE", "SUSPENDED", "CLOSED"
796
798
  #
797
799
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAccountInformation AWS API Documentation
798
800
  #
@@ -823,6 +825,9 @@ module Aws::Account
823
825
  # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-alternate.html
824
826
  # [2]: https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html
825
827
  #
828
+ # @option params [required, String] :alternate_contact_type
829
+ # Specifies which alternate contact you want to retrieve.
830
+ #
826
831
  # @option params [String] :account_id
827
832
  # Specifies the 12 digit account ID number of the Amazon Web Services
828
833
  # account that you want to access or modify with this operation.
@@ -856,9 +861,6 @@ module Aws::Account
856
861
  # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
857
862
  # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
858
863
  #
859
- # @option params [required, String] :alternate_contact_type
860
- # Specifies which alternate contact you want to retrieve.
861
- #
862
864
  # @return [Types::GetAlternateContactResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
863
865
  #
864
866
  # * {Types::GetAlternateContactResponse#alternate_contact #alternate_contact} => Types::AlternateContact
@@ -866,17 +868,17 @@ module Aws::Account
866
868
  # @example Request syntax with placeholder values
867
869
  #
868
870
  # resp = client.get_alternate_contact({
869
- # account_id: "AccountId",
870
871
  # alternate_contact_type: "BILLING", # required, accepts BILLING, OPERATIONS, SECURITY
872
+ # account_id: "AccountId",
871
873
  # })
872
874
  #
873
875
  # @example Response structure
874
876
  #
875
- # resp.alternate_contact.alternate_contact_type #=> String, one of "BILLING", "OPERATIONS", "SECURITY"
876
- # resp.alternate_contact.email_address #=> String
877
877
  # resp.alternate_contact.name #=> String
878
- # resp.alternate_contact.phone_number #=> String
879
878
  # resp.alternate_contact.title #=> String
879
+ # resp.alternate_contact.email_address #=> String
880
+ # resp.alternate_contact.phone_number #=> String
881
+ # resp.alternate_contact.alternate_contact_type #=> String, one of "BILLING", "OPERATIONS", "SECURITY"
880
882
  #
881
883
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact AWS API Documentation
882
884
  #
@@ -941,17 +943,17 @@ module Aws::Account
941
943
  #
942
944
  # @example Response structure
943
945
  #
946
+ # resp.contact_information.full_name #=> String
944
947
  # resp.contact_information.address_line_1 #=> String
945
948
  # resp.contact_information.address_line_2 #=> String
946
949
  # resp.contact_information.address_line_3 #=> String
947
950
  # resp.contact_information.city #=> String
948
- # resp.contact_information.company_name #=> String
949
- # resp.contact_information.country_code #=> String
951
+ # resp.contact_information.state_or_region #=> String
950
952
  # resp.contact_information.district_or_county #=> String
951
- # resp.contact_information.full_name #=> String
952
- # resp.contact_information.phone_number #=> String
953
953
  # resp.contact_information.postal_code #=> String
954
- # resp.contact_information.state_or_region #=> String
954
+ # resp.contact_information.country_code #=> String
955
+ # resp.contact_information.phone_number #=> String
956
+ # resp.contact_information.company_name #=> String
955
957
  # resp.contact_information.website_url #=> String
956
958
  #
957
959
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation AWS API Documentation
@@ -1003,8 +1005,8 @@ module Aws::Account
1003
1005
  #
1004
1006
  # @return [Types::GetGovCloudAccountInformationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1005
1007
  #
1006
- # * {Types::GetGovCloudAccountInformationResponse#account_state #account_state} => String
1007
1008
  # * {Types::GetGovCloudAccountInformationResponse#gov_cloud_account_id #gov_cloud_account_id} => String
1009
+ # * {Types::GetGovCloudAccountInformationResponse#account_state #account_state} => String
1008
1010
  #
1009
1011
  # @example Request syntax with placeholder values
1010
1012
  #
@@ -1014,8 +1016,8 @@ module Aws::Account
1014
1016
  #
1015
1017
  # @example Response structure
1016
1018
  #
1017
- # resp.account_state #=> String, one of "PENDING_ACTIVATION", "ACTIVE", "SUSPENDED", "CLOSED"
1018
1019
  # resp.gov_cloud_account_id #=> String
1020
+ # resp.account_state #=> String, one of "PENDING_ACTIVATION", "ACTIVE", "SUSPENDED", "CLOSED"
1019
1021
  #
1020
1022
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetGovCloudAccountInformation AWS API Documentation
1021
1023
  #
@@ -1241,6 +1243,9 @@ module Aws::Account
1241
1243
  # Updates the account name of the specified account. To use this API,
1242
1244
  # IAM principals must have the `account:PutAccountName` IAM permission.
1243
1245
  #
1246
+ # @option params [required, String] :account_name
1247
+ # The name of the account.
1248
+ #
1244
1249
  # @option params [String] :account_id
1245
1250
  # Specifies the 12 digit account ID number of the Amazon Web Services
1246
1251
  # account that you want to access or modify with this operation.
@@ -1274,16 +1279,13 @@ module Aws::Account
1274
1279
  # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
1275
1280
  # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
1276
1281
  #
1277
- # @option params [required, String] :account_name
1278
- # The name of the account.
1279
- #
1280
1282
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1281
1283
  #
1282
1284
  # @example Request syntax with placeholder values
1283
1285
  #
1284
1286
  # resp = client.put_account_name({
1285
- # account_id: "AccountId",
1286
1287
  # account_name: "AccountName", # required
1288
+ # account_id: "AccountId",
1287
1289
  # })
1288
1290
  #
1289
1291
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAccountName AWS API Documentation
@@ -1315,6 +1317,21 @@ module Aws::Account
1315
1317
  # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-alternate.html
1316
1318
  # [2]: https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html
1317
1319
  #
1320
+ # @option params [required, String] :name
1321
+ # Specifies a name for the alternate contact.
1322
+ #
1323
+ # @option params [required, String] :title
1324
+ # Specifies a title for the alternate contact.
1325
+ #
1326
+ # @option params [required, String] :email_address
1327
+ # Specifies an email address for the alternate contact.
1328
+ #
1329
+ # @option params [required, String] :phone_number
1330
+ # Specifies a phone number for the alternate contact.
1331
+ #
1332
+ # @option params [required, String] :alternate_contact_type
1333
+ # Specifies which alternate contact you want to create or update.
1334
+ #
1318
1335
  # @option params [String] :account_id
1319
1336
  # Specifies the 12 digit account ID number of the Amazon Web Services
1320
1337
  # account that you want to access or modify with this operation.
@@ -1348,32 +1365,17 @@ module Aws::Account
1348
1365
  # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
1349
1366
  # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
1350
1367
  #
1351
- # @option params [required, String] :alternate_contact_type
1352
- # Specifies which alternate contact you want to create or update.
1353
- #
1354
- # @option params [required, String] :email_address
1355
- # Specifies an email address for the alternate contact.
1356
- #
1357
- # @option params [required, String] :name
1358
- # Specifies a name for the alternate contact.
1359
- #
1360
- # @option params [required, String] :phone_number
1361
- # Specifies a phone number for the alternate contact.
1362
- #
1363
- # @option params [required, String] :title
1364
- # Specifies a title for the alternate contact.
1365
- #
1366
1368
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1367
1369
  #
1368
1370
  # @example Request syntax with placeholder values
1369
1371
  #
1370
1372
  # resp = client.put_alternate_contact({
1371
- # account_id: "AccountId",
1372
- # alternate_contact_type: "BILLING", # required, accepts BILLING, OPERATIONS, SECURITY
1373
- # email_address: "EmailAddress", # required
1374
1373
  # name: "Name", # required
1375
- # phone_number: "PhoneNumber", # required
1376
1374
  # title: "Title", # required
1375
+ # email_address: "EmailAddress", # required
1376
+ # phone_number: "PhoneNumber", # required
1377
+ # alternate_contact_type: "BILLING", # required, accepts BILLING, OPERATIONS, SECURITY
1378
+ # account_id: "AccountId",
1377
1379
  # })
1378
1380
  #
1379
1381
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact AWS API Documentation
@@ -1396,6 +1398,10 @@ module Aws::Account
1396
1398
  #
1397
1399
  # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-primary.html
1398
1400
  #
1401
+ # @option params [required, Types::ContactInformation] :contact_information
1402
+ # Contains the details of the primary contact information associated
1403
+ # with an Amazon Web Services account.
1404
+ #
1399
1405
  # @option params [String] :account_id
1400
1406
  # Specifies the 12-digit account ID number of the Amazon Web Services
1401
1407
  # account that you want to access or modify with this operation. If you
@@ -1427,30 +1433,26 @@ module Aws::Account
1427
1433
  # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
1428
1434
  # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
1429
1435
  #
1430
- # @option params [required, Types::ContactInformation] :contact_information
1431
- # Contains the details of the primary contact information associated
1432
- # with an Amazon Web Services account.
1433
- #
1434
1436
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1435
1437
  #
1436
1438
  # @example Request syntax with placeholder values
1437
1439
  #
1438
1440
  # resp = client.put_contact_information({
1439
- # account_id: "AccountId",
1440
1441
  # contact_information: { # required
1442
+ # full_name: "FullName", # required
1441
1443
  # address_line_1: "AddressLine", # required
1442
1444
  # address_line_2: "AddressLine",
1443
1445
  # address_line_3: "AddressLine",
1444
1446
  # city: "City", # required
1445
- # company_name: "CompanyName",
1446
- # country_code: "CountryCode", # required
1447
+ # state_or_region: "StateOrRegion",
1447
1448
  # district_or_county: "DistrictOrCounty",
1448
- # full_name: "FullName", # required
1449
- # phone_number: "ContactInformationPhoneNumber", # required
1450
1449
  # postal_code: "PostalCode", # required
1451
- # state_or_region: "StateOrRegion",
1450
+ # country_code: "CountryCode", # required
1451
+ # phone_number: "ContactInformationPhoneNumber", # required
1452
+ # company_name: "CompanyName",
1452
1453
  # website_url: "WebsiteUrl",
1453
1454
  # },
1455
+ # account_id: "AccountId",
1454
1456
  # })
1455
1457
  #
1456
1458
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation AWS API Documentation
@@ -1537,7 +1539,7 @@ module Aws::Account
1537
1539
  tracer: tracer
1538
1540
  )
1539
1541
  context[:gem_name] = 'aws-sdk-account'
1540
- context[:gem_version] = '1.56.0'
1542
+ context[:gem_version] = '1.57.0'
1541
1543
  Seahorse::Client::Request.new(handlers, context)
1542
1544
  end
1543
1545
 
@@ -20,6 +20,7 @@ module Aws::Account
20
20
  AccountCreatedDate = Shapes::TimestampShape.new(name: 'AccountCreatedDate', timestampFormat: "iso8601")
21
21
  AccountId = Shapes::StringShape.new(name: 'AccountId')
22
22
  AccountName = Shapes::StringShape.new(name: 'AccountName')
23
+ AccountState = Shapes::StringShape.new(name: 'AccountState')
23
24
  AddressLine = Shapes::StringShape.new(name: 'AddressLine')
24
25
  AlternateContact = Shapes::StructureShape.new(name: 'AlternateContact')
25
26
  AlternateContactType = Shapes::StringShape.new(name: 'AlternateContactType')
@@ -83,44 +84,44 @@ module Aws::Account
83
84
  WebsiteUrl = Shapes::StringShape.new(name: 'WebsiteUrl')
84
85
 
85
86
  AcceptPrimaryEmailUpdateRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
86
- AcceptPrimaryEmailUpdateRequest.add_member(:otp, Shapes::ShapeRef.new(shape: Otp, required: true, location_name: "Otp"))
87
87
  AcceptPrimaryEmailUpdateRequest.add_member(:primary_email, Shapes::ShapeRef.new(shape: PrimaryEmailAddress, required: true, location_name: "PrimaryEmail"))
88
+ AcceptPrimaryEmailUpdateRequest.add_member(:otp, Shapes::ShapeRef.new(shape: Otp, required: true, location_name: "Otp"))
88
89
  AcceptPrimaryEmailUpdateRequest.struct_class = Types::AcceptPrimaryEmailUpdateRequest
89
90
 
90
91
  AcceptPrimaryEmailUpdateResponse.add_member(:status, Shapes::ShapeRef.new(shape: PrimaryEmailUpdateStatus, location_name: "Status"))
91
92
  AcceptPrimaryEmailUpdateResponse.struct_class = Types::AcceptPrimaryEmailUpdateResponse
92
93
 
93
- AccessDeniedException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
94
94
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
95
+ AccessDeniedException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
95
96
  AccessDeniedException.struct_class = Types::AccessDeniedException
96
97
 
97
- AlternateContact.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, location_name: "AlternateContactType"))
98
- AlternateContact.add_member(:email_address, Shapes::ShapeRef.new(shape: EmailAddress, location_name: "EmailAddress"))
99
98
  AlternateContact.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
100
- AlternateContact.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumber, location_name: "PhoneNumber"))
101
99
  AlternateContact.add_member(:title, Shapes::ShapeRef.new(shape: Title, location_name: "Title"))
100
+ AlternateContact.add_member(:email_address, Shapes::ShapeRef.new(shape: EmailAddress, location_name: "EmailAddress"))
101
+ AlternateContact.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumber, location_name: "PhoneNumber"))
102
+ AlternateContact.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, location_name: "AlternateContactType"))
102
103
  AlternateContact.struct_class = Types::AlternateContact
103
104
 
104
- ConflictException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
105
105
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
106
+ ConflictException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
106
107
  ConflictException.struct_class = Types::ConflictException
107
108
 
109
+ ContactInformation.add_member(:full_name, Shapes::ShapeRef.new(shape: FullName, required: true, location_name: "FullName"))
108
110
  ContactInformation.add_member(:address_line_1, Shapes::ShapeRef.new(shape: AddressLine, required: true, location_name: "AddressLine1"))
109
111
  ContactInformation.add_member(:address_line_2, Shapes::ShapeRef.new(shape: AddressLine, location_name: "AddressLine2"))
110
112
  ContactInformation.add_member(:address_line_3, Shapes::ShapeRef.new(shape: AddressLine, location_name: "AddressLine3"))
111
113
  ContactInformation.add_member(:city, Shapes::ShapeRef.new(shape: City, required: true, location_name: "City"))
112
- ContactInformation.add_member(:company_name, Shapes::ShapeRef.new(shape: CompanyName, location_name: "CompanyName"))
113
- ContactInformation.add_member(:country_code, Shapes::ShapeRef.new(shape: CountryCode, required: true, location_name: "CountryCode"))
114
+ ContactInformation.add_member(:state_or_region, Shapes::ShapeRef.new(shape: StateOrRegion, location_name: "StateOrRegion"))
114
115
  ContactInformation.add_member(:district_or_county, Shapes::ShapeRef.new(shape: DistrictOrCounty, location_name: "DistrictOrCounty"))
115
- ContactInformation.add_member(:full_name, Shapes::ShapeRef.new(shape: FullName, required: true, location_name: "FullName"))
116
- ContactInformation.add_member(:phone_number, Shapes::ShapeRef.new(shape: ContactInformationPhoneNumber, required: true, location_name: "PhoneNumber"))
117
116
  ContactInformation.add_member(:postal_code, Shapes::ShapeRef.new(shape: PostalCode, required: true, location_name: "PostalCode"))
118
- ContactInformation.add_member(:state_or_region, Shapes::ShapeRef.new(shape: StateOrRegion, location_name: "StateOrRegion"))
117
+ ContactInformation.add_member(:country_code, Shapes::ShapeRef.new(shape: CountryCode, required: true, location_name: "CountryCode"))
118
+ ContactInformation.add_member(:phone_number, Shapes::ShapeRef.new(shape: ContactInformationPhoneNumber, required: true, location_name: "PhoneNumber"))
119
+ ContactInformation.add_member(:company_name, Shapes::ShapeRef.new(shape: CompanyName, location_name: "CompanyName"))
119
120
  ContactInformation.add_member(:website_url, Shapes::ShapeRef.new(shape: WebsiteUrl, location_name: "WebsiteUrl"))
120
121
  ContactInformation.struct_class = Types::ContactInformation
121
122
 
122
- DeleteAlternateContactRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
123
123
  DeleteAlternateContactRequest.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, required: true, location_name: "AlternateContactType"))
124
+ DeleteAlternateContactRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
124
125
  DeleteAlternateContactRequest.struct_class = Types::DeleteAlternateContactRequest
125
126
 
126
127
  DisableRegionRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
@@ -134,13 +135,14 @@ module Aws::Account
134
135
  GetAccountInformationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
135
136
  GetAccountInformationRequest.struct_class = Types::GetAccountInformationRequest
136
137
 
137
- GetAccountInformationResponse.add_member(:account_created_date, Shapes::ShapeRef.new(shape: AccountCreatedDate, location_name: "AccountCreatedDate"))
138
138
  GetAccountInformationResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
139
139
  GetAccountInformationResponse.add_member(:account_name, Shapes::ShapeRef.new(shape: AccountName, location_name: "AccountName"))
140
+ GetAccountInformationResponse.add_member(:account_created_date, Shapes::ShapeRef.new(shape: AccountCreatedDate, location_name: "AccountCreatedDate"))
141
+ GetAccountInformationResponse.add_member(:account_state, Shapes::ShapeRef.new(shape: AccountState, location_name: "AccountState"))
140
142
  GetAccountInformationResponse.struct_class = Types::GetAccountInformationResponse
141
143
 
142
- GetAlternateContactRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
143
144
  GetAlternateContactRequest.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, required: true, location_name: "AlternateContactType"))
145
+ GetAlternateContactRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
144
146
  GetAlternateContactRequest.struct_class = Types::GetAlternateContactRequest
145
147
 
146
148
  GetAlternateContactResponse.add_member(:alternate_contact, Shapes::ShapeRef.new(shape: AlternateContact, location_name: "AlternateContact"))
@@ -155,8 +157,8 @@ module Aws::Account
155
157
  GetGovCloudAccountInformationRequest.add_member(:standard_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "StandardAccountId"))
156
158
  GetGovCloudAccountInformationRequest.struct_class = Types::GetGovCloudAccountInformationRequest
157
159
 
158
- GetGovCloudAccountInformationResponse.add_member(:account_state, Shapes::ShapeRef.new(shape: AwsAccountState, required: true, location_name: "AccountState"))
159
160
  GetGovCloudAccountInformationResponse.add_member(:gov_cloud_account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "GovCloudAccountId"))
161
+ GetGovCloudAccountInformationResponse.add_member(:account_state, Shapes::ShapeRef.new(shape: AwsAccountState, required: true, location_name: "AccountState"))
160
162
  GetGovCloudAccountInformationResponse.struct_class = Types::GetGovCloudAccountInformationResponse
161
163
 
162
164
  GetPrimaryEmailRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
@@ -173,8 +175,8 @@ module Aws::Account
173
175
  GetRegionOptStatusResponse.add_member(:region_opt_status, Shapes::ShapeRef.new(shape: RegionOptStatus, location_name: "RegionOptStatus"))
174
176
  GetRegionOptStatusResponse.struct_class = Types::GetRegionOptStatusResponse
175
177
 
176
- InternalServerException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
177
178
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
179
+ InternalServerException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
178
180
  InternalServerException.struct_class = Types::InternalServerException
179
181
 
180
182
  ListRegionsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
@@ -187,20 +189,20 @@ module Aws::Account
187
189
  ListRegionsResponse.add_member(:regions, Shapes::ShapeRef.new(shape: RegionOptList, location_name: "Regions"))
188
190
  ListRegionsResponse.struct_class = Types::ListRegionsResponse
189
191
 
190
- PutAccountNameRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
191
192
  PutAccountNameRequest.add_member(:account_name, Shapes::ShapeRef.new(shape: AccountName, required: true, location_name: "AccountName"))
193
+ PutAccountNameRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
192
194
  PutAccountNameRequest.struct_class = Types::PutAccountNameRequest
193
195
 
194
- PutAlternateContactRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
195
- PutAlternateContactRequest.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, required: true, location_name: "AlternateContactType"))
196
- PutAlternateContactRequest.add_member(:email_address, Shapes::ShapeRef.new(shape: EmailAddress, required: true, location_name: "EmailAddress"))
197
196
  PutAlternateContactRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
198
- PutAlternateContactRequest.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumber, required: true, location_name: "PhoneNumber"))
199
197
  PutAlternateContactRequest.add_member(:title, Shapes::ShapeRef.new(shape: Title, required: true, location_name: "Title"))
198
+ PutAlternateContactRequest.add_member(:email_address, Shapes::ShapeRef.new(shape: EmailAddress, required: true, location_name: "EmailAddress"))
199
+ PutAlternateContactRequest.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumber, required: true, location_name: "PhoneNumber"))
200
+ PutAlternateContactRequest.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, required: true, location_name: "AlternateContactType"))
201
+ PutAlternateContactRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
200
202
  PutAlternateContactRequest.struct_class = Types::PutAlternateContactRequest
201
203
 
202
- PutContactInformationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
203
204
  PutContactInformationRequest.add_member(:contact_information, Shapes::ShapeRef.new(shape: ContactInformation, required: true, location_name: "ContactInformation"))
205
+ PutContactInformationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
204
206
  PutContactInformationRequest.struct_class = Types::PutContactInformationRequest
205
207
 
206
208
  Region.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, location_name: "RegionName"))
@@ -211,12 +213,12 @@ module Aws::Account
211
213
 
212
214
  RegionOptStatusList.member = Shapes::ShapeRef.new(shape: RegionOptStatus)
213
215
 
214
- ResourceNotFoundException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
215
216
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
217
+ ResourceNotFoundException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
216
218
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
217
219
 
218
- ResourceUnavailableException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
219
220
  ResourceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
221
+ ResourceUnavailableException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
220
222
  ResourceUnavailableException.struct_class = Types::ResourceUnavailableException
221
223
 
222
224
  StartPrimaryEmailUpdateRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
@@ -226,17 +228,17 @@ module Aws::Account
226
228
  StartPrimaryEmailUpdateResponse.add_member(:status, Shapes::ShapeRef.new(shape: PrimaryEmailUpdateStatus, location_name: "Status"))
227
229
  StartPrimaryEmailUpdateResponse.struct_class = Types::StartPrimaryEmailUpdateResponse
228
230
 
229
- TooManyRequestsException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
230
231
  TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
232
+ TooManyRequestsException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
231
233
  TooManyRequestsException.struct_class = Types::TooManyRequestsException
232
234
 
233
- ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
234
235
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: SensitiveString, required: true, location_name: "message"))
235
236
  ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, location_name: "reason"))
237
+ ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
236
238
  ValidationException.struct_class = Types::ValidationException
237
239
 
238
- ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: SensitiveString, required: true, location_name: "message"))
239
240
  ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
241
+ ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: SensitiveString, required: true, location_name: "message"))
240
242
  ValidationExceptionField.struct_class = Types::ValidationExceptionField
241
243
 
242
244
  ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
@@ -251,7 +253,6 @@ module Aws::Account
251
253
  "apiVersion" => "2021-02-01",
252
254
  "auth" => ["aws.auth#sigv4"],
253
255
  "endpointPrefix" => "account",
254
- "jsonVersion" => "1.1",
255
256
  "protocol" => "rest-json",
256
257
  "protocols" => ["rest-json"],
257
258
  "serviceFullName" => "AWS Account",
@@ -51,13 +51,13 @@ module Aws::Account
51
51
  end
52
52
 
53
53
  # @return [String]
54
- def error_type
55
- @data[:error_type]
54
+ def message
55
+ @message || @data[:message]
56
56
  end
57
57
 
58
58
  # @return [String]
59
- def message
60
- @message || @data[:message]
59
+ def error_type
60
+ @data[:error_type]
61
61
  end
62
62
  end
63
63
 
@@ -71,13 +71,13 @@ module Aws::Account
71
71
  end
72
72
 
73
73
  # @return [String]
74
- def error_type
75
- @data[:error_type]
74
+ def message
75
+ @message || @data[:message]
76
76
  end
77
77
 
78
78
  # @return [String]
79
- def message
80
- @message || @data[:message]
79
+ def error_type
80
+ @data[:error_type]
81
81
  end
82
82
  end
83
83
 
@@ -91,13 +91,13 @@ module Aws::Account
91
91
  end
92
92
 
93
93
  # @return [String]
94
- def error_type
95
- @data[:error_type]
94
+ def message
95
+ @message || @data[:message]
96
96
  end
97
97
 
98
98
  # @return [String]
99
- def message
100
- @message || @data[:message]
99
+ def error_type
100
+ @data[:error_type]
101
101
  end
102
102
 
103
103
  def retryable?
@@ -115,13 +115,13 @@ module Aws::Account
115
115
  end
116
116
 
117
117
  # @return [String]
118
- def error_type
119
- @data[:error_type]
118
+ def message
119
+ @message || @data[:message]
120
120
  end
121
121
 
122
122
  # @return [String]
123
- def message
124
- @message || @data[:message]
123
+ def error_type
124
+ @data[:error_type]
125
125
  end
126
126
  end
127
127
 
@@ -135,13 +135,13 @@ module Aws::Account
135
135
  end
136
136
 
137
137
  # @return [String]
138
- def error_type
139
- @data[:error_type]
138
+ def message
139
+ @message || @data[:message]
140
140
  end
141
141
 
142
142
  # @return [String]
143
- def message
144
- @message || @data[:message]
143
+ def error_type
144
+ @data[:error_type]
145
145
  end
146
146
  end
147
147
 
@@ -155,13 +155,13 @@ module Aws::Account
155
155
  end
156
156
 
157
157
  # @return [String]
158
- def error_type
159
- @data[:error_type]
158
+ def message
159
+ @message || @data[:message]
160
160
  end
161
161
 
162
162
  # @return [String]
163
- def message
164
- @message || @data[:message]
163
+ def error_type
164
+ @data[:error_type]
165
165
  end
166
166
 
167
167
  def retryable?
@@ -182,11 +182,6 @@ module Aws::Account
182
182
  super(context, message, data)
183
183
  end
184
184
 
185
- # @return [String]
186
- def field_list
187
- @data[:field_list]
188
- end
189
-
190
185
  # @return [String]
191
186
  def message
192
187
  @message || @data[:message]
@@ -196,6 +191,11 @@ module Aws::Account
196
191
  def reason
197
192
  @data[:reason]
198
193
  end
194
+
195
+ # @return [String]
196
+ def field_list
197
+ @data[:field_list]
198
+ end
199
199
  end
200
200
 
201
201
  end