Class: Aws::Account::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Account::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-account/lib/aws-sdk-account/client.rb
Overview
An API client for Account. To construct a client, you need to configure a :region and :credentials.
client = Aws::Account::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#accept_primary_email_update(params = {}) ⇒ Types::AcceptPrimaryEmailUpdateResponse
Accepts the request that originated from StartPrimaryEmailUpdate to update the primary email address (also known as the root user email address) for the specified account.
-
#delete_alternate_contact(params = {}) ⇒ Struct
Deletes the specified alternate contact from an Amazon Web Services account.
-
#disable_region(params = {}) ⇒ Struct
Disables (opts-out) a particular Region for an account.
-
#enable_region(params = {}) ⇒ Struct
Enables (opts-in) a particular Region for an account.
-
#get_account_information(params = {}) ⇒ Types::GetAccountInformationResponse
Retrieves information about the specified account including its account name, account ID, account creation date and time, and account state.
-
#get_alternate_contact(params = {}) ⇒ Types::GetAlternateContactResponse
Retrieves the specified alternate contact attached to an Amazon Web Services account.
-
#get_contact_information(params = {}) ⇒ Types::GetContactInformationResponse
Retrieves the primary contact information of an Amazon Web Services account.
-
#get_gov_cloud_account_information(params = {}) ⇒ Types::GetGovCloudAccountInformationResponse
Retrieves information about the GovCloud account linked to the specified standard account (if it exists) including the GovCloud account ID and state.
-
#get_primary_email(params = {}) ⇒ Types::GetPrimaryEmailResponse
Retrieves the primary email address for the specified account.
-
#get_primary_email_update_status(params = {}) ⇒ Types::GetPrimaryEmailUpdateStatusResponse
Retrieves the status of the most recent primary email update for the specified account.
-
#get_region_opt_status(params = {}) ⇒ Types::GetRegionOptStatusResponse
Retrieves the opt-in status of a particular Region.
-
#list_regions(params = {}) ⇒ Types::ListRegionsResponse
Lists all the Regions for a given account and their respective opt-in statuses.
-
#put_account_name(params = {}) ⇒ Struct
Updates the account name of the specified account.
-
#put_alternate_contact(params = {}) ⇒ Struct
Modifies the specified alternate contact attached to an Amazon Web Services account.
-
#put_contact_information(params = {}) ⇒ Struct
Updates the primary contact information of an Amazon Web Services account.
-
#send_phone_number_verification(params = {}) ⇒ Types::SendPhoneNumberVerificationResponse
Sends a one-time passcode to the phone number in the primary contact information of an Amazon Web Services account.
-
#start_primary_email_update(params = {}) ⇒ Types::StartPrimaryEmailUpdateResponse
Starts the process to update the primary email address for the specified account.
-
#verify_phone_number(params = {}) ⇒ Types::VerifyPhoneNumberResponse
Verifies the phone number in the primary contact information of an Amazon Web Services account by submitting the one-time passcode that SendPhoneNumberVerification sent to that phone number.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
471 472 473 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 471 def initialize(*args) super end |
Instance Method Details
#accept_primary_email_update(params = {}) ⇒ Types::AcceptPrimaryEmailUpdateResponse
Accepts the request that originated from StartPrimaryEmailUpdate to update the primary email address (also known as the root user email address) for the specified account.
536 537 538 539 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 536 def accept_primary_email_update(params = {}, = {}) req = build_request(:accept_primary_email_update, params) req.send_request() end |
#delete_alternate_contact(params = {}) ⇒ Struct
Deletes the specified alternate contact from an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Update the alternate contacts for your Amazon Web Services account.
610 611 612 613 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 610 def delete_alternate_contact(params = {}, = {}) req = build_request(:delete_alternate_contact, params) req.send_request() end |
#disable_region(params = {}) ⇒ Struct
Disables (opts-out) a particular Region for an account.
674 675 676 677 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 674 def disable_region(params = {}, = {}) req = build_request(:disable_region, params) req.send_request() end |
#enable_region(params = {}) ⇒ Struct
Enables (opts-in) a particular Region for an account.
734 735 736 737 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 734 def enable_region(params = {}, = {}) req = build_request(:enable_region, params) req.send_request() end |
#get_account_information(params = {}) ⇒ Types::GetAccountInformationResponse
Retrieves information about the specified account including its
account name, account ID, account creation date and time, and account
state. To use this API, an IAM user or role must have the
account:GetAccountInformation IAM permission.
801 802 803 804 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 801 def get_account_information(params = {}, = {}) req = build_request(:get_account_information, params) req.send_request() end |
#get_alternate_contact(params = {}) ⇒ Types::GetAlternateContactResponse
Retrieves the specified alternate contact attached to an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Update the alternate contacts for your Amazon Web Services account.
885 886 887 888 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 885 def get_alternate_contact(params = {}, = {}) req = build_request(:get_alternate_contact, params) req.send_request() end |
#get_contact_information(params = {}) ⇒ Types::GetContactInformationResponse
Retrieves the primary contact information of an Amazon Web Services account.
For complete details about how to use the primary contact operations, see Update the primary contact for your Amazon Web Services account.
963 964 965 966 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 963 def get_contact_information(params = {}, = {}) req = build_request(:get_contact_information, params) req.send_request() end |
#get_gov_cloud_account_information(params = {}) ⇒ Types::GetGovCloudAccountInformationResponse
Retrieves information about the GovCloud account linked to the
specified standard account (if it exists) including the GovCloud
account ID and state. To use this API, an IAM user or role must have
the account:GetGovCloudAccountInformation IAM permission.
1026 1027 1028 1029 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 1026 def get_gov_cloud_account_information(params = {}, = {}) req = build_request(:get_gov_cloud_account_information, params) req.send_request() end |
#get_primary_email(params = {}) ⇒ Types::GetPrimaryEmailResponse
Retrieves the primary email address for the specified account.
1077 1078 1079 1080 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 1077 def get_primary_email(params = {}, = {}) req = build_request(:get_primary_email, params) req.send_request() end |
#get_primary_email_update_status(params = {}) ⇒ Types::GetPrimaryEmailUpdateStatusResponse
Retrieves the status of the most recent primary email update for the specified account. For complete details about how to update the primary email address, see Update the primary email address for your AWS account.
1137 1138 1139 1140 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 1137 def get_primary_email_update_status(params = {}, = {}) req = build_request(:get_primary_email_update_status, params) req.send_request() end |
#get_region_opt_status(params = {}) ⇒ Types::GetRegionOptStatusResponse
Retrieves the opt-in status of a particular Region.
1201 1202 1203 1204 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 1201 def get_region_opt_status(params = {}, = {}) req = build_request(:get_region_opt_status, params) req.send_request() end |
#list_regions(params = {}) ⇒ Types::ListRegionsResponse
Lists all the Regions for a given account and their respective opt-in
statuses. Optionally, this list can be filtered by the
region-opt-status-contains parameter.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1298 1299 1300 1301 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 1298 def list_regions(params = {}, = {}) req = build_request(:list_regions, params) req.send_request() end |
#put_account_name(params = {}) ⇒ Struct
Updates the account name of the specified account. To use this API,
IAM principals must have the account:PutAccountName IAM permission.
1355 1356 1357 1358 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 1355 def put_account_name(params = {}, = {}) req = build_request(:put_account_name, params) req.send_request() end |
#put_alternate_contact(params = {}) ⇒ Struct
Modifies the specified alternate contact attached to an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Update the alternate contacts for your Amazon Web Services account.
1445 1446 1447 1448 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 1445 def put_alternate_contact(params = {}, = {}) req = build_request(:put_alternate_contact, params) req.send_request() end |
#put_contact_information(params = {}) ⇒ Struct
Updates the primary contact information of an Amazon Web Services account.
For complete details about how to use the primary contact operations, see Update the primary contact for your Amazon Web Services account.
1522 1523 1524 1525 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 1522 def put_contact_information(params = {}, = {}) req = build_request(:put_contact_information, params) req.send_request() end |
#send_phone_number_verification(params = {}) ⇒ Types::SendPhoneNumberVerificationResponse
Sends a one-time passcode to the phone number in the primary contact information of an Amazon Web Services account. Use VerifyPhoneNumber to submit the passcode and complete the verification.
For complete details about how to use the primary contact operations, see Update the primary contact for your Amazon Web Services account.
1590 1591 1592 1593 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 1590 def send_phone_number_verification(params = {}, = {}) req = build_request(:send_phone_number_verification, params) req.send_request() end |
#start_primary_email_update(params = {}) ⇒ Types::StartPrimaryEmailUpdateResponse
Starts the process to update the primary email address for the specified account.
1647 1648 1649 1650 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 1647 def start_primary_email_update(params = {}, = {}) req = build_request(:start_primary_email_update, params) req.send_request() end |
#verify_phone_number(params = {}) ⇒ Types::VerifyPhoneNumberResponse
Verifies the phone number in the primary contact information of an Amazon Web Services account by submitting the one-time passcode that SendPhoneNumberVerification sent to that phone number.
For complete details about how to use the primary contact operations, see Update the primary contact for your Amazon Web Services account.
1720 1721 1722 1723 |
# File 'gems/aws-sdk-account/lib/aws-sdk-account/client.rb', line 1720 def verify_phone_number(params = {}, = {}) req = build_request(:verify_phone_number, params) req.send_request() end |