Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 13 commits into from
Nov 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 - The buffer size for events in number of items.
renebrandel marked this conversation as resolved.
Show resolved Hide resolved
bufferSize: 1000,

// OPTIONAL - The number of events to be deleted from the buffer when flushed.
renebrandel marked this conversation as resolved.
Show resolved Hide resolved
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
Loading