@pulumiverse/vercel 3.0.0-alpha.1747140361 → 3.0.0-alpha.1770817564
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/accessGroup.js +6 -6
- package/accessGroup.js.map +1 -1
- package/accessGroupProject.js +13 -13
- package/accessGroupProject.js.map +1 -1
- package/alias.js +10 -10
- package/alias.js.map +1 -1
- package/attackChallengeMode.d.ts +15 -0
- package/attackChallengeMode.js +18 -10
- package/attackChallengeMode.js.map +1 -1
- package/config/index.js +1 -1
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +2 -4
- package/config/vars.js +1 -1
- package/config/vars.js.map +1 -1
- package/customCertificate.d.ts +111 -0
- package/customCertificate.js +93 -0
- package/customCertificate.js.map +1 -0
- package/customEnvironment.d.ts +0 -2
- package/customEnvironment.js +13 -15
- package/customEnvironment.js.map +1 -1
- package/deployment.d.ts +30 -0
- package/deployment.js +29 -23
- package/deployment.js.map +1 -1
- package/dnsRecord.js +22 -22
- package/dnsRecord.js.map +1 -1
- package/edgeConfig.js +6 -6
- package/edgeConfig.js.map +1 -1
- package/edgeConfigItem.d.ts +28 -6
- package/edgeConfigItem.js +26 -17
- package/edgeConfigItem.js.map +1 -1
- package/edgeConfigSchema.d.ts +23 -0
- package/edgeConfigSchema.js +30 -7
- package/edgeConfigSchema.js.map +1 -1
- package/edgeConfigToken.js +14 -12
- package/edgeConfigToken.js.map +1 -1
- package/firewallBypass.d.ts +14 -0
- package/firewallBypass.js +17 -13
- package/firewallBypass.js.map +1 -1
- package/firewallConfig.d.ts +217 -0
- package/firewallConfig.js +232 -15
- package/firewallConfig.js.map +1 -1
- package/getAccessGroup.d.ts +3 -3
- package/getAccessGroup.js +3 -3
- package/getAccessGroup.js.map +1 -1
- package/getAccessGroupProject.d.ts +4 -4
- package/getAccessGroupProject.js +3 -3
- package/getAccessGroupProject.js.map +1 -1
- package/getAlias.d.ts +1 -1
- package/getAlias.js +1 -1
- package/getAlias.js.map +1 -1
- package/getAttackChallengeMode.d.ts +7 -3
- package/getAttackChallengeMode.js +3 -3
- package/getAttackChallengeMode.js.map +1 -1
- package/getCustomEnvironment.d.ts +3 -3
- package/getCustomEnvironment.js +3 -3
- package/getCustomEnvironment.js.map +1 -1
- package/getDeployment.d.ts +13 -3
- package/getDeployment.js +3 -3
- package/getDeployment.js.map +1 -1
- package/getDomainConfig.d.ts +154 -0
- package/getDomainConfig.js +114 -0
- package/getDomainConfig.js.map +1 -0
- package/getDsyncGroups.d.ts +139 -0
- package/getDsyncGroups.js +118 -0
- package/getDsyncGroups.js.map +1 -0
- package/getEdgeConfig.d.ts +3 -3
- package/getEdgeConfig.js +3 -3
- package/getEdgeConfig.js.map +1 -1
- package/getEdgeConfigItem.d.ts +22 -6
- package/getEdgeConfigItem.js +17 -5
- package/getEdgeConfigItem.js.map +1 -1
- package/getEdgeConfigSchema.d.ts +3 -3
- package/getEdgeConfigSchema.js +3 -3
- package/getEdgeConfigSchema.js.map +1 -1
- package/getEdgeConfigToken.d.ts +3 -3
- package/getEdgeConfigToken.js +3 -3
- package/getEdgeConfigToken.js.map +1 -1
- package/getEndpointVerification.d.ts +3 -3
- package/getEndpointVerification.js +3 -3
- package/getEndpointVerification.js.map +1 -1
- package/getFile.d.ts +1 -3
- package/getFile.js +1 -3
- package/getFile.js.map +1 -1
- package/getLogDrain.d.ts +8 -4
- package/getLogDrain.js +3 -3
- package/getLogDrain.js.map +1 -1
- package/getMicrofrontendGroup.d.ts +3 -3
- package/getMicrofrontendGroup.js +3 -3
- package/getMicrofrontendGroup.js.map +1 -1
- package/getMicrofrontendGroupMembership.d.ts +4 -4
- package/getMicrofrontendGroupMembership.js +3 -3
- package/getMicrofrontendGroupMembership.js.map +1 -1
- package/getNetwork.d.ts +84 -0
- package/getNetwork.js +30 -0
- package/getNetwork.js.map +1 -0
- package/getPrebuiltProject.d.ts +1 -1
- package/getPrebuiltProject.js +1 -1
- package/getPrebuiltProject.js.map +1 -1
- package/getProject.d.ts +27 -3
- package/getProject.js +5 -3
- package/getProject.js.map +1 -1
- package/getProjectDeploymentRetention.d.ts +1 -1
- package/getProjectDeploymentRetention.js +1 -1
- package/getProjectDeploymentRetention.js.map +1 -1
- package/getProjectDirectory.d.ts +1 -1
- package/getProjectDirectory.js +1 -1
- package/getProjectDirectory.js.map +1 -1
- package/getProjectMembers.d.ts +4 -4
- package/getProjectMembers.js +3 -3
- package/getProjectMembers.js.map +1 -1
- package/getProjectRollingRelease.d.ts +89 -0
- package/getProjectRollingRelease.js +58 -0
- package/getProjectRollingRelease.js.map +1 -0
- package/getSharedEnvironmentVariable.d.ts +7 -3
- package/getSharedEnvironmentVariable.js +3 -3
- package/getSharedEnvironmentVariable.js.map +1 -1
- package/getTeamConfig.d.ts +3 -3
- package/getTeamConfig.js +3 -3
- package/getTeamConfig.js.map +1 -1
- package/getTeamMember.d.ts +3 -3
- package/getTeamMember.js +3 -3
- package/getTeamMember.js.map +1 -1
- package/index.d.ts +25 -3
- package/index.js +52 -6
- package/index.js.map +1 -1
- package/integrationProjectAccess.js +10 -10
- package/integrationProjectAccess.js.map +1 -1
- package/logDrain.d.ts +15 -4
- package/logDrain.js +27 -26
- package/logDrain.js.map +1 -1
- package/microfrontendGroup.d.ts +24 -0
- package/microfrontendGroup.js +34 -10
- package/microfrontendGroup.js.map +1 -1
- package/microfrontendGroupMembership.d.ts +24 -0
- package/microfrontendGroupMembership.js +38 -14
- package/microfrontendGroupMembership.js.map +1 -1
- package/network.d.ts +144 -0
- package/network.js +78 -0
- package/network.js.map +1 -0
- package/package.json +3 -3
- package/project.d.ts +55 -1
- package/project.js +84 -76
- package/project.js.map +1 -1
- package/projectCrons.d.ts +117 -0
- package/projectCrons.js +104 -0
- package/projectCrons.js.map +1 -0
- package/projectDeploymentRetention.d.ts +12 -28
- package/projectDeploymentRetention.js +15 -31
- package/projectDeploymentRetention.js.map +1 -1
- package/projectDomain.js +18 -18
- package/projectDomain.js.map +1 -1
- package/projectEnvironmentVariable.d.ts +0 -4
- package/projectEnvironmentVariable.js +23 -27
- package/projectEnvironmentVariable.js.map +1 -1
- package/projectEnvironmentVariables.d.ts +38 -0
- package/projectEnvironmentVariables.js +48 -10
- package/projectEnvironmentVariables.js.map +1 -1
- package/projectMembers.js +10 -10
- package/projectMembers.js.map +1 -1
- package/projectRollingRelease.d.ts +113 -0
- package/projectRollingRelease.js +91 -0
- package/projectRollingRelease.js.map +1 -0
- package/provider.d.ts +18 -8
- package/provider.js +11 -3
- package/provider.js.map +1 -1
- package/sharedEnvironmentVariable.d.ts +13 -3
- package/sharedEnvironmentVariable.js +21 -24
- package/sharedEnvironmentVariable.js.map +1 -1
- package/sharedEnvironmentVariableProjectLink.d.ts +0 -1
- package/sharedEnvironmentVariableProjectLink.js +10 -11
- package/sharedEnvironmentVariableProjectLink.js.map +1 -1
- package/teamConfig.d.ts +36 -0
- package/teamConfig.js +65 -29
- package/teamConfig.js.map +1 -1
- package/teamMember.d.ts +13 -9
- package/teamMember.js +21 -23
- package/teamMember.js.map +1 -1
- package/types/index.js +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +73 -13
- package/types/input.js +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +116 -18
- package/types/output.js +1 -1
- package/types/output.js.map +1 -1
- package/utilities.d.ts +0 -4
- package/utilities.js +20 -30
- package/utilities.js.map +1 -1
- package/webhook.js +13 -13
- package/webhook.js.map +1 -1
package/accessGroup.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
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
5
|
exports.AccessGroup = void 0;
|
|
@@ -48,7 +48,7 @@ class AccessGroup extends pulumi.CustomResource {
|
|
|
48
48
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
49
49
|
*/
|
|
50
50
|
static get(name, id, state, opts) {
|
|
51
|
-
return new AccessGroup(name, state,
|
|
51
|
+
return new AccessGroup(name, state, { ...opts, id: id });
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* Returns true if the given object is an instance of AccessGroup. This is designed to work even
|
|
@@ -65,13 +65,13 @@ class AccessGroup extends pulumi.CustomResource {
|
|
|
65
65
|
opts = opts || {};
|
|
66
66
|
if (opts.id) {
|
|
67
67
|
const state = argsOrState;
|
|
68
|
-
resourceInputs["name"] = state
|
|
69
|
-
resourceInputs["teamId"] = state
|
|
68
|
+
resourceInputs["name"] = state?.name;
|
|
69
|
+
resourceInputs["teamId"] = state?.teamId;
|
|
70
70
|
}
|
|
71
71
|
else {
|
|
72
72
|
const args = argsOrState;
|
|
73
|
-
resourceInputs["name"] = args
|
|
74
|
-
resourceInputs["teamId"] = args
|
|
73
|
+
resourceInputs["name"] = args?.name;
|
|
74
|
+
resourceInputs["teamId"] = args?.teamId;
|
|
75
75
|
}
|
|
76
76
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
77
77
|
super(AccessGroup.__pulumiType, name, resourceInputs, opts);
|
package/accessGroup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessGroup.js","sourceRoot":"","sources":["../accessGroup.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"accessGroup.js","sourceRoot":"","sources":["../accessGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;SAC3C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA3DL,kCA4DC;AA9CG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/accessGroupProject.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
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
5
|
exports.AccessGroupProject = void 0;
|
|
@@ -54,7 +54,7 @@ class AccessGroupProject extends pulumi.CustomResource {
|
|
|
54
54
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
55
55
|
*/
|
|
56
56
|
static get(name, id, state, opts) {
|
|
57
|
-
return new AccessGroupProject(name, state,
|
|
57
|
+
return new AccessGroupProject(name, state, { ...opts, id: id });
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* Returns true if the given object is an instance of AccessGroupProject. This is designed to work even
|
|
@@ -71,26 +71,26 @@ class AccessGroupProject extends pulumi.CustomResource {
|
|
|
71
71
|
opts = opts || {};
|
|
72
72
|
if (opts.id) {
|
|
73
73
|
const state = argsOrState;
|
|
74
|
-
resourceInputs["accessGroupId"] = state
|
|
75
|
-
resourceInputs["projectId"] = state
|
|
76
|
-
resourceInputs["role"] = state
|
|
77
|
-
resourceInputs["teamId"] = state
|
|
74
|
+
resourceInputs["accessGroupId"] = state?.accessGroupId;
|
|
75
|
+
resourceInputs["projectId"] = state?.projectId;
|
|
76
|
+
resourceInputs["role"] = state?.role;
|
|
77
|
+
resourceInputs["teamId"] = state?.teamId;
|
|
78
78
|
}
|
|
79
79
|
else {
|
|
80
80
|
const args = argsOrState;
|
|
81
|
-
if (
|
|
81
|
+
if (args?.accessGroupId === undefined && !opts.urn) {
|
|
82
82
|
throw new Error("Missing required property 'accessGroupId'");
|
|
83
83
|
}
|
|
84
|
-
if (
|
|
84
|
+
if (args?.projectId === undefined && !opts.urn) {
|
|
85
85
|
throw new Error("Missing required property 'projectId'");
|
|
86
86
|
}
|
|
87
|
-
if (
|
|
87
|
+
if (args?.role === undefined && !opts.urn) {
|
|
88
88
|
throw new Error("Missing required property 'role'");
|
|
89
89
|
}
|
|
90
|
-
resourceInputs["accessGroupId"] = args
|
|
91
|
-
resourceInputs["projectId"] = args
|
|
92
|
-
resourceInputs["role"] = args
|
|
93
|
-
resourceInputs["teamId"] = args
|
|
90
|
+
resourceInputs["accessGroupId"] = args?.accessGroupId;
|
|
91
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
92
|
+
resourceInputs["role"] = args?.role;
|
|
93
|
+
resourceInputs["teamId"] = args?.teamId;
|
|
94
94
|
}
|
|
95
95
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
96
96
|
super(AccessGroupProject.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessGroupProject.js","sourceRoot":"","sources":["../accessGroupProject.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"accessGroupProject.js","sourceRoot":"","sources":["../accessGroupProject.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IA2BD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAA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AiFC;AAnEG,gBAAgB;AACO,+BAAY,GAAG,oDAAoD,CAAC"}
|
package/alias.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
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
5
|
exports.Alias = void 0;
|
|
@@ -21,7 +21,7 @@ class Alias extends pulumi.CustomResource {
|
|
|
21
21
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
22
22
|
*/
|
|
23
23
|
static get(name, id, state, opts) {
|
|
24
|
-
return new Alias(name, state,
|
|
24
|
+
return new Alias(name, state, { ...opts, id: id });
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Returns true if the given object is an instance of Alias. This is designed to work even
|
|
@@ -38,21 +38,21 @@ class Alias extends pulumi.CustomResource {
|
|
|
38
38
|
opts = opts || {};
|
|
39
39
|
if (opts.id) {
|
|
40
40
|
const state = argsOrState;
|
|
41
|
-
resourceInputs["alias"] = state
|
|
42
|
-
resourceInputs["deploymentId"] = state
|
|
43
|
-
resourceInputs["teamId"] = state
|
|
41
|
+
resourceInputs["alias"] = state?.alias;
|
|
42
|
+
resourceInputs["deploymentId"] = state?.deploymentId;
|
|
43
|
+
resourceInputs["teamId"] = state?.teamId;
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
const args = argsOrState;
|
|
47
|
-
if (
|
|
47
|
+
if (args?.alias === undefined && !opts.urn) {
|
|
48
48
|
throw new Error("Missing required property 'alias'");
|
|
49
49
|
}
|
|
50
|
-
if (
|
|
50
|
+
if (args?.deploymentId === undefined && !opts.urn) {
|
|
51
51
|
throw new Error("Missing required property 'deploymentId'");
|
|
52
52
|
}
|
|
53
|
-
resourceInputs["alias"] = args
|
|
54
|
-
resourceInputs["deploymentId"] = args
|
|
55
|
-
resourceInputs["teamId"] = args
|
|
53
|
+
resourceInputs["alias"] = args?.alias;
|
|
54
|
+
resourceInputs["deploymentId"] = args?.deploymentId;
|
|
55
|
+
resourceInputs["teamId"] = args?.teamId;
|
|
56
56
|
}
|
|
57
57
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
58
58
|
super(Alias.__pulumiType, name, resourceInputs, opts);
|
package/alias.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.js","sourceRoot":"","sources":["../alias.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"alias.js","sourceRoot":"","sources":["../alias.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;GAIG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqC,CAAC;YACpD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAAoC,CAAC;YAClD,IAAI,IAAI,EAAE,KAAK,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,IAAI,IAAI,EAAE,YAAY,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC/C,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;SAC3C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AAvEL,sBAwEC;AA1DG,gBAAgB;AACO,kBAAY,GAAG,0BAA0B,CAAC"}
|
package/attackChallengeMode.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* Attack Challenge Mode prevent malicious traffic by showing a verification challenge for every visitor.
|
|
6
6
|
*
|
|
7
|
+
* Note: When attackModeActiveUntil is reached, Vercel automatically disables Attack Challenge Mode. This will cause enabled to drift to false.
|
|
8
|
+
*
|
|
7
9
|
* ## Example Usage
|
|
8
10
|
*
|
|
9
11
|
* ```typescript
|
|
@@ -14,6 +16,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
16
|
* const exampleAttackChallengeMode = new vercel.AttackChallengeMode("example", {
|
|
15
17
|
* projectId: example.id,
|
|
16
18
|
* enabled: true,
|
|
19
|
+
* attackModeActiveUntil: attackModeActiveUntil,
|
|
17
20
|
* });
|
|
18
21
|
* ```
|
|
19
22
|
*
|
|
@@ -45,6 +48,10 @@ export declare class AttackChallengeMode extends pulumi.CustomResource {
|
|
|
45
48
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
49
|
*/
|
|
47
50
|
static isInstance(obj: any): obj is AttackChallengeMode;
|
|
51
|
+
/**
|
|
52
|
+
* Unix timestamp in milliseconds (like Date.now()) until which Attack Challenge Mode stays active.
|
|
53
|
+
*/
|
|
54
|
+
readonly attackModeActiveUntil: pulumi.Output<number>;
|
|
48
55
|
/**
|
|
49
56
|
* Whether Attack Challenge Mode is enabled or not.
|
|
50
57
|
*/
|
|
@@ -70,6 +77,10 @@ export declare class AttackChallengeMode extends pulumi.CustomResource {
|
|
|
70
77
|
* Input properties used for looking up and filtering AttackChallengeMode resources.
|
|
71
78
|
*/
|
|
72
79
|
export interface AttackChallengeModeState {
|
|
80
|
+
/**
|
|
81
|
+
* Unix timestamp in milliseconds (like Date.now()) until which Attack Challenge Mode stays active.
|
|
82
|
+
*/
|
|
83
|
+
attackModeActiveUntil?: pulumi.Input<number>;
|
|
73
84
|
/**
|
|
74
85
|
* Whether Attack Challenge Mode is enabled or not.
|
|
75
86
|
*/
|
|
@@ -87,6 +98,10 @@ export interface AttackChallengeModeState {
|
|
|
87
98
|
* The set of arguments for constructing a AttackChallengeMode resource.
|
|
88
99
|
*/
|
|
89
100
|
export interface AttackChallengeModeArgs {
|
|
101
|
+
/**
|
|
102
|
+
* Unix timestamp in milliseconds (like Date.now()) until which Attack Challenge Mode stays active.
|
|
103
|
+
*/
|
|
104
|
+
attackModeActiveUntil: pulumi.Input<number>;
|
|
90
105
|
/**
|
|
91
106
|
* Whether Attack Challenge Mode is enabled or not.
|
|
92
107
|
*/
|
package/attackChallengeMode.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
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
5
|
exports.AttackChallengeMode = void 0;
|
|
@@ -10,6 +10,8 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* Attack Challenge Mode prevent malicious traffic by showing a verification challenge for every visitor.
|
|
12
12
|
*
|
|
13
|
+
* Note: When attackModeActiveUntil is reached, Vercel automatically disables Attack Challenge Mode. This will cause enabled to drift to false.
|
|
14
|
+
*
|
|
13
15
|
* ## Example Usage
|
|
14
16
|
*
|
|
15
17
|
* ```typescript
|
|
@@ -20,6 +22,7 @@ const utilities = require("./utilities");
|
|
|
20
22
|
* const exampleAttackChallengeMode = new vercel.AttackChallengeMode("example", {
|
|
21
23
|
* projectId: example.id,
|
|
22
24
|
* enabled: true,
|
|
25
|
+
* attackModeActiveUntil: attackModeActiveUntil,
|
|
23
26
|
* });
|
|
24
27
|
* ```
|
|
25
28
|
*
|
|
@@ -46,7 +49,7 @@ class AttackChallengeMode extends pulumi.CustomResource {
|
|
|
46
49
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
50
|
*/
|
|
48
51
|
static get(name, id, state, opts) {
|
|
49
|
-
return new AttackChallengeMode(name, state,
|
|
52
|
+
return new AttackChallengeMode(name, state, { ...opts, id: id });
|
|
50
53
|
}
|
|
51
54
|
/**
|
|
52
55
|
* Returns true if the given object is an instance of AttackChallengeMode. This is designed to work even
|
|
@@ -63,21 +66,26 @@ class AttackChallengeMode extends pulumi.CustomResource {
|
|
|
63
66
|
opts = opts || {};
|
|
64
67
|
if (opts.id) {
|
|
65
68
|
const state = argsOrState;
|
|
66
|
-
resourceInputs["
|
|
67
|
-
resourceInputs["
|
|
68
|
-
resourceInputs["
|
|
69
|
+
resourceInputs["attackModeActiveUntil"] = state?.attackModeActiveUntil;
|
|
70
|
+
resourceInputs["enabled"] = state?.enabled;
|
|
71
|
+
resourceInputs["projectId"] = state?.projectId;
|
|
72
|
+
resourceInputs["teamId"] = state?.teamId;
|
|
69
73
|
}
|
|
70
74
|
else {
|
|
71
75
|
const args = argsOrState;
|
|
72
|
-
if (
|
|
76
|
+
if (args?.attackModeActiveUntil === undefined && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'attackModeActiveUntil'");
|
|
78
|
+
}
|
|
79
|
+
if (args?.enabled === undefined && !opts.urn) {
|
|
73
80
|
throw new Error("Missing required property 'enabled'");
|
|
74
81
|
}
|
|
75
|
-
if (
|
|
82
|
+
if (args?.projectId === undefined && !opts.urn) {
|
|
76
83
|
throw new Error("Missing required property 'projectId'");
|
|
77
84
|
}
|
|
78
|
-
resourceInputs["
|
|
79
|
-
resourceInputs["
|
|
80
|
-
resourceInputs["
|
|
85
|
+
resourceInputs["attackModeActiveUntil"] = args?.attackModeActiveUntil;
|
|
86
|
+
resourceInputs["enabled"] = args?.enabled;
|
|
87
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
88
|
+
resourceInputs["teamId"] = args?.teamId;
|
|
81
89
|
}
|
|
82
90
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
83
91
|
super(AttackChallengeMode.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attackChallengeMode.js","sourceRoot":"","sources":["../attackChallengeMode.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"attackChallengeMode.js","sourceRoot":"","sources":["../attackChallengeMode.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;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EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,IAAI,EAAE,SAAS,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC5C,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;YACtE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;SAC3C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAhFL,kDAiFC;AAnEG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
|
package/config/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
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
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
5
|
if (k2 === undefined) k2 = k;
|
package/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
|
package/config/vars.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The Vercel API Token to use. This can also be specified with the `VERCEL_API_TOKEN` shell environment variable. Tokens
|
|
3
|
-
* can be created from your [Vercel settings](https://vercel.com/account/tokens).
|
|
2
|
+
* The Vercel API Token to use. This can also be specified with the `VERCEL_API_TOKEN` shell environment variable. Tokens can be created from your [Vercel settings](https://vercel.com/account/tokens).
|
|
4
3
|
*/
|
|
5
4
|
export declare const apiToken: string | undefined;
|
|
6
5
|
/**
|
|
7
|
-
* The default Vercel Team to use when creating resources or reading data sources. This can be provided as either a team
|
|
8
|
-
* slug, or team ID. The slug and ID are both available from the Team Settings page in the Vercel dashboard.
|
|
6
|
+
* The default Vercel Team to use when creating resources or reading data sources. This can be provided as either a team slug, or team ID. The slug and ID are both available from the Team Settings page in the Vercel dashboard.
|
|
9
7
|
*/
|
|
10
8
|
export declare const team: string | undefined;
|
package/config/vars.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
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
5
|
const pulumi = require("@pulumi/pulumi");
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAM7C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE;IACnC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Custom Certificate Resource, allowing Custom Certificates to be uploaded to Vercel.
|
|
4
|
+
*
|
|
5
|
+
* By default, Vercel provides all domains with a custom SSL certificates. However, Enterprise teams can upload their own custom SSL certificate.
|
|
6
|
+
*
|
|
7
|
+
* For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/domains/custom-SSL-certificate).
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as std from "@pulumi/std";
|
|
14
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
15
|
+
*
|
|
16
|
+
* const example = new vercel.CustomCertificate("example", {
|
|
17
|
+
* privateKey: std.index.file({
|
|
18
|
+
* input: "private.key",
|
|
19
|
+
* }).result,
|
|
20
|
+
* certificate: std.index.file({
|
|
21
|
+
* input: "certificate.crt",
|
|
22
|
+
* }).result,
|
|
23
|
+
* certificateAuthorityCertificate: std.index.file({
|
|
24
|
+
* input: "ca.crt",
|
|
25
|
+
* }).result,
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class CustomCertificate extends pulumi.CustomResource {
|
|
30
|
+
/**
|
|
31
|
+
* Get an existing CustomCertificate resource's state with the given name, ID, and optional extra
|
|
32
|
+
* properties used to qualify the lookup.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resulting resource.
|
|
35
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
36
|
+
* @param state Any extra arguments used during the lookup.
|
|
37
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
38
|
+
*/
|
|
39
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CustomCertificateState, opts?: pulumi.CustomResourceOptions): CustomCertificate;
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if the given object is an instance of CustomCertificate. This is designed to work even
|
|
42
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
43
|
+
*/
|
|
44
|
+
static isInstance(obj: any): obj is CustomCertificate;
|
|
45
|
+
/**
|
|
46
|
+
* The certificate itself. Should be in PEM format.
|
|
47
|
+
*/
|
|
48
|
+
readonly certificate: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* The Certificate Authority root certificate such as one of Let's Encrypt's ISRG root certificates. This will be provided by your certificate issuer and is different to the core certificate. This may be included in their download process or available for download on their website. Should be in PEM format.
|
|
51
|
+
*/
|
|
52
|
+
readonly certificateAuthorityCertificate: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The private key of the Certificate. Should be in PEM format.
|
|
55
|
+
*/
|
|
56
|
+
readonly privateKey: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* The ID of the team the Custom Certificate should exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
59
|
+
*/
|
|
60
|
+
readonly teamId: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Create a CustomCertificate resource with the given unique name, arguments, and options.
|
|
63
|
+
*
|
|
64
|
+
* @param name The _unique_ name of the resource.
|
|
65
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
66
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
67
|
+
*/
|
|
68
|
+
constructor(name: string, args: CustomCertificateArgs, opts?: pulumi.CustomResourceOptions);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Input properties used for looking up and filtering CustomCertificate resources.
|
|
72
|
+
*/
|
|
73
|
+
export interface CustomCertificateState {
|
|
74
|
+
/**
|
|
75
|
+
* The certificate itself. Should be in PEM format.
|
|
76
|
+
*/
|
|
77
|
+
certificate?: pulumi.Input<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The Certificate Authority root certificate such as one of Let's Encrypt's ISRG root certificates. This will be provided by your certificate issuer and is different to the core certificate. This may be included in their download process or available for download on their website. Should be in PEM format.
|
|
80
|
+
*/
|
|
81
|
+
certificateAuthorityCertificate?: pulumi.Input<string>;
|
|
82
|
+
/**
|
|
83
|
+
* The private key of the Certificate. Should be in PEM format.
|
|
84
|
+
*/
|
|
85
|
+
privateKey?: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The ID of the team the Custom Certificate should exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
88
|
+
*/
|
|
89
|
+
teamId?: pulumi.Input<string>;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The set of arguments for constructing a CustomCertificate resource.
|
|
93
|
+
*/
|
|
94
|
+
export interface CustomCertificateArgs {
|
|
95
|
+
/**
|
|
96
|
+
* The certificate itself. Should be in PEM format.
|
|
97
|
+
*/
|
|
98
|
+
certificate: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* The Certificate Authority root certificate such as one of Let's Encrypt's ISRG root certificates. This will be provided by your certificate issuer and is different to the core certificate. This may be included in their download process or available for download on their website. Should be in PEM format.
|
|
101
|
+
*/
|
|
102
|
+
certificateAuthorityCertificate: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* The private key of the Certificate. Should be in PEM format.
|
|
105
|
+
*/
|
|
106
|
+
privateKey: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* The ID of the team the Custom Certificate should exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
109
|
+
*/
|
|
110
|
+
teamId?: pulumi.Input<string>;
|
|
111
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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.CustomCertificate = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Custom Certificate Resource, allowing Custom Certificates to be uploaded to Vercel.
|
|
10
|
+
*
|
|
11
|
+
* By default, Vercel provides all domains with a custom SSL certificates. However, Enterprise teams can upload their own custom SSL certificate.
|
|
12
|
+
*
|
|
13
|
+
* For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/domains/custom-SSL-certificate).
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as std from "@pulumi/std";
|
|
20
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
21
|
+
*
|
|
22
|
+
* const example = new vercel.CustomCertificate("example", {
|
|
23
|
+
* privateKey: std.index.file({
|
|
24
|
+
* input: "private.key",
|
|
25
|
+
* }).result,
|
|
26
|
+
* certificate: std.index.file({
|
|
27
|
+
* input: "certificate.crt",
|
|
28
|
+
* }).result,
|
|
29
|
+
* certificateAuthorityCertificate: std.index.file({
|
|
30
|
+
* input: "ca.crt",
|
|
31
|
+
* }).result,
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
class CustomCertificate extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing CustomCertificate resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name, id, state, opts) {
|
|
46
|
+
return new CustomCertificate(name, state, { ...opts, id: id });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of CustomCertificate. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === CustomCertificate.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
constructor(name, argsOrState, opts) {
|
|
59
|
+
let resourceInputs = {};
|
|
60
|
+
opts = opts || {};
|
|
61
|
+
if (opts.id) {
|
|
62
|
+
const state = argsOrState;
|
|
63
|
+
resourceInputs["certificate"] = state?.certificate;
|
|
64
|
+
resourceInputs["certificateAuthorityCertificate"] = state?.certificateAuthorityCertificate;
|
|
65
|
+
resourceInputs["privateKey"] = state?.privateKey;
|
|
66
|
+
resourceInputs["teamId"] = state?.teamId;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const args = argsOrState;
|
|
70
|
+
if (args?.certificate === undefined && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'certificate'");
|
|
72
|
+
}
|
|
73
|
+
if (args?.certificateAuthorityCertificate === undefined && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'certificateAuthorityCertificate'");
|
|
75
|
+
}
|
|
76
|
+
if (args?.privateKey === undefined && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'privateKey'");
|
|
78
|
+
}
|
|
79
|
+
resourceInputs["certificate"] = args?.certificate;
|
|
80
|
+
resourceInputs["certificateAuthorityCertificate"] = args?.certificateAuthorityCertificate;
|
|
81
|
+
resourceInputs["privateKey"] = args?.privateKey ? pulumi.secret(args.privateKey) : undefined;
|
|
82
|
+
resourceInputs["teamId"] = args?.teamId;
|
|
83
|
+
}
|
|
84
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
85
|
+
const secretOpts = { additionalSecretOutputs: ["privateKey"] };
|
|
86
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
87
|
+
super(CustomCertificate.__pulumiType, name, resourceInputs, opts);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.CustomCertificate = CustomCertificate;
|
|
91
|
+
/** @internal */
|
|
92
|
+
CustomCertificate.__pulumiType = 'vercel:index/customCertificate:CustomCertificate';
|
|
93
|
+
//# sourceMappingURL=customCertificate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customCertificate.js","sourceRoot":"","sources":["../customCertificate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IA2BD,YAAY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C;SAC3C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AAlFL,8CAmFC;AArEG,gBAAgB;AACO,8BAAY,GAAG,kDAAkD,CAAC"}
|
package/customEnvironment.d.ts
CHANGED
|
@@ -46,8 +46,6 @@ import * as outputs from "./types/output";
|
|
|
46
46
|
*
|
|
47
47
|
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
48
48
|
*
|
|
49
|
-
* #
|
|
50
|
-
*
|
|
51
49
|
* Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
52
50
|
*
|
|
53
51
|
* ```sh
|
package/customEnvironment.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
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
5
|
exports.CustomEnvironment = void 0;
|
|
@@ -50,8 +50,6 @@ const utilities = require("./utilities");
|
|
|
50
50
|
*
|
|
51
51
|
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
52
52
|
*
|
|
53
|
-
* #
|
|
54
|
-
*
|
|
55
53
|
* Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
56
54
|
*
|
|
57
55
|
* ```sh
|
|
@@ -69,7 +67,7 @@ class CustomEnvironment extends pulumi.CustomResource {
|
|
|
69
67
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
70
68
|
*/
|
|
71
69
|
static get(name, id, state, opts) {
|
|
72
|
-
return new CustomEnvironment(name, state,
|
|
70
|
+
return new CustomEnvironment(name, state, { ...opts, id: id });
|
|
73
71
|
}
|
|
74
72
|
/**
|
|
75
73
|
* Returns true if the given object is an instance of CustomEnvironment. This is designed to work even
|
|
@@ -86,22 +84,22 @@ class CustomEnvironment extends pulumi.CustomResource {
|
|
|
86
84
|
opts = opts || {};
|
|
87
85
|
if (opts.id) {
|
|
88
86
|
const state = argsOrState;
|
|
89
|
-
resourceInputs["branchTracking"] = state
|
|
90
|
-
resourceInputs["description"] = state
|
|
91
|
-
resourceInputs["name"] = state
|
|
92
|
-
resourceInputs["projectId"] = state
|
|
93
|
-
resourceInputs["teamId"] = state
|
|
87
|
+
resourceInputs["branchTracking"] = state?.branchTracking;
|
|
88
|
+
resourceInputs["description"] = state?.description;
|
|
89
|
+
resourceInputs["name"] = state?.name;
|
|
90
|
+
resourceInputs["projectId"] = state?.projectId;
|
|
91
|
+
resourceInputs["teamId"] = state?.teamId;
|
|
94
92
|
}
|
|
95
93
|
else {
|
|
96
94
|
const args = argsOrState;
|
|
97
|
-
if (
|
|
95
|
+
if (args?.projectId === undefined && !opts.urn) {
|
|
98
96
|
throw new Error("Missing required property 'projectId'");
|
|
99
97
|
}
|
|
100
|
-
resourceInputs["branchTracking"] = args
|
|
101
|
-
resourceInputs["description"] = args
|
|
102
|
-
resourceInputs["name"] = args
|
|
103
|
-
resourceInputs["projectId"] = args
|
|
104
|
-
resourceInputs["teamId"] = args
|
|
98
|
+
resourceInputs["branchTracking"] = args?.branchTracking;
|
|
99
|
+
resourceInputs["description"] = args?.description;
|
|
100
|
+
resourceInputs["name"] = args?.name;
|
|
101
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
102
|
+
resourceInputs["teamId"] = args?.teamId;
|
|
105
103
|
}
|
|
106
104
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
107
105
|
super(CustomEnvironment.__pulumiType, name, resourceInputs, opts);
|