Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
18 changes: 17 additions & 1 deletion src/fragments/lib-v1/analytics/android/existing-resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,20 @@ Existing Amazon Pinpoint resources can be used with the Amplify Libraries by ref
- **pinpointTargeting**
- **region**: AWS Region where the resources are provisioned (e.g. `us-east-1`)

Note that before you can add an AWS resource to your application, the application must have the Amplify libraries installed. If you need to perform this step, see [Install Amplify Libraries](/gen1/[platform]/prev/start/project-setup/create-application/#n2-install-amplify-libraries).
Note that before you can add an AWS resource to your application, the application must have the Amplify libraries installed. If you need to perform this step, see [Install Amplify Libraries](/gen1/[platform]/prev/start/project-setup/create-application/#n2-install-amplify-libraries).

## Update your IAM Policy

Amazon Pinpoint requires an AWS Identity and Access Management (IAM) policy in order to use the `record` and `identifyUser` APIs:
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["mobiletargeting:UpdateEndpoint", "mobiletargeting:PutEvents"],
"Resource": ["arn:aws:mobiletargeting:*:<your-account-id>:apps/<your-pinpoint-app-id>*"]
}
]
}
```
16 changes: 16 additions & 0 deletions src/fragments/lib-v1/analytics/flutter/existing-resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,19 @@ Existing Amazon Pinpoint resources can be used with the Amplify Libraries by ref
- **region**: AWS Region where the resources are provisioned (e.g. `us-east-1`)

Note that before you can add an AWS resource to your application, the application must have the Amplify libraries installed. If you need to perform this step, see [Install Amplify Libraries](/gen1/[platform]/prev/start/project-setup/create-application/#n2-install-amplify-libraries).

## Update your IAM Policy

Amazon Pinpoint requires an AWS Identity and Access Management (IAM) policy in order to use the `record` and `identifyUser` APIs:
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["mobiletargeting:UpdateEndpoint", "mobiletargeting:PutEvents"],
"Resource": ["arn:aws:mobiletargeting:*:<your-account-id>:apps/<your-pinpoint-app-id>*"]
}
]
}
```
16 changes: 16 additions & 0 deletions src/fragments/lib-v1/analytics/ios/existing-resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,19 @@ Existing Amazon Pinpoint resources can be used with the Amplify Libraries by ref
- **region**: AWS Region where the resources are provisioned (e.g. `us-east-1`)

Note that before you can add an AWS resource to your application, the application must have the Amplify libraries installed. If you need to perform this step, see [Install Amplify Libraries](/gen1/[platform]/prev/start/project-setup/create-application/#n2-install-amplify-libraries).

## Update your IAM Policy

Amazon Pinpoint requires an AWS Identity and Access Management (IAM) policy in order to use the `record` and `identifyUser` APIs:
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["mobiletargeting:UpdateEndpoint", "mobiletargeting:PutEvents"],
"Resource": ["arn:aws:mobiletargeting:*:<your-account-id>:apps/<your-pinpoint-app-id>*"]
}
]
}
```
16 changes: 16 additions & 0 deletions src/fragments/lib/analytics/android/existing-resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,19 @@ Existing Amazon Pinpoint resources can be used with the Amplify Libraries by ref
- **region**: AWS Region where the resources are provisioned (e.g. `us-east-1`)

Note that before you can add an AWS resource to your application, the application must have the Amplify libraries installed. If you need to perform this step, see [Install Amplify Libraries](/gen1/[platform]/start/project-setup/create-application/#n2-install-amplify-libraries).

## Update your IAM Policy

Amazon Pinpoint requires an AWS Identity and Access Management (IAM) policy in order to use the `record` and `identifyUser` APIs:
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["mobiletargeting:UpdateEndpoint", "mobiletargeting:PutEvents"],
"Resource": ["arn:aws:mobiletargeting:*:<your-account-id>:apps/<your-pinpoint-app-id>*"]
}
]
}
```
16 changes: 16 additions & 0 deletions src/fragments/lib/analytics/flutter/existing-resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,19 @@ Existing Amazon Pinpoint resources can be used with the Amplify Libraries by ref
- **region**: AWS Region where the resources are provisioned (e.g. `us-east-1`)

Note that before you can add an AWS resource to your application, the application must have the Amplify libraries installed. If you need to perform this step, see [Install Amplify Libraries](/gen1/[platform]/start/project-setup/create-application/#n2-install-amplify-libraries).

## Update your IAM Policy

Amazon Pinpoint requires an AWS Identity and Access Management (IAM) policy in order to use the `record` and `identifyUser` APIs:
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["mobiletargeting:UpdateEndpoint", "mobiletargeting:PutEvents"],
"Resource": ["arn:aws:mobiletargeting:*:<your-account-id>:apps/<your-pinpoint-app-id>*"]
}
]
}
```
18 changes: 17 additions & 1 deletion src/fragments/lib/analytics/ios/existing-resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,20 @@ Existing Amazon Pinpoint resources can be used with the Amplify Libraries by ref
- **appId**: Amazon Pinpoint application ID
- **region**: AWS Region where the resources are provisioned (e.g. `us-east-1`)

Note that before you can add an AWS resource to your application, the application must have the Amplify libraries installed. If you need to perform this step, see [Install Amplify Libraries](/gen1/[platform]/start/project-setup/create-application/#n2-install-amplify-libraries).
Note that before you can add an AWS resource to your application, the application must have the Amplify libraries installed. If you need to perform this step, see [Install Amplify Libraries](/gen1/[platform]/start/project-setup/create-application/#n2-install-amplify-libraries).

## Update your IAM Policy

Amazon Pinpoint requires an AWS Identity and Access Management (IAM) policy in order to use the `record` and `identifyUser` APIs:
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["mobiletargeting:UpdateEndpoint", "mobiletargeting:PutEvents"],
"Resource": ["arn:aws:mobiletargeting:*:<your-account-id>:apps/<your-pinpoint-app-id>*"]
}
]
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Amplify.configure({
}
});
```
</InlineFilter>

## Update your IAM Policy

Expand All @@ -97,4 +98,3 @@ Amazon Pinpoint requires an AWS Identity and Access Management (IAM) policy in o
}
```

</InlineFilter>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please explain why this moved?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the ## Update your IAM Policy section is applicable to all platforms. the JS platform section should start after the ## Update your IAM Policy