@nolanrigo/cloudformation
Version:
TypeScript-based imperative way to define AWS CloudFormation templates
69 lines (68 loc) • 2.1 kB
TypeScript
import DataType from "./data-types";
export default interface Parameter {
AllowedPattern?: string;
AllowedValues?: any[];
ConstraintDescription?: string;
Default?: any;
Description?: string;
MaxLength?: number;
MaxValue?: number;
MinLength?: number;
MinValue?: number;
NoEcho?: boolean;
Type: DataType | string;
}
export interface StringParameterProperties {
AllowedPattern?: string;
AllowedValues?: string[];
ConstraintDescription?: string;
Default?: string;
Description?: string;
MaxLength?: number;
MinLength?: number;
NoEcho?: boolean;
}
export declare abstract class StringParameterBase implements Parameter {
Type: DataType;
AllowedPattern?: string;
AllowedValues?: string[];
ConstraintDescription?: string;
Default?: string;
Description?: string;
MaxLength?: number;
MinLength?: number;
NoEcho?: boolean;
constructor(Type: DataType, properties?: StringParameterProperties);
}
export declare class StringParameter extends StringParameterBase {
constructor(properties?: StringParameterProperties);
}
export declare class CommaDelimitedListParameter extends StringParameterBase {
constructor(properties?: StringParameterProperties);
}
export interface NumberParameterProperties {
AllowedValues?: number[];
ConstraintDescription?: string;
Default?: number;
Description?: string;
MaxValue?: number;
MinValue?: number;
NoEcho?: boolean;
}
export declare abstract class NumberParameterBase implements Parameter {
Type: DataType;
AllowedValues?: number[];
ConstraintDescription?: string;
Default?: number;
Description?: string;
MaxValue?: number;
MinValue?: number;
NoEcho?: boolean;
constructor(Type: DataType, properties?: NumberParameterProperties);
}
export declare class NumberParameter extends NumberParameterBase {
constructor(properties?: NumberParameterProperties);
}
export declare class ListOfNumbersParameter extends NumberParameterBase {
constructor(properties?: NumberParameterProperties);
}