aws / aws-sdk-mobile-analytics-js

Amazon Mobile Analytics JavaScript SDK
Apache License 2.0
82 stars 38 forks source link

Add possibility to configure region specific for mobile analytics #11

Closed MattiasLindskog closed 8 years ago

MattiasLindskog commented 8 years ago

We use the eu-west-1 region when possible. Since mobile analytics is only available in us-east-1 it would be great to have a possibility to configure the region when setting up a new manager instead of having to use AWS.config.region.

cheruvian commented 8 years ago

With release 0.9.1 you can now pass options like region directly to the low level client via the clientOptions configuration.

new AMA.Manager({ appId: APPLICATION_ID, clientOptions: { region: 'us-east-1', } })