1. Packages
  2. Vercel
  3. API Docs
  4. ProjectDomain
Vercel v1.15.0 published on Wednesday, Mar 19, 2025 by Pulumiverse

vercel.ProjectDomain

Explore with Pulumi AI

vercel logo
Vercel v1.15.0 published on Wednesday, Mar 19, 2025 by Pulumiverse

    Create ProjectDomain Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ProjectDomain(name: string, args: ProjectDomainArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectDomain(resource_name: str,
                      args: ProjectDomainArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProjectDomain(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      domain: Optional[str] = None,
                      project_id: Optional[str] = None,
                      custom_environment_id: Optional[str] = None,
                      git_branch: Optional[str] = None,
                      redirect: Optional[str] = None,
                      redirect_status_code: Optional[int] = None,
                      team_id: Optional[str] = None)
    func NewProjectDomain(ctx *Context, name string, args ProjectDomainArgs, opts ...ResourceOption) (*ProjectDomain, error)
    public ProjectDomain(string name, ProjectDomainArgs args, CustomResourceOptions? opts = null)
    public ProjectDomain(String name, ProjectDomainArgs args)
    public ProjectDomain(String name, ProjectDomainArgs args, CustomResourceOptions options)
    
    type: vercel:ProjectDomain
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ProjectDomainArgs
    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 ProjectDomainArgs
    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 ProjectDomainArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectDomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectDomainArgs
    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 projectDomainResource = new Vercel.ProjectDomain("projectDomainResource", new()
    {
        Domain = "string",
        ProjectId = "string",
        CustomEnvironmentId = "string",
        GitBranch = "string",
        Redirect = "string",
        RedirectStatusCode = 0,
        TeamId = "string",
    });
    
    example, err := vercel.NewProjectDomain(ctx, "projectDomainResource", &vercel.ProjectDomainArgs{
    	Domain:              pulumi.String("string"),
    	ProjectId:           pulumi.String("string"),
    	CustomEnvironmentId: pulumi.String("string"),
    	GitBranch:           pulumi.String("string"),
    	Redirect:            pulumi.String("string"),
    	RedirectStatusCode:  pulumi.Int(0),
    	TeamId:              pulumi.String("string"),
    })
    
    var projectDomainResource = new ProjectDomain("projectDomainResource", ProjectDomainArgs.builder()
        .domain("string")
        .projectId("string")
        .customEnvironmentId("string")
        .gitBranch("string")
        .redirect("string")
        .redirectStatusCode(0)
        .teamId("string")
        .build());
    
    project_domain_resource = vercel.ProjectDomain("projectDomainResource",
        domain="string",
        project_id="string",
        custom_environment_id="string",
        git_branch="string",
        redirect="string",
        redirect_status_code=0,
        team_id="string")
    
    const projectDomainResource = new vercel.ProjectDomain("projectDomainResource", {
        domain: "string",
        projectId: "string",
        customEnvironmentId: "string",
        gitBranch: "string",
        redirect: "string",
        redirectStatusCode: 0,
        teamId: "string",
    });
    
    type: vercel:ProjectDomain
    properties:
        customEnvironmentId: string
        domain: string
        gitBranch: string
        projectId: string
        redirect: string
        redirectStatusCode: 0
        teamId: string
    

    ProjectDomain 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 ProjectDomain resource accepts the following input properties:

    Domain string
    The domain name to associate with the project.
    ProjectId string
    The project ID to add the deployment to.
    CustomEnvironmentId string
    The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
    GitBranch string
    Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name.
    Redirect string
    The domain name that serves as a target destination for redirects.
    RedirectStatusCode int
    The HTTP status code to use when serving as a redirect.
    TeamId string
    The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.
    Domain string
    The domain name to associate with the project.
    ProjectId string
    The project ID to add the deployment to.
    CustomEnvironmentId string
    The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
    GitBranch string
    Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name.
    Redirect string
    The domain name that serves as a target destination for redirects.
    RedirectStatusCode int
    The HTTP status code to use when serving as a redirect.
    TeamId string
    The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.
    domain String
    The domain name to associate with the project.
    projectId String
    The project ID to add the deployment to.
    customEnvironmentId String
    The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
    gitBranch String
    Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name.
    redirect String
    The domain name that serves as a target destination for redirects.
    redirectStatusCode Integer
    The HTTP status code to use when serving as a redirect.
    teamId String
    The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.
    domain string
    The domain name to associate with the project.
    projectId string
    The project ID to add the deployment to.
    customEnvironmentId string
    The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
    gitBranch string
    Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name.
    redirect string
    The domain name that serves as a target destination for redirects.
    redirectStatusCode number
    The HTTP status code to use when serving as a redirect.
    teamId string
    The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.
    domain str
    The domain name to associate with the project.
    project_id str
    The project ID to add the deployment to.
    custom_environment_id str
    The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
    git_branch str
    Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name.
    redirect str
    The domain name that serves as a target destination for redirects.
    redirect_status_code int
    The HTTP status code to use when serving as a redirect.
    team_id str
    The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.
    domain String
    The domain name to associate with the project.
    projectId String
    The project ID to add the deployment to.
    customEnvironmentId String
    The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
    gitBranch String
    Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name.
    redirect String
    The domain name that serves as a target destination for redirects.
    redirectStatusCode Number
    The HTTP status code to use when serving as a redirect.
    teamId String
    The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ProjectDomain 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ProjectDomain Resource

    Get an existing ProjectDomain 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?: ProjectDomainState, opts?: CustomResourceOptions): ProjectDomain
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            custom_environment_id: Optional[str] = None,
            domain: Optional[str] = None,
            git_branch: Optional[str] = None,
            project_id: Optional[str] = None,
            redirect: Optional[str] = None,
            redirect_status_code: Optional[int] = None,
            team_id: Optional[str] = None) -> ProjectDomain
    func GetProjectDomain(ctx *Context, name string, id IDInput, state *ProjectDomainState, opts ...ResourceOption) (*ProjectDomain, error)
    public static ProjectDomain Get(string name, Input<string> id, ProjectDomainState? state, CustomResourceOptions? opts = null)
    public static ProjectDomain get(String name, Output<String> id, ProjectDomainState state, CustomResourceOptions options)
    resources:  _:    type: vercel:ProjectDomain    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CustomEnvironmentId string
    The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
    Domain string
    The domain name to associate with the project.
    GitBranch string
    Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name.
    ProjectId string
    The project ID to add the deployment to.
    Redirect string
    The domain name that serves as a target destination for redirects.
    RedirectStatusCode int
    The HTTP status code to use when serving as a redirect.
    TeamId string
    The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.
    CustomEnvironmentId string
    The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
    Domain string
    The domain name to associate with the project.
    GitBranch string
    Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name.
    ProjectId string
    The project ID to add the deployment to.
    Redirect string
    The domain name that serves as a target destination for redirects.
    RedirectStatusCode int
    The HTTP status code to use when serving as a redirect.
    TeamId string
    The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.
    customEnvironmentId String
    The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
    domain String
    The domain name to associate with the project.
    gitBranch String
    Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name.
    projectId String
    The project ID to add the deployment to.
    redirect String
    The domain name that serves as a target destination for redirects.
    redirectStatusCode Integer
    The HTTP status code to use when serving as a redirect.
    teamId String
    The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.
    customEnvironmentId string
    The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
    domain string
    The domain name to associate with the project.
    gitBranch string
    Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name.
    projectId string
    The project ID to add the deployment to.
    redirect string
    The domain name that serves as a target destination for redirects.
    redirectStatusCode number
    The HTTP status code to use when serving as a redirect.
    teamId string
    The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.
    custom_environment_id str
    The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
    domain str
    The domain name to associate with the project.
    git_branch str
    Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name.
    project_id str
    The project ID to add the deployment to.
    redirect str
    The domain name that serves as a target destination for redirects.
    redirect_status_code int
    The HTTP status code to use when serving as a redirect.
    team_id str
    The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.
    customEnvironmentId String
    The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
    domain String
    The domain name to associate with the project.
    gitBranch String
    Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name.
    projectId String
    The project ID to add the deployment to.
    redirect String
    The domain name that serves as a target destination for redirects.
    redirectStatusCode Number
    The HTTP status code to use when serving as a redirect.
    teamId String
    The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.

    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 v1.15.0 published on Wednesday, Mar 19, 2025 by Pulumiverse