integration/resources/templates/combination/connector_function_to_sfn_read.yaml [1:39]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Resources:
  StateMachineFunction:
    Type: AWS::Serverless::Function
    Properties:
      InlineCode: |
        exports.handler = async (event) => {
          console.log("Hello world!")
        };
      Handler: index.handler
      Runtime: nodejs18.x

  StateMachine:
    Type: AWS::Serverless::StateMachine
    Properties:
      Type: STANDARD
      Definition:
        StartAt: MyLambdaState
        States:
          MyLambdaState:
            Type: Task
            Resource: !GetAtt StateMachineFunction.Arn
            End: true
      Policies:
      - LambdaInvokePolicy:
          FunctionName: !Ref StateMachineFunction

  TriggerFunction:
    Type: AWS::Serverless::Function
    Properties:
      Runtime: nodejs18.x
      Handler: index.handler
      InlineCode: |
        const {
          SFN: StepFunctions
        } = require("@aws-sdk/client-sfn");
        exports.handler = async (event) => {
          console.log(JSON.stringify(event));
          var params = {
            stateMachineArn: process.env.SFN_ARN,
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



integration/resources/templates/combination/connector_function_to_sfn_write.yaml [1:39]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Resources:
  StateMachineFunction:
    Type: AWS::Serverless::Function
    Properties:
      InlineCode: |
        exports.handler = async (event) => {
          console.log("Hello world!")
        };
      Handler: index.handler
      Runtime: nodejs18.x

  StateMachine:
    Type: AWS::Serverless::StateMachine
    Properties:
      Type: STANDARD
      Definition:
        StartAt: MyLambdaState
        States:
          MyLambdaState:
            Type: Task
            Resource: !GetAtt StateMachineFunction.Arn
            End: true
      Policies:
      - LambdaInvokePolicy:
          FunctionName: !Ref StateMachineFunction

  TriggerFunction:
    Type: AWS::Serverless::Function
    Properties:
      Runtime: nodejs18.x
      Handler: index.handler
      InlineCode: |
        const {
          SFN: StepFunctions
        } = require("@aws-sdk/client-sfn");
        exports.handler = async (event) => {
          console.log(JSON.stringify(event));
          var params = {
            stateMachineArn: process.env.SFN_ARN,
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



