File tree 1 file changed +2
-2
lines changed
packages/aws-cdk-lib/aws-stepfunctions/lib
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -715,12 +715,12 @@ export class ChainDefinitionBody extends DefinitionBody {
715
715
public bind ( scope : Construct , sfnPrincipal : iam . IPrincipal , sfnProps : StateMachineProps ) : DefinitionConfig {
716
716
const graph = new StateGraph ( this . chainable . startState , 'State Machine definition' ) ;
717
717
graph . timeout = sfnProps . timeout ;
718
- graph . comment = sfnProps . comment ;
719
718
for ( const statement of graph . policyStatements ) {
720
719
sfnPrincipal . addToPrincipalPolicy ( statement ) ;
721
720
}
721
+ const graphJson = graph . toGraphJson ( ) ;
722
722
return {
723
- definitionString : Stack . of ( scope ) . toJsonString ( graph . toGraphJson ( ) ) ,
723
+ definitionString : Stack . of ( scope ) . toJsonString ( { ... graphJson , Comment : sfnProps . comment } ) ,
724
724
} ;
725
725
}
726
726
}
You can’t perform that action at this time.
0 commit comments