aws-sdk-account 1.61.0 → 1.62.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: ffe9c02db3f305e956b2cca7c0401b0b7b510771e2d7c4351eae2d21bd4d9dbe
4
- data.tar.gz: 29a07e5ea9ef99dc65a84e9eabc679ebf0f2d0d85610463f3884f1882d6eb837
3
+ metadata.gz: 57688a481fc7708a09406a59264cba612fe477844414e995fcffc4b98dea7ce9
4
+ data.tar.gz: b5667d94fe68b0eaad56462e32d38a1db032312bc55241b597b3f61a3a4a677f
5
5
  SHA512:
6
- metadata.gz: 65e5875beeb035ed3662bfdc02ff70076069df7174c24cf3075d2d34a97cef1f7eebef3868a900271715f8096376846c8635bca2aec254880a328e7b49d4f749
7
- data.tar.gz: bb961b8bc608c08bfe0b34ab8d58c8f34beef8c6247d1d1c35f5b2837933fb1e44fb2b3a221f1493a669027769bfcaabdd49deb0c11d550b10556cbccff9240b
6
+ metadata.gz: 8363d542a67185d5f2a71642c962b429fd6c91f615714cf4c68c21660bd2a83a1b4b62a350fd0b4a7b691d7922ecd144b8f72b9afe157f01f0bddfa7983f8100
7
+ data.tar.gz: e228126cd10c398ea99a758b9b899fcedf37ea2f23f78ca74d2c5d2d38ccf094f1493313d21ec25869a009a4d5647a2dda4b93b04986539e2b6d77c04e071bc3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.62.0 (2026-07-27)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for the GetPrimaryEmailUpdateStatus API operation, which allows customers to retrieve the current status of a primary email address update request for an AWS account. The operation returns status information including whether the update is pending, completed, or failed.
8
+
4
9
  1.61.0 (2026-07-09)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.61.0
1
+ 1.62.0
@@ -527,7 +527,7 @@ module Aws::Account
527
527
  #
528
528
  # @example Response structure
529
529
  #
530
- # resp.status #=> String, one of "PENDING", "ACCEPTED"
530
+ # resp.status #=> String, one of "PENDING", "ACCEPTED", "COMPLETED", "FAILED"
531
531
  #
532
532
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/AcceptPrimaryEmailUpdate AWS API Documentation
533
533
  #
@@ -1077,6 +1077,66 @@ module Aws::Account
1077
1077
  req.send_request(options)
1078
1078
  end
1079
1079
 
1080
+ # Retrieves the status of the most recent primary email update for the
1081
+ # specified account. For complete details about how to update the
1082
+ # primary email address, see [Update the primary email address for your
1083
+ # AWS account][1].
1084
+ #
1085
+ #
1086
+ #
1087
+ # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-root-user-email.html
1088
+ #
1089
+ # @option params [String] :account_id
1090
+ # Specifies the 12-digit account ID number of the Amazon Web Services
1091
+ # account that you want to access or modify with this operation. To use
1092
+ # this parameter, the caller must be an identity in the [organization's
1093
+ # management account][1] or a delegated administrator account. The
1094
+ # specified account ID must be a member account in the same
1095
+ # organization. The organization must have [all features enabled][2],
1096
+ # and the organization must have [trusted access][3] enabled for the
1097
+ # Account Management service, and optionally a [delegated admin][4]
1098
+ # account assigned.
1099
+ #
1100
+ # This operation can only be called from the management account or the
1101
+ # delegated administrator account of an organization for a member
1102
+ # account.
1103
+ #
1104
+ # <note markdown="1"> The management account can't specify its own `AccountId`.
1105
+ #
1106
+ # </note>
1107
+ #
1108
+ #
1109
+ #
1110
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
1111
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
1112
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
1113
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
1114
+ #
1115
+ # @return [Types::GetPrimaryEmailUpdateStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1116
+ #
1117
+ # * {Types::GetPrimaryEmailUpdateStatusResponse#status #status} => String
1118
+ # * {Types::GetPrimaryEmailUpdateStatusResponse#updated_at #updated_at} => Time
1119
+ #
1120
+ # @example Request syntax with placeholder values
1121
+ #
1122
+ # resp = client.get_primary_email_update_status({
1123
+ # account_id: "AccountId",
1124
+ # })
1125
+ #
1126
+ # @example Response structure
1127
+ #
1128
+ # resp.status #=> String, one of "PENDING", "ACCEPTED", "COMPLETED", "FAILED"
1129
+ # resp.updated_at #=> Time
1130
+ #
1131
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetPrimaryEmailUpdateStatus AWS API Documentation
1132
+ #
1133
+ # @overload get_primary_email_update_status(params = {})
1134
+ # @param [Hash] params ({})
1135
+ def get_primary_email_update_status(params = {}, options = {})
1136
+ req = build_request(:get_primary_email_update_status, params)
1137
+ req.send_request(options)
1138
+ end
1139
+
1080
1140
  # Retrieves the opt-in status of a particular Region.
