PutAccountPreferences - Amazon Elastic File System

PutAccountPreferences

Use this operation to set the account preference in the current AWS Region to use either long 17 character (63 bit) or short 8 character (32 bit) IDs for new EFS file systems and mount targets created. All existing resource IDs are not affected by any changes you make. You can set the ID preference during the opt-in period as EFS transitions to long resource IDs. For more information, see Managing Amazon EFS resource IDs.

Request Syntax

PUT /2015-02-01/account-preferences HTTP/1.1 Content-type: application/json { "ResourceIdType": "string" }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

ResourceIdType

Specifies the EFS resource ID preference to set for the user's AWS account, in the current AWS Region, either LONG_ID (17 characters), or SHORT_ID (8 characters).

Type: String

Valid Values: LONG_ID | SHORT_ID

Required: Yes

Response Syntax

HTTP/1.1 200 Content-type: application/json { "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.

ResourceIdPreference

Describes the resource type and its ID preference for the user's AWS account, in the current AWS Region.

Type: ResourceIdPreference object

Errors

InternalServerError

Returned if an error occurred on the server side.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: