package awsstepfunctions // Options for creating a single state. // // Example: // // The code below shows an example of how to instantiate this type. // // The values are placeholders you should change. // import "github.com/aws/aws-cdk-go/awscdk" // // var resultSelector interface{} // // singleStateOptions := &SingleStateOptions{ // Comment: jsii.String("comment"), // InputPath: jsii.String("inputPath"), // OutputPath: jsii.String("outputPath"), // PrefixStates: jsii.String("prefixStates"), // ResultPath: jsii.String("resultPath"), // ResultSelector: map[string]interface{}{ // "resultSelectorKey": resultSelector, // }, // StateId: jsii.String("stateId"), // } // type SingleStateOptions struct { // An optional description for this state. Comment *string `field:"optional" json:"comment" yaml:"comment"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // JSONPath expression to select part of the state to be the output to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // String to prefix all stateIds in the state machine with. PrefixStates *string `field:"optional" json:"prefixStates" yaml:"prefixStates"` // ID of newly created containing state. StateId *string `field:"optional" json:"stateId" yaml:"stateId"` }