class FieldUtils
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.FieldUtils |
Java | software.amazon.awscdk.services.stepfunctions.FieldUtils |
Python | aws_cdk.aws_stepfunctions.FieldUtils |
TypeScript (source) | @aws-cdk/aws-stepfunctions » FieldUtils |
Helper functions to work with structures containing fields.
Methods
Name | Description |
---|---|
static contains | Returns whether the given task structure contains the TaskToken field anywhere. |
static find | Return all JSON paths used in the given structure. |
static render | Render a JSON structure containing fields to the right StepFunctions structure. |
TaskToken(obj?)
static containspublic static containsTaskToken(obj?: { [string]: any }): boolean
Parameters
- obj
{ [string]: any }
Returns
boolean
Returns whether the given task structure contains the TaskToken field anywhere.
The field is considered included if the field itself or one of its containing fields occurs anywhere in the payload.
ReferencedPaths(obj?)
static findpublic static findReferencedPaths(obj?: { [string]: any }): string[]
Parameters
- obj
{ [string]: any }
Returns
string[]
Return all JSON paths used in the given structure.
Object(obj?)
static renderpublic static renderObject(obj?: { [string]: any }): { [string]: any }
Parameters
- obj
{ [string]: any }
Returns
{ [string]: any }
Render a JSON structure containing fields to the right StepFunctions structure.