GitHub Raw JSON API

aws / aws-sam-cli

6,733 Python

CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM

aws-sam-cli Specification

Located in tests/functional/commands/validate/lib/models/api_request_model_openapi_3.yaml on branch HEAD

Unknown YAML 1.2 KB
Raw YAML Specification
Resources:
  HtmlFunction:
    Type: AWS::Serverless::Function
    Properties:
      CodeUri: s3://sam-demo-bucket/member_portal.zip
      Handler: index.gethtml
      Runtime: nodejs18.x
      Events:
        GetHtml:
          Type: Api
          Properties:
            RestApiId: HtmlApi
            Path: /
            Method: get
            RequestModel:
              Model: User
              Required: true
        Iam:
          Type: Api
          Properties:
            RequestModel:
              Model: User
              Required: true
            RestApiId:
              Ref: HtmlApi
            Method: get
            Path: /iam
            Auth:
              Authorizer: AWS_IAM
        AnyIam:
          Type: Api
          Properties:
            RequestModel:
              Model: User
              Required: true
            RestApiId:
              Ref: HtmlApi
            Method: any
            Path: /any/iam
            Auth:
              Authorizer: AWS_IAM


  HtmlApi:
    Type: AWS::Serverless::Api
    Properties:
      StageName: Prod
      OpenApiVersion: 3.0
      Models:
        User:
          type: object
          properties:
            username:
              type: string