Class: AWS.Account
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.Account
- Identifier:
- account
- API Version:
- 2021-02-01
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Operations for Amazon Web Services Account Management
Sending a Request Using Account
var account = new AWS.Account();
account.acceptPrimaryEmailUpdate(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the Account object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var account = new AWS.Account({apiVersion: '2021-02-01'});
You can also set the API version globally in AWS.config.apiVersions
using
the account service identifier:
AWS.config.apiVersions = {
account: '2021-02-01',
// other service API versions
};
var account = new AWS.Account();
Constructor Summary collapse
-
new AWS.Account(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
acceptPrimaryEmailUpdate(params = {}, callback) ⇒ AWS.Request
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.
.
-
deleteAlternateContact(params = {}, callback) ⇒ AWS.Request
Deletes the specified alternate contact from an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Access or updating the alternate contacts.
Note: Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations.- disableRegion(params = {}, callback) ⇒ AWS.Request
Disables (opts-out) a particular Region for an account.
Note: The act of disabling a Region will remove all IAM access to any resources that reside in that Region.- enableRegion(params = {}, callback) ⇒ AWS.Request
Enables (opts-in) a particular Region for an account.
.
- getAlternateContact(params = {}, callback) ⇒ AWS.Request
Retrieves the specified alternate contact attached to an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Access or updating the alternate contacts.
Note: Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations.- getContactInformation(params = {}, callback) ⇒ AWS.Request
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 and alternate contact information.
.- getPrimaryEmail(params = {}, callback) ⇒ AWS.Request
Retrieves the primary email address for the specified account.
.
- getRegionOptStatus(params = {}, callback) ⇒ AWS.Request
Retrieves the opt-in status of a particular Region.
.
- listRegions(params = {}, callback) ⇒ AWS.Request
Lists all the Regions for a given account and their respective opt-in statuses.
- putAlternateContact(params = {}, callback) ⇒ AWS.Request
Modifies the specified alternate contact attached to an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Access or updating the alternate contacts.
Note: Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations.- putContactInformation(params = {}, callback) ⇒ AWS.Request
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 and alternate contact information.
.- startPrimaryEmailUpdate(params = {}, callback) ⇒ AWS.Request
Starts the process to update the primary email address for the specified account.
.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.Account(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
acceptPrimaryEmailUpdate(params = {}, callback) ⇒ AWS.Request
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.
deleteAlternateContact(params = {}, callback) ⇒ AWS.Request
Deletes the specified alternate contact from an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Access or updating the alternate contacts.
Note: Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enabling trusted access for Amazon Web Services Account Management.disableRegion(params = {}, callback) ⇒ AWS.Request
Disables (opts-out) a particular Region for an account.
Note: The act of disabling a Region will remove all IAM access to any resources that reside in that Region.enableRegion(params = {}, callback) ⇒ AWS.Request
Enables (opts-in) a particular Region for an account.
getAlternateContact(params = {}, callback) ⇒ AWS.Request
Retrieves the specified alternate contact attached to an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Access or updating the alternate contacts.
Note: Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enabling trusted access for Amazon Web Services Account Management.getContactInformation(params = {}, callback) ⇒ AWS.Request
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 and alternate contact information.
getPrimaryEmail(params = {}, callback) ⇒ AWS.Request
Retrieves the primary email address for the specified account.
getRegionOptStatus(params = {}, callback) ⇒ AWS.Request
Retrieves the opt-in status of a particular Region.
listRegions(params = {}, callback) ⇒ AWS.Request
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.putAlternateContact(params = {}, callback) ⇒ AWS.Request
Modifies the specified alternate contact attached to an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Access or updating the alternate contacts.
Note: Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enabling trusted access for Amazon Web Services Account Management.putContactInformation(params = {}, callback) ⇒ AWS.Request
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 and alternate contact information.
- disableRegion(params = {}, callback) ⇒ AWS.Request