Skip to content

Commit

Permalink
js(analytics): update pinpoint service provider configuration options…
Browse files Browse the repository at this point in the history
… for V6 (#6261)

* js(analytics): update pinpoint service provider configuration options for V6

* Update src/fragments/lib/analytics/js/existing-resources.mdx

Co-authored-by: Jim Blanchard <[email protected]>

* Update src/fragments/lib/analytics/js/existing-resources.mdx

Co-authored-by: Jim Blanchard <[email protected]>

---------

Co-authored-by: Rene Brandel <[email protected]>
Co-authored-by: Jim Blanchard <[email protected]>
  • Loading branch information
3 people authored Nov 10, 2023
1 parent 55aaef0 commit 97db0de
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/fragments/lib/analytics/js/existing-resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,25 @@ import { Amplify } from 'aws-amplify';
Amplify.configure({
...Amplify.getConfig(),
Analytics: {
...Amplify.getConfig().Analytics,
Pinpoint: {
// REQUIRED - Amazon Pinpoint App Client ID
appId: 'XXXXXXXXXXabcdefghij1234567890ab',

// REQUIRED - Amazon service region
region: 'us-east-1'
region: 'us-east-1',

// OPTIONAL - How many events can be buffered at once.
bufferSize: 1000,

// OPTIONAL - How many events will be flushed from the buffer per batch.
flushSize: 100,

// OPTIONAL - The interval in milliseconds to perform a buffer check and flush if necessary.
flushInterval: 5000, // 5s

// OPTIONAL - The limit for failed recording retries.
resendLimit: 5
}
}
});
Expand Down

0 comments on commit 97db0de

Please sign in to comment.