EFS / Client / put_account_preferences

put_account_preferences#

EFS.Client.put_account_preferences(**kwargs)#

Use this operation to set the account preference in the current Amazon Web Services Region to use long 17 character (63 bit) or short 8 character (32 bit) resource IDs for new EFS file system and mount target resources. 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.

Note

Starting in October, 2021, you will receive an error if you try to set the account preference to use the short 8 character format resource ID. Contact Amazon Web Services support if you receive an error and must use short IDs for file system and mount target resources.

See also: AWS API Documentation

Request Syntax

response = client.put_account_preferences(
    ResourceIdType='LONG_ID'|'SHORT_ID'
)
Parameters:

ResourceIdType (string) –

[REQUIRED]

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

Note

Starting in October, 2021, you will receive an error when setting the account preference to SHORT_ID. Contact Amazon Web Services support if you receive an error and must use short IDs for file system and mount target resources.

Return type:

dict

Returns:

Response Syntax

{
    'ResourceIdPreference': {
        'ResourceIdType': 'LONG_ID'|'SHORT_ID',
        'Resources': [
            'FILE_SYSTEM'|'MOUNT_TARGET',
        ]
    }
}

Response Structure

  • (dict) –

    • ResourceIdPreference (dict) –

      Describes the resource type and its ID preference for the user’s Amazon Web Services account, in the current Amazon Web Services Region.

      • ResourceIdType (string) –

        Identifies the EFS resource ID preference, either LONG_ID (17 characters) or SHORT_ID (8 characters).

      • Resources (list) –

        Identifies the Amazon EFS resources to which the ID preference setting applies, FILE_SYSTEM and MOUNT_TARGET.

        • (string) – An EFS resource, for example a file system or a mount target.

Exceptions

  • EFS.Client.exceptions.BadRequest

  • EFS.Client.exceptions.InternalServerError