@gradientedge/cdk-utils 8.58.0 → 8.59.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.
@@ -129,6 +129,13 @@ export declare class SfnManager {
129
129
  * @param {apig.IRestApi} api
130
130
  */
131
131
  createApiStep(id: string, scope: common.CommonConstruct, props: types.SfnCallApiGatewayRestApiEndpointProps, api: apig.IRestApi): cdk.aws_stepfunctions_tasks.CallApiGatewayRestApiEndpoint;
132
+ /**
133
+ * @summary Method to create a step function map state
134
+ * @param {string} id scoped id of the resource
135
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
136
+ * @param {types.SfnMapProps} props props for the map state
137
+ */
138
+ createMapState(id: string, scope: common.CommonConstruct, props: types.SfnMapProps): cdk.aws_stepfunctions.Map;
132
139
  /**
133
140
  * @summary Method to create a state machine
134
141
  * @param {string} id scoped id of the resource
@@ -358,6 +358,15 @@ class SfnManager {
358
358
  }
359
359
  return step;
360
360
  }
361
+ /**
362
+ * @summary Method to create a step function map state
363
+ * @param {string} id scoped id of the resource
364
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
365
+ * @param {types.SfnMapProps} props props for the map state
366
+ */
367
+ createMapState(id, scope, props) {
368
+ return new sfn.Map(scope, `${id}`, props);
369
+ }
361
370
  /**
362
371
  * @summary Method to create a state machine
363
372
  * @param {string} id scoped id of the resource
@@ -662,6 +662,13 @@ export interface RuleProps extends events.CfnRuleProps {
662
662
  input?: string;
663
663
  }
664
664
  /**
665
+ * @category cdk-utils.sfn-manager
666
+ * @subcategory Properties
667
+ */
668
+ export interface SfnMapProps extends sfn.MapProps {
669
+ }
670
+ /**
671
+ }
665
672
  * @category cdk-utils.event-manager
666
673
  * @subcategory Properties
667
674
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "8.58.0",
3
+ "version": "8.59.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -10,6 +10,7 @@ import * as tasks from 'aws-cdk-lib/aws-stepfunctions-tasks'
10
10
  import * as common from '../../common'
11
11
  import * as types from '../../types'
12
12
  import * as utils from '../../utils'
13
+ import { SfnMapProps } from '../../types'
13
14
 
14
15
  /**
15
16
  * @stability stable
@@ -402,6 +403,16 @@ export class SfnManager {
402
403
  return step
403
404
  }
404
405
 
406
+ /**
407
+ * @summary Method to create a step function map state
408
+ * @param {string} id scoped id of the resource
409
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
410
+ * @param {types.SfnMapProps} props props for the map state
411
+ */
412
+ public createMapState(id: string, scope: common.CommonConstruct, props: types.SfnMapProps) {
413
+ return new sfn.Map(scope, `${id}`, props)
414
+ }
415
+
405
416
  /**
406
417
  * @summary Method to create a state machine
407
418
  * @param {string} id scoped id of the resource
@@ -708,6 +708,13 @@ export interface RuleProps extends events.CfnRuleProps {
708
708
  }
709
709
 
710
710
  /**
711
+ * @category cdk-utils.sfn-manager
712
+ * @subcategory Properties
713
+ */
714
+ export interface SfnMapProps extends sfn.MapProps {}
715
+
716
+ /**
717
+ }
711
718
  * @category cdk-utils.event-manager
712
719
  * @subcategory Properties
713
720
  */