1081
1141
  #
1082
1142
  # @option params [String] :account_id
@@ -1508,7 +1568,7 @@ module Aws::Account
1508
1568
  #
1509
1569
  # @example Response structure
1510
1570
  #
1511
- # resp.status #=> String, one of "PENDING", "ACCEPTED"
1571
+ # resp.status #=> String, one of "PENDING", "ACCEPTED", "COMPLETED", "FAILED"
1512
1572
  #
1513
1573
  # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/StartPrimaryEmailUpdate AWS API Documentation
1514
1574
  #
@@ -1537,7 +1597,7 @@ module Aws::Account
1537
1597
  tracer: tracer
1538
1598
  )
1539
1599
  context[:gem_name] = 'aws-sdk-account'
1540
- context[:gem_version] = '1.61.0'
1600
+ context[:gem_version] = '1.62.0'
1541
1601
  Seahorse::Client::Request.new(handlers, context)
1542
1602
  end
1543
1603
 
@@ -47,6 +47,8 @@ module Aws::Account
47
47
  GetGovCloudAccountInformationResponse = Shapes::StructureShape.new(name: 'GetGovCloudAccountInformationResponse')
48
48
  GetPrimaryEmailRequest = Shapes::StructureShape.new(name: 'GetPrimaryEmailRequest')
49
49
  GetPrimaryEmailResponse = Shapes::StructureShape.new(name: 'GetPrimaryEmailResponse')
50
+ GetPrimaryEmailUpdateStatusRequest = Shapes::StructureShape.new(name: 'GetPrimaryEmailUpdateStatusRequest')
51
+ GetPrimaryEmailUpdateStatusResponse = Shapes::StructureShape.new(name: 'GetPrimaryEmailUpdateStatusResponse')
50
52
  GetRegionOptStatusRequest = Shapes::StructureShape.new(name: 'GetRegionOptStatusRequest')
51
53
  GetRegionOptStatusResponse = Shapes::StructureShape.new(name: 'GetRegionOptStatusResponse')
52
54
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
@@ -75,6 +77,7 @@ module Aws::Account
75
77
  StartPrimaryEmailUpdateResponse = Shapes::StructureShape.new(name: 'StartPrimaryEmailUpdateResponse')
76
78
  StateOrRegion = Shapes::StringShape.new(name: 'StateOrRegion')
77
79
  String = Shapes::StringShape.new(name: 'String')
80
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
78
81
  Title = Shapes::StringShape.new(name: 'Title')
79
82
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
80
83
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
@@ -167,6 +170,13 @@ module Aws::Account
167
170
  GetPrimaryEmailResponse.add_member(:primary_email, Shapes::ShapeRef.new(shape: PrimaryEmailAddress, location_name: "PrimaryEmail"))
168
171
  GetPrimaryEmailResponse.struct_class = Types::GetPrimaryEmailResponse
169
172
 
