aws-sdk-account 1.64.0 → 1.65.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-account/client.rb +144 -1
- data/lib/aws-sdk-account/client_api.rb +47 -0
- data/lib/aws-sdk-account/types.rb +155 -1
- data/lib/aws-sdk-account.rb +1 -1
- data/sig/client.rbs +22 -0
- data/sig/types.rbs +22 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: deeb9fc65ec3b7582ab4cbdfcdb7777dd0c6d1cb51094a64a6073388627e22ad
|
|
4
|
+
data.tar.gz: f2a2c8054c82409da3dbc0e829527fb939f706da9e75aee64b3448b0d0fdb101
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 130f6aea35ca228cb8c3483f351ae9f9945e2b5a3b577fe3b38ae3d13d1449e99588c2af6787473d1dc92a23c0984fc3e17ea60591985a35b4ede8b68bda5fa2
|
|
7
|
+
data.tar.gz: bc9a0b0fed74b430c1458f4898f98846957b9fff7fd4eea983a6ba5120738342edb599e339b9ab4607254df318a6c157a39efcd52d25b844115c46560476d4ad
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.65.0 (2026-09-30)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - This release adds support for verifying an AWS account's primary contact phone number. SendPhoneNumberVerification sends a one-time code by SMS, VerifyPhoneNumber validates it, and GetContactInformation now returns the verification status.
|
|
8
|
+
|
|
4
9
|
1.64.0 (2026-09-11)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.65.0
|
|
@@ -932,6 +932,7 @@ module Aws::Account
|
|
|
932
932
|
# @return [Types::GetContactInformationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
933
933
|
#
|
|
934
934
|
# * {Types::GetContactInformationResponse#contact_information #contact_information} => Types::ContactInformation
|
|
935
|
+
# * {Types::GetContactInformationResponse#verification_status #verification_status} => String
|
|
935
936
|
#
|
|
936
937
|
# @example Request syntax with placeholder values
|
|
937
938
|
#
|
|
@@ -953,6 +954,7 @@ module Aws::Account
|
|
|
953
954
|
# resp.contact_information.phone_number #=> String
|
|
954
955
|
# resp.contact_information.company_name #=> String
|
|
955
956
|
# resp.contact_information.website_url #=> String
|
|
957
|
+
# resp.verification_status #=> String, one of "PENDING", "VERIFIED", "UNVERIFIED", "NOT_SUPPORTED"
|
|
956
958
|
#
|
|
957
959
|
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation AWS API Documentation
|
|
958
960
|
#
|
|
@@ -1522,6 +1524,74 @@ module Aws::Account
|
|
|
1522
1524
|
req.send_request(options)
|
|
1523
1525
|
end
|
|
1524
1526
|
|
|
1527
|
+
# Sends a one-time passcode to the phone number in the primary contact
|
|
1528
|
+
# information of an Amazon Web Services account. Use VerifyPhoneNumber
|
|
1529
|
+
# to submit the passcode and complete the verification.
|
|
1530
|
+
#
|
|
1531
|
+
# For complete details about how to use the primary contact operations,
|
|
1532
|
+
# see [Update the primary contact for your Amazon Web Services
|
|
1533
|
+
# account][1].
|
|
1534
|
+
#
|
|
1535
|
+
#
|
|
1536
|
+
#
|
|
1537
|
+
# [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-primary.html
|
|
1538
|
+
#
|
|
1539
|
+
# @option params [String] :account_id
|
|
1540
|
+
# Specifies the 12 digit account ID number of the Amazon Web Services
|
|
1541
|
+
# account that you want to access or modify with this operation.
|
|
1542
|
+
#
|
|
1543
|
+
# If you do not specify this parameter, it defaults to the Amazon Web
|
|
1544
|
+
# Services account of the identity used to call the operation.
|
|
1545
|
+
#
|
|
1546
|
+
# To use this parameter, the caller must be an identity in the
|
|
1547
|
+
# [organization's management account][1] or a delegated administrator
|
|
1548
|
+
# account, and the specified account ID must be a member account in the
|
|
1549
|
+
# same organization. The organization must have [all features
|
|
1550
|
+
# enabled][2], and the organization must have [trusted access][3]
|
|
1551
|
+
# enabled for the Account Management service, and optionally a
|
|
1552
|
+
# [delegated administrator][4] account assigned.
|
|
1553
|
+
#
|
|
1554
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`; it must
|
|
1555
|
+
# call the operation in standalone context by not including the
|
|
1556
|
+
# `AccountId` parameter.
|
|
1557
|
+
#
|
|
1558
|
+
# </note>
|
|
1559
|
+
#
|
|
1560
|
+
# To call this operation on an account that is not a member of an
|
|
1561
|
+
# organization, then don't specify this parameter, and call the
|
|
1562
|
+
# operation using an identity belonging to the account whose contacts
|
|
1563
|
+
# you wish to retrieve or modify.
|
|
1564
|
+
#
|
|
1565
|
+
#
|
|
1566
|
+
#
|
|
1567
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
|
1568
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
|
1569
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
|
|
1570
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
|
|
1571
|
+
#
|
|
1572
|
+
# @return [Types::SendPhoneNumberVerificationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1573
|
+
#
|
|
1574
|
+
# * {Types::SendPhoneNumberVerificationResponse#status #status} => String
|
|
1575
|
+
#
|
|
1576
|
+
# @example Request syntax with placeholder values
|
|
1577
|
+
#
|
|
1578
|
+
# resp = client.send_phone_number_verification({
|
|
1579
|
+
# account_id: "AccountId",
|
|
1580
|
+
# })
|
|
1581
|
+
#
|
|
1582
|
+
# @example Response structure
|
|
1583
|
+
#
|
|
1584
|
+
# resp.status #=> String, one of "PENDING", "VERIFIED", "UNVERIFIED", "NOT_SUPPORTED"
|
|
1585
|
+
#
|
|
1586
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/SendPhoneNumberVerification AWS API Documentation
|
|
1587
|
+
#
|
|
1588
|
+
# @overload send_phone_number_verification(params = {})
|
|
1589
|
+
# @param [Hash] params ({})
|
|
1590
|
+
def send_phone_number_verification(params = {}, options = {})
|
|
1591
|
+
req = build_request(:send_phone_number_verification, params)
|
|
1592
|
+
req.send_request(options)
|
|
1593
|
+
end
|
|
1594
|
+
|
|
1525
1595
|
# Starts the process to update the primary email address for the
|
|
1526
1596
|
# specified account.
|
|
1527
1597
|
#
|
|
@@ -1579,6 +1649,79 @@ module Aws::Account
|
|
|
1579
1649
|
req.send_request(options)
|
|
1580
1650
|
end
|
|
1581
1651
|
|
|
1652
|
+
# Verifies the phone number in the primary contact information of an
|
|
1653
|
+
# Amazon Web Services account by submitting the one-time passcode that
|
|
1654
|
+
# SendPhoneNumberVerification sent to that phone number.
|
|
1655
|
+
#
|
|
1656
|
+
# For complete details about how to use the primary contact operations,
|
|
1657
|
+
# see [Update the primary contact for your Amazon Web Services
|
|
1658
|
+
# account][1].
|
|
1659
|
+
#
|
|
1660
|
+
#
|
|
1661
|
+
#
|
|
1662
|
+
# [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-primary.html
|
|
1663
|
+
#
|
|
1664
|
+
# @option params [String] :account_id
|
|
1665
|
+
# Specifies the 12 digit account ID number of the Amazon Web Services
|
|
1666
|
+
# account that you want to access or modify with this operation.
|
|
1667
|
+
#
|
|
1668
|
+
# If you do not specify this parameter, it defaults to the Amazon Web
|
|
1669
|
+
# Services account of the identity used to call the operation.
|
|
1670
|
+
#
|
|
1671
|
+
# To use this parameter, the caller must be an identity in the
|
|
1672
|
+
# [organization's management account][1] or a delegated administrator
|
|
1673
|
+
# account, and the specified account ID must be a member account in the
|
|
1674
|
+
# same organization. The organization must have [all features
|
|
1675
|
+
# enabled][2], and the organization must have [trusted access][3]
|
|
1676
|
+
# enabled for the Account Management service, and optionally a
|
|
1677
|
+
# [delegated administrator][4] account assigned.
|
|
1678
|
+
#
|
|
1679
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`; it must
|
|
1680
|
+
# call the operation in standalone context by not including the
|
|
1681
|
+
# `AccountId` parameter.
|
|
1682
|
+
#
|
|
1683
|
+
# </note>
|
|
1684
|
+
#
|
|
1685
|
+
# To call this operation on an account that is not a member of an
|
|
1686
|
+
# organization, then don't specify this parameter, and call the
|
|
1687
|
+
# operation using an identity belonging to the account whose contacts
|
|
1688
|
+
# you wish to retrieve or modify.
|
|
1689
|
+
#
|
|
1690
|
+
#
|
|
1691
|
+
#
|
|
1692
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
|
1693
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
|
1694
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
|
|
1695
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
|
|
1696
|
+
#
|
|
1697
|
+
# @option params [required, String] :otp
|
|
1698
|
+
# The one-time passcode sent to the phone number in the primary contact
|
|
1699
|
+
# information by the `SendPhoneNumberVerification` operation.
|
|
1700
|
+
#
|
|
1701
|
+
# @return [Types::VerifyPhoneNumberResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1702
|
+
#
|
|
1703
|
+
# * {Types::VerifyPhoneNumberResponse#status #status} => String
|
|
1704
|
+
#
|
|
1705
|
+
# @example Request syntax with placeholder values
|
|
1706
|
+
#
|
|
1707
|
+
# resp = client.verify_phone_number({
|
|
1708
|
+
# account_id: "AccountId",
|
|
1709
|
+
# otp: "Otp", # required
|
|
1710
|
+
# })
|
|
1711
|
+
#
|
|
1712
|
+
# @example Response structure
|
|
1713
|
+
#
|
|
1714
|
+
# resp.status #=> String, one of "PENDING", "VERIFIED", "UNVERIFIED", "NOT_SUPPORTED"
|
|
1715
|
+
#
|
|
1716
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/VerifyPhoneNumber AWS API Documentation
|
|
1717
|
+
#
|
|
1718
|
+
# @overload verify_phone_number(params = {})
|
|
1719
|
+
# @param [Hash] params ({})
|
|
1720
|
+
def verify_phone_number(params = {}, options = {})
|
|
1721
|
+
req = build_request(:verify_phone_number, params)
|
|
1722
|
+
req.send_request(options)
|
|
1723
|
+
end
|
|
1724
|
+
|
|
1582
1725
|
# @!endgroup
|
|
1583
1726
|
|
|
1584
1727
|
# @param params ({})
|
|
@@ -1597,7 +1740,7 @@ module Aws::Account
|
|
|
1597
1740
|
tracer: tracer
|
|
1598
1741
|
)
|
|
1599
1742
|
context[:gem_name] = 'aws-sdk-account'
|
|
1600
|
-
context[:gem_version] = '1.
|
|
1743
|
+
context[:gem_version] = '1.65.0'
|
|
1601
1744
|
Seahorse::Client::Request.new(handlers, context)
|
|
1602
1745
|
end
|
|
1603
1746
|
|
|
@@ -59,6 +59,7 @@ module Aws::Account
|
|
|
59
59
|
Name = Shapes::StringShape.new(name: 'Name')
|
|
60
60
|
Otp = Shapes::StringShape.new(name: 'Otp')
|
|
61
61
|
PhoneNumber = Shapes::StringShape.new(name: 'PhoneNumber')
|
|
62
|
+
PhoneNumberVerificationStatus = Shapes::StringShape.new(name: 'PhoneNumberVerificationStatus')
|
|
62
63
|
PostalCode = Shapes::StringShape.new(name: 'PostalCode')
|
|
63
64
|
PrimaryEmailAddress = Shapes::StringShape.new(name: 'PrimaryEmailAddress')
|
|
64
65
|
PrimaryEmailUpdateStatus = Shapes::StringShape.new(name: 'PrimaryEmailUpdateStatus')
|
|
@@ -72,6 +73,8 @@ module Aws::Account
|
|
|
72
73
|
RegionOptStatusList = Shapes::ListShape.new(name: 'RegionOptStatusList')
|
|
73
74
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
|
74
75
|
ResourceUnavailableException = Shapes::StructureShape.new(name: 'ResourceUnavailableException')
|
|
76
|
+
SendPhoneNumberVerificationRequest = Shapes::StructureShape.new(name: 'SendPhoneNumberVerificationRequest')
|
|
77
|
+
SendPhoneNumberVerificationResponse = Shapes::StructureShape.new(name: 'SendPhoneNumberVerificationResponse')
|
|
75
78
|
SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
|
|
76
79
|
StartPrimaryEmailUpdateRequest = Shapes::StructureShape.new(name: 'StartPrimaryEmailUpdateRequest')
|
|
77
80
|
StartPrimaryEmailUpdateResponse = Shapes::StructureShape.new(name: 'StartPrimaryEmailUpdateResponse')
|
|
@@ -84,6 +87,8 @@ module Aws::Account
|
|
|
84
87
|
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
|
85
88
|
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
|
86
89
|
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
|
90
|
+
VerifyPhoneNumberRequest = Shapes::StructureShape.new(name: 'VerifyPhoneNumberRequest')
|
|
91
|
+
VerifyPhoneNumberResponse = Shapes::StructureShape.new(name: 'VerifyPhoneNumberResponse')
|
|
87
92
|
WebsiteUrl = Shapes::StringShape.new(name: 'WebsiteUrl')
|
|
88
93
|
|
|
89
94
|
AcceptPrimaryEmailUpdateRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
|
@@ -155,6 +160,7 @@ module Aws::Account
|
|
|
155
160
|
GetContactInformationRequest.struct_class = Types::GetContactInformationRequest
|
|
156
161
|
|
|
157
162
|
GetContactInformationResponse.add_member(:contact_information, Shapes::ShapeRef.new(shape: ContactInformation, location_name: "ContactInformation"))
|
|
163
|
+
GetContactInformationResponse.add_member(:verification_status, Shapes::ShapeRef.new(shape: PhoneNumberVerificationStatus, location_name: "VerificationStatus"))
|
|
158
164
|
GetContactInformationResponse.struct_class = Types::GetContactInformationResponse
|
|
159
165
|
|
|
160
166
|
GetGovCloudAccountInformationRequest.add_member(:standard_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "StandardAccountId"))
|
|
@@ -231,6 +237,12 @@ module Aws::Account
|
|
|
231
237
|
ResourceUnavailableException.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
|
|
232
238
|
ResourceUnavailableException.struct_class = Types::ResourceUnavailableException
|
|
233
239
|
|
|
240
|
+
SendPhoneNumberVerificationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
|
241
|
+
SendPhoneNumberVerificationRequest.struct_class = Types::SendPhoneNumberVerificationRequest
|
|
242
|
+
|
|
243
|
+
SendPhoneNumberVerificationResponse.add_member(:status, Shapes::ShapeRef.new(shape: PhoneNumberVerificationStatus, location_name: "Status"))
|
|
244
|
+
SendPhoneNumberVerificationResponse.struct_class = Types::SendPhoneNumberVerificationResponse
|
|
245
|
+
|
|
234
246
|
StartPrimaryEmailUpdateRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
|
235
247
|
StartPrimaryEmailUpdateRequest.add_member(:primary_email, Shapes::ShapeRef.new(shape: PrimaryEmailAddress, required: true, location_name: "PrimaryEmail"))
|
|
236
248
|
StartPrimaryEmailUpdateRequest.struct_class = Types::StartPrimaryEmailUpdateRequest
|
|
@@ -253,6 +265,13 @@ module Aws::Account
|
|
|
253
265
|
|
|
254
266
|
ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
|
|
255
267
|
|
|
268
|
+
VerifyPhoneNumberRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
|
269
|
+
VerifyPhoneNumberRequest.add_member(:otp, Shapes::ShapeRef.new(shape: Otp, required: true, location_name: "Otp"))
|
|
270
|
+
VerifyPhoneNumberRequest.struct_class = Types::VerifyPhoneNumberRequest
|
|
271
|
+
|
|
272
|
+
VerifyPhoneNumberResponse.add_member(:status, Shapes::ShapeRef.new(shape: PhoneNumberVerificationStatus, location_name: "Status"))
|
|
273
|
+
VerifyPhoneNumberResponse.struct_class = Types::VerifyPhoneNumberResponse
|
|
274
|
+
|
|
256
275
|
|
|
257
276
|
# @api private
|
|
258
277
|
API = Seahorse::Model::Api.new.tap do |api|
|
|
@@ -469,6 +488,20 @@ module Aws::Account
|
|
|
469
488
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
470
489
|
end)
|
|
471
490
|
|
|
491
|
+
api.add_operation(:send_phone_number_verification, Seahorse::Model::Operation.new.tap do |o|
|
|
492
|
+
o.name = "SendPhoneNumberVerification"
|
|
493
|
+
o.http_method = "POST"
|
|
494
|
+
o.http_request_uri = "/sendPhoneNumberVerification"
|
|
495
|
+
o.input = Shapes::ShapeRef.new(shape: SendPhoneNumberVerificationRequest)
|
|
496
|
+
o.output = Shapes::ShapeRef.new(shape: SendPhoneNumberVerificationResponse)
|
|
497
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
498
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
499
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
500
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
501
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
|
502
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
503
|
+
end)
|
|
504
|
+
|
|
472
505
|
api.add_operation(:start_primary_email_update, Seahorse::Model::Operation.new.tap do |o|
|
|
473
506
|
o.name = "StartPrimaryEmailUpdate"
|
|
474
507
|
o.http_method = "POST"
|
|
@@ -482,6 +515,20 @@ module Aws::Account
|
|
|
482
515
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
|
483
516
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
484
517
|
end)
|
|
518
|
+
|
|
519
|
+
api.add_operation(:verify_phone_number, Seahorse::Model::Operation.new.tap do |o|
|
|
520
|
+
o.name = "VerifyPhoneNumber"
|
|
521
|
+
o.http_method = "POST"
|
|
522
|
+
o.http_request_uri = "/verifyPhoneNumber"
|
|
523
|
+
o.input = Shapes::ShapeRef.new(shape: VerifyPhoneNumberRequest)
|
|
524
|
+
o.output = Shapes::ShapeRef.new(shape: VerifyPhoneNumberResponse)
|
|
525
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
526
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
527
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
528
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
529
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
|
530
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
531
|
+
end)
|
|
485
532
|
end
|
|
486
533
|
|
|
487
534
|
end
|
|
@@ -579,10 +579,27 @@ module Aws::Account
|
|
|
579
579
|
# with an Amazon Web Services account.
|
|
580
580
|
# @return [Types::ContactInformation]
|
|
581
581
|
#
|
|
582
|
+
# @!attribute [rw] verification_status
|
|
583
|
+
# The verification status of the phone number in the primary contact
|
|
584
|
+
# information associated with an Amazon Web Services account. Valid
|
|
585
|
+
# values:
|
|
586
|
+
#
|
|
587
|
+
# * `PENDING` – A one-time passcode has been sent and is waiting to be
|
|
588
|
+
# submitted.
|
|
589
|
+
#
|
|
590
|
+
# * `VERIFIED` – The phone number has been verified.
|
|
591
|
+
#
|
|
592
|
+
# * `UNVERIFIED` – The phone number has not been verified.
|
|
593
|
+
#
|
|
594
|
+
# * `NOT_SUPPORTED` – Phone number verification isn't available for
|
|
595
|
+
# this account.
|
|
596
|
+
# @return [String]
|
|
597
|
+
#
|
|
582
598
|
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformationResponse AWS API Documentation
|
|
583
599
|
#
|
|
584
600
|
class GetContactInformationResponse < Struct.new(
|
|
585
|
-
:contact_information
|
|
601
|
+
:contact_information,
|
|
602
|
+
:verification_status)
|
|
586
603
|
SENSITIVE = []
|
|
587
604
|
include Aws::Structure
|
|
588
605
|
end
|
|
@@ -1150,6 +1167,71 @@ module Aws::Account
|
|
|
1150
1167
|
include Aws::Structure
|
|
1151
1168
|
end
|
|
1152
1169
|
|
|
1170
|
+
# @!attribute [rw] account_id
|
|
1171
|
+
# Specifies the 12 digit account ID number of the Amazon Web Services
|
|
1172
|
+
# account that you want to access or modify with this operation.
|
|
1173
|
+
#
|
|
1174
|
+
# If you do not specify this parameter, it defaults to the Amazon Web
|
|
1175
|
+
# Services account of the identity used to call the operation.
|
|
1176
|
+
#
|
|
1177
|
+
# To use this parameter, the caller must be an identity in the
|
|
1178
|
+
# [organization's management account][1] or a delegated administrator
|
|
1179
|
+
# account, and the specified account ID must be a member account in
|
|
1180
|
+
# the same organization. The organization must have [all features
|
|
1181
|
+
# enabled][2], and the organization must have [trusted access][3]
|
|
1182
|
+
# enabled for the Account Management service, and optionally a
|
|
1183
|
+
# [delegated administrator][4] account assigned.
|
|
1184
|
+
#
|
|
1185
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`; it must
|
|
1186
|
+
# call the operation in standalone context by not including the
|
|
1187
|
+
# `AccountId` parameter.
|
|
1188
|
+
#
|
|
1189
|
+
# </note>
|
|
1190
|
+
#
|
|
1191
|
+
# To call this operation on an account that is not a member of an
|
|
1192
|
+
# organization, then don't specify this parameter, and call the
|
|
1193
|
+
# operation using an identity belonging to the account whose contacts
|
|
1194
|
+
# you wish to retrieve or modify.
|
|
1195
|
+
#
|
|
1196
|
+
#
|
|
1197
|
+
#
|
|
1198
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
|
1199
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
|
1200
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
|
|
1201
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
|
|
1202
|
+
# @return [String]
|
|
1203
|
+
#
|
|
1204
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/SendPhoneNumberVerificationRequest AWS API Documentation
|
|
1205
|
+
#
|
|
1206
|
+
class SendPhoneNumberVerificationRequest < Struct.new(
|
|
1207
|
+
:account_id)
|
|
1208
|
+
SENSITIVE = []
|
|
1209
|
+
include Aws::Structure
|
|
1210
|
+
end
|
|
1211
|
+
|
|
1212
|
+
# @!attribute [rw] status
|
|
1213
|
+
# The verification status of the phone number in the primary contact
|
|
1214
|
+
# information after the one-time passcode is sent. Valid values:
|
|
1215
|
+
#
|
|
1216
|
+
# * `PENDING` – A one-time passcode has been sent and is waiting to be
|
|
1217
|
+
# submitted.
|
|
1218
|
+
#
|
|
1219
|
+
# * `VERIFIED` – The phone number has been verified.
|
|
1220
|
+
#
|
|
1221
|
+
# * `UNVERIFIED` – The phone number has not been verified.
|
|
1222
|
+
#
|
|
1223
|
+
# * `NOT_SUPPORTED` – Phone number verification isn't available for
|
|
1224
|
+
# this account.
|
|
1225
|
+
# @return [String]
|
|
1226
|
+
#
|
|
1227
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/SendPhoneNumberVerificationResponse AWS API Documentation
|
|
1228
|
+
#
|
|
1229
|
+
class SendPhoneNumberVerificationResponse < Struct.new(
|
|
1230
|
+
:status)
|
|
1231
|
+
SENSITIVE = []
|
|
1232
|
+
include Aws::Structure
|
|
1233
|
+
end
|
|
1234
|
+
|
|
1153
1235
|
# @!attribute [rw] account_id
|
|
1154
1236
|
# Specifies the 12-digit account ID number of the Amazon Web Services
|
|
1155
1237
|
# account that you want to access or modify with this operation. To
|
|
@@ -1268,6 +1350,78 @@ module Aws::Account
|
|
|
1268
1350
|
include Aws::Structure
|
|
1269
1351
|
end
|
|
1270
1352
|
|
|
1353
|
+
# @!attribute [rw] account_id
|
|
1354
|
+
# Specifies the 12 digit account ID number of the Amazon Web Services
|
|
1355
|
+
# account that you want to access or modify with this operation.
|
|
1356
|
+
#
|
|
1357
|
+
# If you do not specify this parameter, it defaults to the Amazon Web
|
|
1358
|
+
# Services account of the identity used to call the operation.
|
|
1359
|
+
#
|
|
1360
|
+
# To use this parameter, the caller must be an identity in the
|
|
1361
|
+
# [organization's management account][1] or a delegated administrator
|
|
1362
|
+
# account, and the specified account ID must be a member account in
|
|
1363
|
+
# the same organization. The organization must have [all features
|
|
1364
|
+
# enabled][2], and the organization must have [trusted access][3]
|
|
1365
|
+
# enabled for the Account Management service, and optionally a
|
|
1366
|
+
# [delegated administrator][4] account assigned.
|
|
1367
|
+
#
|
|
1368
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`; it must
|
|
1369
|
+
# call the operation in standalone context by not including the
|
|
1370
|
+
# `AccountId` parameter.
|
|
1371
|
+
#
|
|
1372
|
+
# </note>
|
|
1373
|
+
#
|
|
1374
|
+
# To call this operation on an account that is not a member of an
|
|
1375
|
+
# organization, then don't specify this parameter, and call the
|
|
1376
|
+
# operation using an identity belonging to the account whose contacts
|
|
1377
|
+
# you wish to retrieve or modify.
|
|
1378
|
+
#
|
|
1379
|
+
#
|
|
1380
|
+
#
|
|
1381
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
|
1382
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
|
1383
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html
|
|
1384
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin
|
|
1385
|
+
# @return [String]
|
|
1386
|
+
#
|
|
1387
|
+
# @!attribute [rw] otp
|
|
1388
|
+
# The one-time passcode sent to the phone number in the primary
|
|
1389
|
+
# contact information by the `SendPhoneNumberVerification` operation.
|
|
1390
|
+
# @return [String]
|
|
1391
|
+
#
|
|
1392
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/VerifyPhoneNumberRequest AWS API Documentation
|
|
1393
|
+
#
|
|
1394
|
+
class VerifyPhoneNumberRequest < Struct.new(
|
|
1395
|
+
:account_id,
|
|
1396
|
+
:otp)
|
|
1397
|
+
SENSITIVE = [:otp]
|
|
1398
|
+
include Aws::Structure
|
|
1399
|
+
end
|
|
1400
|
+
|
|
1401
|
+
# @!attribute [rw] status
|
|
1402
|
+
# The verification status of the phone number in the primary contact
|
|
1403
|
+
# information after the submitted one-time passcode is evaluated.
|
|
1404
|
+
# Valid values:
|
|
1405
|
+
#
|
|
1406
|
+
# * `PENDING` – A one-time passcode has been sent and is waiting to be
|
|
1407
|
+
# submitted.
|
|
1408
|
+
#
|
|
1409
|
+
# * `VERIFIED` – The phone number has been verified.
|
|
1410
|
+
#
|
|
1411
|
+
# * `UNVERIFIED` – The phone number has not been verified.
|
|
1412
|
+
#
|
|
1413
|
+
# * `NOT_SUPPORTED` – Phone number verification isn't available for
|
|
1414
|
+
# this account.
|
|
1415
|
+
# @return [String]
|
|
1416
|
+
#
|
|
1417
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/VerifyPhoneNumberResponse AWS API Documentation
|
|
1418
|
+
#
|
|
1419
|
+
class VerifyPhoneNumberResponse < Struct.new(
|
|
1420
|
+
:status)
|
|
1421
|
+
SENSITIVE = []
|
|
1422
|
+
include Aws::Structure
|
|
1423
|
+
end
|
|
1424
|
+
|
|
1271
1425
|
end
|
|
1272
1426
|
end
|
|
1273
1427
|
|
data/lib/aws-sdk-account.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -138,6 +138,7 @@ module Aws
|
|
|
138
138
|
interface _GetContactInformationResponseSuccess
|
|
139
139
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetContactInformationResponse]
|
|
140
140
|
def contact_information: () -> Types::ContactInformation
|
|
141
|
+
def verification_status: () -> ("PENDING" | "VERIFIED" | "UNVERIFIED" | "NOT_SUPPORTED")
|
|
141
142
|
end
|
|
142
143
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Account/Client.html#get_contact_information-instance_method
|
|
143
144
|
def get_contact_information: (
|
|
@@ -241,6 +242,16 @@ module Aws
|
|
|
241
242
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
|
242
243
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
|
243
244
|
|
|
245
|
+
interface _SendPhoneNumberVerificationResponseSuccess
|
|
246
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::SendPhoneNumberVerificationResponse]
|
|
247
|
+
def status: () -> ("PENDING" | "VERIFIED" | "UNVERIFIED" | "NOT_SUPPORTED")
|
|
248
|
+
end
|
|
249
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Account/Client.html#send_phone_number_verification-instance_method
|
|
250
|
+
def send_phone_number_verification: (
|
|
251
|
+
?account_id: ::String
|
|
252
|
+
) -> _SendPhoneNumberVerificationResponseSuccess
|
|
253
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SendPhoneNumberVerificationResponseSuccess
|
|
254
|
+
|
|
244
255
|
interface _StartPrimaryEmailUpdateResponseSuccess
|
|
245
256
|
include ::Seahorse::Client::_ResponseSuccess[Types::StartPrimaryEmailUpdateResponse]
|
|
246
257
|
def status: () -> ("PENDING" | "ACCEPTED" | "COMPLETED" | "FAILED")
|
|
@@ -251,6 +262,17 @@ module Aws
|
|
|
251
262
|
primary_email: ::String
|
|
252
263
|
) -> _StartPrimaryEmailUpdateResponseSuccess
|
|
253
264
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartPrimaryEmailUpdateResponseSuccess
|
|
265
|
+
|
|
266
|
+
interface _VerifyPhoneNumberResponseSuccess
|
|
267
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::VerifyPhoneNumberResponse]
|
|
268
|
+
def status: () -> ("PENDING" | "VERIFIED" | "UNVERIFIED" | "NOT_SUPPORTED")
|
|
269
|
+
end
|
|
270
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Account/Client.html#verify_phone_number-instance_method
|
|
271
|
+
def verify_phone_number: (
|
|
272
|
+
?account_id: ::String,
|
|
273
|
+
otp: ::String
|
|
274
|
+
) -> _VerifyPhoneNumberResponseSuccess
|
|
275
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifyPhoneNumberResponseSuccess
|
|
254
276
|
end
|
|
255
277
|
end
|
|
256
278
|
end
|
data/sig/types.rbs
CHANGED
|
@@ -106,6 +106,7 @@ module Aws::Account
|
|
|
106
106
|
|
|
107
107
|
class GetContactInformationResponse
|
|
108
108
|
attr_accessor contact_information: Types::ContactInformation
|
|
109
|
+
attr_accessor verification_status: ("PENDING" | "VERIFIED" | "UNVERIFIED" | "NOT_SUPPORTED")
|
|
109
110
|
SENSITIVE: []
|
|
110
111
|
end
|
|
111
112
|
|
|
@@ -213,6 +214,16 @@ module Aws::Account
|
|
|
213
214
|
SENSITIVE: []
|
|
214
215
|
end
|
|
215
216
|
|
|
217
|
+
class SendPhoneNumberVerificationRequest
|
|
218
|
+
attr_accessor account_id: ::String
|
|
219
|
+
SENSITIVE: []
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
class SendPhoneNumberVerificationResponse
|
|
223
|
+
attr_accessor status: ("PENDING" | "VERIFIED" | "UNVERIFIED" | "NOT_SUPPORTED")
|
|
224
|
+
SENSITIVE: []
|
|
225
|
+
end
|
|
226
|
+
|
|
216
227
|
class StartPrimaryEmailUpdateRequest
|
|
217
228
|
attr_accessor account_id: ::String
|
|
218
229
|
attr_accessor primary_email: ::String
|
|
@@ -242,5 +253,16 @@ module Aws::Account
|
|
|
242
253
|
attr_accessor message: ::String
|
|
243
254
|
SENSITIVE: [:message]
|
|
244
255
|
end
|
|
256
|
+
|
|
257
|
+
class VerifyPhoneNumberRequest
|
|
258
|
+
attr_accessor account_id: ::String
|
|
259
|
+
attr_accessor otp: ::String
|
|
260
|
+
SENSITIVE: [:otp]
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
class VerifyPhoneNumberResponse
|
|
264
|
+
attr_accessor status: ("PENDING" | "VERIFIED" | "UNVERIFIED" | "NOT_SUPPORTED")
|
|
265
|
+
SENSITIVE: []
|
|
266
|
+
end
|
|
245
267
|
end
|
|
246
268
|
end
|