aws-sdk-account 1.24.0 → 1.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-account/client.rb +184 -7
- data/lib/aws-sdk-account/client_api.rb +71 -0
- data/lib/aws-sdk-account/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-account/endpoints.rb +42 -0
- data/lib/aws-sdk-account/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-account/types.rb +179 -14
- data/lib/aws-sdk-account.rb +2 -2
- data/sig/client.rbs +33 -0
- data/sig/types.rbs +33 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 831d2a240d24a468764bd176311533a285eec52a2060768f150c77ea32528385
|
4
|
+
data.tar.gz: dbf6fa9b502fc6fb6a0c4ea24f286f8f127b066a1280a8b8ce85249437419750
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90171994d8c19f0de82d7db7245e34afa7001a51a6004f3355c75d31b68bfd4bfdeca15c35cafd07b55f129c97c94cb33c87dcf98d40887aa7471d573ae2db6d
|
7
|
+
data.tar.gz: 74e8d94056af678bf662574c1cf0bec330642ef4a465638fe6894a06a6c56c778de27a1a2a7a1ae20004e2975d11b24f3ed694ffc2074aba29b7638be90b171a
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.25.0 (2024-06-06)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds 3 new APIs (AcceptPrimaryEmailUpdate, GetPrimaryEmail, and StartPrimaryEmailUpdate) used to centrally manage the root user email address of member accounts within an AWS organization.
|
8
|
+
|
4
9
|
1.24.0 (2024-06-05)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.25.0
|
@@ -413,6 +413,70 @@ module Aws::Account
|
|
413
413
|
|
414
414
|
# @!group API Operations
|
415
415
|
|
416
|
+
# Accepts the request that originated from StartPrimaryEmailUpdate to
|
417
|
+
# update the primary email address (also known as the root user email
|
418
|
+
# address) for the specified account.
|
419
|
+
#
|
420
|
+
# @option params [required, String] :account_id
|
421
|
+
# Specifies the 12-digit account ID number of the Amazon Web Services
|
422
|
+
# account that you want to access or modify with this operation. To use
|
423
|
+
# this parameter, the caller must be an identity in the [organization's
|
424
|
+
# management account][1] or a delegated administrator account. The
|
425
|
+
# specified account ID must be a member account in the same
|
426
|
+
# organization. The organization must have [all features enabled][2],
|
427
|
+
# and the organization must have [trusted access][3] enabled for the
|
428
|
+
# Account Management service, and optionally a [delegated admin][4]
|
429
|
+
# account assigned.
|
430
|
+
#
|
431
|
+
# This operation can only be called from the management account or the
|
432
|
+
# delegated administrator account of an organization for a member
|
433
|
+
# account.
|
434
|
+
#
|
435
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`.
|
436
|
+
#
|
437
|
+
# </note>
|
438
|
+
#
|
439
|
+
#
|
440
|
+
#
|
441
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
442
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
443
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
|
444
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
|
445
|
+
#
|
446
|
+
# @option params [required, String] :otp
|
447
|
+
# The OTP code sent to the `PrimaryEmail` specified on the
|
448
|
+
# `StartPrimaryEmailUpdate` API call.
|
449
|
+
#
|
450
|
+
# @option params [required, String] :primary_email
|
451
|
+
# The new primary email address for use with the specified account. This
|
452
|
+
# must match the `PrimaryEmail` from the `StartPrimaryEmailUpdate` API
|
453
|
+
# call.
|
454
|
+
#
|
455
|
+
# @return [Types::AcceptPrimaryEmailUpdateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
456
|
+
#
|
457
|
+
# * {Types::AcceptPrimaryEmailUpdateResponse#status #status} => String
|
458
|
+
#
|
459
|
+
# @example Request syntax with placeholder values
|
460
|
+
#
|
461
|
+
# resp = client.accept_primary_email_update({
|
462
|
+
# account_id: "AccountId", # required
|
463
|
+
# otp: "Otp", # required
|
464
|
+
# primary_email: "PrimaryEmailAddress", # required
|
465
|
+
# })
|
466
|
+
#
|
467
|
+
# @example Response structure
|
468
|
+
#
|
469
|
+
# resp.status #=> String, one of "PENDING", "ACCEPTED"
|
470
|
+
#
|
471
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/AcceptPrimaryEmailUpdate AWS API Documentation
|
472
|
+
#
|
473
|
+
# @overload accept_primary_email_update(params = {})
|
474
|
+
# @param [Hash] params ({})
|
475
|
+
def accept_primary_email_update(params = {}, options = {})
|
476
|
+
req = build_request(:accept_primary_email_update, params)
|
477
|
+
req.send_request(options)
|
478
|
+
end
|
479
|
+
|
416
480
|
# Deletes the specified alternate contact from an Amazon Web Services
|
417
481
|
# account.
|
418
482
|
#
|
@@ -488,6 +552,11 @@ module Aws::Account
|
|
488
552
|
|
489
553
|
# Disables (opts-out) a particular Region for an account.
|
490
554
|
#
|
555
|
+
# <note markdown="1"> The act of disabling a Region will remove all IAM access to any
|
556
|
+
# resources that reside in that Region.
|
557
|
+
#
|
558
|
+
# </note>
|
559
|
+
#
|
491
560
|
# @option params [String] :account_id
|
492
561
|
# Specifies the 12-digit account ID number of the Amazon Web Services
|
493
562
|
# account that you want to access or modify with this operation. If you
|
@@ -495,7 +564,7 @@ module Aws::Account
|
|
495
564
|
# account of the identity used to call the operation. To use this
|
496
565
|
# parameter, the caller must be an identity in the [organization's
|
497
566
|
# management account][1] or a delegated administrator account. The
|
498
|
-
# specified account ID must
|
567
|
+
# specified account ID must be a member account in the same
|
499
568
|
# organization. The organization must have [all features enabled][2],
|
500
569
|
# and the organization must have [trusted access][3] enabled for the
|
501
570
|
# Account Management service, and optionally a [delegated admin][4]
|
@@ -554,7 +623,7 @@ module Aws::Account
|
|
554
623
|
# account of the identity used to call the operation. To use this
|
555
624
|
# parameter, the caller must be an identity in the [organization's
|
556
625
|
# management account][1] or a delegated administrator account. The
|
557
|
-
# specified account ID must
|
626
|
+
# specified account ID must be a member account in the same
|
558
627
|
# organization. The organization must have [all features enabled][2],
|
559
628
|
# and the organization must have [trusted access][3] enabled for the
|
560
629
|
# Account Management service, and optionally a [delegated admin][4]
|
@@ -705,7 +774,7 @@ module Aws::Account
|
|
705
774
|
# account of the identity used to call the operation. To use this
|
706
775
|
# parameter, the caller must be an identity in the [organization's
|
707
776
|
# management account][1] or a delegated administrator account. The
|
708
|
-
# specified account ID must
|
777
|
+
# specified account ID must be a member account in the same
|
709
778
|
# organization. The organization must have [all features enabled][2],
|
710
779
|
# and the organization must have [trusted access][3] enabled for the
|
711
780
|
# Account Management service, and optionally a [delegated admin][4]
|
@@ -763,6 +832,57 @@ module Aws::Account
|
|
763
832
|
req.send_request(options)
|
764
833
|
end
|
765
834
|
|
835
|
+
# Retrieves the primary email address for the specified account.
|
836
|
+
#
|
837
|
+
# @option params [required, String] :account_id
|
838
|
+
# Specifies the 12-digit account ID number of the Amazon Web Services
|
839
|
+
# account that you want to access or modify with this operation. To use
|
840
|
+
# this parameter, the caller must be an identity in the [organization's
|
841
|
+
# management account][1] or a delegated administrator account. The
|
842
|
+
# specified account ID must be a member account in the same
|
843
|
+
# organization. The organization must have [all features enabled][2],
|
844
|
+
# and the organization must have [trusted access][3] enabled for the
|
845
|
+
# Account Management service, and optionally a [delegated admin][4]
|
846
|
+
# account assigned.
|
847
|
+
#
|
848
|
+
# This operation can only be called from the management account or the
|
849
|
+
# delegated administrator account of an organization for a member
|
850
|
+
# account.
|
851
|
+
#
|
852
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`.
|
853
|
+
#
|
854
|
+
# </note>
|
855
|
+
#
|
856
|
+
#
|
857
|
+
#
|
858
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
859
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
860
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
|
861
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
|
862
|
+
#
|
863
|
+
# @return [Types::GetPrimaryEmailResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
864
|
+
#
|
865
|
+
# * {Types::GetPrimaryEmailResponse#primary_email #primary_email} => String
|
866
|
+
#
|
867
|
+
# @example Request syntax with placeholder values
|
868
|
+
#
|
869
|
+
# resp = client.get_primary_email({
|
870
|
+
# account_id: "AccountId", # required
|
871
|
+
# })
|
872
|
+
#
|
873
|
+
# @example Response structure
|
874
|
+
#
|
875
|
+
# resp.primary_email #=> String
|
876
|
+
#
|
877
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetPrimaryEmail AWS API Documentation
|
878
|
+
#
|
879
|
+
# @overload get_primary_email(params = {})
|
880
|
+
# @param [Hash] params ({})
|
881
|
+
def get_primary_email(params = {}, options = {})
|
882
|
+
req = build_request(:get_primary_email, params)
|
883
|
+
req.send_request(options)
|
884
|
+
end
|
885
|
+
|
766
886
|
# Retrieves the opt-in status of a particular Region.
|
767
887
|
#
|
768
888
|
# @option params [String] :account_id
|
@@ -772,7 +892,7 @@ module Aws::Account
|
|
772
892
|
# account of the identity used to call the operation. To use this
|
773
893
|
# parameter, the caller must be an identity in the [organization's
|
774
894
|
# management account][1] or a delegated administrator account. The
|
775
|
-
# specified account ID must
|
895
|
+
# specified account ID must be a member account in the same
|
776
896
|
# organization. The organization must have [all features enabled][2],
|
777
897
|
# and the organization must have [trusted access][3] enabled for the
|
778
898
|
# Account Management service, and optionally a [delegated admin][4]
|
@@ -838,7 +958,7 @@ module Aws::Account
|
|
838
958
|
# account of the identity used to call the operation. To use this
|
839
959
|
# parameter, the caller must be an identity in the [organization's
|
840
960
|
# management account][1] or a delegated administrator account. The
|
841
|
-
# specified account ID must
|
961
|
+
# specified account ID must be a member account in the same
|
842
962
|
# organization. The organization must have [all features enabled][2],
|
843
963
|
# and the organization must have [trusted access][3] enabled for the
|
844
964
|
# Account Management service, and optionally a [delegated admin][4]
|
@@ -1030,7 +1150,7 @@ module Aws::Account
|
|
1030
1150
|
# account of the identity used to call the operation. To use this
|
1031
1151
|
# parameter, the caller must be an identity in the [organization's
|
1032
1152
|
# management account][1] or a delegated administrator account. The
|
1033
|
-
# specified account ID must
|
1153
|
+
# specified account ID must be a member account in the same
|
1034
1154
|
# organization. The organization must have [all features enabled][2],
|
1035
1155
|
# and the organization must have [trusted access][3] enabled for the
|
1036
1156
|
# Account Management service, and optionally a [delegated admin][4]
|
@@ -1089,6 +1209,63 @@ module Aws::Account
|
|
1089
1209
|
req.send_request(options)
|
1090
1210
|
end
|
1091
1211
|
|
1212
|
+
# Starts the process to update the primary email address for the
|
1213
|
+
# specified account.
|
1214
|
+
#
|
1215
|
+
# @option params [required, String] :account_id
|
1216
|
+
# Specifies the 12-digit account ID number of the Amazon Web Services
|
1217
|
+
# account that you want to access or modify with this operation. To use
|
1218
|
+
# this parameter, the caller must be an identity in the [organization's
|
1219
|
+
# management account][1] or a delegated administrator account. The
|
1220
|
+
# specified account ID must be a member account in the same
|
1221
|
+
# organization. The organization must have [all features enabled][2],
|
1222
|
+
# and the organization must have [trusted access][3] enabled for the
|
1223
|
+
# Account Management service, and optionally a [delegated admin][4]
|
1224
|
+
# account assigned.
|
1225
|
+
#
|
1226
|
+
# This operation can only be called from the management account or the
|
1227
|
+
# delegated administrator account of an organization for a member
|
1228
|
+
# account.
|
1229
|
+
#
|
1230
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`.
|
1231
|
+
#
|
1232
|
+
# </note>
|
1233
|
+
#
|
1234
|
+
#
|
1235
|
+
#
|
1236
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
1237
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
1238
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
|
1239
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
|
1240
|
+
#
|
1241
|
+
# @option params [required, String] :primary_email
|
1242
|
+
# The new primary email address (also known as the root user email
|
1243
|
+
# address) to use in the specified account.
|
1244
|
+
#
|
1245
|
+
# @return [Types::StartPrimaryEmailUpdateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1246
|
+
#
|
1247
|
+
# * {Types::StartPrimaryEmailUpdateResponse#status #status} => String
|
1248
|
+
#
|
1249
|
+
# @example Request syntax with placeholder values
|
1250
|
+
#
|
1251
|
+
# resp = client.start_primary_email_update({
|
1252
|
+
# account_id: "AccountId", # required
|
1253
|
+
# primary_email: "PrimaryEmailAddress", # required
|
1254
|
+
# })
|
1255
|
+
#
|
1256
|
+
# @example Response structure
|
1257
|
+
#
|
1258
|
+
# resp.status #=> String, one of "PENDING", "ACCEPTED"
|
1259
|
+
#
|
1260
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/StartPrimaryEmailUpdate AWS API Documentation
|
1261
|
+
#
|
1262
|
+
# @overload start_primary_email_update(params = {})
|
1263
|
+
# @param [Hash] params ({})
|
1264
|
+
def start_primary_email_update(params = {}, options = {})
|
1265
|
+
req = build_request(:start_primary_email_update, params)
|
1266
|
+
req.send_request(options)
|
1267
|
+
end
|
1268
|
+
|
1092
1269
|
# @!endgroup
|
1093
1270
|
|
1094
1271
|
# @param params ({})
|
@@ -1102,7 +1279,7 @@ module Aws::Account
|
|
1102
1279
|
params: params,
|
1103
1280
|
config: config)
|
1104
1281
|
context[:gem_name] = 'aws-sdk-account'
|
1105
|
-
context[:gem_version] = '1.
|
1282
|
+
context[:gem_version] = '1.25.0'
|
1106
1283
|
Seahorse::Client::Request.new(handlers, context)
|
1107
1284
|
end
|
1108
1285
|
|
@@ -13,6 +13,8 @@ module Aws::Account
|
|
13
13
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
|
+
AcceptPrimaryEmailUpdateRequest = Shapes::StructureShape.new(name: 'AcceptPrimaryEmailUpdateRequest')
|
17
|
+
AcceptPrimaryEmailUpdateResponse = Shapes::StructureShape.new(name: 'AcceptPrimaryEmailUpdateResponse')
|
16
18
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
19
|
AccountId = Shapes::StringShape.new(name: 'AccountId')
|
18
20
|
AddressLine = Shapes::StringShape.new(name: 'AddressLine')
|
@@ -34,6 +36,8 @@ module Aws::Account
|
|
34
36
|
GetAlternateContactResponse = Shapes::StructureShape.new(name: 'GetAlternateContactResponse')
|
35
37
|
GetContactInformationRequest = Shapes::StructureShape.new(name: 'GetContactInformationRequest')
|
36
38
|
GetContactInformationResponse = Shapes::StructureShape.new(name: 'GetContactInformationResponse')
|
39
|
+
GetPrimaryEmailRequest = Shapes::StructureShape.new(name: 'GetPrimaryEmailRequest')
|
40
|
+
GetPrimaryEmailResponse = Shapes::StructureShape.new(name: 'GetPrimaryEmailResponse')
|
37
41
|
GetRegionOptStatusRequest = Shapes::StructureShape.new(name: 'GetRegionOptStatusRequest')
|
38
42
|
GetRegionOptStatusResponse = Shapes::StructureShape.new(name: 'GetRegionOptStatusResponse')
|
39
43
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
@@ -42,8 +46,11 @@ module Aws::Account
|
|
42
46
|
ListRegionsRequestNextTokenString = Shapes::StringShape.new(name: 'ListRegionsRequestNextTokenString')
|
43
47
|
ListRegionsResponse = Shapes::StructureShape.new(name: 'ListRegionsResponse')
|
44
48
|
Name = Shapes::StringShape.new(name: 'Name')
|
49
|
+
Otp = Shapes::StringShape.new(name: 'Otp')
|
45
50
|
PhoneNumber = Shapes::StringShape.new(name: 'PhoneNumber')
|
46
51
|
PostalCode = Shapes::StringShape.new(name: 'PostalCode')
|
52
|
+
PrimaryEmailAddress = Shapes::StringShape.new(name: 'PrimaryEmailAddress')
|
53
|
+
PrimaryEmailUpdateStatus = Shapes::StringShape.new(name: 'PrimaryEmailUpdateStatus')
|
47
54
|
PutAlternateContactRequest = Shapes::StructureShape.new(name: 'PutAlternateContactRequest')
|
48
55
|
PutContactInformationRequest = Shapes::StructureShape.new(name: 'PutContactInformationRequest')
|
49
56
|
Region = Shapes::StructureShape.new(name: 'Region')
|
@@ -53,6 +60,8 @@ module Aws::Account
|
|
53
60
|
RegionOptStatusList = Shapes::ListShape.new(name: 'RegionOptStatusList')
|
54
61
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
55
62
|
SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
|
63
|
+
StartPrimaryEmailUpdateRequest = Shapes::StructureShape.new(name: 'StartPrimaryEmailUpdateRequest')
|
64
|
+
StartPrimaryEmailUpdateResponse = Shapes::StructureShape.new(name: 'StartPrimaryEmailUpdateResponse')
|
56
65
|
StateOrRegion = Shapes::StringShape.new(name: 'StateOrRegion')
|
57
66
|
String = Shapes::StringShape.new(name: 'String')
|
58
67
|
Title = Shapes::StringShape.new(name: 'Title')
|
@@ -63,6 +72,14 @@ module Aws::Account
|
|
63
72
|
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
64
73
|
WebsiteUrl = Shapes::StringShape.new(name: 'WebsiteUrl')
|
65
74
|
|
75
|
+
AcceptPrimaryEmailUpdateRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
76
|
+
AcceptPrimaryEmailUpdateRequest.add_member(:otp, Shapes::ShapeRef.new(shape: Otp, required: true, location_name: "Otp"))
|
77
|
+
AcceptPrimaryEmailUpdateRequest.add_member(:primary_email, Shapes::ShapeRef.new(shape: PrimaryEmailAddress, required: true, location_name: "PrimaryEmail"))
|
78
|
+
AcceptPrimaryEmailUpdateRequest.struct_class = Types::AcceptPrimaryEmailUpdateRequest
|
79
|
+
|
80
|
+
AcceptPrimaryEmailUpdateResponse.add_member(:status, Shapes::ShapeRef.new(shape: PrimaryEmailUpdateStatus, location_name: "Status"))
|
81
|
+
AcceptPrimaryEmailUpdateResponse.struct_class = Types::AcceptPrimaryEmailUpdateResponse
|
82
|
+
|
66
83
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
67
84
|
AccessDeniedException.struct_class = Types::AccessDeniedException
|
68
85
|
|
@@ -115,6 +132,12 @@ module Aws::Account
|
|
115
132
|
GetContactInformationResponse.add_member(:contact_information, Shapes::ShapeRef.new(shape: ContactInformation, location_name: "ContactInformation"))
|
116
133
|
GetContactInformationResponse.struct_class = Types::GetContactInformationResponse
|
117
134
|
|
135
|
+
GetPrimaryEmailRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
136
|
+
GetPrimaryEmailRequest.struct_class = Types::GetPrimaryEmailRequest
|
137
|
+
|
138
|
+
GetPrimaryEmailResponse.add_member(:primary_email, Shapes::ShapeRef.new(shape: PrimaryEmailAddress, location_name: "PrimaryEmail"))
|
139
|
+
GetPrimaryEmailResponse.struct_class = Types::GetPrimaryEmailResponse
|
140
|
+
|
118
141
|
GetRegionOptStatusRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
119
142
|
GetRegionOptStatusRequest.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, required: true, location_name: "RegionName"))
|
120
143
|
GetRegionOptStatusRequest.struct_class = Types::GetRegionOptStatusRequest
|
@@ -159,6 +182,13 @@ module Aws::Account
|
|
159
182
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
160
183
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
161
184
|
|
185
|
+
StartPrimaryEmailUpdateRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
186
|
+
StartPrimaryEmailUpdateRequest.add_member(:primary_email, Shapes::ShapeRef.new(shape: PrimaryEmailAddress, required: true, location_name: "PrimaryEmail"))
|
187
|
+
StartPrimaryEmailUpdateRequest.struct_class = Types::StartPrimaryEmailUpdateRequest
|
188
|
+
|
189
|
+
StartPrimaryEmailUpdateResponse.add_member(:status, Shapes::ShapeRef.new(shape: PrimaryEmailUpdateStatus, location_name: "Status"))
|
190
|
+
StartPrimaryEmailUpdateResponse.struct_class = Types::StartPrimaryEmailUpdateResponse
|
191
|
+
|
162
192
|
TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
163
193
|
TooManyRequestsException.struct_class = Types::TooManyRequestsException
|
164
194
|
|
@@ -191,6 +221,20 @@ module Aws::Account
|
|
191
221
|
"uid" => "account-2021-02-01",
|
192
222
|
}
|
193
223
|
|
224
|
+
api.add_operation(:accept_primary_email_update, Seahorse::Model::Operation.new.tap do |o|
|
225
|
+
o.name = "AcceptPrimaryEmailUpdate"
|
226
|
+
o.http_method = "POST"
|
227
|
+
o.http_request_uri = "/acceptPrimaryEmailUpdate"
|
228
|
+
o.input = Shapes::ShapeRef.new(shape: AcceptPrimaryEmailUpdateRequest)
|
229
|
+
o.output = Shapes::ShapeRef.new(shape: AcceptPrimaryEmailUpdateResponse)
|
230
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
231
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
232
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
233
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
234
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
235
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
236
|
+
end)
|
237
|
+
|
194
238
|
api.add_operation(:delete_alternate_contact, Seahorse::Model::Operation.new.tap do |o|
|
195
239
|
o.name = "DeleteAlternateContact"
|
196
240
|
o.http_method = "POST"
|
@@ -256,6 +300,19 @@ module Aws::Account
|
|
256
300
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
257
301
|
end)
|
258
302
|
|
303
|
+
api.add_operation(:get_primary_email, Seahorse::Model::Operation.new.tap do |o|
|
304
|
+
o.name = "GetPrimaryEmail"
|
305
|
+
o.http_method = "POST"
|
306
|
+
o.http_request_uri = "/getPrimaryEmail"
|
307
|
+
o.input = Shapes::ShapeRef.new(shape: GetPrimaryEmailRequest)
|
308
|
+
o.output = Shapes::ShapeRef.new(shape: GetPrimaryEmailResponse)
|
309
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
310
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
311
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
312
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
313
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
314
|
+
end)
|
315
|
+
|
259
316
|
api.add_operation(:get_region_opt_status, Seahorse::Model::Operation.new.tap do |o|
|
260
317
|
o.name = "GetRegionOptStatus"
|
261
318
|
o.http_method = "POST"
|
@@ -309,6 +366,20 @@ module Aws::Account
|
|
309
366
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
310
367
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
311
368
|
end)
|
369
|
+
|
370
|
+
api.add_operation(:start_primary_email_update, Seahorse::Model::Operation.new.tap do |o|
|
371
|
+
o.name = "StartPrimaryEmailUpdate"
|
372
|
+
o.http_method = "POST"
|
373
|
+
o.http_request_uri = "/startPrimaryEmailUpdate"
|
374
|
+
o.input = Shapes::ShapeRef.new(shape: StartPrimaryEmailUpdateRequest)
|
375
|
+
o.output = Shapes::ShapeRef.new(shape: StartPrimaryEmailUpdateResponse)
|
376
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
377
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
378
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
379
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
380
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
381
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
382
|
+
end)
|
312
383
|
end
|
313
384
|
|
314
385
|
end
|
@@ -38,7 +38,7 @@ module Aws::Account
|
|
38
38
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
39
39
|
end
|
40
40
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
41
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
42
42
|
return Aws::Endpoints::Endpoint.new(url: "https://account-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
43
43
|
end
|
44
44
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -12,6 +12,20 @@ module Aws::Account
|
|
12
12
|
# @api private
|
13
13
|
module Endpoints
|
14
14
|
|
15
|
+
class AcceptPrimaryEmailUpdate
|
16
|
+
def self.build(context)
|
17
|
+
unless context.config.regional_endpoint
|
18
|
+
endpoint = context.config.endpoint.to_s
|
19
|
+
end
|
20
|
+
Aws::Account::EndpointParameters.new(
|
21
|
+
region: context.config.region,
|
22
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
23
|
+
use_fips: context.config.use_fips_endpoint,
|
24
|
+
endpoint: endpoint,
|
25
|
+
)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
15
29
|
class DeleteAlternateContact
|
16
30
|
def self.build(context)
|
17
31
|
unless context.config.regional_endpoint
|
@@ -82,6 +96,20 @@ module Aws::Account
|
|
82
96
|
end
|
83
97
|
end
|
84
98
|
|
99
|
+
class GetPrimaryEmail
|
100
|
+
def self.build(context)
|
101
|
+
unless context.config.regional_endpoint
|
102
|
+
endpoint = context.config.endpoint.to_s
|
103
|
+
end
|
104
|
+
Aws::Account::EndpointParameters.new(
|
105
|
+
region: context.config.region,
|
106
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
107
|
+
use_fips: context.config.use_fips_endpoint,
|
108
|
+
endpoint: endpoint,
|
109
|
+
)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
85
113
|
class GetRegionOptStatus
|
86
114
|
def self.build(context)
|
87
115
|
unless context.config.regional_endpoint
|
@@ -138,5 +166,19 @@ module Aws::Account
|
|
138
166
|
end
|
139
167
|
end
|
140
168
|
|
169
|
+
class StartPrimaryEmailUpdate
|
170
|
+
def self.build(context)
|
171
|
+
unless context.config.regional_endpoint
|
172
|
+
endpoint = context.config.endpoint.to_s
|
173
|
+
end
|
174
|
+
Aws::Account::EndpointParameters.new(
|
175
|
+
region: context.config.region,
|
176
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
177
|
+
use_fips: context.config.use_fips_endpoint,
|
178
|
+
endpoint: endpoint,
|
179
|
+
)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
141
183
|
end
|
142
184
|
end
|
@@ -58,6 +58,8 @@ module Aws::Account
|
|
58
58
|
|
59
59
|
def parameters_for_operation(context)
|
60
60
|
case context.operation_name
|
61
|
+
when :accept_primary_email_update
|
62
|
+
Aws::Account::Endpoints::AcceptPrimaryEmailUpdate.build(context)
|
61
63
|
when :delete_alternate_contact
|
62
64
|
Aws::Account::Endpoints::DeleteAlternateContact.build(context)
|
63
65
|
when :disable_region
|
@@ -68,6 +70,8 @@ module Aws::Account
|
|
68
70
|
Aws::Account::Endpoints::GetAlternateContact.build(context)
|
69
71
|
when :get_contact_information
|
70
72
|
Aws::Account::Endpoints::GetContactInformation.build(context)
|
73
|
+
when :get_primary_email
|
74
|
+
Aws::Account::Endpoints::GetPrimaryEmail.build(context)
|
71
75
|
when :get_region_opt_status
|
72
76
|
Aws::Account::Endpoints::GetRegionOptStatus.build(context)
|
73
77
|
when :list_regions
|
@@ -76,6 +80,8 @@ module Aws::Account
|
|
76
80
|
Aws::Account::Endpoints::PutAlternateContact.build(context)
|
77
81
|
when :put_contact_information
|
78
82
|
Aws::Account::Endpoints::PutContactInformation.build(context)
|
83
|
+
when :start_primary_email_update
|
84
|
+
Aws::Account::Endpoints::StartPrimaryEmailUpdate.build(context)
|
79
85
|
end
|
80
86
|
end
|
81
87
|
end
|
@@ -10,6 +10,66 @@
|
|
10
10
|
module Aws::Account
|
11
11
|
module Types
|
12
12
|
|
13
|
+
# @!attribute [rw] account_id
|
14
|
+
# Specifies the 12-digit account ID number of the Amazon Web Services
|
15
|
+
# account that you want to access or modify with this operation. To
|
16
|
+
# use this parameter, the caller must be an identity in the
|
17
|
+
# [organization's management account][1] or a delegated administrator
|
18
|
+
# account. The specified account ID must be a member account in the
|
19
|
+
# same organization. The organization must have [all features
|
20
|
+
# enabled][2], and the organization must have [trusted access][3]
|
21
|
+
# enabled for the Account Management service, and optionally a
|
22
|
+
# [delegated admin][4] account assigned.
|
23
|
+
#
|
24
|
+
# This operation can only be called from the management account or the
|
25
|
+
# delegated administrator account of an organization for a member
|
26
|
+
# account.
|
27
|
+
#
|
28
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`.
|
29
|
+
#
|
30
|
+
# </note>
|
31
|
+
#
|
32
|
+
#
|
33
|
+
#
|
34
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
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
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @!attribute [rw] otp
|
41
|
+
# The OTP code sent to the `PrimaryEmail` specified on the
|
42
|
+
# `StartPrimaryEmailUpdate` API call.
|
43
|
+
# @return [String]
|
44
|
+
#
|
45
|
+
# @!attribute [rw] primary_email
|
46
|
+
# The new primary email address for use with the specified account.
|
47
|
+
# This must match the `PrimaryEmail` from the
|
48
|
+
# `StartPrimaryEmailUpdate` API call.
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/AcceptPrimaryEmailUpdateRequest AWS API Documentation
|
52
|
+
#
|
53
|
+
class AcceptPrimaryEmailUpdateRequest < Struct.new(
|
54
|
+
:account_id,
|
55
|
+
:otp,
|
56
|
+
:primary_email)
|
57
|
+
SENSITIVE = [:otp, :primary_email]
|
58
|
+
include Aws::Structure
|
59
|
+
end
|
60
|
+
|
61
|
+
# @!attribute [rw] status
|
62
|
+
# Retrieves the status of the accepted primary email update request.
|
63
|
+
# @return [String]
|
64
|
+
#
|
65
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/AcceptPrimaryEmailUpdateResponse AWS API Documentation
|
66
|
+
#
|
67
|
+
class AcceptPrimaryEmailUpdateResponse < Struct.new(
|
68
|
+
:status)
|
69
|
+
SENSITIVE = []
|
70
|
+
include Aws::Structure
|
71
|
+
end
|
72
|
+
|
13
73
|
# The operation failed because the calling identity doesn't have the
|
14
74
|
# minimum required permissions.
|
15
75
|
#
|
@@ -122,8 +182,12 @@ module Aws::Account
|
|
122
182
|
# @return [String]
|
123
183
|
#
|
124
184
|
# @!attribute [rw] state_or_region
|
125
|
-
# The state or region of the primary contact address.
|
126
|
-
#
|
185
|
+
# The state or region of the primary contact address. If the mailing
|
186
|
+
# address is within the United States (US), the value in this field
|
187
|
+
# can be either a two character state code (for example, `NJ`) or the
|
188
|
+
# full state name (for example, `New Jersey`). This field is required
|
189
|
+
# in the following countries: `US`, `CA`, `GB`, `DE`, `JP`, `IN`, and
|
190
|
+
# `BR`.
|
127
191
|
# @return [String]
|
128
192
|
#
|
129
193
|
# @!attribute [rw] website_url
|
@@ -204,8 +268,8 @@ module Aws::Account
|
|
204
268
|
# Services account of the identity used to call the operation. To use
|
205
269
|
# this parameter, the caller must be an identity in the
|
206
270
|
# [organization's management account][1] or a delegated administrator
|
207
|
-
# account. The specified account ID must
|
208
|
-
#
|
271
|
+
# account. The specified account ID must be a member account in the
|
272
|
+
# same organization. The organization must have [all features
|
209
273
|
# enabled][2], and the organization must have [trusted access][3]
|
210
274
|
# enabled for the Account Management service, and optionally a
|
211
275
|
# [delegated admin][4] account assigned.
|
@@ -255,8 +319,8 @@ module Aws::Account
|
|
255
319
|
# Services account of the identity used to call the operation. To use
|
256
320
|
# this parameter, the caller must be an identity in the
|
257
321
|
# [organization's management account][1] or a delegated administrator
|
258
|
-
# account. The specified account ID must
|
259
|
-
#
|
322
|
+
# account. The specified account ID must be a member account in the
|
323
|
+
# same organization. The organization must have [all features
|
260
324
|
# enabled][2], and the organization must have [trusted access][3]
|
261
325
|
# enabled for the Account Management service, and optionally a
|
262
326
|
# [delegated admin][4] account assigned.
|
@@ -367,8 +431,8 @@ module Aws::Account
|
|
367
431
|
# Services account of the identity used to call the operation. To use
|
368
432
|
# this parameter, the caller must be an identity in the
|
369
433
|
# [organization's management account][1] or a delegated administrator
|
370
|
-
# account. The specified account ID must
|
371
|
-
#
|
434
|
+
# account. The specified account ID must be a member account in the
|
435
|
+
# same organization. The organization must have [all features
|
372
436
|
# enabled][2], and the organization must have [trusted access][3]
|
373
437
|
# enabled for the Account Management service, and optionally a
|
374
438
|
# [delegated admin][4] account assigned.
|
@@ -413,6 +477,54 @@ module Aws::Account
|
|
413
477
|
include Aws::Structure
|
414
478
|
end
|
415
479
|
|
480
|
+
# @!attribute [rw] account_id
|
481
|
+
# Specifies the 12-digit account ID number of the Amazon Web Services
|
482
|
+
# account that you want to access or modify with this operation. To
|
483
|
+
# use this parameter, the caller must be an identity in the
|
484
|
+
# [organization's management account][1] or a delegated administrator
|
485
|
+
# account. The specified account ID must be a member account in the
|
486
|
+
# same organization. The organization must have [all features
|
487
|
+
# enabled][2], and the organization must have [trusted access][3]
|
488
|
+
# enabled for the Account Management service, and optionally a
|
489
|
+
# [delegated admin][4] account assigned.
|
490
|
+
#
|
491
|
+
# This operation can only be called from the management account or the
|
492
|
+
# delegated administrator account of an organization for a member
|
493
|
+
# account.
|
494
|
+
#
|
495
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`.
|
496
|
+
#
|
497
|
+
# </note>
|
498
|
+
#
|
499
|
+
#
|
500
|
+
#
|
501
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
502
|
+
# [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
|
505
|
+
# @return [String]
|
506
|
+
#
|
507
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetPrimaryEmailRequest AWS API Documentation
|
508
|
+
#
|
509
|
+
class GetPrimaryEmailRequest < Struct.new(
|
510
|
+
:account_id)
|
511
|
+
SENSITIVE = []
|
512
|
+
include Aws::Structure
|
513
|
+
end
|
514
|
+
|
515
|
+
# @!attribute [rw] primary_email
|
516
|
+
# Retrieves the primary email address associated with the specified
|
517
|
+
# account.
|
518
|
+
# @return [String]
|
519
|
+
#
|
520
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetPrimaryEmailResponse AWS API Documentation
|
521
|
+
#
|
522
|
+
class GetPrimaryEmailResponse < Struct.new(
|
523
|
+
:primary_email)
|
524
|
+
SENSITIVE = [:primary_email]
|
525
|
+
include Aws::Structure
|
526
|
+
end
|
527
|
+
|
416
528
|
# @!attribute [rw] account_id
|
417
529
|
# Specifies the 12-digit account ID number of the Amazon Web Services
|
418
530
|
# account that you want to access or modify with this operation. If
|
@@ -420,8 +532,8 @@ module Aws::Account
|
|
420
532
|
# Services account of the identity used to call the operation. To use
|
421
533
|
# this parameter, the caller must be an identity in the
|
422
534
|
# [organization's management account][1] or a delegated administrator
|
423
|
-
# account. The specified account ID must
|
424
|
-
#
|
535
|
+
# account. The specified account ID must be a member account in the
|
536
|
+
# same organization. The organization must have [all features
|
425
537
|
# enabled][2], and the organization must have [trusted access][3]
|
426
538
|
# enabled for the Account Management service, and optionally a
|
427
539
|
# [delegated admin][4] account assigned.
|
@@ -499,8 +611,8 @@ module Aws::Account
|
|
499
611
|
# Services account of the identity used to call the operation. To use
|
500
612
|
# this parameter, the caller must be an identity in the
|
501
613
|
# [organization's management account][1] or a delegated administrator
|
502
|
-
# account. The specified account ID must
|
503
|
-
#
|
614
|
+
# account. The specified account ID must be a member account in the
|
615
|
+
# same organization. The organization must have [all features
|
504
616
|
# enabled][2], and the organization must have [trusted access][3]
|
505
617
|
# enabled for the Account Management service, and optionally a
|
506
618
|
# [delegated admin][4] account assigned.
|
@@ -663,8 +775,8 @@ module Aws::Account
|
|
663
775
|
# Services account of the identity used to call the operation. To use
|
664
776
|
# this parameter, the caller must be an identity in the
|
665
777
|
# [organization's management account][1] or a delegated administrator
|
666
|
-
# account. The specified account ID must
|
667
|
-
#
|
778
|
+
# account. The specified account ID must be a member account in the
|
779
|
+
# same organization. The organization must have [all features
|
668
780
|
# enabled][2], and the organization must have [trusted access][3]
|
669
781
|
# enabled for the Account Management service, and optionally a
|
670
782
|
# [delegated admin][4] account assigned.
|
@@ -737,6 +849,59 @@ module Aws::Account
|
|
737
849
|
include Aws::Structure
|
738
850
|
end
|
739
851
|
|
852
|
+
# @!attribute [rw] account_id
|
853
|
+
# Specifies the 12-digit account ID number of the Amazon Web Services
|
854
|
+
# account that you want to access or modify with this operation. To
|
855
|
+
# use this parameter, the caller must be an identity in the
|
856
|
+
# [organization's management account][1] or a delegated administrator
|
857
|
+
# account. The specified account ID must be a member account in the
|
858
|
+
# same organization. The organization must have [all features
|
859
|
+
# enabled][2], and the organization must have [trusted access][3]
|
860
|
+
# enabled for the Account Management service, and optionally a
|
861
|
+
# [delegated admin][4] account assigned.
|
862
|
+
#
|
863
|
+
# This operation can only be called from the management account or the
|
864
|
+
# delegated administrator account of an organization for a member
|
865
|
+
# account.
|
866
|
+
#
|
867
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`.
|
868
|
+
#
|
869
|
+
# </note>
|
870
|
+
#
|
871
|
+
#
|
872
|
+
#
|
873
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
874
|
+
# [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
|
877
|
+
# @return [String]
|
878
|
+
#
|
879
|
+
# @!attribute [rw] primary_email
|
880
|
+
# The new primary email address (also known as the root user email
|
881
|
+
# address) to use in the specified account.
|
882
|
+
# @return [String]
|
883
|
+
#
|
884
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/StartPrimaryEmailUpdateRequest AWS API Documentation
|
885
|
+
#
|
886
|
+
class StartPrimaryEmailUpdateRequest < Struct.new(
|
887
|
+
:account_id,
|
888
|
+
:primary_email)
|
889
|
+
SENSITIVE = [:primary_email]
|
890
|
+
include Aws::Structure
|
891
|
+
end
|
892
|
+
|
893
|
+
# @!attribute [rw] status
|
894
|
+
# The status of the primary email update request.
|
895
|
+
# @return [String]
|
896
|
+
#
|
897
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/StartPrimaryEmailUpdateResponse AWS API Documentation
|
898
|
+
#
|
899
|
+
class StartPrimaryEmailUpdateResponse < Struct.new(
|
900
|
+
:status)
|
901
|
+
SENSITIVE = []
|
902
|
+
include Aws::Structure
|
903
|
+
end
|
904
|
+
|
740
905
|
# The operation failed because it was called too frequently and exceeded
|
741
906
|
# a throttle limit.
|
742
907
|
#
|
data/lib/aws-sdk-account.rb
CHANGED
@@ -32,7 +32,7 @@ require_relative 'aws-sdk-account/customizations'
|
|
32
32
|
# structure.
|
33
33
|
#
|
34
34
|
# account = Aws::Account::Client.new
|
35
|
-
# resp = account.
|
35
|
+
# resp = account.accept_primary_email_update(params)
|
36
36
|
#
|
37
37
|
# See {Client} for more information.
|
38
38
|
#
|
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-account/customizations'
|
|
52
52
|
# @!group service
|
53
53
|
module Aws::Account
|
54
54
|
|
55
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.25.0'
|
56
56
|
|
57
57
|
end
|
data/sig/client.rbs
CHANGED
@@ -72,6 +72,18 @@ module Aws
|
|
72
72
|
| (?Hash[Symbol, untyped]) -> instance
|
73
73
|
|
74
74
|
|
75
|
+
interface _AcceptPrimaryEmailUpdateResponseSuccess
|
76
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::AcceptPrimaryEmailUpdateResponse]
|
77
|
+
def status: () -> ("PENDING" | "ACCEPTED")
|
78
|
+
end
|
79
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Account/Client.html#accept_primary_email_update-instance_method
|
80
|
+
def accept_primary_email_update: (
|
81
|
+
account_id: ::String,
|
82
|
+
otp: ::String,
|
83
|
+
primary_email: ::String
|
84
|
+
) -> _AcceptPrimaryEmailUpdateResponseSuccess
|
85
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AcceptPrimaryEmailUpdateResponseSuccess
|
86
|
+
|
75
87
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Account/Client.html#delete_alternate_contact-instance_method
|
76
88
|
def delete_alternate_contact: (
|
77
89
|
?account_id: ::String,
|
@@ -114,6 +126,16 @@ module Aws
|
|
114
126
|
) -> _GetContactInformationResponseSuccess
|
115
127
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetContactInformationResponseSuccess
|
116
128
|
|
129
|
+
interface _GetPrimaryEmailResponseSuccess
|
130
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetPrimaryEmailResponse]
|
131
|
+
def primary_email: () -> ::String
|
132
|
+
end
|
133
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Account/Client.html#get_primary_email-instance_method
|
134
|
+
def get_primary_email: (
|
135
|
+
account_id: ::String
|
136
|
+
) -> _GetPrimaryEmailResponseSuccess
|
137
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPrimaryEmailResponseSuccess
|
138
|
+
|
117
139
|
interface _GetRegionOptStatusResponseSuccess
|
118
140
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetRegionOptStatusResponse]
|
119
141
|
def region_name: () -> ::String
|
@@ -170,6 +192,17 @@ module Aws
|
|
170
192
|
}
|
171
193
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
172
194
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
195
|
+
|
196
|
+
interface _StartPrimaryEmailUpdateResponseSuccess
|
197
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::StartPrimaryEmailUpdateResponse]
|
198
|
+
def status: () -> ("PENDING" | "ACCEPTED")
|
199
|
+
end
|
200
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Account/Client.html#start_primary_email_update-instance_method
|
201
|
+
def start_primary_email_update: (
|
202
|
+
account_id: ::String,
|
203
|
+
primary_email: ::String
|
204
|
+
) -> _StartPrimaryEmailUpdateResponseSuccess
|
205
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartPrimaryEmailUpdateResponseSuccess
|
173
206
|
end
|
174
207
|
end
|
175
208
|
end
|
data/sig/types.rbs
CHANGED
@@ -8,6 +8,18 @@
|
|
8
8
|
module Aws::Account
|
9
9
|
module Types
|
10
10
|
|
11
|
+
class AcceptPrimaryEmailUpdateRequest
|
12
|
+
attr_accessor account_id: ::String
|
13
|
+
attr_accessor otp: ::String
|
14
|
+
attr_accessor primary_email: ::String
|
15
|
+
SENSITIVE: [:otp, :primary_email]
|
16
|
+
end
|
17
|
+
|
18
|
+
class AcceptPrimaryEmailUpdateResponse
|
19
|
+
attr_accessor status: ("PENDING" | "ACCEPTED")
|
20
|
+
SENSITIVE: []
|
21
|
+
end
|
22
|
+
|
11
23
|
class AccessDeniedException
|
12
24
|
attr_accessor message: ::String
|
13
25
|
SENSITIVE: []
|
@@ -82,6 +94,16 @@ module Aws::Account
|
|
82
94
|
SENSITIVE: []
|
83
95
|
end
|
84
96
|
|
97
|
+
class GetPrimaryEmailRequest
|
98
|
+
attr_accessor account_id: ::String
|
99
|
+
SENSITIVE: []
|
100
|
+
end
|
101
|
+
|
102
|
+
class GetPrimaryEmailResponse
|
103
|
+
attr_accessor primary_email: ::String
|
104
|
+
SENSITIVE: [:primary_email]
|
105
|
+
end
|
106
|
+
|
85
107
|
class GetRegionOptStatusRequest
|
86
108
|
attr_accessor account_id: ::String
|
87
109
|
attr_accessor region_name: ::String
|
@@ -140,6 +162,17 @@ module Aws::Account
|
|
140
162
|
SENSITIVE: []
|
141
163
|
end
|
142
164
|
|
165
|
+
class StartPrimaryEmailUpdateRequest
|
166
|
+
attr_accessor account_id: ::String
|
167
|
+
attr_accessor primary_email: ::String
|
168
|
+
SENSITIVE: [:primary_email]
|
169
|
+
end
|
170
|
+
|
171
|
+
class StartPrimaryEmailUpdateResponse
|
172
|
+
attr_accessor status: ("PENDING" | "ACCEPTED")
|
173
|
+
SENSITIVE: []
|
174
|
+
end
|
175
|
+
|
143
176
|
class TooManyRequestsException
|
144
177
|
attr_accessor message: ::String
|
145
178
|
SENSITIVE: []
|
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.
|
4
|
+
version: 1.25.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: 2024-06-
|
11
|
+
date: 2024-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|