173
+ GetPrimaryEmailUpdateStatusRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
174
+ GetPrimaryEmailUpdateStatusRequest.struct_class = Types::GetPrimaryEmailUpdateStatusRequest
175
+
176
+ GetPrimaryEmailUpdateStatusResponse.add_member(:status, Shapes::ShapeRef.new(shape: PrimaryEmailUpdateStatus, required: true, location_name: "Status"))
177
+ GetPrimaryEmailUpdateStatusResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
178
+ GetPrimaryEmailUpdateStatusResponse.struct_class = Types::GetPrimaryEmailUpdateStatusResponse
179
+
170
180
  GetRegionOptStatusRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
171
181
  GetRegionOptStatusRequest.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, required: true, location_name: "RegionName"))
172
182
  GetRegionOptStatusRequest.struct_class = Types::GetRegionOptStatusRequest
@@ -380,6 +390,19 @@ module Aws::Account
380
390
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
381
391
  end)
382
392
 
393
+ api.add_operation(:get_primary_email_update_status, Seahorse::Model::Operation.new.tap do |o|
394
+ o.name = "GetPrimaryEmailUpdateStatus"
395
+ o.http_method = "POST"
396
+ o.http_request_uri = "/getPrimaryEmailUpdateStatus"
397
+ o.input = Shapes::ShapeRef.new(shape: GetPrimaryEmailUpdateStatusRequest)
398
+ o.output = Shapes::ShapeRef.new(shape: GetPrimaryEmailUpdateStatusResponse)
399
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
400
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
401
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
402
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
403
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
404
+ end)
405
+
383
406
  api.add_operation(:get_region_opt_status, Seahorse::Model::Operation.new.tap do |o|
384
407
  o.name = "GetRegionOptStatus"
385
408
  o.http_method = "POST"
@@ -694,6 +694,59 @@ module Aws::Account
694
694
  include Aws::Structure
695
695
  end
696
696
 
697
+ # @!attribute [rw] account_id
698
+ # Specifies the 12-digit account ID number of the Amazon Web Services
699
+ # account that you want to access or modify with this operation. To
700
+ # use this parameter, the caller must be an identity in the
701
+ # [organization's management account][1] or a delegated administrator
702
+ # account. The specified account ID must be a member account in the
703
+ # same organization. The organization must have [all features
704
+ # enabled][2], and the organization must have [trusted access][3]
705
+ # enabled for the Account Management service, and optionally a
706
+ # [delegated admin][4] account assigned.
707
+ #
708
+ # This operation can only be called from the management account or the
709
+ # delegated administrator account of an organization for a member
710
+ # account.
711
+ #
712
+ # <note markdown="1"> The management account can't specify its own `AccountId`.
713
+ #
714
+ # </note>
715
+ #
716
+ #
717
+ #
718
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
719
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
720
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
721
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
722
+ # @return [String]
723
+ #
724
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetPrimaryEmailUpdateStatusRequest AWS API Documentation
725
+ #
726
+ class GetPrimaryEmailUpdateStatusRequest < Struct.new(
727
+ :account_id)
728
+ SENSITIVE = []
729
+ include Aws::Structure
730
+ end
731
+
732
+ # @!attribute [rw] status
733
+ # The status of the most recent primary email update request.
734
+ # @return [String]
735
+ #
736
+ # @!attribute [rw] updated_at
737
+ # The date and time that the most recent primary email update status
738
+ # was last changed.
739
+ # @return [Time]
740
+ #
741
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetPrimaryEmailUpdateStatusResponse AWS API Documentation
742
+ #
743
+ class GetPrimaryEmailUpdateStatusResponse < Struct.new(
744
+ :status,
745
+ :updated_at)
746
+ SENSITIVE = []
747
+ include Aws::Structure
748
+ end
749
+
697
750
  # @!attribute [rw] account_id
698
751
  # Specifies the 12-digit account ID number of the Amazon Web Services
699
752
  # account that you want to access or modify with this operation. If
@@ -55,7 +55,7 @@ module Aws::Account
55
55
  autoload :EndpointProvider, 'aws-sdk-account/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-account/endpoints'
57
57
 
58
- GEM_VERSION = '1.61.0'
58
+ GEM_VERSION = '1.62.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -80,7 +80,7 @@ module Aws
80
80
 
81
81
  interface _AcceptPrimaryEmailUpdateResponseSuccess
82
82
  include ::Seahorse::Client::_ResponseSuccess[Types::AcceptPrimaryEmailUpdateResponse]
83
- def status: () -> ("PENDING" | "ACCEPTED")
83
+ def status: () -> ("PENDING" | "ACCEPTED" | "COMPLETED" | "FAILED")
84
84
  end
85
85
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Account/Client.html#accept_primary_email_update-instance_method
86
86
  def accept_primary_email_update: (
@@ -166,6 +166,17 @@ module Aws
166
166
  ) -> _GetPrimaryEmailResponseSuccess
167
167
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPrimaryEmailResponseSuccess
168
168
 
169
+ interface _GetPrimaryEmailUpdateStatusResponseSuccess
170
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetPrimaryEmailUpdateStatusResponse]
171
+ def status: () -> ("PENDING" | "ACCEPTED" | "COMPLETED" | "FAILED")
172
+ def updated_at: () -> ::Time
173
+ end
174
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Account/Client.html#get_primary_email_update_status-instance_method
175
+ def get_primary_email_update_status: (
176
+ ?account_id: ::String
177
+ ) -> _GetPrimaryEmailUpdateStatusResponseSuccess
178
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPrimaryEmailUpdateStatusResponseSuccess
179
+
169
180
  interface _GetRegionOptStatusResponseSuccess
