DescribeAccountPreferences
Returns the account preferences settings for the AWS account associated with the user making the request, in the current AWS Region.
Request Syntax
GET /2015-02-01/account-preferences HTTP/1.1
Content-type: application/json
{
"MaxResults": number
,
"NextToken": "string
"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- MaxResults
-
(Optional) When retrieving account preferences, you can optionally specify the
MaxItems
parameter to limit the number of objects returned in a response. The default value is 100.Type: Integer
Valid Range: Minimum value of 1.
Required: No
- NextToken
-
(Optional) You can use
NextToken
in a subsequent request to fetch the next page of AWS account preferences if the response payload was paginated.Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
.+
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"NextToken": "string",
"ResourceIdPreference": {
"ResourceIdType": "string",
"Resources": [ "string" ]
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- NextToken
-
Present if there are more records than returned in the response. You can use the
NextToken
in the subsequent request to fetch the additional descriptions.Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
.+
- ResourceIdPreference
-
Describes the resource ID preference setting for the AWS account associated with the user making the request, in the current AWS Region.
Type: ResourceIdPreference object
Errors
- InternalServerError
-
Returned if an error occurred on the server side.
- ErrorCode
-
The error code is a string that uniquely identifies an error condition. It is meant to be read and understood by programs that detect and handle errors by type.
- Message
-
The error message contains a generic description of the error condition in English. It is intended for a human audience. Simple programs display the message directly to the end user if they encounter an error condition they don't know how or don't care to handle. Sophisticated programs with more exhaustive error handling and proper internationalization are more likely to ignore the error message.
HTTP Status Code: 500
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: