@hello.nrfcloud.com/nrfcloud-api-helpers 1.4.2 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ import { aws_iam as IAM } from 'aws-cdk-lib';
2
+ export declare const Permissions: (stack: {
3
+ stackName: string;
4
+ region: string;
5
+ account: string;
6
+ }) => IAM.PolicyStatement;
@@ -0,0 +1,7 @@
1
+ import { aws_iam as IAM } from 'aws-cdk-lib';
2
+ export const Permissions = (stack) => new IAM.PolicyStatement({
3
+ actions: ['ssm:GetParametersByPath', 'ssm:GetParameter'],
4
+ resources: [
5
+ `arn:aws:ssm:${stack.region}:${stack.account}:parameter/${stack.stackName}/*`,
6
+ ],
7
+ });
@@ -0,0 +1 @@
1
+ export * from './Permissions.js';
@@ -0,0 +1 @@
1
+ export * from './Permissions.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hello.nrfcloud.com/nrfcloud-api-helpers",
3
- "version": "1.4.2",
3
+ "version": "1.5.0",
4
4
  "description": "Helper functions for integrating nRF Cloud APIs in AWS lambdas written in TypeScript.",
5
5
  "exports": {
6
6
  "./*": {
@@ -92,6 +92,7 @@
92
92
  "@aws-sdk/util-dynamodb": "^3.552.0",
93
93
  "@bifravst/aws-ssm-settings-helpers": "^1.0.3",
94
94
  "@hello.nrfcloud.com/proto": "^6.5.0",
95
- "@sinclair/typebox": "^0.32.20"
95
+ "@sinclair/typebox": "^0.32.20",
96
+ "aws-cdk-lib": "^2.137.0"
96
97
  }
97
98
  }