170
181
  include ::Seahorse::Client::_ResponseSuccess[Types::GetRegionOptStatusResponse]
171
182
  def region_name: () -> ::String
@@ -232,7 +243,7 @@ module Aws
232
243
 
233
244
  interface _StartPrimaryEmailUpdateResponseSuccess
234
245
  include ::Seahorse::Client::_ResponseSuccess[Types::StartPrimaryEmailUpdateResponse]
235
- def status: () -> ("PENDING" | "ACCEPTED")
246
+ def status: () -> ("PENDING" | "ACCEPTED" | "COMPLETED" | "FAILED")
236
247
  end
237
248
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Account/Client.html#start_primary_email_update-instance_method
238
249
  def start_primary_email_update: (
data/sig/types.rbs CHANGED
@@ -16,7 +16,7 @@ module Aws::Account
16
16
  end
17
17
 
18
18
  class AcceptPrimaryEmailUpdateResponse
19
- attr_accessor status: ("PENDING" | "ACCEPTED")
19
+ attr_accessor status: ("PENDING" | "ACCEPTED" | "COMPLETED" | "FAILED")
20
20
  SENSITIVE: []
21
21
  end
22
22
 
@@ -130,6 +130,17 @@ module Aws::Account
130
130
  SENSITIVE: [:primary_email]
131
131
  end
132
132
 
133
+ class GetPrimaryEmailUpdateStatusRequest
134
+ attr_accessor account_id: ::String
135
+ SENSITIVE: []
136
+ end
137
+
138
+ class GetPrimaryEmailUpdateStatusResponse
139
+ attr_accessor status: ("PENDING" | "ACCEPTED" | "COMPLETED" | "FAILED")
140
+ attr_accessor updated_at: ::Time
141
+ SENSITIVE: []
142
+ end
143
+
133
144
  class GetRegionOptStatusRequest
134
145
  attr_accessor account_id: ::String
135
146
  attr_accessor region_name: ::String
@@ -209,7 +220,7 @@ module Aws::Account
209
220
  end
210
221
 
211
222
  class StartPrimaryEmailUpdateResponse
212
- attr_accessor status: ("PENDING" | "ACCEPTED")
223
+ attr_accessor status: ("PENDING" | "ACCEPTED" | "COMPLETED" | "FAILED")
213
224
  SENSITIVE: []
214
225
  end
215
226
 
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.61.0
4
+ version: 1.62.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services