@anvil-cloud/sdk 0.0.2

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.
Files changed (53) hide show
  1. package/.gitattributes +1 -0
  2. package/README.md +0 -0
  3. package/aws/bucket.ts +58 -0
  4. package/aws/index.ts +32 -0
  5. package/aws/lambda.ts +64 -0
  6. package/bin/aws/bucket.d.ts +25 -0
  7. package/bin/aws/bucket.js +46 -0
  8. package/bin/aws/bucket.js.map +1 -0
  9. package/bin/aws/index.d.ts +6 -0
  10. package/bin/aws/index.js +26 -0
  11. package/bin/aws/index.js.map +1 -0
  12. package/bin/aws/lambda.d.ts +31 -0
  13. package/bin/aws/lambda.js +46 -0
  14. package/bin/aws/lambda.js.map +1 -0
  15. package/bin/gcp/function.d.ts +39 -0
  16. package/bin/gcp/function.js +57 -0
  17. package/bin/gcp/function.js.map +1 -0
  18. package/bin/gcp/index.d.ts +6 -0
  19. package/bin/gcp/index.js +26 -0
  20. package/bin/gcp/index.js.map +1 -0
  21. package/bin/gcp/storageBucket.d.ts +31 -0
  22. package/bin/gcp/storageBucket.js +49 -0
  23. package/bin/gcp/storageBucket.js.map +1 -0
  24. package/bin/index.d.ts +7 -0
  25. package/bin/index.js +26 -0
  26. package/bin/index.js.map +1 -0
  27. package/bin/package.json +30 -0
  28. package/bin/provider.d.ts +21 -0
  29. package/bin/provider.js +38 -0
  30. package/bin/provider.js.map +1 -0
  31. package/bin/types/index.d.ts +3 -0
  32. package/bin/types/index.js +11 -0
  33. package/bin/types/index.js.map +1 -0
  34. package/bin/types/input.d.ts +714 -0
  35. package/bin/types/input.js +5 -0
  36. package/bin/types/input.js.map +1 -0
  37. package/bin/types/output.d.ts +4 -0
  38. package/bin/types/output.js +5 -0
  39. package/bin/types/output.js.map +1 -0
  40. package/bin/utilities.d.ts +4 -0
  41. package/bin/utilities.js +91 -0
  42. package/bin/utilities.js.map +1 -0
  43. package/gcp/function.ts +83 -0
  44. package/gcp/index.ts +32 -0
  45. package/gcp/storageBucket.ts +67 -0
  46. package/index.ts +32 -0
  47. package/package.json +30 -0
  48. package/provider.ts +44 -0
  49. package/tsconfig.json +29 -0
  50. package/types/index.ts +13 -0
  51. package/types/input.ts +732 -0
  52. package/types/output.ts +15 -0
  53. package/utilities.ts +96 -0
