@pulumiverse/vercel 1.0.1 → 1.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/dnsRecord.d.ts +2 -2
- package/dnsRecord.js +2 -2
- package/package.json +1 -1
- package/projectEnvironmentVariable.d.ts +23 -2
- package/projectEnvironmentVariable.js +13 -2
- package/projectEnvironmentVariable.js.map +1 -1
- package/sharedEnvironmentVariable.d.ts +13 -1
- package/sharedEnvironmentVariable.js +3 -1
- package/sharedEnvironmentVariable.js.map +1 -1
- package/types/input.d.ts +4 -0
- package/types/output.d.ts +8 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +33 -1
- package/utilities.js.map +1 -1
package/dnsRecord.d.ts
CHANGED
|
@@ -74,13 +74,13 @@ import * as outputs from "./types/output";
|
|
|
74
74
|
*
|
|
75
75
|
* ## Import
|
|
76
76
|
*
|
|
77
|
-
* If importing into a personal account, or with a team configured on the provider, simply use the record id. - record_id can be taken from the network tab on the domains page.
|
|
77
|
+
* If importing into a personal account, or with a team configured on the provider, simply use the record id. - record_id is hard to find, but can be taken from the network tab, inside developer tools, on the domains page.
|
|
78
78
|
*
|
|
79
79
|
* ```sh
|
|
80
80
|
* $ pulumi import vercel:index/dnsRecord:DnsRecord example rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
81
81
|
* ```
|
|
82
82
|
*
|
|
83
|
-
* Alternatively, you can import via the team_id and record_id. - team_id can be found in the team `settings` tab in the Vercel UI. - record_id can be taken from the network tab on the domains page.
|
|
83
|
+
* Alternatively, you can import via the team_id and record_id. - team_id can be found in the team `settings` tab in the Vercel UI. - record_id is hard to find, but can be taken from the network tab, inside developer tools, on the domains page.
|
|
84
84
|
*
|
|
85
85
|
* ```sh
|
|
86
86
|
* $ pulumi import vercel:index/dnsRecord:DnsRecord example team_xxxxxxxxxxxxxxxxxxxxxxxx/rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
package/dnsRecord.js
CHANGED
|
@@ -78,13 +78,13 @@ const utilities = require("./utilities");
|
|
|
78
78
|
*
|
|
79
79
|
* ## Import
|
|
80
80
|
*
|
|
81
|
-
* If importing into a personal account, or with a team configured on the provider, simply use the record id. - record_id can be taken from the network tab on the domains page.
|
|
81
|
+
* If importing into a personal account, or with a team configured on the provider, simply use the record id. - record_id is hard to find, but can be taken from the network tab, inside developer tools, on the domains page.
|
|
82
82
|
*
|
|
83
83
|
* ```sh
|
|
84
84
|
* $ pulumi import vercel:index/dnsRecord:DnsRecord example rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
85
85
|
* ```
|
|
86
86
|
*
|
|
87
|
-
* Alternatively, you can import via the team_id and record_id. - team_id can be found in the team `settings` tab in the Vercel UI. - record_id can be taken from the network tab on the domains page.
|
|
87
|
+
* Alternatively, you can import via the team_id and record_id. - team_id can be found in the team `settings` tab in the Vercel UI. - record_id is hard to find, but can be taken from the network tab, inside developer tools, on the domains page.
|
|
88
88
|
*
|
|
89
89
|
* ```sh
|
|
90
90
|
* $ pulumi import vercel:index/dnsRecord:DnsRecord example team_xxxxxxxxxxxxxxxxxxxxxxxx/rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
package/package.json
CHANGED
|
@@ -27,17 +27,26 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
27
27
|
* targets: ["preview"],
|
|
28
28
|
* gitBranch: "staging",
|
|
29
29
|
* });
|
|
30
|
+
* // A sensitive environment variable that will be created
|
|
31
|
+
* // for this project for the "production" environment.
|
|
32
|
+
* const exampleSensitive = new vercel.ProjectEnvironmentVariable("exampleSensitive", {
|
|
33
|
+
* projectId: exampleProject.id,
|
|
34
|
+
* key: "foo",
|
|
35
|
+
* value: "bar-production",
|
|
36
|
+
* targets: ["production"],
|
|
37
|
+
* sensitive: true,
|
|
38
|
+
* });
|
|
30
39
|
* ```
|
|
31
40
|
*
|
|
32
41
|
* ## Import
|
|
33
42
|
*
|
|
34
|
-
* If importing into a personal account, or with a team configured on the provider, simply use the project_id and environment variable id. - project_id can be found in the project `settings` tab in the Vercel UI. - environment variable id can be taken from the network tab on the project page.
|
|
43
|
+
* If importing into a personal account, or with a team configured on the provider, simply use the project_id and environment variable id. - project_id can be found in the project `settings` tab in the Vercel UI. - environment variable id is hard to find, but can be taken from the network tab, inside developer tools, on the project page. # Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
35
44
|
*
|
|
36
45
|
* ```sh
|
|
37
46
|
* $ pulumi import vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FdT2e1E5Of6Cihmt
|
|
38
47
|
* ```
|
|
39
48
|
*
|
|
40
|
-
* Alternatively, you can import via the team_id, project_id and environment variable id. - team_id can be found in the team `settings` tab in the Vercel UI. - project_id can be found in the project `settings` tab in the Vercel UI. - environment variable id can be taken from the network tab on the project page.
|
|
49
|
+
* Alternatively, you can import via the team_id, project_id and environment variable id. - team_id can be found in the team `settings` tab in the Vercel UI. - project_id can be found in the project `settings` tab in the Vercel UI. - environment variable id is hard to find, but can be taken from the network tab, inside developer tools, on the project page. # Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
41
50
|
*
|
|
42
51
|
* ```sh
|
|
43
52
|
* $ pulumi import vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FdT2e1E5Of6Cihmt
|
|
@@ -71,6 +80,10 @@ export declare class ProjectEnvironmentVariable extends pulumi.CustomResource {
|
|
|
71
80
|
* The ID of the Vercel project.
|
|
72
81
|
*/
|
|
73
82
|
readonly projectId: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Whether the Environment Variable is sensitive or not.
|
|
85
|
+
*/
|
|
86
|
+
readonly sensitive: pulumi.Output<boolean>;
|
|
74
87
|
/**
|
|
75
88
|
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
|
|
76
89
|
*/
|
|
@@ -108,6 +121,10 @@ export interface ProjectEnvironmentVariableState {
|
|
|
108
121
|
* The ID of the Vercel project.
|
|
109
122
|
*/
|
|
110
123
|
projectId?: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* Whether the Environment Variable is sensitive or not.
|
|
126
|
+
*/
|
|
127
|
+
sensitive?: pulumi.Input<boolean>;
|
|
111
128
|
/**
|
|
112
129
|
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
|
|
113
130
|
*/
|
|
@@ -137,6 +154,10 @@ export interface ProjectEnvironmentVariableArgs {
|
|
|
137
154
|
* The ID of the Vercel project.
|
|
138
155
|
*/
|
|
139
156
|
projectId: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Whether the Environment Variable is sensitive or not.
|
|
159
|
+
*/
|
|
160
|
+
sensitive?: pulumi.Input<boolean>;
|
|
140
161
|
/**
|
|
141
162
|
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
|
|
142
163
|
*/
|
|
@@ -33,17 +33,26 @@ const utilities = require("./utilities");
|
|
|
33
33
|
* targets: ["preview"],
|
|
34
34
|
* gitBranch: "staging",
|
|
35
35
|
* });
|
|
36
|
+
* // A sensitive environment variable that will be created
|
|
37
|
+
* // for this project for the "production" environment.
|
|
38
|
+
* const exampleSensitive = new vercel.ProjectEnvironmentVariable("exampleSensitive", {
|
|
39
|
+
* projectId: exampleProject.id,
|
|
40
|
+
* key: "foo",
|
|
41
|
+
* value: "bar-production",
|
|
42
|
+
* targets: ["production"],
|
|
43
|
+
* sensitive: true,
|
|
44
|
+
* });
|
|
36
45
|
* ```
|
|
37
46
|
*
|
|
38
47
|
* ## Import
|
|
39
48
|
*
|
|
40
|
-
* If importing into a personal account, or with a team configured on the provider, simply use the project_id and environment variable id. - project_id can be found in the project `settings` tab in the Vercel UI. - environment variable id can be taken from the network tab on the project page.
|
|
49
|
+
* If importing into a personal account, or with a team configured on the provider, simply use the project_id and environment variable id. - project_id can be found in the project `settings` tab in the Vercel UI. - environment variable id is hard to find, but can be taken from the network tab, inside developer tools, on the project page. # Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
41
50
|
*
|
|
42
51
|
* ```sh
|
|
43
52
|
* $ pulumi import vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FdT2e1E5Of6Cihmt
|
|
44
53
|
* ```
|
|
45
54
|
*
|
|
46
|
-
* Alternatively, you can import via the team_id, project_id and environment variable id. - team_id can be found in the team `settings` tab in the Vercel UI. - project_id can be found in the project `settings` tab in the Vercel UI. - environment variable id can be taken from the network tab on the project page.
|
|
55
|
+
* Alternatively, you can import via the team_id, project_id and environment variable id. - team_id can be found in the team `settings` tab in the Vercel UI. - project_id can be found in the project `settings` tab in the Vercel UI. - environment variable id is hard to find, but can be taken from the network tab, inside developer tools, on the project page. # Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
47
56
|
*
|
|
48
57
|
* ```sh
|
|
49
58
|
* $ pulumi import vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FdT2e1E5Of6Cihmt
|
|
@@ -80,6 +89,7 @@ class ProjectEnvironmentVariable extends pulumi.CustomResource {
|
|
|
80
89
|
resourceInputs["gitBranch"] = state ? state.gitBranch : undefined;
|
|
81
90
|
resourceInputs["key"] = state ? state.key : undefined;
|
|
82
91
|
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
92
|
+
resourceInputs["sensitive"] = state ? state.sensitive : undefined;
|
|
83
93
|
resourceInputs["targets"] = state ? state.targets : undefined;
|
|
84
94
|
resourceInputs["teamId"] = state ? state.teamId : undefined;
|
|
85
95
|
resourceInputs["value"] = state ? state.value : undefined;
|
|
@@ -101,6 +111,7 @@ class ProjectEnvironmentVariable extends pulumi.CustomResource {
|
|
|
101
111
|
resourceInputs["gitBranch"] = args ? args.gitBranch : undefined;
|
|
102
112
|
resourceInputs["key"] = args ? args.key : undefined;
|
|
103
113
|
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
114
|
+
resourceInputs["sensitive"] = args ? args.sensitive : undefined;
|
|
104
115
|
resourceInputs["targets"] = args ? args.targets : undefined;
|
|
105
116
|
resourceInputs["teamId"] = args ? args.teamId : undefined;
|
|
106
117
|
resourceInputs["value"] = (args === null || args === void 0 ? void 0 : args.value) ? pulumi.secret(args.value) : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectEnvironmentVariable.js","sourceRoot":"","sources":["../projectEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"projectEnvironmentVariable.js","sourceRoot":"","sources":["../projectEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuC,EAAE,IAAmC;QACrI,OAAO,IAAI,0BAA0B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjF,CAAC;IAKD;;;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,0BAA0B,CAAC,YAAY,CAAC;IAC3E,CAAC;IAu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AK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SACjF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,0BAA0B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;;AAvGL,gEAwGC;AA1FG,gBAAgB;AACO,uCAAY,GAAG,oEAAoE,CAAC"}
|
|
@@ -28,7 +28,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
28
28
|
*
|
|
29
29
|
* ## Import
|
|
30
30
|
*
|
|
31
|
-
* You can import via the team_id and environment variable id. - team_id can be found in the team `settings` tab in the Vercel UI. - environment variable id can be taken from the network tab on the shared environment variable page.
|
|
31
|
+
* You can import via the team_id and environment variable id. - team_id can be found in the team `settings` tab in the Vercel UI. - environment variable id is hard to find, but can be taken from the network tab, inside developer tools, on the shared environment variable page. # Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
32
32
|
*
|
|
33
33
|
* ```sh
|
|
34
34
|
* $ pulumi import vercel:index/sharedEnvironmentVariable:SharedEnvironmentVariable example team_xxxxxxxxxxxxxxxxxxxxxxxx/env_yyyyyyyyyyyyy
|
|
@@ -58,6 +58,10 @@ export declare class SharedEnvironmentVariable extends pulumi.CustomResource {
|
|
|
58
58
|
* The ID of the Vercel project.
|
|
59
59
|
*/
|
|
60
60
|
readonly projectIds: pulumi.Output<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Whether the Environment Variable is sensitive or not.
|
|
63
|
+
*/
|
|
64
|
+
readonly sensitive: pulumi.Output<boolean>;
|
|
61
65
|
/**
|
|
62
66
|
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
|
|
63
67
|
*/
|
|
@@ -91,6 +95,10 @@ export interface SharedEnvironmentVariableState {
|
|
|
91
95
|
* The ID of the Vercel project.
|
|
92
96
|
*/
|
|
93
97
|
projectIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
98
|
+
/**
|
|
99
|
+
* Whether the Environment Variable is sensitive or not.
|
|
100
|
+
*/
|
|
101
|
+
sensitive?: pulumi.Input<boolean>;
|
|
94
102
|
/**
|
|
95
103
|
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
|
|
96
104
|
*/
|
|
@@ -116,6 +124,10 @@ export interface SharedEnvironmentVariableArgs {
|
|
|
116
124
|
* The ID of the Vercel project.
|
|
117
125
|
*/
|
|
118
126
|
projectIds: pulumi.Input<pulumi.Input<string>[]>;
|
|
127
|
+
/**
|
|
128
|
+
* Whether the Environment Variable is sensitive or not.
|
|
129
|
+
*/
|
|
130
|
+
sensitive?: pulumi.Input<boolean>;
|
|
119
131
|
/**
|
|
120
132
|
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
|
|
121
133
|
*/
|
|
@@ -34,7 +34,7 @@ const utilities = require("./utilities");
|
|
|
34
34
|
*
|
|
35
35
|
* ## Import
|
|
36
36
|
*
|
|
37
|
-
* You can import via the team_id and environment variable id. - team_id can be found in the team `settings` tab in the Vercel UI. - environment variable id can be taken from the network tab on the shared environment variable page.
|
|
37
|
+
* You can import via the team_id and environment variable id. - team_id can be found in the team `settings` tab in the Vercel UI. - environment variable id is hard to find, but can be taken from the network tab, inside developer tools, on the shared environment variable page. # Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
38
38
|
*
|
|
39
39
|
* ```sh
|
|
40
40
|
* $ pulumi import vercel:index/sharedEnvironmentVariable:SharedEnvironmentVariable example team_xxxxxxxxxxxxxxxxxxxxxxxx/env_yyyyyyyyyyyyy
|
|
@@ -70,6 +70,7 @@ class SharedEnvironmentVariable extends pulumi.CustomResource {
|
|
|
70
70
|
const state = argsOrState;
|
|
71
71
|
resourceInputs["key"] = state ? state.key : undefined;
|
|
72
72
|
resourceInputs["projectIds"] = state ? state.projectIds : undefined;
|
|
73
|
+
resourceInputs["sensitive"] = state ? state.sensitive : undefined;
|
|
73
74
|
resourceInputs["targets"] = state ? state.targets : undefined;
|
|
74
75
|
resourceInputs["teamId"] = state ? state.teamId : undefined;
|
|
75
76
|
resourceInputs["value"] = state ? state.value : undefined;
|
|
@@ -90,6 +91,7 @@ class SharedEnvironmentVariable extends pulumi.CustomResource {
|
|
|
90
91
|
}
|
|
91
92
|
resourceInputs["key"] = args ? args.key : undefined;
|
|
92
93
|
resourceInputs["projectIds"] = args ? args.projectIds : undefined;
|
|
94
|
+
resourceInputs["sensitive"] = args ? args.sensitive : undefined;
|
|
93
95
|
resourceInputs["targets"] = args ? args.targets : undefined;
|
|
94
96
|
resourceInputs["teamId"] = args ? args.teamId : undefined;
|
|
95
97
|
resourceInputs["value"] = (args === null || args === void 0 ? void 0 : args.value) ? pulumi.secret(args.value) : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedEnvironmentVariable.js","sourceRoot":"","sources":["../sharedEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsC,EAAE,IAAmC;QACpI,OAAO,IAAI,yBAAyB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GA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AC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,OAAO,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SACjF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AAjGL,8DAkGC;AApFG,gBAAgB;AACO,sCAAY,GAAG,kEAAkE,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -53,6 +53,10 @@ export interface ProjectEnvironment {
|
|
|
53
53
|
* The name of the Environment Variable.
|
|
54
54
|
*/
|
|
55
55
|
key: pulumi.Input<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the Environment Variable is sensitive or not.
|
|
58
|
+
*/
|
|
59
|
+
sensitive?: pulumi.Input<boolean>;
|
|
56
60
|
/**
|
|
57
61
|
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
|
|
58
62
|
*/
|
package/types/output.d.ts
CHANGED
|
@@ -52,6 +52,10 @@ export interface GetProjectEnvironment {
|
|
|
52
52
|
* The name of the environment variable.
|
|
53
53
|
*/
|
|
54
54
|
key: string;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the Environment Variable is sensitive or not. Note that the value will be `null` for sensitive environment variables.
|
|
57
|
+
*/
|
|
58
|
+
sensitive: boolean;
|
|
55
59
|
/**
|
|
56
60
|
* The environments that the environment variable should be present on. Valid targets are either `production`, `preview`, or `development`.
|
|
57
61
|
*/
|
|
@@ -121,6 +125,10 @@ export interface ProjectEnvironment {
|
|
|
121
125
|
* The name of the Environment Variable.
|
|
122
126
|
*/
|
|
123
127
|
key: string;
|
|
128
|
+
/**
|
|
129
|
+
* Whether the Environment Variable is sensitive or not.
|
|
130
|
+
*/
|
|
131
|
+
sensitive: boolean;
|
|
124
132
|
/**
|
|
125
133
|
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
|
|
126
134
|
*/
|
package/utilities.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
1
2
|
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
3
|
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
4
|
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
5
|
export declare function getVersion(): string;
|
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
|
7
|
+
property?: string;
|
|
8
|
+
}): Promise<T>;
|
package/utilities.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
4
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
14
|
+
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
|
6
16
|
function getEnv(...vars) {
|
|
7
17
|
for (const v of vars) {
|
|
8
18
|
const value = process.env[v];
|
|
@@ -66,4 +76,26 @@ function lazyLoad(exports, props, loadModule) {
|
|
|
66
76
|
}
|
|
67
77
|
}
|
|
68
78
|
exports.lazyLoad = lazyLoad;
|
|
79
|
+
function callAsync(tok, props, res, opts) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const o = runtime.call(tok, props, res);
|
|
82
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
|
83
|
+
const isKnown = yield o.isKnown;
|
|
84
|
+
const isSecret = yield o.isSecret;
|
|
85
|
+
const problem = !isKnown ? "an unknown value"
|
|
86
|
+
: isSecret ? "a secret value"
|
|
87
|
+
: undefined;
|
|
88
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
89
|
+
if (problem) {
|
|
90
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
91
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
92
|
+
}
|
|
93
|
+
// Extract a single property if requested.
|
|
94
|
+
if (opts && opts.property) {
|
|
95
|
+
return value[opts.property];
|
|
96
|
+
}
|
|
97
|
+
return value;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.callAsync = callAsync;
|
|
69
101
|
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,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