@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSAccount
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSAccount
instead.
Operations for Amazon Web Services Account Management
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
AcceptPrimaryEmailUpdateResult |
acceptPrimaryEmailUpdate(AcceptPrimaryEmailUpdateRequest acceptPrimaryEmailUpdateRequest)
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.
|
DeleteAlternateContactResult |
deleteAlternateContact(DeleteAlternateContactRequest deleteAlternateContactRequest)
Deletes the specified alternate contact from an Amazon Web Services account.
|
DisableRegionResult |
disableRegion(DisableRegionRequest disableRegionRequest)
Disables (opts-out) a particular Region for an account.
|
EnableRegionResult |
enableRegion(EnableRegionRequest enableRegionRequest)
Enables (opts-in) a particular Region for an account.
|
GetAlternateContactResult |
getAlternateContact(GetAlternateContactRequest getAlternateContactRequest)
Retrieves the specified alternate contact attached to an Amazon Web Services account.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetContactInformationResult |
getContactInformation(GetContactInformationRequest getContactInformationRequest)
Retrieves the primary contact information of an Amazon Web Services account.
|
GetPrimaryEmailResult |
getPrimaryEmail(GetPrimaryEmailRequest getPrimaryEmailRequest)
Retrieves the primary email address for the specified account.
|
GetRegionOptStatusResult |
getRegionOptStatus(GetRegionOptStatusRequest getRegionOptStatusRequest)
Retrieves the opt-in status of a particular Region.
|
ListRegionsResult |
listRegions(ListRegionsRequest listRegionsRequest)
Lists all the Regions for a given account and their respective opt-in statuses.
|
PutAlternateContactResult |
putAlternateContact(PutAlternateContactRequest putAlternateContactRequest)
Modifies the specified alternate contact attached to an Amazon Web Services account.
|
PutContactInformationResult |
putContactInformation(PutContactInformationRequest putContactInformationRequest)
Updates the primary contact information of an Amazon Web Services account.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
StartPrimaryEmailUpdateResult |
startPrimaryEmailUpdate(StartPrimaryEmailUpdateRequest startPrimaryEmailUpdateRequest)
Starts the process to update the primary email address for the specified account.
|
static final String ENDPOINT_PREFIX
AcceptPrimaryEmailUpdateResult acceptPrimaryEmailUpdate(AcceptPrimaryEmailUpdateRequest acceptPrimaryEmailUpdateRequest)
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.
acceptPrimaryEmailUpdateRequest
- ResourceNotFoundException
- The operation failed because it specified a resource that can't be found.ValidationException
- The operation failed because one of the input parameters was invalid.ConflictException
- The request could not be processed because of a conflict in the current status of the resource. For
example, this happens if you try to enable a Region that is currently being disabled (in a status of
DISABLING).AccessDeniedException
- The operation failed because the calling identity doesn't have the minimum required permissions.TooManyRequestsException
- The operation failed because it was called too frequently and exceeded a throttle limit.InternalServerException
- The operation failed because of an error internal to Amazon Web Services. Try your operation again later.DeleteAlternateContactResult deleteAlternateContact(DeleteAlternateContactRequest deleteAlternateContactRequest)
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.
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.
deleteAlternateContactRequest
- ResourceNotFoundException
- The operation failed because it specified a resource that can't be found.ValidationException
- The operation failed because one of the input parameters was invalid.AccessDeniedException
- The operation failed because the calling identity doesn't have the minimum required permissions.TooManyRequestsException
- The operation failed because it was called too frequently and exceeded a throttle limit.InternalServerException
- The operation failed because of an error internal to Amazon Web Services. Try your operation again later.DisableRegionResult disableRegion(DisableRegionRequest disableRegionRequest)
Disables (opts-out) a particular Region for an account.
The act of disabling a Region will remove all IAM access to any resources that reside in that Region.
disableRegionRequest
- ValidationException
- The operation failed because one of the input parameters was invalid.ConflictException
- The request could not be processed because of a conflict in the current status of the resource. For
example, this happens if you try to enable a Region that is currently being disabled (in a status of
DISABLING).AccessDeniedException
- The operation failed because the calling identity doesn't have the minimum required permissions.TooManyRequestsException
- The operation failed because it was called too frequently and exceeded a throttle limit.InternalServerException
- The operation failed because of an error internal to Amazon Web Services. Try your operation again later.EnableRegionResult enableRegion(EnableRegionRequest enableRegionRequest)
Enables (opts-in) a particular Region for an account.
enableRegionRequest
- ValidationException
- The operation failed because one of the input parameters was invalid.ConflictException
- The request could not be processed because of a conflict in the current status of the resource. For
example, this happens if you try to enable a Region that is currently being disabled (in a status of
DISABLING).AccessDeniedException
- The operation failed because the calling identity doesn't have the minimum required permissions.TooManyRequestsException
- The operation failed because it was called too frequently and exceeded a throttle limit.InternalServerException
- The operation failed because of an error internal to Amazon Web Services. Try your operation again later.GetAlternateContactResult getAlternateContact(GetAlternateContactRequest getAlternateContactRequest)
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.
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.
getAlternateContactRequest
- ResourceNotFoundException
- The operation failed because it specified a resource that can't be found.ValidationException
- The operation failed because one of the input parameters was invalid.AccessDeniedException
- The operation failed because the calling identity doesn't have the minimum required permissions.TooManyRequestsException
- The operation failed because it was called too frequently and exceeded a throttle limit.InternalServerException
- The operation failed because of an error internal to Amazon Web Services. Try your operation again later.GetContactInformationResult getContactInformation(GetContactInformationRequest getContactInformationRequest)
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.
getContactInformationRequest
- ResourceNotFoundException
- The operation failed because it specified a resource that can't be found.ValidationException
- The operation failed because one of the input parameters was invalid.AccessDeniedException
- The operation failed because the calling identity doesn't have the minimum required permissions.TooManyRequestsException
- The operation failed because it was called too frequently and exceeded a throttle limit.InternalServerException
- The operation failed because of an error internal to Amazon Web Services. Try your operation again later.GetPrimaryEmailResult getPrimaryEmail(GetPrimaryEmailRequest getPrimaryEmailRequest)
Retrieves the primary email address for the specified account.
getPrimaryEmailRequest
- ResourceNotFoundException
- The operation failed because it specified a resource that can't be found.ValidationException
- The operation failed because one of the input parameters was invalid.AccessDeniedException
- The operation failed because the calling identity doesn't have the minimum required permissions.TooManyRequestsException
- The operation failed because it was called too frequently and exceeded a throttle limit.InternalServerException
- The operation failed because of an error internal to Amazon Web Services. Try your operation again later.GetRegionOptStatusResult getRegionOptStatus(GetRegionOptStatusRequest getRegionOptStatusRequest)
Retrieves the opt-in status of a particular Region.
getRegionOptStatusRequest
- ValidationException
- The operation failed because one of the input parameters was invalid.AccessDeniedException
- The operation failed because the calling identity doesn't have the minimum required permissions.TooManyRequestsException
- The operation failed because it was called too frequently and exceeded a throttle limit.InternalServerException
- The operation failed because of an error internal to Amazon Web Services. Try your operation again later.ListRegionsResult listRegions(ListRegionsRequest listRegionsRequest)
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.
listRegionsRequest
- ValidationException
- The operation failed because one of the input parameters was invalid.AccessDeniedException
- The operation failed because the calling identity doesn't have the minimum required permissions.TooManyRequestsException
- The operation failed because it was called too frequently and exceeded a throttle limit.InternalServerException
- The operation failed because of an error internal to Amazon Web Services. Try your operation again later.PutAlternateContactResult putAlternateContact(PutAlternateContactRequest putAlternateContactRequest)
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.
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.
putAlternateContactRequest
- ValidationException
- The operation failed because one of the input parameters was invalid.AccessDeniedException
- The operation failed because the calling identity doesn't have the minimum required permissions.TooManyRequestsException
- The operation failed because it was called too frequently and exceeded a throttle limit.InternalServerException
- The operation failed because of an error internal to Amazon Web Services. Try your operation again later.PutContactInformationResult putContactInformation(PutContactInformationRequest putContactInformationRequest)
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.
putContactInformationRequest
- ValidationException
- The operation failed because one of the input parameters was invalid.AccessDeniedException
- The operation failed because the calling identity doesn't have the minimum required permissions.TooManyRequestsException
- The operation failed because it was called too frequently and exceeded a throttle limit.InternalServerException
- The operation failed because of an error internal to Amazon Web Services. Try your operation again later.StartPrimaryEmailUpdateResult startPrimaryEmailUpdate(StartPrimaryEmailUpdateRequest startPrimaryEmailUpdateRequest)
Starts the process to update the primary email address for the specified account.
startPrimaryEmailUpdateRequest
- ResourceNotFoundException
- The operation failed because it specified a resource that can't be found.ValidationException
- The operation failed because one of the input parameters was invalid.ConflictException
- The request could not be processed because of a conflict in the current status of the resource. For
example, this happens if you try to enable a Region that is currently being disabled (in a status of
DISABLING).AccessDeniedException
- The operation failed because the calling identity doesn't have the minimum required permissions.TooManyRequestsException
- The operation failed because it was called too frequently and exceeded a throttle limit.InternalServerException
- The operation failed because of an error internal to Amazon Web Services. Try your operation again later.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.