1. Registry
  2. Packages
  3. Vercel Provider
  4. API Docs
  5. ProjectDeploymentProtection
Viewing docs for Vercel v5.27.0
published on Sunday, Nov 15, 2026 by Pulumiverse
vercel logo vercel logo
Viewing docs for Vercel v5.27.0
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:

    ProjectId string
    The ID of the existing project. No project is created by this resource.
    PasswordProtection Pulumiverse.Vercel.Inputs.ProjectDeploymentProtectionPasswordProtection
    Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
    TeamId string
    The team ID. Defaults to the provider team.
    TrustedIps Pulumiverse.Vercel.Inputs.ProjectDeploymentProtectionTrustedIps
    Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
    VercelAuthentication Pulumiverse.Vercel.Inputs.ProjectDeploymentProtectionVercelAuthentication
    Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
    ProjectId string
    The ID of the existing project. No project is created by this resource.
    PasswordProtection ProjectDeploymentProtectionPasswordProtectionArgs
    Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
    TeamId string
    The team ID. Defaults to the provider team.
    TrustedIps ProjectDeploymentProtectionTrustedIpsArgs
    Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
    VercelAuthentication ProjectDeploymentProtectionVercelAuthenticationArgs
    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.
    projectId String
    The ID of the existing project. No project is created by this resource.
    passwordProtection ProjectDeploymentProtectionPasswordProtection
    Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
    teamId String
    The team ID. Defaults to the provider team.
    trustedIps ProjectDeploymentProtectionTrustedIps
    Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
    vercelAuthentication ProjectDeploymentProtectionVercelAuthentication
    Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
    projectId string
    The ID of the existing project. No project is created by this resource.
    passwordProtection ProjectDeploymentProtectionPasswordProtection
    Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
    teamId string
    The team ID. Defaults to the provider team.
    trustedIps ProjectDeploymentProtectionTrustedIps
    Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
    vercelAuthentication ProjectDeploymentProtectionVercelAuthentication
    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 ProjectDeploymentProtectionPasswordProtectionArgs
    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 ProjectDeploymentProtectionTrustedIpsArgs
    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 ProjectDeploymentProtectionVercelAuthenticationArgs
    Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
    projectId String
    The ID of the existing project. No project is created by this resource.
    passwordProtection Property Map
    Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
    teamId String
    The team ID. Defaults to the provider team.
    trustedIps 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.
    vercelAuthentication 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) -> ProjectDeploymentProtection
    func 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.
    The following state arguments are supported:
    PasswordProtection Pulumiverse.Vercel.Inputs.ProjectDeploymentProtectionPasswordProtection
    Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
    ProjectId string
    The ID of the existing project. No project is created by this resource.
    TeamId string
    The team ID. Defaults to the provider team.
    TrustedIps Pulumiverse.Vercel.Inputs.ProjectDeploymentProtectionTrustedIps
    Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
    VercelAuthentication Pulumiverse.Vercel.Inputs.ProjectDeploymentProtectionVercelAuthentication
    Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
    PasswordProtection ProjectDeploymentProtectionPasswordProtectionArgs
    Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
    ProjectId string
    The ID of the existing project. No project is created by this resource.
    TeamId string
    The team ID. Defaults to the provider team.
    TrustedIps ProjectDeploymentProtectionTrustedIpsArgs
    Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
    VercelAuthentication ProjectDeploymentProtectionVercelAuthenticationArgs
    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.
    passwordProtection ProjectDeploymentProtectionPasswordProtection
    Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
    projectId String
    The ID of the existing project. No project is created by this resource.
    teamId String
    The team ID. Defaults to the provider team.
    trustedIps ProjectDeploymentProtectionTrustedIps
    Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
    vercelAuthentication ProjectDeploymentProtectionVercelAuthentication
    Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
    passwordProtection ProjectDeploymentProtectionPasswordProtection
    Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
    projectId string
    The ID of the existing project. No project is created by this resource.
    teamId string
    The team ID. Defaults to the provider team.
    trustedIps ProjectDeploymentProtectionTrustedIps
    Set the IPv4 allowlist and deployment scope. Removing this object disables Trusted IPs. The API's existing protection mode is reported but not changed.
    vercelAuthentication ProjectDeploymentProtectionVercelAuthentication
    Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
    password_protection ProjectDeploymentProtectionPasswordProtectionArgs
    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 ProjectDeploymentProtectionTrustedIpsArgs
    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 ProjectDeploymentProtectionVercelAuthenticationArgs
    Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.
    passwordProtection Property Map
    Enable password protection. Omission leaves it unmanaged unless previously managed, in which case removal disables it. Import preserves the existing password.
    projectId String
    The ID of the existing project. No project is created by this resource.
    teamId String
    The team ID. Defaults to the provider team.
    trustedIps 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.
    vercelAuthentication Property Map
    Enable Vercel Authentication. Omission leaves it unmanaged unless previously managed, in which case removal disables it.

    Supporting Types

    ProjectDeploymentProtectionPasswordProtection, ProjectDeploymentProtectionPasswordProtectionArgs

    DeploymentType string
    The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
    PasswordWo 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.
    PasswordWoVersion int
    A non-secret rotation counter. Set with passwordwo and increment to send a new password; changing only passwordwo does not trigger an update.
    DeploymentType string
    The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
    PasswordWo 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.
    PasswordWoVersion int
    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_version number
    A non-secret rotation counter. Set with passwordwo and increment to send a new password; changing only passwordwo does not trigger an update.
    deploymentType String
    The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
    passwordWo 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.
    passwordWoVersion Integer
    A non-secret rotation counter. Set with passwordwo and increment to send a new password; changing only passwordwo does not trigger an update.
    deploymentType string
    The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
    passwordWo 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.
    passwordWoVersion number
    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_version int
    A non-secret rotation counter. Set with passwordwo and increment to send a new password; changing only passwordwo does not trigger an update.
    deploymentType String
    The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
    passwordWo 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.
    passwordWoVersion Number
    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.ProjectDeploymentProtectionTrustedIpsAddress>
    Allowed IPv4 addresses or CIDR ranges.
    DeploymentType string
    The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
    ProtectionMode 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 []ProjectDeploymentProtectionTrustedIpsAddress
    Allowed IPv4 addresses or CIDR ranges.
    DeploymentType string
    The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
    ProtectionMode 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<ProjectDeploymentProtectionTrustedIpsAddress>
    Allowed IPv4 addresses or CIDR ranges.
    deploymentType String
    The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
    protectionMode 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 ProjectDeploymentProtectionTrustedIpsAddress[]
    Allowed IPv4 addresses or CIDR ranges.
    deploymentType string
    The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
    protectionMode 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[ProjectDeploymentProtectionTrustedIpsAddress]
    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.
    deploymentType String
    The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
    protectionMode 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

    Value string
    An IPv4 address or CIDR range. IPv6 is not supported.
    Note string
    Optional description, up to 20 characters.
    Value string
    An IPv4 address or CIDR range. IPv6 is not supported.
    Note string
    Optional description, up to 20 characters.
    value string
    An IPv4 address or CIDR range. IPv6 is not supported.
    note string
    Optional description, up to 20 characters.
    value String
    An IPv4 address or CIDR range. IPv6 is not supported.
    note String
    Optional description, up to 20 characters.
    value string
    An IPv4 address or CIDR range. IPv6 is not supported.
    note string
    Optional description, up to 20 characters.
    value str
    An IPv4 address or CIDR range. IPv6 is not supported.
    note str
    Optional description, up to 20 characters.
    value String
    An IPv4 address or CIDR range. IPv6 is not supported.
    note String
    Optional description, up to 20 characters.

    ProjectDeploymentProtectionVercelAuthentication, ProjectDeploymentProtectionVercelAuthenticationArgs

    DeploymentType string
    The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
    DeploymentType 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.
    deploymentType String
    The deployment scope to protect, using API names: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Trusted IPs also supports production.
    deploymentType 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.
    deploymentType 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 vercel Terraform Provider.
    vercel logo vercel logo
    Viewing docs for Vercel v5.27.0
    published on Sunday, Nov 15, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial