-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Adding build artifacts so we can use them directly.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
node_modules/ | ||
lib | ||
# lib |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import validator = require('./validator'); | ||
export interface APIValidationOptions { | ||
parameters: { | ||
[parameterName: string]: any; | ||
}; | ||
pseudoParameters: { | ||
[pseudoParameterName: string]: any; | ||
}; | ||
} | ||
export declare type ValidationOptions = APIValidationOptions & validator.ValidateOptions; | ||
export declare type ValidationResult = validator.ErrorObject; | ||
/** | ||
* Synchronously validates a CloudFormation yaml or json file. | ||
* @param fileName | ||
* @param options | ||
*/ | ||
export declare function validateFile(fileName: string, options?: Partial<ValidationOptions>): ValidationResult; | ||
/** | ||
* Synchronously validates an object. The object should be what you | ||
* get from JSON.parse-ing or yaml.load-ing a CloudFormation template. | ||
* @param objectToValidate | ||
* @param options | ||
*/ | ||
export declare function validateJsonObject(objectToValidate: any, options?: Partial<ValidationOptions>): ValidationResult; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
export declare const awsExtraDocs: { | ||
[k: string]: string; | ||
}; | ||
export declare type AWSPrimitiveType = 'String' | 'Integer' | 'Boolean' | 'Json' | 'Double' | 'Long' | 'Timestamp'; | ||
export interface PropertyBase { | ||
Required: boolean; | ||
Documentation: string; | ||
UpdateType: 'Mutable' | 'Immutable' | 'Conditional'; | ||
} | ||
export interface PrimitiveProperty extends PropertyBase { | ||
PrimitiveType: AWSPrimitiveType; | ||
Type: undefined; | ||
ItemType: undefined; | ||
PrimitiveItemType: undefined; | ||
} | ||
export interface ComplexProperty extends PropertyBase { | ||
Type: string; | ||
PrimitiveType: undefined; | ||
ItemType: undefined; | ||
PrimitiveItemType: undefined; | ||
} | ||
export interface ListPropertyBase extends PropertyBase { | ||
Type: 'List'; | ||
DuplicatesAllowed: boolean; | ||
PrimitiveType: undefined; | ||
} | ||
export interface PrimitiveItemType { | ||
PrimitiveItemType: AWSPrimitiveType; | ||
ItemType: undefined; | ||
} | ||
export interface ItemType { | ||
ItemType: string; | ||
PrimitiveItemType: undefined; | ||
} | ||
export declare type ListProperty = ListPropertyBase & (PrimitiveItemType | ItemType); | ||
export interface MapPropertyBase extends PropertyBase { | ||
Type: 'Map'; | ||
DuplicatesAllowed: boolean; | ||
PrimitiveType: undefined; | ||
ItemType: undefined; | ||
} | ||
export declare type MapProperty = MapPropertyBase & (PrimitiveItemType | ItemType); | ||
export declare type Property = PrimitiveProperty | ComplexProperty | ListProperty | MapProperty; | ||
export interface ResourcePropertyType { | ||
Documentation: string; | ||
Properties: { | ||
[propertyName: string]: Property | undefined; | ||
}; | ||
AdditionalProperties: undefined; | ||
} | ||
export interface ResourceType { | ||
Documentation: string; | ||
Properties: { | ||
[propertyName: string]: Property | undefined; | ||
}; | ||
Attributes?: { | ||
[attributeName: string]: Attribute | undefined; | ||
}; | ||
AdditionalProperties?: boolean; | ||
} | ||
export interface PrimitiveAttribute { | ||
PrimitiveType: AWSPrimitiveType; | ||
} | ||
export interface ListAttribute { | ||
Type: 'List'; | ||
PrimitiveItemType: AWSPrimitiveType; | ||
} | ||
export declare type Attribute = PrimitiveAttribute | ListAttribute; | ||
export declare const awsResources: { | ||
PropertyTypes: { | ||
[propertyName: string]: ResourcePropertyType | undefined; | ||
}; | ||
ResourceTypes: { | ||
[resourceName: string]: ResourceType | undefined; | ||
}; | ||
}; | ||
export declare const awsResourceRefTypes: { | ||
[resourceName: string]: string | undefined; | ||
}; | ||
export declare const awsParameterTypes: { | ||
[parameterName: string]: "string" | "number" | "array" | undefined; | ||
}; | ||
export declare const awsIntrinsicFunctions: { | ||
[functionName: string]: { | ||
supportedFunctions: string[]; | ||
}; | ||
}; | ||
export declare const awsRefOverrides: { | ||
[refOverride: string]: any; | ||
"AWS::AccountId": string; | ||
"AWS::NotificationARNs": string[]; | ||
"AWS::NoValue": undefined; | ||
"AWS::Region": string; | ||
"AWS::StackId": string; | ||
"AWS::StackName": string; | ||
"AWS::URLSuffix": string; | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export declare function getDoc(search: string | null, browse?: boolean): string; | ||
export declare function getUrls(search?: string | null): string[]; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.