@pulumiverse/vercel 0.15.4 → 1.0.1

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/README.md CHANGED
@@ -56,6 +56,7 @@ dotnet add package Pulumiverse.vercel
56
56
  The following configuration points are available for the `vercel` provider:
57
57
 
58
58
  - `vercel:apiToken` (environment: `VERCEL_API_TOKEN`) - the API key for `vercel`
59
+ - `vercel:team` - The default Vercel Team to use when creating resources. 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.
59
60
 
60
61
  ## Reference
61
62
 
package/getProject.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import * as inputs from "./types/input";
3
2
  import * as outputs from "./types/output";
4
3
  /**
5
4
  * Provides information about an existing project within Vercel.
@@ -29,10 +28,6 @@ export interface GetProjectArgs {
29
28
  * The name of the project.
30
29
  */
31
30
  name: string;
32
- /**
33
- * Ensures visitors of your Preview Deployments must enter a password in order to gain access.
34
- */
35
- passwordProtection?: inputs.GetProjectPasswordProtection;
36
31
  /**
37
32
  * The team ID the project exists beneath. Required when configuring a team resource if a default team has not been set in the provider.
38
33
  */
@@ -85,7 +80,7 @@ export interface GetProjectResult {
85
80
  /**
86
81
  * Ensures visitors of your Preview Deployments must enter a password in order to gain access.
87
82
  */
88
- readonly passwordProtection?: outputs.GetProjectPasswordProtection;
83
+ readonly passwordProtection: outputs.GetProjectPasswordProtection;
89
84
  /**
90
85
  * Specifies whether the source code and logs of the deployments for this project should be public or not.
91
86
  */
@@ -102,6 +97,10 @@ export interface GetProjectResult {
102
97
  * The team ID the project exists beneath. Required when configuring a team resource if a default team has not been set in the provider.
103
98
  */
104
99
  readonly teamId: string;
100
+ /**
101
+ * Ensures only visitors from an allowed IP address can access your deployment.
102
+ */
103
+ readonly trustedIps: outputs.GetProjectTrustedIps;
105
104
  /**
106
105
  * Ensures visitors to your Preview Deployments are logged into Vercel and have a minimum of Viewer access on your team.
107
106
  */
@@ -135,10 +134,6 @@ export interface GetProjectOutputArgs {
135
134
  * The name of the project.
136
135
  */
137
136
  name: pulumi.Input<string>;
138
- /**
139
- * Ensures visitors of your Preview Deployments must enter a password in order to gain access.
140
- */
141
- passwordProtection?: pulumi.Input<inputs.GetProjectPasswordProtectionArgs>;
142
137
  /**
143
138
  * The team ID the project exists beneath. Required when configuring a team resource if a default team has not been set in the provider.
144
139
  */
package/getProject.js CHANGED
@@ -28,7 +28,6 @@ function getProject(args, opts) {
28
28
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
29
29
  return pulumi.runtime.invoke("vercel:index/getProject:getProject", {
30
30
  "name": args.name,
31
- "passwordProtection": args.passwordProtection,
32
31
  "teamId": args.teamId,
33
32
  }, opts);
34
33
  }
package/getProject.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getProject.js","sourceRoot":"","sources":["../getProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gCAQC;AAyFD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
1
+ {"version":3,"file":"getProject.js","sourceRoot":"","sources":["../getProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gCAOC;AAyFD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumiverse/vercel",
3
- "version": "v0.15.4",
3
+ "version": "v1.0.1",
4
4
  "keywords": [
5
5
  "pulumi",
6
6
  "vercel",
package/project.d.ts CHANGED
@@ -118,10 +118,14 @@ export declare class Project extends pulumi.CustomResource {
118
118
  * The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
119
119
  */
120
120
  readonly teamId: pulumi.Output<string>;
121
+ /**
122
+ * Ensures only visitors from an allowed IP address can access your deployment.
123
+ */
124
+ readonly trustedIps: pulumi.Output<outputs.ProjectTrustedIps | undefined>;
121
125
  /**
122
126
  * Ensures visitors to your Preview Deployments are logged into Vercel and have a minimum of Viewer access on your team.
123
127
  */
124
- readonly vercelAuthentication: pulumi.Output<outputs.ProjectVercelAuthentication | undefined>;
128
+ readonly vercelAuthentication: pulumi.Output<outputs.ProjectVercelAuthentication>;
125
129
  /**
126
130
  * Create a Project resource with the given unique name, arguments, and options.
127
131
  *
@@ -199,6 +203,10 @@ export interface ProjectState {
199
203
  * The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
200
204
  */
201
205
  teamId?: pulumi.Input<string>;
206
+ /**
207
+ * Ensures only visitors from an allowed IP address can access your deployment.
208
+ */
209
+ trustedIps?: pulumi.Input<inputs.ProjectTrustedIps>;
202
210
  /**
203
211
  * Ensures visitors to your Preview Deployments are logged into Vercel and have a minimum of Viewer access on your team.
204
212
  */
@@ -268,6 +276,10 @@ export interface ProjectArgs {
268
276
  * The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
269
277
  */
270
278
  teamId?: pulumi.Input<string>;
279
+ /**
280
+ * Ensures only visitors from an allowed IP address can access your deployment.
281
+ */
282
+ trustedIps?: pulumi.Input<inputs.ProjectTrustedIps>;
271
283
  /**
272
284
  * Ensures visitors to your Preview Deployments are logged into Vercel and have a minimum of Viewer access on your team.
273
285
  */
package/project.js CHANGED
@@ -86,6 +86,7 @@ class Project extends pulumi.CustomResource {
86
86
  resourceInputs["rootDirectory"] = state ? state.rootDirectory : undefined;
87
87
  resourceInputs["serverlessFunctionRegion"] = state ? state.serverlessFunctionRegion : undefined;
88
88
  resourceInputs["teamId"] = state ? state.teamId : undefined;
89
+ resourceInputs["trustedIps"] = state ? state.trustedIps : undefined;
89
90
  resourceInputs["vercelAuthentication"] = state ? state.vercelAuthentication : undefined;
90
91
  }
91
92
  else {
@@ -105,6 +106,7 @@ class Project extends pulumi.CustomResource {
105
106
  resourceInputs["rootDirectory"] = args ? args.rootDirectory : undefined;
106
107
  resourceInputs["serverlessFunctionRegion"] = args ? args.serverlessFunctionRegion : undefined;
107
108
  resourceInputs["teamId"] = args ? args.teamId : undefined;
109
+ resourceInputs["trustedIps"] = args ? args.trustedIps : undefined;
108
110
  resourceInputs["vercelAuthentication"] = args ? args.vercelAuthentication : undefined;
109
111
  resourceInputs["protectionBypassForAutomationSecret"] = undefined /*out*/;
110
112
  }
package/project.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"project.js","sourceRoot":"","sources":["../project.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IA+ED,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,YAAY,CA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AS,CAAC;YACtF,cAAc,CAAC,qCAAqC,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AA3JL,0BA4JC;AA9IG,gBAAgB;AACO,oBAAY,GAAG,8BAA8B,CAAC"}
package/types/input.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
2
3
  export interface DeploymentProjectSettings {
3
4
  /**
4
5
  * The build command for this deployment. If omitted, this value will be taken from the project or automatically detected.
@@ -39,18 +40,6 @@ export interface DnsRecordSrv {
39
40
  */
40
41
  weight: pulumi.Input<number>;
41
42
  }
42
- export interface GetProjectPasswordProtection {
43
- /**
44
- * If true, production deployments will also be protected
45
- */
46
- protectProduction?: boolean;
47
- }
48
- export interface GetProjectPasswordProtectionArgs {
49
- /**
50
- * If true, production deployments will also be protected
51
- */
52
- protectProduction?: pulumi.Input<boolean>;
53
- }
54
43
  export interface ProjectEnvironment {
55
44
  /**
56
45
  * The git branch of the Environment Variable.
@@ -88,18 +77,42 @@ export interface ProjectGitRepository {
88
77
  type: pulumi.Input<string>;
89
78
  }
90
79
  export interface ProjectPasswordProtection {
80
+ /**
81
+ * The deployment environment to protect. Must be one of `standardProtection`, `allDeployments`, or `onlyPreviewDeployments`.
82
+ */
83
+ deploymentType: pulumi.Input<string>;
91
84
  /**
92
85
  * The password that visitors must enter to gain access to your Preview Deployments. Drift detection is not possible for this field.
93
86
  */
94
87
  password: pulumi.Input<string>;
88
+ }
89
+ export interface ProjectTrustedIps {
90
+ /**
91
+ * The allowed IP addressses and CIDR ranges with optional descriptions.
92
+ */
93
+ addresses: pulumi.Input<pulumi.Input<inputs.ProjectTrustedIpsAddress>[]>;
94
+ /**
95
+ * The deployment environment to protect. Must be one of `standardProtection`, `allDeployments`, `onlyProductionDeployments`, or `onlyPreviewDeployments`.
96
+ */
97
+ deploymentType: pulumi.Input<string>;
98
+ /**
99
+ * Whether or not Trusted IPs is optional to access a deployment. Must be either `trustedIpRequired` or `trustedIpOptional`. `trustedIpOptional` is only available with Standalone Trusted IPs.
100
+ */
101
+ protectionMode?: pulumi.Input<string>;
102
+ }
103
+ export interface ProjectTrustedIpsAddress {
95
104
  /**
96
- * If true, production deployments will also be protected
105
+ * A description for the value
97
106
  */
98
- protectProduction?: pulumi.Input<boolean>;
107
+ note?: pulumi.Input<string>;
108
+ /**
109
+ * The value of the Environment Variable.
110
+ */
111
+ value: pulumi.Input<string>;
99
112
  }
100
113
  export interface ProjectVercelAuthentication {
101
114
  /**
102
- * If true, production deployments will also be protected
115
+ * The deployment environment to protect. Must be one of `standardProtection`, `allDeployments`, `onlyPreviewDeployments`, or `none`.
103
116
  */
104
- protectProduction?: pulumi.Input<boolean>;
117
+ deploymentType: pulumi.Input<string>;
105
118
  }
package/types/output.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as outputs from "../types/output";
1
2
  export interface DeploymentProjectSettings {
2
3
  /**
3
4
  * The build command for this deployment. If omitted, this value will be taken from the project or automatically detected.
@@ -76,15 +77,36 @@ export interface GetProjectGitRepository {
76
77
  }
77
78
  export interface GetProjectPasswordProtection {
78
79
  /**
79
- * If true, production deployments will also be protected
80
+ * The deployment environment that will be protected.
80
81
  */
81
- protectProduction: boolean;
82
+ deploymentType: string;
83
+ }
84
+ export interface GetProjectTrustedIps {
85
+ /**
86
+ * The allowed IP addressses and CIDR ranges with optional descriptions.
87
+ */
88
+ addresses: outputs.GetProjectTrustedIpsAddress[];
89
+ /**
90
+ * The deployment environment that will be protected.
91
+ */
92
+ deploymentType: string;
93
+ /**
94
+ * Whether or not Trusted IPs is required or optional to access a deployment.
95
+ */
96
+ protectionMode: string;
97
+ }
98
+ export interface GetProjectTrustedIpsAddress {
99
+ note: string;
100
+ /**
101
+ * The value of the environment variable.
102
+ */
103
+ value: string;
82
104
  }
83
105
  export interface GetProjectVercelAuthentication {
84
106
  /**
85
- * If true, production deployments will also be protected
107
+ * The deployment environment that will be protected.
86
108
  */
87
- protectProduction: boolean;
109
+ deploymentType: string;
88
110
  }
89
111
  export interface ProjectEnvironment {
90
112
  /**
@@ -123,18 +145,42 @@ export interface ProjectGitRepository {
123
145
  type: string;
124
146
  }
125
147
  export interface ProjectPasswordProtection {
148
+ /**
149
+ * The deployment environment to protect. Must be one of `standardProtection`, `allDeployments`, or `onlyPreviewDeployments`.
150
+ */
151
+ deploymentType: string;
126
152
  /**
127
153
  * The password that visitors must enter to gain access to your Preview Deployments. Drift detection is not possible for this field.
128
154
  */
129
155
  password: string;
156
+ }
157
+ export interface ProjectTrustedIps {
158
+ /**
159
+ * The allowed IP addressses and CIDR ranges with optional descriptions.
160
+ */
161
+ addresses: outputs.ProjectTrustedIpsAddress[];
130
162
  /**
131
- * If true, production deployments will also be protected
163
+ * The deployment environment to protect. Must be one of `standardProtection`, `allDeployments`, `onlyProductionDeployments`, or `onlyPreviewDeployments`.
132
164
  */
133
- protectProduction: boolean;
165
+ deploymentType: string;
166
+ /**
167
+ * Whether or not Trusted IPs is optional to access a deployment. Must be either `trustedIpRequired` or `trustedIpOptional`. `trustedIpOptional` is only available with Standalone Trusted IPs.
168
+ */
169
+ protectionMode: string;
170
+ }
171
+ export interface ProjectTrustedIpsAddress {
172
+ /**
173
+ * A description for the value
174
+ */
175
+ note?: string;
176
+ /**
177
+ * The value of the Environment Variable.
178
+ */
179
+ value: string;
134
180
  }
135
181
  export interface ProjectVercelAuthentication {
136
182
  /**
137
- * If true, production deployments will also be protected
183
+ * The deployment environment to protect. Must be one of `standardProtection`, `allDeployments`, `onlyPreviewDeployments`, or `none`.
138
184
  */
139
- protectProduction: boolean;
185
+ deploymentType: string;
140
186
  }