@@ -0,0 +1,5 @@
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
+ //# sourceMappingURL=input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF"}
@@ -0,0 +1,4 @@
1
+ export declare namespace aws {
2
+ }
3
+ export declare namespace gcp {
4
+ }
@@ -0,0 +1,5 @@
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
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF"}
@@ -0,0 +1,4 @@
1
+ export declare function getEnv(...vars: string[]): string | undefined;
2
+ export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
3
+ export declare function getEnvNumber(...vars: string[]): number | undefined;
4
+ export declare function getVersion(): string;
@@ -0,0 +1,91 @@
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.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
6
+ const runtime = require("@pulumi/pulumi/runtime");
7
+ function getEnv(...vars) {
8
+ for (const v of vars) {
9
+ const value = process.env[v];
10
+ if (value) {
11
+ return value;
12
+ }
13
+ }
14
+ return undefined;
15
+ }
16
+ exports.getEnv = getEnv;
17
+ function getEnvBoolean(...vars) {
18
+ const s = getEnv(...vars);
19
+ if (s !== undefined) {
20
+ // NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
21
+ // Terraform uses internally when parsing boolean values.
22
+ if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
23
+ return true;
24
+ }
25
+ if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
26
+ return false;
27
+ }
28
+ }
29
+ return undefined;
30
+ }
31
+ exports.getEnvBoolean = getEnvBoolean;
32
+ function getEnvNumber(...vars) {
33
+ const s = getEnv(...vars);
34
+ if (s !== undefined) {
35
+ const f = parseFloat(s);
36
+ if (!isNaN(f)) {
37
+ return f;
38
+ }
39
+ }
40
+ return undefined;
41
+ }
42
+ exports.getEnvNumber = getEnvNumber;
43
+ function getVersion() {
44
+ let version = require('./package.json').version;
45
+ // Node allows for the version to be prefixed by a "v", while semver doesn't.
46
+ // If there is a v, strip it off.
47
+ if (version.indexOf('v') === 0) {
48
+ version = version.slice(1);
49
+ }
50
+ return version;
51
+ }
52
+ exports.getVersion = getVersion;
53
+ /** @internal */
54
+ function resourceOptsDefaults() {
55
+ return { version: getVersion() };
56
+ }
57
+ exports.resourceOptsDefaults = resourceOptsDefaults;
58
+ /** @internal */
59
+ function lazyLoad(exports, props, loadModule) {
60
+ for (let property of props) {
61
+ Object.defineProperty(exports, property, {
62
+ enumerable: true,
63
+ get: function () {
64
+ return loadModule()[property];
65
+ },
66
+ });
67
+ }
68
+ }
69
+ exports.lazyLoad = lazyLoad;
70
+ /** @internal */
71
+ async function callAsync(tok, props, res, opts) {
72
+ const o = runtime.call(tok, props, res);
73
+ const value = await o.promise(true /*withUnknowns*/);
74
+ const isKnown = await o.isKnown;
75
+ const isSecret = await o.isSecret;
76
+ const problem = !isKnown ? "an unknown value"
77
+ : isSecret ? "a secret value"
78
+ : undefined;
79
+ // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
80
+ if (problem) {
81
+ throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
82
+ "This is an error in the provider, please report this to the provider developer.");
83
+ }
84
+ // Extract a single property if requested.
85
+ if (opts && opts.property) {
86
+ return value[opts.property];
87
+ }
88
+ return value;
89
+ }
90
+ exports.callAsync = callAsync;
91
+ //# sourceMappingURL=utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,83 @@
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
+ import * as pulumi from "@pulumi/pulumi";
5
+ import * as inputs from "../types/input";
6
+ import * as outputs from "../types/output";
7
+ import * as utilities from "../utilities";
8
+
9
+ import * as pulumiGcp from "@pulumi/gcp";
10
+
11
+ export class Function extends pulumi.ComponentResource {
12
+ /** @internal */
13
+ public static readonly __pulumiType = 'anvil:gcp:Function';
14
+
15
+ /**
16
+ * Returns true if the given object is an instance of Function. This is designed to work even
17
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
+ */
19
+ public static isInstance(obj: any): obj is Function {
20
+ if (obj === undefined || obj === null) {
21
+ return false;
22
+ }
23
+ return obj['__pulumiType'] === Function.__pulumiType;
24
+ }
25
+
26
+
27
+ /**
28
+ * Create a Function resource with the given unique name, arguments, and options.
29
+ *
30
+ * @param name The _unique_ name of the resource.
31
+ * @param args The arguments to use to populate this resource's properties.
32
+ * @param opts A bag of options that control this resource's behavior.
33
+ */
34
+ constructor(name: string, args: FunctionArgs, opts?: pulumi.ComponentResourceOptions) {
35
+ let resourceInputs: pulumi.Inputs = {};
36
+ opts = opts || {};
37
+ if (!opts.id) {
38
+ if (args?.entryPoint === undefined && !opts.urn) {
39
+ throw new Error("Missing required property 'entryPoint'");
40
+ }
41
+ if (args?.location === undefined && !opts.urn) {
42
+ throw new Error("Missing required property 'location'");
43
+ }
44
+ if (args?.name === undefined && !opts.urn) {
45
+ throw new Error("Missing required property 'name'");
46
+ }
47
+ if (args?.runtime === undefined && !opts.urn) {
48
+ throw new Error("Missing required property 'runtime'");
49
+ }
50
+ resourceInputs["entryPoint"] = args?.entryPoint;
51
+ resourceInputs["location"] = args?.location;
52
+ resourceInputs["name"] = args?.name;
53
+ resourceInputs["runtime"] = args?.runtime;
54
+ resourceInputs["transform"] = args?.transform;
55
+ } else {
56
+ }
57
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
58
+ super(Function.__pulumiType, name, resourceInputs, opts, true /*remote*/);
59
+ }
60
+ }
61
+
62
+ /**
63
+ * The set of arguments for constructing a Function resource.
64
+ */
65
+ export interface FunctionArgs {
66
+ /**
67
+ * The name of the function to execute.
68
+ */
69
+ entryPoint: pulumi.Input<string>;
70
+ /**
71
+ * The GCP region to deploy to (e.g. us-central1).
72
+ */
73
+ location: pulumi.Input<string>;
74
+ /**
75
+ * The name of the Cloud Function.
76
+ */
77
+ name: pulumi.Input<string>;
78
+ /**
79
+ * The runtime to use (e.g. nodejs20, python312, go122).
80
+ */
81
+ runtime: pulumi.Input<string>;
82
+ transform?: pulumi.Input<inputs.gcp.FunctionTransformArgsArgs>;
83
+ }
package/gcp/index.ts ADDED
@@ -0,0 +1,32 @@
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
+ import * as pulumi from "@pulumi/pulumi";
5
+ import * as utilities from "../utilities";
6
+
7
+ // Export members:
8
+ export { FunctionArgs } from "./function";
9
+ export type Function = import("./function").Function;
10
+ export const Function: typeof import("./function").Function = null as any;
11
+ utilities.lazyLoad(exports, ["Function"], () => require("./function"));
12
+
13
+ export { StorageBucketArgs } from "./storageBucket";
14
+ export type StorageBucket = import("./storageBucket").StorageBucket;
15
+ export const StorageBucket: typeof import("./storageBucket").StorageBucket = null as any;
16
+ utilities.lazyLoad(exports, ["StorageBucket"], () => require("./storageBucket"));
17
+
18
+
19
+ const _module = {
20
+ version: utilities.getVersion(),
21
+ construct: (name: string, type: string, urn: string): pulumi.Resource => {
22
+ switch (type) {
23
+ case "anvil:gcp:Function":
24
+ return new Function(name, <any>undefined, { urn })
25
+ case "anvil:gcp:StorageBucket":
26
+ return new StorageBucket(name, <any>undefined, { urn })
27
+ default:
28
+ throw new Error(`unknown resource type ${type}`);
29
+ }
30
+ },
31
+ };
32
+ pulumi.runtime.registerResourceModule("anvil", "gcp", _module)
@@ -0,0 +1,67 @@
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
+ import * as pulumi from "@pulumi/pulumi";
5
+ import * as inputs from "../types/input";
6
+ import * as outputs from "../types/output";
7
+ import * as utilities from "../utilities";
8
+
9
+ import * as pulumiGcp from "@pulumi/gcp";
10
+
11
+ export class StorageBucket extends pulumi.ComponentResource {
12
+ /** @internal */
13
+ public static readonly __pulumiType = 'anvil:gcp:StorageBucket';
14
+
15
+ /**
16
+ * Returns true if the given object is an instance of StorageBucket. This is designed to work even
17
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
+ */
19
+ public static isInstance(obj: any): obj is StorageBucket {
20
+ if (obj === undefined || obj === null) {
21
+ return false;
22
+ }
23
+ return obj['__pulumiType'] === StorageBucket.__pulumiType;
24
+ }
25
+
26
+
27
+ /**
28
+ * Create a StorageBucket resource with the given unique name, arguments, and options.
29
+ *
30
+ * @param name The _unique_ name of the resource.
31
+ * @param args The arguments to use to populate this resource's properties.
32
+ * @param opts A bag of options that control this resource's behavior.
33
+ */
34
+ constructor(name: string, args: StorageBucketArgs, opts?: pulumi.ComponentResourceOptions) {
35
+ let resourceInputs: pulumi.Inputs = {};
36
+ opts = opts || {};
37
+ if (!opts.id) {
38
+ if (args?.dataClassification === undefined && !opts.urn) {
39
+ throw new Error("Missing required property 'dataClassification'");
40
+ }
41
+ if (args?.location === undefined && !opts.urn) {
42
+ throw new Error("Missing required property 'location'");
43
+ }
44
+ resourceInputs["dataClassification"] = args?.dataClassification;
45
+ resourceInputs["location"] = args?.location;
46
+ resourceInputs["transform"] = args?.transform;
47
+ } else {
48
+ }
49
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
50
+ super(StorageBucket.__pulumiType, name, resourceInputs, opts, true /*remote*/);
51
+ }
52
+ }
53
+
54
+ /**
55
+ * The set of arguments for constructing a StorageBucket resource.
56
+ */
57
+ export interface StorageBucketArgs {
58
+ /**
59
+ * Data classification level for the bucket.
60
+ */
61
+ dataClassification: pulumi.Input<string>;
62
+ /**
63
+ * The GCS location (e.g. US, EU, us-central1).
64
+ */
65
+ location: pulumi.Input<string>;
66
+ transform?: pulumi.Input<inputs.gcp.BucketTransformArgsArgs>;
67
+ }
package/index.ts ADDED
@@ -0,0 +1,32 @@
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
+ import * as pulumi from "@pulumi/pulumi";
5
+ import * as utilities from "./utilities";
6
+
7
+ // Export members:
8
+ export { ProviderArgs } from "./provider";
9
+ export type Provider = import("./provider").Provider;
10
+ export const Provider: typeof import("./provider").Provider = null as any;
11
+ utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
12
+
13
+
14
+ // Export sub-modules:
15
+ import * as aws from "./aws";
16
+ import * as gcp from "./gcp";
17
+ import * as types from "./types";
18
+
19
+ export {
20
+ aws,
21
+ gcp,
22
+ types,
23
+ };
24
+ pulumi.runtime.registerResourcePackage("anvil", {
25
+ version: utilities.getVersion(),
26
+ constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
27
+ if (type !== "pulumi:providers:anvil") {
28
+ throw new Error(`unknown provider type ${type}`);
29
+ }
30
+ return new Provider(name, <any>undefined, { urn });
31
+ },
32
+ });
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@anvil-cloud/sdk",
3
+ "version": "0.0.2",
4
+ "scripts": {
5
+ "build": "tsc && cp package.json bin/"
6
+ },
7
+ "dependencies": {
8
+ "@pulumi/aws": "^7.21.0",
9
+ "@pulumi/gcp": "^9.0.0",
10
+ "@pulumi/pulumi": "^3.0.0"
11
+ },
12
+ "devDependencies": {
13
+ "@types/node": "^18",
14
+ "typescript": "^4.3.5"
15
+ },
16
+ "pulumi": {
17
+ "resource": true,
18
+ "name": "anvil"
19
+ },
20
+ "description": "Anvil — secure-by-default cloud infrastructure components",
21
+ "main": "bin/index.js",
22
+ "types": "bin/index.d.ts",
23
+ "license": "Apache-2.0",
24
+ "homepage": "https://github.com/anvil-cloud/anvil",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://github.com/anvil-cloud/anvil.git",
28
+ "directory": "sdk/nodejs"
29
+ }
30
+ }
package/provider.ts ADDED
@@ -0,0 +1,44 @@
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
+ import * as pulumi from "@pulumi/pulumi";
5
+ import * as utilities from "./utilities";
6
+
7
+ export class Provider extends pulumi.ProviderResource {
8
+ /** @internal */
9
+ public static readonly __pulumiType = 'anvil';
10
+
11
+ /**
12
+ * Returns true if the given object is an instance of Provider. This is designed to work even
13
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
14
+ */
15
+ public static isInstance(obj: any): obj is Provider {
16
+ if (obj === undefined || obj === null) {
17
+ return false;
18
+ }
19
+ return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
20
+ }
21
+
22
+
23
+ /**
24
+ * Create a Provider resource with the given unique name, arguments, and options.
25
+ *
26
+ * @param name The _unique_ name of the resource.
27
+ * @param args The arguments to use to populate this resource's properties.
28
+ * @param opts A bag of options that control this resource's behavior.
29
+ */
30
+ constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions) {
31
+ let resourceInputs: pulumi.Inputs = {};
32
+ opts = opts || {};
33
+ {
34
+ }
35
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
36
+ super(Provider.__pulumiType, name, resourceInputs, opts);
37
+ }
38
+ }
39
+
40
+ /**
41
+ * The set of arguments for constructing a Provider resource.
42
+ */
43
+ export interface ProviderArgs {
44
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "bin",
4
+ "target": "ES2020",
5
+ "module": "commonjs",
6
+ "moduleResolution": "node",
7
+ "declaration": true,
8
+ "sourceMap": true,
9
+ "stripInternal": true,
10
+ "experimentalDecorators": true,
11
+ "noFallthroughCasesInSwitch": true,
12
+ "forceConsistentCasingInFileNames": true,
13
+ "strict": true
14
+ },
15
+ "files": [
16
+ "aws/bucket.ts",
17
+ "aws/index.ts",
18
+ "aws/lambda.ts",
19
+ "gcp/function.ts",
20
+ "gcp/index.ts",
21
+ "gcp/storageBucket.ts",
22
+ "index.ts",
23
+ "provider.ts",
24
+ "types/index.ts",
25
+ "types/input.ts",
26
+ "types/output.ts",
27
+ "utilities.ts"
28
+ ]
29
+ }
package/types/index.ts ADDED
@@ -0,0 +1,13 @@
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
+ import * as utilities from "../utilities";
5
+
6
+ // Export sub-modules:
7
+ import * as input from "./input";
8
+ import * as output from "./output";
9
+
10
+ export {
11
+ input,
12
+ output,
13
+ };