kochie / cfast

CloudFormation Abstract Syntax Tree format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CloudFormation Abstract Syntax Tree format.

cfast is a specification for representing CloudFormation as an abstract syntax tree. It implements the unist spec.

This document may not be released. See releases for released documents. The latest released version is 0.0.0

Nodes

TemplateRoot

interface TemplateRoot <: Node {
  type: 'TemplateRoot'
  AWSTemplateFormatVersion: string
  Transform: string
  
  Description: string
  Metadata: 
  Parameters: [Parameter]
  Conditions: [Condition]
  Resources: [Resource]
}

Parameter

interface Parameter <: Node {
  type: 'Parameter'
  parameterType: String | Number | List<Number> | CommaDelimitedList | AWSSpecificParameter | SsmParameter
  name: string
  description: string
  default: string
  allowedValues: [string]
  allowedPattern: string
  constraintDescription: string
  maxLength: number
  maxValue: number
  minLength: number
  minValue: number
  noEcho: boolean
}

Resource

interface Resource <: Node {
  type: 'Resource'
  name: string
  resourceType: string
  properties: Properties
}
interface Properties <: Node {
  
}

About

CloudFormation Abstract Syntax Tree format