

 The [Amazon SDK for JavaScript V3 API Reference Guide](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/) describes in detail all the API operations for the Amazon SDK for JavaScript version 3 (V3). 

# Use Amazon account-based endpoints with DynamoDB
<a name="ddb-account-based-endpoints-v3"></a>

DynamoDB offers [Amazon account-based endpoints](https://docs.amazonaws.cn/amazondynamodb/latest/developerguide/Programming.SDKOverview.html#Programming.SDKs.endpoints) that can improve performance by using your Amazon account ID to streamline request routing. 

To take advantage of this feature, you need to use version 3.656.0 or greater of Amazon SDK for JavaScript version 3. This account-based endpoints feature is enabled by default in this new version.

If you want to opt out of the account-based routing, you have the following options:
+ Configure a DynamoDB service client with the `accountIdEndpointMode` parameter set to `disabled`.
+ Set the environment variable `AWS_ACCOUNT_ID_ENDPOINT_MODE` to `disabled`.
+ Update the shared Amazon config file setting `account_id_endpoint_mode` to `disabled`.

The following snippet is an example of how to disable account-based routing by configuring a DynamoDB service client:

```
const ddbClient = new DynamoDBClient({
  region: "us-west-2",
  accountIdEndpointMode: "disabled" // Disable account ID in the endpoint
});
```

The Amazon SDKs and Tools Reference Guide provides more information on the [other configuration options](https://docs.amazonaws.cn/sdkref/latest/guide/feature-account-endpoints.html).