Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/191.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 如何在AWS SAM语法中定义从API网关调用状态机_Amazon Web Services_Amazon Cloudformation_Aws Step Functions_Aws Sam - Fatal编程技术网

Amazon web services 如何在AWS SAM语法中定义从API网关调用状态机

Amazon web services 如何在AWS SAM语法中定义从API网关调用状态机,amazon-web-services,amazon-cloudformation,aws-step-functions,aws-sam,Amazon Web Services,Amazon Cloudformation,Aws Step Functions,Aws Sam,我试图为我的aws sam模板找到正确的定义,用于从api代理请求调用状态机。这可以使用AWS::Serverless::Api和swagger定义来实现吗?我现在有一个调用,它指向一个lambda,我想用我的状态机替换它 paths: "/{userUd}": any: x-amazon-apigateway-integration: httpMethod: POST type: aws_proxy uri: Fn::Sub: arn:a

我试图为我的aws sam模板找到正确的定义,用于从api代理请求调用状态机。这可以使用AWS::Serverless::Api和swagger定义来实现吗?我现在有一个调用,它指向一个lambda,我想用我的状态机替换它

paths:
  "/{userUd}":
  any:
    x-amazon-apigateway-integration:
    httpMethod: POST
    type: aws_proxy
    uri:
        Fn::Sub: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${userFunction.Arn}/invocations
    responses: {}
或者我必须使用RestAPI网关模型?如果是这样的话,一个例子将是惊人的,因为我很难找到任何