forked from Authress-Engineering/aws-architect.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
65 lines (55 loc) · 1.68 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
interface PackageMetadata {
name: String;
version: String;
}
interface ApiOptions {
regions: String[];
deploymentBucket: String,
sourceDirectory: String,
description: String,
}
interface ContentOptions {
bucket: String;
contentDirectory: String;
}
interface PublishLambdaOptions {
zipFileName: String;
bucket: String;
autoHandleCompileOfSourceDirectory: Boolean;
}
interface PublishZipOptions {
zipFileName: String;
sourceDirectory: String;
}
interface StackConfiguration {
changeSetName: String;
stackName: String;
automaticallyProtectStack: Boolean;
}
interface StageDeploymentOptions {
stage: String;
functionName: String;
deploymentBucketName: String;
deploymentKeyName: String;
}
interface RegexOption {
explicit?: String,
regex?: RegExp,
value: String | Number
}
interface WebsiteDeploymentOptions {
cacheControlRegexMap: RegexOption[];
contentTypeMappingOverride: Object;
}
declare class AwsArchitect {
constructor(packageMetadata: PackageMetadata, apiOptions: ApiOptions, contentOptions: ContentOptions);
publishZipArchive(options: PublishZipOptions): Promise<Object>;
publishLambdaArtifactPromise(options: PublishLambdaOptions): Promise<Object>;
validateTemplate(stackTemplate: Object): Promise<Object>;
deployTemplate(stackTemplate: Object, stackConfiguration: StackConfiguration, parameters: Object): Promise<Object>;
deployStagePromise(stage: String, lambdaVersion: String): Promise<Object>;
removeStagePromise(stage: String): Promise<Object>;
publishAndDeployStagePromise(options: StageDeploymentOptions): Promise<Object>;
publishWebsite(version: String, options: WebsiteDeploymentOptions): Promise<Object>;
run(port: Number, logger: Function): Promise<Object>;
}