Skip to content

Commit

Permalink
feat(amplify-category-geo): add permissions for suggestions (#9743)
Browse files Browse the repository at this point in the history
  • Loading branch information
phani-srikar committed Feb 11, 2022
1 parent 9404a0c commit 943c7ed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Array [
"geo:DescribePlaceIndex",
"geo:SearchPlaceIndexForPosition",
"geo:SearchPlaceIndexForText",
"geo:SearchPlaceIndexForSuggestions",
"geo:DeletePlaceIndex",
],
"Effect": "Allow",
Expand Down Expand Up @@ -282,6 +283,7 @@ Array [
"geo:DescribePlaceIndex",
"geo:SearchPlaceIndexForPosition",
"geo:SearchPlaceIndexForText",
"geo:SearchPlaceIndexForSuggestions",
],
"Effect": "Allow",
"Resource": Array [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ function send(event, context, status, data) {
"Action": Array [
"geo:SearchPlaceIndexForPosition",
"geo:SearchPlaceIndexForText",
"geo:SearchPlaceIndexForSuggestions",
],
"Effect": "Allow",
"Resource": Object {
Expand Down Expand Up @@ -632,6 +633,7 @@ function send(event, context, status, data) {
"Action": Array [
"geo:SearchPlaceIndexForPosition",
"geo:SearchPlaceIndexForText",
"geo:SearchPlaceIndexForSuggestions",
],
"Effect": "Allow",
"Resource": Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class PlaceIndexStack extends BaseStack {
statements: [
new iam.PolicyStatement({
effect: iam.Effect.ALLOW,
actions: ['geo:SearchPlaceIndexForPosition', 'geo:SearchPlaceIndexForText'],
actions: ['geo:SearchPlaceIndexForPosition', 'geo:SearchPlaceIndexForText', 'geo:SearchPlaceIndexForSuggestions'],
resources: [indexResource.getAtt('IndexArn').toString()],
}),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export const getPlaceIndexIamPolicies = (resourceName: string, crudOptions: stri
actions.add('geo:DescribePlaceIndex');
actions.add('geo:SearchPlaceIndexForPosition');
actions.add('geo:SearchPlaceIndexForText');
actions.add('geo:SearchPlaceIndexForSuggestions');
break;
case 'delete':
actions.add('geo:DeletePlaceIndex');
Expand Down

0 comments on commit 943c7ed

Please sign in to comment.