cloudformation-declarations
Version:
TypeScript declarations and helpers for writing CloudFormation templates in TS or JS.
25 lines (23 loc) • 604 B
text/typescript
// schema of the JSON specification file that we parse and convert into .ts declarations.
export interface SpecFile {
ResourceTypes: SpecTypes;
PropertyTypes: SpecTypes;
}
export interface SpecTypes {
[name: string]: SpecType;
}
export interface SpecType {
Documentation: string;
Properties: {
[name: string]: SpecProperty;
}
}
export interface SpecProperty {
Documentation: string;
UpdateType: 'Mutable' | 'Immutable' | 'Conditional';
Required: boolean;
PrimitiveType?: string;
Type?: string;
ItemType?: string;
PrimitiveItemType?: string;
}