published on Sunday, Nov 15, 2026 by Pulumiverse
published on Sunday, Nov 15, 2026 by Pulumiverse
Manages deployment protection as standalone settings on an existing Vercel project. It never creates or deletes the project, and does not manage builds, Git settings, Passport, bypasses, shareable links, or URL exceptions.
Each configured object enables and owns that protection method. Objects never configured are left untouched. Removing a previously managed object disables that method. Destroying this resource disables only the methods recorded in its state, leaving the project intact. Use a removed block with lifecycle { destroy = false } to relinquish ownership without disabling protection.
If vercel.Project manages the same project, set manage_deployment_protection = false there and remove its inline vercel_authentication, password_protection, and trusted_ips attributes. Only one standalone resource may own these settings per project. Passwords are write-only, require Terraform 1.11 or later, and cannot be read or checked for drift. Import reads all enabled protection methods; omitted methods in the subsequent configuration will be disabled on apply.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vercel from "@pulumiverse/vercel";
// Standalone: this manages protection on a project that already exists.
// It does not create or own the project itself.
const existing = new vercel.ProjectDeploymentProtection("existing", {
teamId: "team_example",
projectId: "prj_existing",
vercelAuthentication: {
deploymentType: "all",
},
trustedIps: {
deploymentType: "all",
addresses: [{
value: "203.0.113.0/24",
note: "Corporate VPN",
}],
},
});
import pulumi
import pulumiverse_vercel as vercel
# Standalone: this manages protection on a project that already exists.
# It does not create or own the project itself.
existing = vercel.ProjectDeploymentProtection("existing",
team_id="team_example",
project_id="prj_existing",
vercel_authentication={
"deployment_type": "all",
},
trusted_ips={
"deployment_type": "all",
"addresses": [{
"value": "203.0.113.0/24",
"note": "Corporate VPN",
}],
})
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vercel/sdk/v5/go/vercel"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Standalone: this manages protection on a project that already exists.
// It does not create or own the project itself.
_, err := vercel.NewProjectDeploymentProtection(ctx, "existing", &vercel.ProjectDeploymentProtectionArgs{
TeamId: pulumi.String("team_example"),
ProjectId: pulumi.String("prj_existing"),
VercelAuthentication: &vercel.ProjectDeploymentProtectionVercelAuthenticationArgs{
DeploymentType: pulumi.String("all"),
},
TrustedIps: &vercel.ProjectDeploymentProtectionTrustedIpsArgs{
DeploymentType: pulumi.String("all"),
Addresses: vercel.ProjectDeploymentProtectionTrustedIpsAddressArray{
&vercel.ProjectDeploymentProtectionTrustedIpsAddressArgs{
Value: pulumi.String("203.0.113.0/24"),
Note: pulumi.String("Corporate VPN"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vercel = Pulumiverse.Vercel;
return await Deployment.RunAsync(() =>
{
// Standalone: this manages protection on a project that already exists.
// It does not create or own the project itself.
var existing = new Vercel.ProjectDeploymentProtection("existing", new()
{
TeamId = "team_example",
ProjectId = "prj_existing",
VercelAuthentication = new Vercel.Inputs.ProjectDeploymentProtectionVercelAuthenticationArgs
{
DeploymentType = "all",
},
TrustedIps = new Vercel.Inputs.ProjectDeploymentProtectionTrustedIpsArgs
{
DeploymentType = "all",
Addresses = new[]
{
new Vercel.Inputs.ProjectDeploymentProtectionTrustedIpsAddressArgs
{
Value = "203.0.113.0/24",
Note = "Corporate VPN",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumiverse.vercel.ProjectDeploymentProtection;
import com.pulumiverse.vercel.ProjectDeploymentProtectionArgs;
import com.pulumi.vercel.inputs.ProjectDeploymentProtectionVercelAuthenticationArgs;
import com.pulumi.vercel.inputs.ProjectDeploymentProtectionTrustedIpsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Standalone: this manages protection on a project that already exists.
// It does not create or own the project itself.
var existing = new ProjectDeploymentProtection("existing", ProjectDeploymentProtectionArgs.builder()
.teamId("team_example")
.projectId("prj_existing")
.vercelAuthentication(ProjectDeploymentProtectionVercelAuthenticationArgs.builder()
.deploymentType("all")
.build())
.trustedIps(ProjectDeploymentProtectionTrustedIpsArgs.builder()
.deploymentType("all")
.addresses(ProjectDeploymentProtectionTrustedIpsAddressArgs.builder()
.value("203.0.113.0/24")
.note("Corporate VPN")
.build())
.build())
.build());
}
}
resources:
# Standalone: this manages protection on a project that already exists.
# It does not create or own the project itself.
existing:
type: vercel:ProjectDeploymentProtection
properties:
teamId: team_example
projectId: prj_existing
vercelAuthentication:
deploymentType: all
trustedIps:
deploymentType: all
addresses:
- value: 203.0.113.0/24
note: Corporate VPN
Example coming soon!
Standalone ownership and coexistence
This resource works with a project created outside Terraform: no vercel.Project resource or project import is required. Presence of each nested object enables that method; there is no enabled flag. Other protection methods remain untouched until they are configured or imported into this resource.
If Terraform also manages the project itself:
import * as pulumi from "@pulumi/pulumi";
import * as vercel from "@pulumiverse/vercel";
const app = new vercel.Project("app", {
name: "existing-app",
manageDeploymentProtection: false,
});
const appProjectDeploymentProtection = new vercel.ProjectDeploymentProtection("app", {
projectId: app.id,
vercelAuthentication: {
deploymentType: "all",
},
});
import pulumi
import pulumiverse_vercel as vercel
app = vercel.Project("app",
name="existing-app",
manage_deployment_protection=False)
app_project_deployment_protection = vercel.ProjectDeploymentProtection("app",
project_id=app.id,
vercel_authentication={
"deployment_type": "all",
})
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vercel/sdk/v5/go/vercel"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
app, err := vercel.NewProject(ctx, "app", &vercel.ProjectArgs{
Name: pulumi.String("existing-app"),
ManageDeploymentProtection: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = vercel.NewProjectDeploymentProtection(ctx, "app", &vercel.ProjectDeploymentProtectionArgs{
ProjectId: app.ID(),
VercelAuthentication: &vercel.ProjectDeploymentProtectionVercelAuthenticationArgs{
DeploymentType: pulumi.String("all"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vercel = Pulumiverse.Vercel;
return await Deployment.RunAsync(() =>
{
var app = new Vercel.Project("app", new()
{
Name = "existing-app",
ManageDeploymentProtection = false,
});
var appProjectDeploymentProtection = new Vercel.ProjectDeploymentProtection("app", new()
{
ProjectId = app.Id,
VercelAuthentication = new Vercel.Inputs.ProjectDeploymentProtectionVercelAuthenticationArgs
{
DeploymentType = "all",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumiverse.vercel.Project;
import com.pulumiverse.vercel.ProjectArgs;
import com.pulumiverse.vercel.ProjectDeploymentProtection;
import com.pulumiverse.vercel.ProjectDeploymentProtectionArgs;
import com.pulumi.vercel.inputs.ProjectDeploymentProtectionVercelAuthenticationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var app = new Project("app", ProjectArgs.builder()
.name("existing-app")
.manageDeploymentProtection(false)
.build());
var appProjectDeploymentProtection = new ProjectDeploymentProtection("appProjectDeploymentProtection", ProjectDeploymentProtectionArgs.builder()
.projectId(app.id())
.vercelAuthentication(ProjectDeploymentProtectionVercelAuthenticationArgs.builder()
.deploymentType("all")
.build())
.build());
}
}
resources:
app:
type: vercel:Project
properties:
name: existing-app
manageDeploymentProtection: false # Omit vercel_authentication, password_protection, and trusted_ips here.
# # Keep your other existing project configuration.
appProjectDeploymentProtection:
type: vercel:ProjectDeploymentProtection
name: app
properties:
projectId: ${app.id}
vercelAuthentication:
deploymentType: all
Example coming soon!
Set manage_deployment_protection = false before delegating ownership. It omits all three methods from project requests, including follow-up requests during project creation. It leaves their live configuration unchanged. ignore_changes alone does not stop broad project updates from writing observed settings. The project resource still owns the project’s lifecycle and can delete it. Passport has its own independent manage_passport flag and standalone resource.
Do not manage the same settings through multiple standalone resources, multiple Terraform states, or inline attributes. Bypasses, shareable links, and public URL exceptions remain separate resources and can allow access even while these methods are enabled. This resource does not assert effective access policy or continuous team-wide enforcement.
Create ProjectDeploymentProtection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectDeploymentProtection(name: string, args: ProjectDeploymentProtectionArgs, opts?: CustomResourceOptions);@overload
def ProjectDeploymentProtection(resource_name: str,
args: ProjectDeploymentProtectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectDeploymentProtection(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
password_protection: Optional[ProjectDeploymentProtectionPasswordProtectionArgs] = None,
team_id: Optional[str] = None,
trusted_ips: Optional[ProjectDeploymentProtectionTrustedIpsArgs] = None,
vercel_authentication: Optional[ProjectDeploymentProtectionVercelAuthenticationArgs] = None)func NewProjectDeploymentProtection(ctx *Context, name string, args ProjectDeploymentProtectionArgs, opts ...ResourceOption) (*ProjectDeploymentProtection, error)public ProjectDeploymentProtection(string name, ProjectDeploymentProtectionArgs args, CustomResourceOptions? opts = null)
public ProjectDeploymentProtection(String name, ProjectDeploymentProtectionArgs args)
public ProjectDeploymentProtection(String name, ProjectDeploymentProtectionArgs args, CustomResourceOptions options)
type: vercel:ProjectDeploymentProtection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "vercel_project_deployment_protection" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ProjectDeploymentProtectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ProjectDeploymentProtectionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProjectDeploymentProtectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectDeploymentProtectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectDeploymentProtectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var projectDeploymentProtectionResource = new Vercel.ProjectDeploymentProtection("projectDeploymentProtectionResource", new()
{
ProjectId = "string",
PasswordProtection = new Vercel.Inputs.ProjectDeploymentProtectionPasswordProtectionArgs
{
DeploymentType = "string",
PasswordWo = "string",
PasswordWoVersion = 0,
},
TeamId = "string",
TrustedIps = new Vercel.Inputs.ProjectDeploymentProtectionTrustedIpsArgs
{
Addresses = new[]
{
new Vercel.Inputs.ProjectDeploymentProtectionTrustedIpsAddressArgs
{
Value = "string",
Note = "string",
},
},
DeploymentType = "string",
ProtectionMode = "string",
},
VercelAuthentication = new Vercel.Inputs.ProjectDeploymentProtectionVercelAuthenticationArgs
{
DeploymentType = "string",
},
});
example, err := vercel.NewProjectDeploymentProtection(ctx, "projectDeploymentProtectionResource", &vercel.ProjectDeploymentProtectionArgs{
ProjectId: pulumi.String("string"),
PasswordProtection: &vercel.ProjectDeploymentProtectionPasswordProtectionArgs{
DeploymentType: pulumi.String("string"),
PasswordWo: pulumi.String("string"),
PasswordWoVersion: pulumi.Int(0),
},
TeamId: pulumi.String("string"),
TrustedIps: &vercel.ProjectDeploymentProtectionTrustedIpsArgs{
Addresses: vercel.ProjectDeploymentProtectionTrustedIpsAddressArray{
&vercel.ProjectDeploymentProtectionTrustedIpsAddressArgs{
Value: pulumi.String("string"),
Note: pulumi.String("string"),
},
},
DeploymentType: pulumi.String("string"),
ProtectionMode: pulumi.String("string"),
},
VercelAuthentication: &vercel.ProjectDeploymentProtectionVercelAuthenticationArgs{
DeploymentType: pulumi.String("string"),
},
})
resource "vercel_project_deployment_protection" "projectDeploymentProtectionResource" {
lifecycle {
create_before_destroy = true
}
project_id = "string"
password_protection = {
deployment_type = "string"
password_wo = "string"
password_wo_version = 0
}
team_id = "string"
trusted_ips = {
addresses = [{
value = "string"
note = "string"
}]
deployment_type = "string"
protection_mode = "string"
}
vercel_authentication = {
deployment_type = "string"
}
}
var projectDeploymentProtectionResource = new ProjectDeploymentProtection("projectDeploymentProtectionResource", ProjectDeploymentProtectionArgs.builder()
.projectId("string")
.passwordProtection(ProjectDeploymentProtectionPasswordProtectionArgs.builder()
.deploymentType("string")
.passwordWo("string")
.passwordWoVersion(0)
.build())
.teamId("string")
.trustedIps(ProjectDeploymentProtectionTrustedIpsArgs.builder()
.addresses(ProjectDeploymentProtectionTrustedIpsAddressArgs.builder()
.value("string")
.note("string")
.build())
.deploymentType("string")
.protectionMode("string")
.build())
.vercelAuthentication(ProjectDeploymentProtectionVercelAuthenticationArgs.builder()
.deploymentType("string")
.build())
.build());
project_deployment_protection_resource = vercel.ProjectDeploymentProtection("projectDeploymentProtectionResource",
project_id="string",
password_protection={
"deployment_type": "string",
"password_wo": "string",
"password_wo_version": 0,
},
team_id="string",
trusted_ips={
"addresses": [{
"value": "string",
"note": "string",
}],
"deployment_type": "string",
"protection_mode": "string",
},
vercel_authentication={
"deployment_type": "string",
})
const projectDeploymentProtectionResource = new vercel.ProjectDeploymentProtection("projectDeploymentProtectionResource", {
projectId: "string",
passwordProtection: {
deploymentType: "string",
passwordWo: "string",
passwordWoVersion: 0,
},
teamId: "string",
trustedIps: {
addresses: [{
value: "string",
note: "string",
}],
deploymentType: "string",
protectionMode: "string",
},
vercelAuthentication: {
deploymentType: "string",
},
});
type: vercel:ProjectDeploymentProtection
properties:
passwordProtection:
deploymentType: string
passwordWo: string
passwordWoVersion: 0
projectId: string
teamId: string
trustedIps:
addresses:
- note: string
value: string
deploymentType: string
protectionMode: string
vercelAuthentication:
deploymentType: string
ProjectDeploymentProtection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ProjectDeploymentProtection resource accepts the following input properties:
- Project
Id string - The ID of the existing project. No project is created by this resource.
- Password
Protection Pulumiverse.Vercel. Inputs. Project Deployment Protection Password Protection - Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
- Team
Id string - The team ID. Defaults to the provider team.
- Trusted
Ips Pulumiverse.Vercel. Inputs. Project Deployment Protection Trusted Ips - Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
- Vercel
Authentication Pulumiverse.Vercel. Inputs. Project Deployment Protection Vercel Authentication - Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
- Project
Id string - The ID of the existing project. No project is created by this resource.
- Password
Protection ProjectDeployment Protection Password Protection Args - Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
- Team
Id string - The team ID. Defaults to the provider team.
- Trusted
Ips ProjectDeployment Protection Trusted Ips Args - Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
- Vercel
Authentication ProjectDeployment Protection Vercel Authentication Args - Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
- project_
id string - The ID of the existing project. No project is created by this resource.
- password_
protection object - Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
- team_
id string - The team ID. Defaults to the provider team.
- trusted_
ips object - Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
- vercel_
authentication object - Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
- project
Id String - The ID of the existing project. No project is created by this resource.
- password
Protection ProjectDeployment Protection Password Protection - Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
- team
Id String - The team ID. Defaults to the provider team.
- trusted
Ips ProjectDeployment Protection Trusted Ips - Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
- vercel
Authentication ProjectDeployment Protection Vercel Authentication - Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
- project
Id string - The ID of the existing project. No project is created by this resource.
- password
Protection ProjectDeployment Protection Password Protection - Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
- team
Id string - The team ID. Defaults to the provider team.
- trusted
Ips ProjectDeployment Protection Trusted Ips - Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
- vercel
Authentication ProjectDeployment Protection Vercel Authentication - Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
- project_
id str - The ID of the existing project. No project is created by this resource.
- password_
protection ProjectDeployment Protection Password Protection Args - Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
- team_
id str - The team ID. Defaults to the provider team.
- trusted_
ips ProjectDeployment Protection Trusted Ips Args - Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
- vercel_
authentication ProjectDeployment Protection Vercel Authentication Args - Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
- project
Id String - The ID of the existing project. No project is created by this resource.
- password
Protection Property Map - Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
- team
Id String - The team ID. Defaults to the provider team.
- trusted
Ips Property Map - Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
- vercel
Authentication Property Map - Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectDeploymentProtection resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ProjectDeploymentProtection Resource
Get an existing ProjectDeploymentProtection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ProjectDeploymentProtectionState, opts?: CustomResourceOptions): ProjectDeploymentProtection@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
password_protection: Optional[ProjectDeploymentProtectionPasswordProtectionArgs] = None,
project_id: Optional[str] = None,
team_id: Optional[str] = None,
trusted_ips: Optional[ProjectDeploymentProtectionTrustedIpsArgs] = None,
vercel_authentication: Optional[ProjectDeploymentProtectionVercelAuthenticationArgs] = None) -> ProjectDeploymentProtectionfunc GetProjectDeploymentProtection(ctx *Context, name string, id IDInput, state *ProjectDeploymentProtectionState, opts ...ResourceOption) (*ProjectDeploymentProtection, error)public static ProjectDeploymentProtection Get(string name, Input<string> id, ProjectDeploymentProtectionState? state, CustomResourceOptions? opts = null)public static ProjectDeploymentProtection get(String name, Output<String> id, ProjectDeploymentProtectionState state, CustomResourceOptions options)resources: existingProjectDeploymentProtection: type: vercel:ProjectDeploymentProtection get: id: ${id}import {
to = vercel_project_deployment_protection.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state ProjectDeploymentProtectionState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state ProjectDeploymentProtectionState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state ProjectDeploymentProtectionState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state ProjectDeploymentProtectionState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Password
Protection Pulumiverse.Vercel. Inputs. Project Deployment Protection Password Protection - Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
- Project
Id string - The ID of the existing project. No project is created by this resource.
- Team
Id string - The team ID. Defaults to the provider team.
- Trusted
Ips Pulumiverse.Vercel. Inputs. Project Deployment Protection Trusted Ips - Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
- Vercel
Authentication Pulumiverse.Vercel. Inputs. Project Deployment Protection Vercel Authentication - Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
- Password
Protection ProjectDeployment Protection Password Protection Args - Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
- Project
Id string - The ID of the existing project. No project is created by this resource.
- Team
Id string - The team ID. Defaults to the provider team.
- Trusted
Ips ProjectDeployment Protection Trusted Ips Args - Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
- Vercel
Authentication ProjectDeployment Protection Vercel Authentication Args - Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
- password_
protection object - Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
- project_
id string - The ID of the existing project. No project is created by this resource.
- team_
id string - The team ID. Defaults to the provider team.
- trusted_
ips object - Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
- vercel_
authentication object - Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
- password
Protection ProjectDeployment Protection Password Protection - Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
- project
Id String - The ID of the existing project. No project is created by this resource.
- team
Id String - The team ID. Defaults to the provider team.
- trusted
Ips ProjectDeployment Protection Trusted Ips - Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
- vercel
Authentication ProjectDeployment Protection Vercel Authentication - Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
- password
Protection ProjectDeployment Protection Password Protection - Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
- project
Id string - The ID of the existing project. No project is created by this resource.
- team
Id string - The team ID. Defaults to the provider team.
- trusted
Ips ProjectDeployment Protection Trusted Ips - Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
- vercel
Authentication ProjectDeployment Protection Vercel Authentication - Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
- password_
protection ProjectDeployment Protection Password Protection Args - Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
- project_
id str - The ID of the existing project. No project is created by this resource.
- team_
id str - The team ID. Defaults to the provider team.
- trusted_
ips ProjectDeployment Protection Trusted Ips Args - Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
- vercel_
authentication ProjectDeployment Protection Vercel Authentication Args - Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
- password
Protection Property Map - Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
- project
Id String - The ID of the existing project. No project is created by this resource.
- team
Id String - The team ID. Defaults to the provider team.
- trusted
Ips Property Map - Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
- vercel
Authentication Property Map - Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
Supporting Types
ProjectDeploymentProtectionPasswordProtection, ProjectDeploymentProtectionPasswordProtectionArgs
- Deployment
Type string - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- Password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password, never stored in state. Use an ephemeral variable to keep it out of saved plans. Required when enabling previously disabled password protection. Existing passwords are preserved when omitted. Change passwordwoversion to rotate it.
- Password
Wo intVersion - A non-secret rotation counter. Set with passwordwo and increment to send a new password; changing only passwordwo does not trigger an update.
- Deployment
Type string - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- Password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password, never stored in state. Use an ephemeral variable to keep it out of saved plans. Required when enabling previously disabled password protection. Existing passwords are preserved when omitted. Change passwordwoversion to rotate it.
- Password
Wo intVersion - A non-secret rotation counter. Set with passwordwo and increment to send a new password; changing only passwordwo does not trigger an update.
- deployment_
type string - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- password_
wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password, never stored in state. Use an ephemeral variable to keep it out of saved plans. Required when enabling previously disabled password protection. Existing passwords are preserved when omitted. Change passwordwoversion to rotate it.
- password_
wo_ numberversion - A non-secret rotation counter. Set with passwordwo and increment to send a new password; changing only passwordwo does not trigger an update.
- deployment
Type String - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- password
Wo String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password, never stored in state. Use an ephemeral variable to keep it out of saved plans. Required when enabling previously disabled password protection. Existing passwords are preserved when omitted. Change passwordwoversion to rotate it.
- password
Wo IntegerVersion - A non-secret rotation counter. Set with passwordwo and increment to send a new password; changing only passwordwo does not trigger an update.
- deployment
Type string - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password, never stored in state. Use an ephemeral variable to keep it out of saved plans. Required when enabling previously disabled password protection. Existing passwords are preserved when omitted. Change passwordwoversion to rotate it.
- password
Wo numberVersion - A non-secret rotation counter. Set with passwordwo and increment to send a new password; changing only passwordwo does not trigger an update.
- deployment_
type str - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- password_
wo str - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password, never stored in state. Use an ephemeral variable to keep it out of saved plans. Required when enabling previously disabled password protection. Existing passwords are preserved when omitted. Change passwordwoversion to rotate it.
- password_
wo_ intversion - A non-secret rotation counter. Set with passwordwo and increment to send a new password; changing only passwordwo does not trigger an update.
- deployment
Type String - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- password
Wo String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password, never stored in state. Use an ephemeral variable to keep it out of saved plans. Required when enabling previously disabled password protection. Existing passwords are preserved when omitted. Change passwordwoversion to rotate it.
- password
Wo NumberVersion - A non-secret rotation counter. Set with passwordwo and increment to send a new password; changing only passwordwo does not trigger an update.
ProjectDeploymentProtectionTrustedIps, ProjectDeploymentProtectionTrustedIpsArgs
- Addresses
List<Pulumiverse.
Vercel. Inputs. Project Deployment Protection Trusted Ips Address> - Allowed IPv4 addresses or CIDR ranges.
- Deployment
Type string - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- Protection
Mode string - The API-reported Trusted IP mode: additional requires Trusted IPs alongside other protection; exclusive allows Trusted IPs as an alternative. The public PATCH schema does not expose mode updates, so this resource does not change it.
- Addresses
[]Project
Deployment Protection Trusted Ips Address - Allowed IPv4 addresses or CIDR ranges.
- Deployment
Type string - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- Protection
Mode string - The API-reported Trusted IP mode: additional requires Trusted IPs alongside other protection; exclusive allows Trusted IPs as an alternative. The public PATCH schema does not expose mode updates, so this resource does not change it.
- addresses list(object)
- Allowed IPv4 addresses or CIDR ranges.
- deployment_
type string - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- protection_
mode string - The API-reported Trusted IP mode: additional requires Trusted IPs alongside other protection; exclusive allows Trusted IPs as an alternative. The public PATCH schema does not expose mode updates, so this resource does not change it.
- addresses
List<Project
Deployment Protection Trusted Ips Address> - Allowed IPv4 addresses or CIDR ranges.
- deployment
Type String - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- protection
Mode String - The API-reported Trusted IP mode: additional requires Trusted IPs alongside other protection; exclusive allows Trusted IPs as an alternative. The public PATCH schema does not expose mode updates, so this resource does not change it.
- addresses
Project
Deployment Protection Trusted Ips Address[] - Allowed IPv4 addresses or CIDR ranges.
- deployment
Type string - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- protection
Mode string - The API-reported Trusted IP mode: additional requires Trusted IPs alongside other protection; exclusive allows Trusted IPs as an alternative. The public PATCH schema does not expose mode updates, so this resource does not change it.
- addresses
Sequence[Project
Deployment Protection Trusted Ips Address] - Allowed IPv4 addresses or CIDR ranges.
- deployment_
type str - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- protection_
mode str - The API-reported Trusted IP mode: additional requires Trusted IPs alongside other protection; exclusive allows Trusted IPs as an alternative. The public PATCH schema does not expose mode updates, so this resource does not change it.
- addresses List<Property Map>
- Allowed IPv4 addresses or CIDR ranges.
- deployment
Type String - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- protection
Mode String - The API-reported Trusted IP mode: additional requires Trusted IPs alongside other protection; exclusive allows Trusted IPs as an alternative. The public PATCH schema does not expose mode updates, so this resource does not change it.
ProjectDeploymentProtectionTrustedIpsAddress, ProjectDeploymentProtectionTrustedIpsAddressArgs
ProjectDeploymentProtectionVercelAuthentication, ProjectDeploymentProtectionVercelAuthenticationArgs
- Deployment
Type string - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- Deployment
Type string - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- deployment_
type string - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- deployment
Type String - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- deployment
Type string - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- deployment_
type str - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
- deployment
Type String - The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
Import
Import all currently enabled methods, without importing the project itself. Include every imported method you want to retain in your configuration.
$ pulumi import vercel:index/projectDeploymentProtection:ProjectDeploymentProtection existing team_example/prj_existing
With a provider team configured, the project ID alone is sufficient.
$ pulumi import vercel:index/projectDeploymentProtection:ProjectDeploymentProtection existing prj_existing
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- vercel pulumiverse/pulumi-vercel
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vercelTerraform Provider.
published on Sunday, Nov 15, 2026 by Pulumiverse