UNPKG

1.15 kBTypeScriptView Raw
1import * as jsonSchema from './json-schema';
2export declare const ALL_METHODS: string[];
3export declare function validateHttpMethod(method: string, messagePrefix?: string): void;
4export declare function parseMethodOptionsPath(originalPath: string): {
5 resourcePath: string;
6 httpMethod: string;
7};
8export declare function parseAwsApiCall(path?: string, action?: string, actionParams?: {
9 [key: string]: string;
10}): {
11 apiType: string;
12 apiValue: string;
13};
14export declare function validateInteger(property: number | undefined, messagePrefix: string): void;
15export declare function validateDouble(property: number | undefined, messagePrefix: string): void;
16export declare class JsonSchemaMapper {
17 /**
18 * Transforms naming of some properties to prefix with a $, where needed
19 * according to the JSON schema spec
20 * @param schema The JsonSchema object to transform for CloudFormation output
21 */
22 static toCfnJsonSchema(schema: jsonSchema.JsonSchema): any;
23 private static readonly SchemaPropsWithPrefix;
24 private static readonly SchemaPropsWithUserDefinedChildren;
25 private static _toCfnJsonSchema;
26}