You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(stepfunctions): custom state as an escape hatch
Custom State which enables the capability to provide Amazon States Language (ASL) JSON as an escape hatch. Useful when there are capabilities that are offered through Step Functions such as service integrations, and state properties but there isn't support through the CDK yet.
It enables the usage of all service integrations we don't currently support.
It's possible that the high-level constructs for the states or `stepfunctions-tasks` do not have
263
+
the states or service integrations you are looking for. The primary reasons for this lack of
264
+
functionality are:
265
+
266
+
* A [service integration](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-service-integrations.html) is available through Amazon States Langauge, but not available as construct
267
+
classes in the CDK.
268
+
* The state or state properties are available through Step Functions, but are not configurable
269
+
through constructs
270
+
271
+
If a feature is not available, a `CustomState` can be used to supply any Amazon States Language
272
+
JSON-based object as the state definition.
273
+
274
+
[Code Snippets](https://docs.aws.amazon.com/step-functions/latest/dg/tutorial-code-snippet.html#tutorial-code-snippet-1) are available and can be plugged in as the state definition.
275
+
276
+
Custom states can be chained together with any of the other states to create your state machine
277
+
definition. You will also need to provide any permissions that are required to the `role` that
278
+
the State Machine uses.
279
+
280
+
The following example uses the `DynamoDB` service integration to insert data into a DynamoDB table.
0 commit comments