@quantcdn/pulumi-quant 0.1.0

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/getProjects.ts ADDED
@@ -0,0 +1,29 @@
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
+ export function getProjects(opts?: pulumi.InvokeOptions): Promise<GetProjectsResult> {
10
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
11
+ return pulumi.runtime.invoke("quant:index:getProjects", {
12
+ }, opts);
13
+ }
14
+
15
+ /**
16
+ * A collection of values returned by getProjects.
17
+ */
18
+ export interface GetProjectsResult {
19
+ /**
20
+ * The provider-assigned unique ID for this managed resource.
21
+ */
22
+ readonly id: string;
23
+ readonly projects: outputs.GetProjectsProject[];
24
+ }
25
+ export function getProjectsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProjectsResult> {
26
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
27
+ return pulumi.runtime.invokeOutput("quant:index:getProjects", {
28
+ }, opts);
29
+ }
package/header.ts ADDED
@@ -0,0 +1,97 @@
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 Header extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing Header resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param state Any extra arguments used during the lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: HeaderState, opts?: pulumi.CustomResourceOptions): Header {
18
+ return new Header(name, <any>state, { ...opts, id: id });
19
+ }
20
+
21
+ /** @internal */
22
+ public static readonly __pulumiType = 'quant:index:Header';
23
+
24
+ /**
25
+ * Returns true if the given object is an instance of Header. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ public static isInstance(obj: any): obj is Header {
29
+ if (obj === undefined || obj === null) {
30
+ return false;
31
+ }
32
+ return obj['__pulumiType'] === Header.__pulumiType;
33
+ }
34
+
35
+ /**
36
+ * HTTP headers to be set for the project
37
+ */
38
+ declare public readonly headers: pulumi.Output<{[key: string]: string}>;
39
+ declare public readonly organization: pulumi.Output<string>;
40
+ declare public readonly project: pulumi.Output<string>;
41
+
42
+ /**
43
+ * Create a Header resource with the given unique name, arguments, and options.
44
+ *
45
+ * @param name The _unique_ name of the resource.
46
+ * @param args The arguments to use to populate this resource's properties.
47
+ * @param opts A bag of options that control this resource's behavior.
48
+ */
49
+ constructor(name: string, args: HeaderArgs, opts?: pulumi.CustomResourceOptions)
50
+ constructor(name: string, argsOrState?: HeaderArgs | HeaderState, opts?: pulumi.CustomResourceOptions) {
51
+ let resourceInputs: pulumi.Inputs = {};
52
+ opts = opts || {};
53
+ if (opts.id) {
54
+ const state = argsOrState as HeaderState | undefined;
55
+ resourceInputs["headers"] = state?.headers;
56
+ resourceInputs["organization"] = state?.organization;
57
+ resourceInputs["project"] = state?.project;
58
+ } else {
59
+ const args = argsOrState as HeaderArgs | undefined;
60
+ if (args?.headers === undefined && !opts.urn) {
61
+ throw new Error("Missing required property 'headers'");
62
+ }
63
+ if (args?.project === undefined && !opts.urn) {
64
+ throw new Error("Missing required property 'project'");
65
+ }
66
+ resourceInputs["headers"] = args?.headers;
67
+ resourceInputs["organization"] = args?.organization;
68
+ resourceInputs["project"] = args?.project;
69
+ }
70
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
71
+ super(Header.__pulumiType, name, resourceInputs, opts);
72
+ }
73
+ }
74
+
75
+ /**
76
+ * Input properties used for looking up and filtering Header resources.
77
+ */
78
+ export interface HeaderState {
79
+ /**
80
+ * HTTP headers to be set for the project
81
+ */
82
+ headers?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
83
+ organization?: pulumi.Input<string>;
84
+ project?: pulumi.Input<string>;
85
+ }
86
+
87
+ /**
88
+ * The set of arguments for constructing a Header resource.
89
+ */
90
+ export interface HeaderArgs {
91
+ /**
92
+ * HTTP headers to be set for the project
93
+ */
94
+ headers: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
95
+ organization?: pulumi.Input<string>;
96
+ project: pulumi.Input<string>;
97
+ }
package/index.ts ADDED
@@ -0,0 +1,189 @@
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 { ApplicationArgs, ApplicationState } from "./application";
9
+ export type Application = import("./application").Application;
10
+ export const Application: typeof import("./application").Application = null as any;
11
+ utilities.lazyLoad(exports, ["Application"], () => require("./application"));
12
+
13
+ export { CrawlerArgs, CrawlerState } from "./crawler";
14
+ export type Crawler = import("./crawler").Crawler;
15
+ export const Crawler: typeof import("./crawler").Crawler = null as any;
16
+ utilities.lazyLoad(exports, ["Crawler"], () => require("./crawler"));
17
+
18
+ export { CrawlerScheduleArgs, CrawlerScheduleState } from "./crawlerSchedule";
19
+ export type CrawlerSchedule = import("./crawlerSchedule").CrawlerSchedule;
20
+ export const CrawlerSchedule: typeof import("./crawlerSchedule").CrawlerSchedule = null as any;
21
+ utilities.lazyLoad(exports, ["CrawlerSchedule"], () => require("./crawlerSchedule"));
22
+
23
+ export { CronJobArgs, CronJobState } from "./cronJob";
24
+ export type CronJob = import("./cronJob").CronJob;
25
+ export const CronJob: typeof import("./cronJob").CronJob = null as any;
26
+ utilities.lazyLoad(exports, ["CronJob"], () => require("./cronJob"));
27
+
28
+ export { DomainArgs, DomainState } from "./domain";
29
+ export type Domain = import("./domain").Domain;
30
+ export const Domain: typeof import("./domain").Domain = null as any;
31
+ utilities.lazyLoad(exports, ["Domain"], () => require("./domain"));
32
+
33
+ export { EnvironmentArgs, EnvironmentState } from "./environment";
34
+ export type Environment = import("./environment").Environment;
35
+ export const Environment: typeof import("./environment").Environment = null as any;
36
+ utilities.lazyLoad(exports, ["Environment"], () => require("./environment"));
37
+
38
+ export { GetProjectArgs, GetProjectResult, GetProjectOutputArgs } from "./getProject";
39
+ export const getProject: typeof import("./getProject").getProject = null as any;
40
+ export const getProjectOutput: typeof import("./getProject").getProjectOutput = null as any;
41
+ utilities.lazyLoad(exports, ["getProject","getProjectOutput"], () => require("./getProject"));
42
+
43
+ export { GetProjectsResult } from "./getProjects";
44
+ export const getProjects: typeof import("./getProjects").getProjects = null as any;
45
+ export const getProjectsOutput: typeof import("./getProjects").getProjectsOutput = null as any;
46
+ utilities.lazyLoad(exports, ["getProjects","getProjectsOutput"], () => require("./getProjects"));
47
+
48
+ export { HeaderArgs, HeaderState } from "./header";
49
+ export type Header = import("./header").Header;
50
+ export const Header: typeof import("./header").Header = null as any;
51
+ utilities.lazyLoad(exports, ["Header"], () => require("./header"));
52
+
53
+ export { KvItemArgs, KvItemState } from "./kvItem";
54
+ export type KvItem = import("./kvItem").KvItem;
55
+ export const KvItem: typeof import("./kvItem").KvItem = null as any;
56
+ utilities.lazyLoad(exports, ["KvItem"], () => require("./kvItem"));
57
+
58
+ export { KvStoreArgs, KvStoreState } from "./kvStore";
59
+ export type KvStore = import("./kvStore").KvStore;
60
+ export const KvStore: typeof import("./kvStore").KvStore = null as any;
61
+ utilities.lazyLoad(exports, ["KvStore"], () => require("./kvStore"));
62
+
63
+ export { ProjectArgs, ProjectState } from "./project";
64
+ export type Project = import("./project").Project;
65
+ export const Project: typeof import("./project").Project = null as any;
66
+ utilities.lazyLoad(exports, ["Project"], () => require("./project"));
67
+
68
+ export * from "./provider";
69
+ import { Provider } from "./provider";
70
+
71
+ export { RuleAuthArgs, RuleAuthState } from "./ruleAuth";
72
+ export type RuleAuth = import("./ruleAuth").RuleAuth;
73
+ export const RuleAuth: typeof import("./ruleAuth").RuleAuth = null as any;
74
+ utilities.lazyLoad(exports, ["RuleAuth"], () => require("./ruleAuth"));
75
+
76
+ export { RuleBotChallengeArgs, RuleBotChallengeState } from "./ruleBotChallenge";
77
+ export type RuleBotChallenge = import("./ruleBotChallenge").RuleBotChallenge;
78
+ export const RuleBotChallenge: typeof import("./ruleBotChallenge").RuleBotChallenge = null as any;
79
+ utilities.lazyLoad(exports, ["RuleBotChallenge"], () => require("./ruleBotChallenge"));
80
+
81
+ export { RuleContentFilterArgs, RuleContentFilterState } from "./ruleContentFilter";
82
+ export type RuleContentFilter = import("./ruleContentFilter").RuleContentFilter;
83
+ export const RuleContentFilter: typeof import("./ruleContentFilter").RuleContentFilter = null as any;
84
+ utilities.lazyLoad(exports, ["RuleContentFilter"], () => require("./ruleContentFilter"));
85
+
86
+ export { RuleCustomResponseArgs, RuleCustomResponseState } from "./ruleCustomResponse";
87
+ export type RuleCustomResponse = import("./ruleCustomResponse").RuleCustomResponse;
88
+ export const RuleCustomResponse: typeof import("./ruleCustomResponse").RuleCustomResponse = null as any;
89
+ utilities.lazyLoad(exports, ["RuleCustomResponse"], () => require("./ruleCustomResponse"));
90
+
91
+ export { RuleFunctionArgs, RuleFunctionState } from "./ruleFunction";
92
+ export type RuleFunction = import("./ruleFunction").RuleFunction;
93
+ export const RuleFunction: typeof import("./ruleFunction").RuleFunction = null as any;
94
+ utilities.lazyLoad(exports, ["RuleFunction"], () => require("./ruleFunction"));
95
+
96
+ export { RuleHeadersArgs, RuleHeadersState } from "./ruleHeaders";
97
+ export type RuleHeaders = import("./ruleHeaders").RuleHeaders;
98
+ export const RuleHeaders: typeof import("./ruleHeaders").RuleHeaders = null as any;
99
+ utilities.lazyLoad(exports, ["RuleHeaders"], () => require("./ruleHeaders"));
100
+
101
+ export { RuleProxyArgs, RuleProxyState } from "./ruleProxy";
102
+ export type RuleProxy = import("./ruleProxy").RuleProxy;
103
+ export const RuleProxy: typeof import("./ruleProxy").RuleProxy = null as any;
104
+ utilities.lazyLoad(exports, ["RuleProxy"], () => require("./ruleProxy"));
105
+
106
+ export { RuleRedirectArgs, RuleRedirectState } from "./ruleRedirect";
107
+ export type RuleRedirect = import("./ruleRedirect").RuleRedirect;
108
+ export const RuleRedirect: typeof import("./ruleRedirect").RuleRedirect = null as any;
109
+ utilities.lazyLoad(exports, ["RuleRedirect"], () => require("./ruleRedirect"));
110
+
111
+ export { RuleServeStaticArgs, RuleServeStaticState } from "./ruleServeStatic";
112
+ export type RuleServeStatic = import("./ruleServeStatic").RuleServeStatic;
113
+ export const RuleServeStatic: typeof import("./ruleServeStatic").RuleServeStatic = null as any;
114
+ utilities.lazyLoad(exports, ["RuleServeStatic"], () => require("./ruleServeStatic"));
115
+
116
+ export { VolumeArgs, VolumeState } from "./volume";
117
+ export type Volume = import("./volume").Volume;
118
+ export const Volume: typeof import("./volume").Volume = null as any;
119
+ utilities.lazyLoad(exports, ["Volume"], () => require("./volume"));
120
+
121
+
122
+ // Export sub-modules:
123
+ import * as config from "./config";
124
+ import * as types from "./types";
125
+
126
+ export {
127
+ config,
128
+ types,
129
+ };
130
+
131
+ const _module = {
132
+ version: utilities.getVersion(),
133
+ construct: (name: string, type: string, urn: string): pulumi.Resource => {
134
+ switch (type) {
135
+ case "quant:index:Application":
136
+ return new Application(name, <any>undefined, { urn })
137
+ case "quant:index:Crawler":
138
+ return new Crawler(name, <any>undefined, { urn })
139
+ case "quant:index:CrawlerSchedule":
140
+ return new CrawlerSchedule(name, <any>undefined, { urn })
141
+ case "quant:index:CronJob":
142
+ return new CronJob(name, <any>undefined, { urn })
143
+ case "quant:index:Domain":
144
+ return new Domain(name, <any>undefined, { urn })
145
+ case "quant:index:Environment":
146
+ return new Environment(name, <any>undefined, { urn })
147
+ case "quant:index:Header":
148
+ return new Header(name, <any>undefined, { urn })
149
+ case "quant:index:KvItem":
150
+ return new KvItem(name, <any>undefined, { urn })
151
+ case "quant:index:KvStore":
152
+ return new KvStore(name, <any>undefined, { urn })
153
+ case "quant:index:Project":
154
+ return new Project(name, <any>undefined, { urn })
155
+ case "quant:index:RuleAuth":
156
+ return new RuleAuth(name, <any>undefined, { urn })
157
+ case "quant:index:RuleBotChallenge":
158
+ return new RuleBotChallenge(name, <any>undefined, { urn })
159
+ case "quant:index:RuleContentFilter":
160
+ return new RuleContentFilter(name, <any>undefined, { urn })
161
+ case "quant:index:RuleCustomResponse":
162
+ return new RuleCustomResponse(name, <any>undefined, { urn })
163
+ case "quant:index:RuleFunction":
164
+ return new RuleFunction(name, <any>undefined, { urn })
165
+ case "quant:index:RuleHeaders":
166
+ return new RuleHeaders(name, <any>undefined, { urn })
167
+ case "quant:index:RuleProxy":
168
+ return new RuleProxy(name, <any>undefined, { urn })
169
+ case "quant:index:RuleRedirect":
170
+ return new RuleRedirect(name, <any>undefined, { urn })
171
+ case "quant:index:RuleServeStatic":
172
+ return new RuleServeStatic(name, <any>undefined, { urn })
173
+ case "quant:index:Volume":
174
+ return new Volume(name, <any>undefined, { urn })
175
+ default:
176
+ throw new Error(`unknown resource type ${type}`);
177
+ }
178
+ },
179
+ };
180
+ pulumi.runtime.registerResourceModule("quant", "index", _module)
181
+ pulumi.runtime.registerResourcePackage("quant", {
182
+ version: utilities.getVersion(),
183
+ constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
184
+ if (type !== "pulumi:providers:quant") {
185
+ throw new Error(`unknown provider type ${type}`);
186
+ }
187
+ return new Provider(name, <any>undefined, { urn });
188
+ },
189
+ });
package/kvItem.ts ADDED
@@ -0,0 +1,165 @@
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 KvItem extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing KvItem resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param state Any extra arguments used during the lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: KvItemState, opts?: pulumi.CustomResourceOptions): KvItem {
18
+ return new KvItem(name, <any>state, { ...opts, id: id });
19
+ }
20
+
21
+ /** @internal */
22
+ public static readonly __pulumiType = 'quant:index:KvItem';
23
+
24
+ /**
25
+ * Returns true if the given object is an instance of KvItem. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ public static isInstance(obj: any): obj is KvItem {
29
+ if (obj === undefined || obj === null) {
30
+ return false;
31
+ }
32
+ return obj['__pulumiType'] === KvItem.__pulumiType;
33
+ }
34
+
35
+ /**
36
+ * Item key
37
+ */
38
+ declare public readonly key: pulumi.Output<string>;
39
+ /**
40
+ * Organization machine name (defaults to provider organization)
41
+ */
42
+ declare public readonly organization: pulumi.Output<string>;
43
+ /**
44
+ * Project machine name
45
+ */
46
+ declare public readonly project: pulumi.Output<string>;
47
+ /**
48
+ * Store as secret with KMS encryption
49
+ */
50
+ declare public readonly secret: pulumi.Output<boolean>;
51
+ /**
52
+ * KV store ID
53
+ */
54
+ declare public readonly storeId: pulumi.Output<string>;
55
+ /**
56
+ * Item value (can be a JSON string)
57
+ */
58
+ declare public readonly value: pulumi.Output<string>;
59
+
60
+ /**
61
+ * Create a KvItem resource with the given unique name, arguments, and options.
62
+ *
63
+ * @param name The _unique_ name of the resource.
64
+ * @param args The arguments to use to populate this resource's properties.
65
+ * @param opts A bag of options that control this resource's behavior.
66
+ */
67
+ constructor(name: string, args: KvItemArgs, opts?: pulumi.CustomResourceOptions)
68
+ constructor(name: string, argsOrState?: KvItemArgs | KvItemState, opts?: pulumi.CustomResourceOptions) {
69
+ let resourceInputs: pulumi.Inputs = {};
70
+ opts = opts || {};
71
+ if (opts.id) {
72
+ const state = argsOrState as KvItemState | undefined;
73
+ resourceInputs["key"] = state?.key;
74
+ resourceInputs["organization"] = state?.organization;
75
+ resourceInputs["project"] = state?.project;
76
+ resourceInputs["secret"] = state?.secret;
77
+ resourceInputs["storeId"] = state?.storeId;
78
+ resourceInputs["value"] = state?.value;
79
+ } else {
80
+ const args = argsOrState as KvItemArgs | undefined;
81
+ if (args?.key === undefined && !opts.urn) {
82
+ throw new Error("Missing required property 'key'");
83
+ }
84
+ if (args?.project === undefined && !opts.urn) {
85
+ throw new Error("Missing required property 'project'");
86
+ }
87
+ if (args?.storeId === undefined && !opts.urn) {
88
+ throw new Error("Missing required property 'storeId'");
89
+ }
90
+ if (args?.value === undefined && !opts.urn) {
91
+ throw new Error("Missing required property 'value'");
92
+ }
93
+ resourceInputs["key"] = args?.key;
94
+ resourceInputs["organization"] = args?.organization;
95
+ resourceInputs["project"] = args?.project;
96
+ resourceInputs["secret"] = args?.secret;
97
+ resourceInputs["storeId"] = args?.storeId;
98
+ resourceInputs["value"] = args?.value ? pulumi.secret(args.value) : undefined;
99
+ }
100
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
101
+ const secretOpts = { additionalSecretOutputs: ["value"] };
102
+ opts = pulumi.mergeOptions(opts, secretOpts);
103
+ super(KvItem.__pulumiType, name, resourceInputs, opts);
104
+ }
105
+ }
106
+
107
+ /**
108
+ * Input properties used for looking up and filtering KvItem resources.
109
+ */
110
+ export interface KvItemState {
111
+ /**
112
+ * Item key
113
+ */
114
+ key?: pulumi.Input<string>;
115
+ /**
116
+ * Organization machine name (defaults to provider organization)
117
+ */
118
+ organization?: pulumi.Input<string>;
119
+ /**
120
+ * Project machine name
121
+ */
122
+ project?: pulumi.Input<string>;
123
+ /**
124
+ * Store as secret with KMS encryption
125
+ */
126
+ secret?: pulumi.Input<boolean>;
127
+ /**
128
+ * KV store ID
129
+ */
130
+ storeId?: pulumi.Input<string>;
131
+ /**
132
+ * Item value (can be a JSON string)
133
+ */
134
+ value?: pulumi.Input<string>;
135
+ }
136
+
137
+ /**
138
+ * The set of arguments for constructing a KvItem resource.
139
+ */
140
+ export interface KvItemArgs {
141
+ /**
142
+ * Item key
143
+ */
144
+ key: pulumi.Input<string>;
145
+ /**
146
+ * Organization machine name (defaults to provider organization)
147
+ */
148
+ organization?: pulumi.Input<string>;
149
+ /**
150
+ * Project machine name
151
+ */
152
+ project: pulumi.Input<string>;
153
+ /**
154
+ * Store as secret with KMS encryption
155
+ */
156
+ secret?: pulumi.Input<boolean>;
157
+ /**
158
+ * KV store ID
159
+ */
160
+ storeId: pulumi.Input<string>;
161
+ /**
162
+ * Item value (can be a JSON string)
163
+ */
164
+ value: pulumi.Input<string>;
165
+ }
package/kvStore.ts ADDED
@@ -0,0 +1,122 @@
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 KvStore extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing KvStore resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param state Any extra arguments used during the lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: KvStoreState, opts?: pulumi.CustomResourceOptions): KvStore {
18
+ return new KvStore(name, <any>state, { ...opts, id: id });
19
+ }
20
+
21
+ /** @internal */
22
+ public static readonly __pulumiType = 'quant:index:KvStore';
23
+
24
+ /**
25
+ * Returns true if the given object is an instance of KvStore. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ public static isInstance(obj: any): obj is KvStore {
29
+ if (obj === undefined || obj === null) {
30
+ return false;
31
+ }
32
+ return obj['__pulumiType'] === KvStore.__pulumiType;
33
+ }
34
+
35
+ /**
36
+ * Store name
37
+ */
38
+ declare public readonly name: pulumi.Output<string>;
39
+ /**
40
+ * Organization machine name (defaults to provider organization)
41
+ */
42
+ declare public readonly organization: pulumi.Output<string>;
43
+ /**
44
+ * Project machine name
45
+ */
46
+ declare public readonly project: pulumi.Output<string>;
47
+ /**
48
+ * Store ID
49
+ */
50
+ declare public /*out*/ readonly storeId: pulumi.Output<string>;
51
+
52
+ /**
53
+ * Create a KvStore resource with the given unique name, arguments, and options.
54
+ *
55
+ * @param name The _unique_ name of the resource.
56
+ * @param args The arguments to use to populate this resource's properties.
57
+ * @param opts A bag of options that control this resource's behavior.
58
+ */
59
+ constructor(name: string, args: KvStoreArgs, opts?: pulumi.CustomResourceOptions)
60
+ constructor(name: string, argsOrState?: KvStoreArgs | KvStoreState, opts?: pulumi.CustomResourceOptions) {
61
+ let resourceInputs: pulumi.Inputs = {};
62
+ opts = opts || {};
63
+ if (opts.id) {
64
+ const state = argsOrState as KvStoreState | undefined;
65
+ resourceInputs["name"] = state?.name;
66
+ resourceInputs["organization"] = state?.organization;
67
+ resourceInputs["project"] = state?.project;
68
+ resourceInputs["storeId"] = state?.storeId;
69
+ } else {
70
+ const args = argsOrState as KvStoreArgs | undefined;
71
+ if (args?.project === undefined && !opts.urn) {
72
+ throw new Error("Missing required property 'project'");
73
+ }
74
+ resourceInputs["name"] = args?.name;
75
+ resourceInputs["organization"] = args?.organization;
76
+ resourceInputs["project"] = args?.project;
77
+ resourceInputs["storeId"] = undefined /*out*/;
78
+ }
79
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
80
+ super(KvStore.__pulumiType, name, resourceInputs, opts);
81
+ }
82
+ }
83
+
84
+ /**
85
+ * Input properties used for looking up and filtering KvStore resources.
86
+ */
87
+ export interface KvStoreState {
88
+ /**
89
+ * Store name
90
+ */
91
+ name?: pulumi.Input<string>;
92
+ /**
93
+ * Organization machine name (defaults to provider organization)
94
+ */
95
+ organization?: pulumi.Input<string>;
96
+ /**
97
+ * Project machine name
98
+ */
99
+ project?: pulumi.Input<string>;
100
+ /**
101
+ * Store ID
102
+ */
103
+ storeId?: pulumi.Input<string>;
104
+ }
105
+
106
+ /**
107
+ * The set of arguments for constructing a KvStore resource.
108
+ */
109
+ export interface KvStoreArgs {
110
+ /**
111
+ * Store name
112
+ */
113
+ name?: pulumi.Input<string>;
114
+ /**
115
+ * Organization machine name (defaults to provider organization)
116
+ */
117
+ organization?: pulumi.Input<string>;
118
+ /**
119
+ * Project machine name
120
+ */
121
+ project: pulumi.Input<string>;
122
+ }
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@quantcdn/pulumi-quant",
3
+ "version": "0.1.0",
4
+ "description": "A Pulumi package for managing QuantCDN resources.",
5
+ "keywords": [
6
+ "pulumi",
7
+ "quant",
8
+ "quantcdn",
9
+ "cdn",
10
+ "category/cloud"
11
+ ],
12
+ "homepage": "https://www.quantcdn.io",
13
+ "repository": "https://github.com/quantcdn/pulumi-quant",
14
+ "license": "Apache-2.0",
15
+ "scripts": {
16
+ "build": "tsc"
17
+ },
18
+ "dependencies": {
19
+ "@pulumi/pulumi": "^3.0.0"
20
+ },
21
+ "devDependencies": {
22
+ "@types/node": "^10.0.0",
23
+ "typescript": "^4.3.5"
24
+ },
25
+ "pulumi": {
26
+ "resource": true,
27
+ "name": "quant",
28
+ "version": "0.1.0",
29
+ "server": "github://api.github.com/quantcdn/pulumi-quant"
30
+ }
31
+ }