@goldstack/template-lambda-api 0.4.11 → 0.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,76 +1,76 @@
1
- import { AWSDeployment } from '@goldstack/infra-aws';
2
- import { TerraformDeployment } from '@goldstack/utils-terraform';
3
- import { Deployment, DeploymentConfiguration } from '@goldstack/infra';
4
- import { Package, Configuration } from '@goldstack/utils-package';
5
- /**
6
- * The prefix to be used for names of the generated lambdas for the API endpoints.
7
- *
8
- * @title Lambda Name Prefix
9
- * @pattern ^[A-Za-z0-9-_]*$
10
- */
11
- declare type LambdaNamePrefix = string;
12
- /**
13
- * The domain name that the API should be deployed to (e.g. api.mysite.com)
14
- *
15
- * @title API Domain
16
- * @pattern ^[^\s]*
17
- */
18
- export declare type APIDomain = string;
19
- /**
20
- * The domain name of the Route 53 hosted zone that the domain for this API should be added to.
21
- *
22
- * @title Hosted Zone Domain
23
- * @pattern ^[^\s]*
24
- */
25
- export declare type HostedZoneDomain = string;
26
- /**
27
- * Optional URL for an UI that should be allowed to access this server.
28
- *
29
- * @title CORS Header
30
- * @pattern ^[^\s]*
31
- */
32
- export declare type CorsHeader = string;
33
- export interface LambdaRouteConfig {
34
- function_name: string;
35
- route: string;
36
- }
37
- export declare type LambdaRoutesConfig = {
38
- [key: string]: LambdaRouteConfig;
39
- };
40
- export interface ThisDeploymentConfiguration extends DeploymentConfiguration {
41
- lambdaNamePrefix?: LambdaNamePrefix;
42
- apiDomain: APIDomain;
43
- hostedZoneDomain: HostedZoneDomain;
44
- cors?: CorsHeader;
45
- lambdas: LambdaRoutesConfig;
46
- }
47
- export interface ThisDeployment extends Deployment, AWSDeployment, TerraformDeployment {
48
- configuration: ThisDeploymentConfiguration;
49
- }
50
- /**
51
- * Places where the lambda should be deployed to.
52
- *
53
- * @title Deployments
54
- */
55
- export declare type LambdaApiDeployments = ThisDeployment[];
56
- /**
57
- * Configures this lambda.
58
- *
59
- * @title Lambda Configuration
60
- *
61
- */
62
- export declare type ThisPackageConfiguration = Configuration;
63
- /**
64
- * A deployment for a lambda API.
65
- *
66
- * @title Lambda API Package
67
- */
68
- export interface ThisPackage extends Package {
69
- configuration: ThisPackageConfiguration;
70
- deployments: LambdaApiDeployments;
71
- }
72
- export { ThisDeploymentConfiguration as LambdaApiDeploymentConfiguration };
73
- export { ThisDeployment as LambdaApiDeployment };
74
- export { ThisPackageConfiguration as LambdaApiConfiguration };
75
- export { ThisPackage as LambdaApiPackage };
1
+ import { AWSDeployment } from '@goldstack/infra-aws';
2
+ import { TerraformDeployment } from '@goldstack/utils-terraform';
3
+ import { Deployment, DeploymentConfiguration } from '@goldstack/infra';
4
+ import { Package, Configuration } from '@goldstack/utils-package';
5
+ /**
6
+ * The prefix to be used for names of the generated lambdas for the API endpoints.
7
+ *
8
+ * @title Lambda Name Prefix
9
+ * @pattern ^[A-Za-z0-9-_]*$
10
+ */
11
+ declare type LambdaNamePrefix = string;
12
+ /**
13
+ * The domain name that the API should be deployed to (e.g. api.mysite.com)
14
+ *
15
+ * @title API Domain
16
+ * @pattern ^[^\s]*
17
+ */
18
+ export declare type APIDomain = string;
19
+ /**
20
+ * The domain name of the Route 53 hosted zone that the domain for this API should be added to.
21
+ *
22
+ * @title Hosted Zone Domain
23
+ * @pattern ^[^\s]*
24
+ */
25
+ export declare type HostedZoneDomain = string;
26
+ /**
27
+ * Optional URL for an UI that should be allowed to access this server.
28
+ *
29
+ * @title CORS Header
30
+ * @pattern ^[^\s]*
31
+ */
32
+ export declare type CorsHeader = string;
33
+ export interface LambdaRouteConfig {
34
+ function_name: string;
35
+ route: string;
36
+ }
37
+ export declare type LambdaRoutesConfig = {
38
+ [key: string]: LambdaRouteConfig;
39
+ };
40
+ export interface ThisDeploymentConfiguration extends DeploymentConfiguration {
41
+ lambdaNamePrefix?: LambdaNamePrefix;
42
+ apiDomain: APIDomain;
43
+ hostedZoneDomain: HostedZoneDomain;
44
+ cors?: CorsHeader;
45
+ lambdas: LambdaRoutesConfig;
46
+ }
47
+ export interface ThisDeployment extends Deployment, AWSDeployment, TerraformDeployment {
48
+ configuration: ThisDeploymentConfiguration;
49
+ }
50
+ /**
51
+ * Places where the lambda should be deployed to.
52
+ *
53
+ * @title Deployments
54
+ */
55
+ export declare type LambdaApiDeployments = ThisDeployment[];
56
+ /**
57
+ * Configures this lambda.
58
+ *
59
+ * @title Lambda Configuration
60
+ *
61
+ */
62
+ export declare type ThisPackageConfiguration = Configuration;
63
+ /**
64
+ * A deployment for a lambda API.
65
+ *
66
+ * @title Lambda API Package
67
+ */
68
+ export interface ThisPackage extends Package {
69
+ configuration: ThisPackageConfiguration;
70
+ deployments: LambdaApiDeployments;
71
+ }
72
+ export { ThisDeploymentConfiguration as LambdaApiDeploymentConfiguration };
73
+ export { ThisDeployment as LambdaApiDeployment };
74
+ export { ThisPackageConfiguration as LambdaApiConfiguration };
75
+ export { ThisPackage as LambdaApiPackage };
76
76
  //# sourceMappingURL=LambdaApiPackage.d.ts.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=LambdaApiPackage.js.map