@gradientedge/cdk-utils 5.6.0 → 5.7.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.
@@ -128,6 +128,10 @@ export declare class IamManager {
128
128
  * @summary Method to create iam statement to write any log events
129
129
  */
130
130
  statementForPutAnyLogEvent(): cdk.aws_iam.PolicyStatement;
131
+ /**
132
+ * @summary Method to create iam statement to read items from dynamodb table
133
+ */
134
+ statementForReadTableItems(): cdk.aws_iam.PolicyStatement;
131
135
  /**
132
136
  * @summary Method to create iam statement for cloud trail
133
137
  * @param {string} id scoped id of the resource
@@ -303,6 +303,24 @@ class IamManager {
303
303
  resources: ['*'],
304
304
  });
305
305
  }
306
+ /**
307
+ * @summary Method to create iam statement to read items from dynamodb table
308
+ */
309
+ statementForReadTableItems() {
310
+ return new iam.PolicyStatement({
311
+ effect: iam.Effect.ALLOW,
312
+ actions: [
313
+ 'dynamodb:PartiQLSelect',
314
+ 'dynamodb:DescribeTable',
315
+ 'dynamodb:ListTables',
316
+ 'dynamodb:GetItem',
317
+ 'dynamodb:Scan',
318
+ 'dynamodb:Query',
319
+ 'dynamodb:GetRecords',
320
+ ],
321
+ resources: ['*'],
322
+ });
323
+ }
306
324
  /**
307
325
  * @summary Method to create iam statement for cloud trail
308
326
  * @param {string} id scoped id of the resource
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -308,6 +308,25 @@ export class IamManager {
308
308
  })
309
309
  }
310
310
 
311
+ /**
312
+ * @summary Method to create iam statement to read items from dynamodb table
313
+ */
314
+ public statementForReadTableItems() {
315
+ return new iam.PolicyStatement({
316
+ effect: iam.Effect.ALLOW,
317
+ actions: [
318
+ 'dynamodb:PartiQLSelect',
319
+ 'dynamodb:DescribeTable',
320
+ 'dynamodb:ListTables',
321
+ 'dynamodb:GetItem',
322
+ 'dynamodb:Scan',
323
+ 'dynamodb:Query',
324
+ 'dynamodb:GetRecords',
325
+ ],
326
+ resources: ['*'],
327
+ })
328
+ }
329
+
311
330
  /**
312
331
  * @summary Method to create iam statement for cloud trail
313
332
  * @param {string} id scoped id of the resource