@anvil-cloud/sdk 0.0.10 → 0.0.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.
- package/app.ts +46 -1
- package/aws/bucket.ts +32 -8
- package/aws/index.ts +3 -0
- package/aws/lambda.ts +72 -7
- package/aws/svelteKitSite.ts +2 -2
- package/bin/app.d.ts +21 -1
- package/bin/app.js +10 -1
- package/bin/app.js.map +1 -1
- package/bin/aws/bucket.d.ts +25 -3
- package/bin/aws/bucket.js +6 -5
- package/bin/aws/bucket.js.map +1 -1
- package/bin/aws/index.d.ts +1 -0
- package/bin/aws/index.js +16 -0
- package/bin/aws/index.js.map +1 -1
- package/bin/aws/lambda.d.ts +55 -4
- package/bin/aws/lambda.js +19 -3
- package/bin/aws/lambda.js.map +1 -1
- package/bin/aws/svelteKitSite.d.ts +2 -2
- package/bin/gcp/function.js.map +1 -1
- package/bin/gcp/storageBucket.js.map +1 -1
- package/bin/index.d.ts +2 -1
- package/bin/index.js +2 -0
- package/bin/index.js.map +1 -1
- package/bin/package.json +2 -2
- package/bin/types/enums/aws/index.d.ts +53 -0
- package/bin/types/enums/aws/index.js +56 -0
- package/bin/types/enums/aws/index.js.map +1 -0
- package/bin/types/enums/index.d.ts +53 -0
- package/bin/types/enums/index.js +59 -0
- package/bin/types/enums/index.js.map +1 -0
- package/bin/types/index.d.ts +2 -1
- package/bin/types/index.js +3 -1
- package/bin/types/index.js.map +1 -1
- package/bin/types/input.d.ts +8 -0
- package/gcp/function.ts +1 -0
- package/gcp/storageBucket.ts +1 -0
- package/index.ts +4 -1
- package/package.json +2 -2
- package/tsconfig.json +2 -0
- package/types/enums/aws/index.ts +62 -0
- package/types/enums/index.ts +62 -0
- package/types/index.ts +2 -0
- package/types/input.ts +10 -0
- package/types/output.ts +1 -0
package/bin/aws/lambda.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lambda.js","sourceRoot":"","sources":["../../aws/lambda.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,IAAI,CAAC,UAAU,CAAC,CAAC;QACxE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,WAAW,CAAC,MAA0B,EAAE,IAA0B;QACrE,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC;QAC3D,MAAM,IAAI,GAAG,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;QAC3D,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,uBAAuB,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;IACD,kEAAkE;IAC3D,SAAS;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,mEAAmE;IAC5D,YAAY;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;;AArGL,wBAuGC;AAtGG,gBAAgB;AACO,mBAAY,GAAG,kBAAkB,CAAC"}
|
|
@@ -25,14 +25,14 @@ export declare class SvelteKitSite extends pulumi.ComponentResource {
|
|
|
25
25
|
export interface SvelteKitSiteArgs {
|
|
26
26
|
domain?: pulumi.Input<string>;
|
|
27
27
|
/**
|
|
28
|
-
* Environment vars available at BOTH build time and runtime. Values must be string literals since they're needed before the build runs.
|
|
28
|
+
* Environment vars available at BOTH build time and runtime. Values must be string literals since they're needed before the build runs.
|
|
29
29
|
*/
|
|
30
30
|
environment?: pulumi.Input<{
|
|
31
31
|
[key: string]: pulumi.Input<string>;
|
|
32
32
|
}>;
|
|
33
33
|
path?: pulumi.Input<string>;
|
|
34
34
|
/**
|
|
35
|
-
* Runtime-only environment vars set on the Lambda function. Supports Pulumi Output values (e.g. bucket.name, fn.arn). Only available
|
|
35
|
+
* Runtime-only environment vars set on the Lambda function. Supports Pulumi Output values (e.g. bucket.name, fn.arn). Only available at request time, NOT during build/prerendering.
|
|
36
36
|
*/
|
|
37
37
|
runtimeEnvironment?: pulumi.Input<string>;
|
|
38
38
|
transform?: pulumi.Input<string>;
|
package/bin/gcp/function.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.js","sourceRoot":"","sources":["../../gcp/function.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"function.js","sourceRoot":"","sources":["../../gcp/function.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAI1C,MAAa,QAAS,SAAQ,MAAM,CAAC,iBAAiB;IAIlD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAGD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAAsC;QAChF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,IAAI,EAAE,QAAQ,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;SACjD;aAAM;SACN;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC9E,CAAC;;AAhDL,4BAiDC;AAhDG,gBAAgB;AACO,qBAAY,GAAG,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageBucket.js","sourceRoot":"","sources":["../../gcp/storageBucket.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"storageBucket.js","sourceRoot":"","sources":["../../gcp/storageBucket.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAI1C,MAAa,aAAc,SAAQ,MAAM,CAAC,iBAAiB;IAIvD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAGD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAuB,EAAE,IAAsC;QACrF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,kBAAkB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;aACrE;YACD,IAAI,IAAI,EAAE,QAAQ,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;SACjD;aAAM;SACN;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACnF,CAAC;;AAxCL,sCAyCC;AAxCG,gBAAgB;AACO,0BAAY,GAAG,yBAAyB,CAAC"}
|
package/bin/index.d.ts
CHANGED
|
@@ -2,11 +2,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
export { ProviderArgs } from "./provider";
|
|
3
3
|
export type Provider = import("./provider").Provider;
|
|
4
4
|
export declare const Provider: typeof import("./provider").Provider;
|
|
5
|
+
export * from "./types/enums";
|
|
5
6
|
import * as aws from "./aws";
|
|
6
7
|
import * as gcp from "./gcp";
|
|
7
8
|
import * as types from "./types";
|
|
8
9
|
export { aws, gcp, types, };
|
|
9
|
-
export { App, AppConfig, Context, AwsProviderConfig, GcpProviderConfig, DefaultsConfig } from "./app";
|
|
10
|
+
export { App, AppConfig, Context, AwsProviderConfig, GcpProviderConfig, DefaultsConfig, ComplianceFramework } from "./app";
|
|
10
11
|
export { Block, BlockArgs } from "./block";
|
|
11
12
|
export * from "./grants";
|
|
12
13
|
export { ComponentResource, ComponentResourceOptions, CustomResource, ResourceOptions, ProviderResource, Config, output, all, secret, interpolate, concat, getProject, getStack, } from "@pulumi/pulumi";
|
package/bin/index.js
CHANGED
|
@@ -22,6 +22,8 @@ exports.pulumi = pulumi;
|
|
|
22
22
|
const utilities = require("./utilities");
|
|
23
23
|
exports.Provider = null;
|
|
24
24
|
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
25
|
+
// Export enums:
|
|
26
|
+
__exportStar(require("./types/enums"), exports);
|
|
25
27
|
// Export sub-modules:
|
|
26
28
|
const aws = require("./aws");
|
|
27
29
|
exports.aws = aws;
|
package/bin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AA+DhC,wBAAM;AA9Df,yCAAyC;AAK5B,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAGvE,gBAAgB;AAChB,gDAA8B;AAE9B,sBAAsB;AACtB,6BAA6B;AAKzB,kBAAG;AAJP,6BAA6B;AAKzB,kBAAG;AAJP,iCAAiC;AAK7B,sBAAK;AAET,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,OAAO,EAAE;IAC5C,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,wBAAwB,EAAE;YACnC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC;AAEH,yBAAyB;AACzB,6BAA2H;AAAlH,0FAAA,GAAG,OAAA;AAEZ,2BAA2B;AAC3B,iCAA2C;AAAlC,8FAAA,KAAK,OAAA;AAEd,gBAAgB;AAChB,2CAAyB;AAEzB,gCAAgC;AAChC,sFAAsF;AACtF,yCAcwB;AAbtB,2GAAA,iBAAiB,OAAA;AAEjB,wGAAA,cAAc,OAAA;AAEd,0GAAA,gBAAgB,OAAA;AAChB,gGAAA,MAAM,OAAA;AACN,gGAAA,MAAM,OAAA;AACN,6FAAA,GAAG,OAAA;AACH,gGAAA,MAAM,OAAA;AACN,qGAAA,WAAW,OAAA;AACX,gGAAA,MAAM,OAAA;AACN,oGAAA,UAAU,OAAA;AACV,kGAAA,QAAQ,OAAA"}
|
package/bin/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anvil-cloud/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "tsc && cp package.json bin/"
|
|
6
6
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"homepage": "https://github.com/anvil-cloud/anvil",
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "
|
|
27
|
+
"url": "github.com/DamienPace15/anvil",
|
|
28
28
|
"directory": "sdk/nodejs"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const LambdaArchitecture: {
|
|
2
|
+
/**
|
|
3
|
+
* Graviton — 20% cheaper, better performance. Default.
|
|
4
|
+
*/
|
|
5
|
+
readonly Arm64: "arm64";
|
|
6
|
+
/**
|
|
7
|
+
* Intel/AMD — use for x86-specific native dependencies.
|
|
8
|
+
*/
|
|
9
|
+
readonly X86_64: "x86_64";
|
|
10
|
+
};
|
|
11
|
+
export type LambdaArchitecture = (typeof LambdaArchitecture)[keyof typeof LambdaArchitecture];
|
|
12
|
+
export declare const LambdaLogRetention: {
|
|
13
|
+
/**
|
|
14
|
+
* 7 days
|
|
15
|
+
*/
|
|
16
|
+
readonly LambdaLogRetention_7d: "7d";
|
|
17
|
+
/**
|
|
18
|
+
* 30 days (1 month)
|
|
19
|
+
*/
|
|
20
|
+
readonly LambdaLogRetention_30d: "30d";
|
|
21
|
+
/**
|
|
22
|
+
* 90 days (3 months)
|
|
23
|
+
*/
|
|
24
|
+
readonly LambdaLogRetention_90d: "90d";
|
|
25
|
+
/**
|
|
26
|
+
* 1 year (365 days) — SOC 2 / ISO 27001 / PCI-DSS baseline. Default.
|
|
27
|
+
*/
|
|
28
|
+
readonly LambdaLogRetention_1y: "1y";
|
|
29
|
+
/**
|
|
30
|
+
* 3 years (1095 days) — FedRAMP minimum
|
|
31
|
+
*/
|
|
32
|
+
readonly LambdaLogRetention_3y: "3y";
|
|
33
|
+
/**
|
|
34
|
+
* 6 years (2190 days) — HIPAA minimum
|
|
35
|
+
*/
|
|
36
|
+
readonly LambdaLogRetention_6y: "6y";
|
|
37
|
+
/**
|
|
38
|
+
* 7 years (2555 days) — IRAP minimum
|
|
39
|
+
*/
|
|
40
|
+
readonly LambdaLogRetention_7y: "7y";
|
|
41
|
+
};
|
|
42
|
+
export type LambdaLogRetention = (typeof LambdaLogRetention)[keyof typeof LambdaLogRetention];
|
|
43
|
+
export declare const LambdaRuntime: {
|
|
44
|
+
/**
|
|
45
|
+
* Node.js 24 (LTS) — recommended
|
|
46
|
+
*/
|
|
47
|
+
readonly Nodejs24_x: "nodejs24.x";
|
|
48
|
+
/**
|
|
49
|
+
* Node.js 22 (LTS)
|
|
50
|
+
*/
|
|
51
|
+
readonly Nodejs22_x: "nodejs22.x";
|
|
52
|
+
};
|
|
53
|
+
export type LambdaRuntime = (typeof LambdaRuntime)[keyof typeof LambdaRuntime];
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.LambdaRuntime = exports.LambdaLogRetention = exports.LambdaArchitecture = void 0;
|
|
6
|
+
exports.LambdaArchitecture = {
|
|
7
|
+
/**
|
|
8
|
+
* Graviton — 20% cheaper, better performance. Default.
|
|
9
|
+
*/
|
|
10
|
+
Arm64: "arm64",
|
|
11
|
+
/**
|
|
12
|
+
* Intel/AMD — use for x86-specific native dependencies.
|
|
13
|
+
*/
|
|
14
|
+
X86_64: "x86_64",
|
|
15
|
+
};
|
|
16
|
+
exports.LambdaLogRetention = {
|
|
17
|
+
/**
|
|
18
|
+
* 7 days
|
|
19
|
+
*/
|
|
20
|
+
LambdaLogRetention_7d: "7d",
|
|
21
|
+
/**
|
|
22
|
+
* 30 days (1 month)
|
|
23
|
+
*/
|
|
24
|
+
LambdaLogRetention_30d: "30d",
|
|
25
|
+
/**
|
|
26
|
+
* 90 days (3 months)
|
|
27
|
+
*/
|
|
28
|
+
LambdaLogRetention_90d: "90d",
|
|
29
|
+
/**
|
|
30
|
+
* 1 year (365 days) — SOC 2 / ISO 27001 / PCI-DSS baseline. Default.
|
|
31
|
+
*/
|
|
32
|
+
LambdaLogRetention_1y: "1y",
|
|
33
|
+
/**
|
|
34
|
+
* 3 years (1095 days) — FedRAMP minimum
|
|
35
|
+
*/
|
|
36
|
+
LambdaLogRetention_3y: "3y",
|
|
37
|
+
/**
|
|
38
|
+
* 6 years (2190 days) — HIPAA minimum
|
|
39
|
+
*/
|
|
40
|
+
LambdaLogRetention_6y: "6y",
|
|
41
|
+
/**
|
|
42
|
+
* 7 years (2555 days) — IRAP minimum
|
|
43
|
+
*/
|
|
44
|
+
LambdaLogRetention_7y: "7y",
|
|
45
|
+
};
|
|
46
|
+
exports.LambdaRuntime = {
|
|
47
|
+
/**
|
|
48
|
+
* Node.js 24 (LTS) — recommended
|
|
49
|
+
*/
|
|
50
|
+
Nodejs24_x: "nodejs24.x",
|
|
51
|
+
/**
|
|
52
|
+
* Node.js 22 (LTS)
|
|
53
|
+
*/
|
|
54
|
+
Nodejs22_x: "nodejs22.x",
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/enums/aws/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAGpE,QAAA,kBAAkB,GAAG;IAC9B;;OAEG;IACH,KAAK,EAAE,OAAO;IACd;;OAEG;IACH,MAAM,EAAE,QAAQ;CACV,CAAC;AAIE,QAAA,kBAAkB,GAAG;IAC9B;;OAEG;IACH,qBAAqB,EAAE,IAAI;IAC3B;;OAEG;IACH,sBAAsB,EAAE,KAAK;IAC7B;;OAEG;IACH,sBAAsB,EAAE,KAAK;IAC7B;;OAEG;IACH,qBAAqB,EAAE,IAAI;IAC3B;;OAEG;IACH,qBAAqB,EAAE,IAAI;IAC3B;;OAEG;IACH,qBAAqB,EAAE,IAAI;IAC3B;;OAEG;IACH,qBAAqB,EAAE,IAAI;CACrB,CAAC;AAIE,QAAA,aAAa,GAAG;IACzB;;OAEG;IACH,UAAU,EAAE,YAAY;IACxB;;OAEG;IACH,UAAU,EAAE,YAAY;CAClB,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as aws from "./aws";
|
|
2
|
+
export { aws, };
|
|
3
|
+
export declare const ComplianceFramework: {
|
|
4
|
+
/**
|
|
5
|
+
* SOC 2 Type II
|
|
6
|
+
*/
|
|
7
|
+
readonly Soc2: "soc2";
|
|
8
|
+
/**
|
|
9
|
+
* ISO/IEC 27001
|
|
10
|
+
*/
|
|
11
|
+
readonly Iso27001: "iso27001";
|
|
12
|
+
/**
|
|
13
|
+
* CIS AWS Foundations Benchmark
|
|
14
|
+
*/
|
|
15
|
+
readonly Cis: "cis";
|
|
16
|
+
/**
|
|
17
|
+
* PCI DSS
|
|
18
|
+
*/
|
|
19
|
+
readonly Pci_dss: "pci-dss";
|
|
20
|
+
/**
|
|
21
|
+
* HIPAA
|
|
22
|
+
*/
|
|
23
|
+
readonly Hipaa: "hipaa";
|
|
24
|
+
/**
|
|
25
|
+
* FedRAMP
|
|
26
|
+
*/
|
|
27
|
+
readonly Fedramp: "fedramp";
|
|
28
|
+
/**
|
|
29
|
+
* HITRUST CSF
|
|
30
|
+
*/
|
|
31
|
+
readonly Hitrust: "hitrust";
|
|
32
|
+
/**
|
|
33
|
+
* GDPR
|
|
34
|
+
*/
|
|
35
|
+
readonly Gdpr: "gdpr";
|
|
36
|
+
/**
|
|
37
|
+
* SOC 1 Type II
|
|
38
|
+
*/
|
|
39
|
+
readonly Soc1: "soc1";
|
|
40
|
+
/**
|
|
41
|
+
* IRAP (Australian Government)
|
|
42
|
+
*/
|
|
43
|
+
readonly Irap: "irap";
|
|
44
|
+
/**
|
|
45
|
+
* NIST Cybersecurity Framework
|
|
46
|
+
*/
|
|
47
|
+
readonly Nist_csf: "nist-csf";
|
|
48
|
+
/**
|
|
49
|
+
* CSA STAR
|
|
50
|
+
*/
|
|
51
|
+
readonly Csa_star: "csa-star";
|
|
52
|
+
};
|
|
53
|
+
export type ComplianceFramework = (typeof ComplianceFramework)[keyof typeof ComplianceFramework];
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ComplianceFramework = exports.aws = void 0;
|
|
6
|
+
// Export sub-modules:
|
|
7
|
+
const aws = require("./aws");
|
|
8
|
+
exports.aws = aws;
|
|
9
|
+
exports.ComplianceFramework = {
|
|
10
|
+
/**
|
|
11
|
+
* SOC 2 Type II
|
|
12
|
+
*/
|
|
13
|
+
Soc2: "soc2",
|
|
14
|
+
/**
|
|
15
|
+
* ISO/IEC 27001
|
|
16
|
+
*/
|
|
17
|
+
Iso27001: "iso27001",
|
|
18
|
+
/**
|
|
19
|
+
* CIS AWS Foundations Benchmark
|
|
20
|
+
*/
|
|
21
|
+
Cis: "cis",
|
|
22
|
+
/**
|
|
23
|
+
* PCI DSS
|
|
24
|
+
*/
|
|
25
|
+
Pci_dss: "pci-dss",
|
|
26
|
+
/**
|
|
27
|
+
* HIPAA
|
|
28
|
+
*/
|
|
29
|
+
Hipaa: "hipaa",
|
|
30
|
+
/**
|
|
31
|
+
* FedRAMP
|
|
32
|
+
*/
|
|
33
|
+
Fedramp: "fedramp",
|
|
34
|
+
/**
|
|
35
|
+
* HITRUST CSF
|
|
36
|
+
*/
|
|
37
|
+
Hitrust: "hitrust",
|
|
38
|
+
/**
|
|
39
|
+
* GDPR
|
|
40
|
+
*/
|
|
41
|
+
Gdpr: "gdpr",
|
|
42
|
+
/**
|
|
43
|
+
* SOC 1 Type II
|
|
44
|
+
*/
|
|
45
|
+
Soc1: "soc1",
|
|
46
|
+
/**
|
|
47
|
+
* IRAP (Australian Government)
|
|
48
|
+
*/
|
|
49
|
+
Irap: "irap",
|
|
50
|
+
/**
|
|
51
|
+
* NIST Cybersecurity Framework
|
|
52
|
+
*/
|
|
53
|
+
Nist_csf: "nist-csf",
|
|
54
|
+
/**
|
|
55
|
+
* CSA STAR
|
|
56
|
+
*/
|
|
57
|
+
Csa_star: "csa-star",
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../types/enums/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,sBAAsB;AACtB,6BAA6B;AAGzB,kBAAG;AAGM,QAAA,mBAAmB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,GAAG,EAAE,KAAK;IACV;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,KAAK,EAAE,OAAO;IACd;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,QAAQ,EAAE,UAAU;CACd,CAAC"}
|
package/bin/types/index.d.ts
CHANGED
package/bin/types/index.js
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.output = exports.input = void 0;
|
|
5
|
+
exports.output = exports.input = exports.enums = void 0;
|
|
6
6
|
// Export sub-modules:
|
|
7
|
+
const enums = require("./enums");
|
|
8
|
+
exports.enums = enums;
|
|
7
9
|
const input = require("./input");
|
|
8
10
|
exports.input = input;
|
|
9
11
|
const output = require("./output");
|
package/bin/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAK7B,sBAAK;AAJT,iCAAiC;AAK7B,sBAAK;AAJT,mCAAmC;AAK/B,wBAAM"}
|
package/bin/types/input.d.ts
CHANGED
|
@@ -511,6 +511,14 @@ export declare namespace aws {
|
|
|
511
511
|
*/
|
|
512
512
|
vpcConfig?: pulumi.Input<pulumiAws.types.input.lambda.FunctionVpcConfig>;
|
|
513
513
|
}
|
|
514
|
+
interface LambdaPermissionArgs {
|
|
515
|
+
actions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
516
|
+
path?: pulumi.Input<string>;
|
|
517
|
+
/**
|
|
518
|
+
* ARN of the resource to grant access to. Accepts plain strings and Pulumi outputs.
|
|
519
|
+
*/
|
|
520
|
+
resource?: any;
|
|
521
|
+
}
|
|
514
522
|
interface LambdaTransformArgsArgs {
|
|
515
523
|
lambda?: pulumi.Input<inputs.aws.LambdaOverridesArgs>;
|
|
516
524
|
}
|
package/gcp/function.ts
CHANGED
package/gcp/storageBucket.ts
CHANGED
package/index.ts
CHANGED
|
@@ -11,6 +11,9 @@ export const Provider: typeof import("./provider").Provider = null as any;
|
|
|
11
11
|
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
// Export enums:
|
|
15
|
+
export * from "./types/enums";
|
|
16
|
+
|
|
14
17
|
// Export sub-modules:
|
|
15
18
|
import * as aws from "./aws";
|
|
16
19
|
import * as gcp from "./gcp";
|
|
@@ -32,7 +35,7 @@ pulumi.runtime.registerResourcePackage("anvil", {
|
|
|
32
35
|
});
|
|
33
36
|
|
|
34
37
|
// Hand-written App class
|
|
35
|
-
export { App, AppConfig, Context, AwsProviderConfig, GcpProviderConfig, DefaultsConfig } from "./app";
|
|
38
|
+
export { App, AppConfig, Context, AwsProviderConfig, GcpProviderConfig, DefaultsConfig, ComplianceFramework } from "./app";
|
|
36
39
|
|
|
37
40
|
// Hand-written Block class
|
|
38
41
|
export { Block, BlockArgs } from "./block";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anvil-cloud/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "tsc && cp package.json bin/"
|
|
6
6
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"homepage": "https://github.com/anvil-cloud/anvil",
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "
|
|
27
|
+
"url": "github.com/DamienPace15/anvil",
|
|
28
28
|
"directory": "sdk/nodejs"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/tsconfig.json
CHANGED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export const LambdaArchitecture = {
|
|
6
|
+
/**
|
|
7
|
+
* Graviton — 20% cheaper, better performance. Default.
|
|
8
|
+
*/
|
|
9
|
+
Arm64: "arm64",
|
|
10
|
+
/**
|
|
11
|
+
* Intel/AMD — use for x86-specific native dependencies.
|
|
12
|
+
*/
|
|
13
|
+
X86_64: "x86_64",
|
|
14
|
+
} as const;
|
|
15
|
+
|
|
16
|
+
export type LambdaArchitecture = (typeof LambdaArchitecture)[keyof typeof LambdaArchitecture];
|
|
17
|
+
|
|
18
|
+
export const LambdaLogRetention = {
|
|
19
|
+
/**
|
|
20
|
+
* 7 days
|
|
21
|
+
*/
|
|
22
|
+
LambdaLogRetention_7d: "7d",
|
|
23
|
+
/**
|
|
24
|
+
* 30 days (1 month)
|
|
25
|
+
*/
|
|
26
|
+
LambdaLogRetention_30d: "30d",
|
|
27
|
+
/**
|
|
28
|
+
* 90 days (3 months)
|
|
29
|
+
*/
|
|
30
|
+
LambdaLogRetention_90d: "90d",
|
|
31
|
+
/**
|
|
32
|
+
* 1 year (365 days) — SOC 2 / ISO 27001 / PCI-DSS baseline. Default.
|
|
33
|
+
*/
|
|
34
|
+
LambdaLogRetention_1y: "1y",
|
|
35
|
+
/**
|
|
36
|
+
* 3 years (1095 days) — FedRAMP minimum
|
|
37
|
+
*/
|
|
38
|
+
LambdaLogRetention_3y: "3y",
|
|
39
|
+
/**
|
|
40
|
+
* 6 years (2190 days) — HIPAA minimum
|
|
41
|
+
*/
|
|
42
|
+
LambdaLogRetention_6y: "6y",
|
|
43
|
+
/**
|
|
44
|
+
* 7 years (2555 days) — IRAP minimum
|
|
45
|
+
*/
|
|
46
|
+
LambdaLogRetention_7y: "7y",
|
|
47
|
+
} as const;
|
|
48
|
+
|
|
49
|
+
export type LambdaLogRetention = (typeof LambdaLogRetention)[keyof typeof LambdaLogRetention];
|
|
50
|
+
|
|
51
|
+
export const LambdaRuntime = {
|
|
52
|
+
/**
|
|
53
|
+
* Node.js 24 (LTS) — recommended
|
|
54
|
+
*/
|
|
55
|
+
Nodejs24_x: "nodejs24.x",
|
|
56
|
+
/**
|
|
57
|
+
* Node.js 22 (LTS)
|
|
58
|
+
*/
|
|
59
|
+
Nodejs22_x: "nodejs22.x",
|
|
60
|
+
} as const;
|
|
61
|
+
|
|
62
|
+
export type LambdaRuntime = (typeof LambdaRuntime)[keyof typeof LambdaRuntime];
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
// Export sub-modules:
|
|
5
|
+
import * as aws from "./aws";
|
|
6
|
+
|
|
7
|
+
export {
|
|
8
|
+
aws,
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const ComplianceFramework = {
|
|
12
|
+
/**
|
|
13
|
+
* SOC 2 Type II
|
|
14
|
+
*/
|
|
15
|
+
Soc2: "soc2",
|
|
16
|
+
/**
|
|
17
|
+
* ISO/IEC 27001
|
|
18
|
+
*/
|
|
19
|
+
Iso27001: "iso27001",
|
|
20
|
+
/**
|
|
21
|
+
* CIS AWS Foundations Benchmark
|
|
22
|
+
*/
|
|
23
|
+
Cis: "cis",
|
|
24
|
+
/**
|
|
25
|
+
* PCI DSS
|
|
26
|
+
*/
|
|
27
|
+
Pci_dss: "pci-dss",
|
|
28
|
+
/**
|
|
29
|
+
* HIPAA
|
|
30
|
+
*/
|
|
31
|
+
Hipaa: "hipaa",
|
|
32
|
+
/**
|
|
33
|
+
* FedRAMP
|
|
34
|
+
*/
|
|
35
|
+
Fedramp: "fedramp",
|
|
36
|
+
/**
|
|
37
|
+
* HITRUST CSF
|
|
38
|
+
*/
|
|
39
|
+
Hitrust: "hitrust",
|
|
40
|
+
/**
|
|
41
|
+
* GDPR
|
|
42
|
+
*/
|
|
43
|
+
Gdpr: "gdpr",
|
|
44
|
+
/**
|
|
45
|
+
* SOC 1 Type II
|
|
46
|
+
*/
|
|
47
|
+
Soc1: "soc1",
|
|
48
|
+
/**
|
|
49
|
+
* IRAP (Australian Government)
|
|
50
|
+
*/
|
|
51
|
+
Irap: "irap",
|
|
52
|
+
/**
|
|
53
|
+
* NIST Cybersecurity Framework
|
|
54
|
+
*/
|
|
55
|
+
Nist_csf: "nist-csf",
|
|
56
|
+
/**
|
|
57
|
+
* CSA STAR
|
|
58
|
+
*/
|
|
59
|
+
Csa_star: "csa-star",
|
|
60
|
+
} as const;
|
|
61
|
+
|
|
62
|
+
export type ComplianceFramework = (typeof ComplianceFramework)[keyof typeof ComplianceFramework];
|
package/types/index.ts
CHANGED
package/types/input.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as pulumi from "@pulumi/pulumi";
|
|
5
5
|
import * as inputs from "../types/input";
|
|
6
6
|
import * as outputs from "../types/output";
|
|
7
|
+
import * as enums from "../types/enums";
|
|
7
8
|
|
|
8
9
|
import * as pulumiAws from "@pulumi/aws";
|
|
9
10
|
import * as pulumiGcp from "@pulumi/gcp";
|
|
@@ -528,6 +529,15 @@ export namespace aws {
|
|
|
528
529
|
vpcConfig?: pulumi.Input<pulumiAws.types.input.lambda.FunctionVpcConfig>;
|
|
529
530
|
}
|
|
530
531
|
|
|
532
|
+
export interface LambdaPermissionArgs {
|
|
533
|
+
actions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
534
|
+
path?: pulumi.Input<string>;
|
|
535
|
+
/**
|
|
536
|
+
* ARN of the resource to grant access to. Accepts plain strings and Pulumi outputs.
|
|
537
|
+
*/
|
|
538
|
+
resource?: any;
|
|
539
|
+
}
|
|
540
|
+
|
|
531
541
|
export interface LambdaTransformArgsArgs {
|
|
532
542
|
lambda?: pulumi.Input<inputs.aws.LambdaOverridesArgs>;
|
|
533
543
|
}
|
package/types/output.ts
CHANGED