Skip to content

Commit a85dde6

Browse files
authored
fix(analytics): add update iam policy section to existing resources page for flutter and natives (#7914)
1 parent e72eead commit a85dde6

File tree

7 files changed

+99
-3
lines changed

7 files changed

+99
-3
lines changed

src/fragments/lib-v1/analytics/android/existing-resources.mdx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,20 @@ Existing Amazon Pinpoint resources can be used with the Amplify Libraries by ref
2424
- **pinpointTargeting**
2525
- **region**: AWS Region where the resources are provisioned (e.g. `us-east-1`)
2626

27-
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).
27+
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).
28+
29+
## Update your IAM Policy
30+
31+
Amazon Pinpoint requires an AWS Identity and Access Management (IAM) policy in order to use the `record` and `identifyUser` APIs:
32+
```json
33+
{
34+
"Version": "2012-10-17",
35+
"Statement": [
36+
{
37+
"Effect": "Allow",
38+
"Action": ["mobiletargeting:UpdateEndpoint", "mobiletargeting:PutEvents"],
39+
"Resource": ["arn:aws:mobiletargeting:*:<your-account-id>:apps/<your-pinpoint-app-id>*"]
40+
}
41+
]
42+
}
43+
```

src/fragments/lib-v1/analytics/flutter/existing-resources.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,19 @@ Existing Amazon Pinpoint resources can be used with the Amplify Libraries by ref
2525
- **region**: AWS Region where the resources are provisioned (e.g. `us-east-1`)
2626

2727
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).
28+
29+
## Update your IAM Policy
30+
31+
Amazon Pinpoint requires an AWS Identity and Access Management (IAM) policy in order to use the `record` and `identifyUser` APIs:
32+
```json
33+
{
34+
"Version": "2012-10-17",
35+
"Statement": [
36+
{
37+
"Effect": "Allow",
38+
"Action": ["mobiletargeting:UpdateEndpoint", "mobiletargeting:PutEvents"],
39+
"Resource": ["arn:aws:mobiletargeting:*:<your-account-id>:apps/<your-pinpoint-app-id>*"]
40+
}
41+
]
42+
}
43+
```

src/fragments/lib-v1/analytics/ios/existing-resources.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,19 @@ Existing Amazon Pinpoint resources can be used with the Amplify Libraries by ref
2727
- **region**: AWS Region where the resources are provisioned (e.g. `us-east-1`)
2828

2929
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).
30+
31+
## Update your IAM Policy
32+
33+
Amazon Pinpoint requires an AWS Identity and Access Management (IAM) policy in order to use the `record` and `identifyUser` APIs:
34+
```json
35+
{
36+
"Version": "2012-10-17",
37+
"Statement": [
38+
{
39+
"Effect": "Allow",
40+
"Action": ["mobiletargeting:UpdateEndpoint", "mobiletargeting:PutEvents"],
41+
"Resource": ["arn:aws:mobiletargeting:*:<your-account-id>:apps/<your-pinpoint-app-id>*"]
42+
}
43+
]
44+
}
45+
```

src/fragments/lib/analytics/android/existing-resources.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,19 @@ Existing Amazon Pinpoint resources can be used with the Amplify Libraries by ref
2525
- **region**: AWS Region where the resources are provisioned (e.g. `us-east-1`)
2626

2727
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).
28+
29+
## Update your IAM Policy
30+
31+
Amazon Pinpoint requires an AWS Identity and Access Management (IAM) policy in order to use the `record` and `identifyUser` APIs:
32+
```json
33+
{
34+
"Version": "2012-10-17",
35+
"Statement": [
36+
{
37+
"Effect": "Allow",
38+
"Action": ["mobiletargeting:UpdateEndpoint", "mobiletargeting:PutEvents"],
39+
"Resource": ["arn:aws:mobiletargeting:*:<your-account-id>:apps/<your-pinpoint-app-id>*"]
40+
}
41+
]
42+
}
43+
```

src/fragments/lib/analytics/flutter/existing-resources.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,19 @@ Existing Amazon Pinpoint resources can be used with the Amplify Libraries by ref
2525
- **region**: AWS Region where the resources are provisioned (e.g. `us-east-1`)
2626

2727
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).
28+
29+
## Update your IAM Policy
30+
31+
Amazon Pinpoint requires an AWS Identity and Access Management (IAM) policy in order to use the `record` and `identifyUser` APIs:
32+
```json
33+
{
34+
"Version": "2012-10-17",
35+
"Statement": [
36+
{
37+
"Effect": "Allow",
38+
"Action": ["mobiletargeting:UpdateEndpoint", "mobiletargeting:PutEvents"],
39+
"Resource": ["arn:aws:mobiletargeting:*:<your-account-id>:apps/<your-pinpoint-app-id>*"]
40+
}
41+
]
42+
}
43+
```

src/fragments/lib/analytics/ios/existing-resources.mdx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,20 @@ Existing Amazon Pinpoint resources can be used with the Amplify Libraries by ref
1919
- **appId**: Amazon Pinpoint application ID
2020
- **region**: AWS Region where the resources are provisioned (e.g. `us-east-1`)
2121

22-
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).
22+
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).
23+
24+
## Update your IAM Policy
25+
26+
Amazon Pinpoint requires an AWS Identity and Access Management (IAM) policy in order to use the `record` and `identifyUser` APIs:
27+
```json
28+
{
29+
"Version": "2012-10-17",
30+
"Statement": [
31+
{
32+
"Effect": "Allow",
33+
"Action": ["mobiletargeting:UpdateEndpoint", "mobiletargeting:PutEvents"],
34+
"Resource": ["arn:aws:mobiletargeting:*:<your-account-id>:apps/<your-pinpoint-app-id>*"]
35+
}
36+
]
37+
}
38+
```

src/pages/[platform]/build-a-backend/add-aws-services/analytics/existing-resources/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ Amplify.configure({
8080
}
8181
});
8282
```
83+
</InlineFilter>
8384

8485
## Update your IAM Policy
8586

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

100-
</InlineFilter>

0 commit comments

Comments
 (0)