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

vercel.CustomEnvironment

Explore with Pulumi AI

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

    Create CustomEnvironment Resource

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

    Constructor syntax

    new CustomEnvironment(name: string, args: CustomEnvironmentArgs, opts?: CustomResourceOptions);
    @overload
    def CustomEnvironment(resource_name: str,
                          args: CustomEnvironmentArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def CustomEnvironment(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          project_id: Optional[str] = None,
                          branch_tracking: Optional[CustomEnvironmentBranchTrackingArgs] = None,
                          description: Optional[str] = None,
                          name: Optional[str] = None,
                          team_id: Optional[str] = None)
    func NewCustomEnvironment(ctx *Context, name string, args CustomEnvironmentArgs, opts ...ResourceOption) (*CustomEnvironment, error)
    public CustomEnvironment(string name, CustomEnvironmentArgs args, CustomResourceOptions? opts = null)
    public CustomEnvironment(String name, CustomEnvironmentArgs args)
    public CustomEnvironment(String name, CustomEnvironmentArgs args, CustomResourceOptions options)
    
    type: vercel:CustomEnvironment
    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 CustomEnvironmentArgs
    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 CustomEnvironmentArgs
    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 CustomEnvironmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CustomEnvironmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CustomEnvironmentArgs
    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 customEnvironmentResource = new Vercel.CustomEnvironment("customEnvironmentResource", new()
    {
        ProjectId = "string",
        BranchTracking = new Vercel.Inputs.CustomEnvironmentBranchTrackingArgs
        {
            Pattern = "string",
            Type = "string",
        },
        Description = "string",
        Name = "string",
        TeamId = "string",
    });
    
    example, err := vercel.NewCustomEnvironment(ctx, "customEnvironmentResource", &vercel.CustomEnvironmentArgs{
    	ProjectId: pulumi.String("string"),
    	BranchTracking: &vercel.CustomEnvironmentBranchTrackingArgs{
    		Pattern: pulumi.String("string"),
    		Type:    pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	TeamId:      pulumi.String("string"),
    })
    
    var customEnvironmentResource = new CustomEnvironment("customEnvironmentResource", CustomEnvironmentArgs.builder()
        .projectId("string")
        .branchTracking(CustomEnvironmentBranchTrackingArgs.builder()
            .pattern("string")
            .type("string")
            .build())
        .description("string")
        .name("string")
        .teamId("string")
        .build());
    
    custom_environment_resource = vercel.CustomEnvironment("customEnvironmentResource",
        project_id="string",
        branch_tracking={
            "pattern": "string",
            "type": "string",
        },
        description="string",
        name="string",
        team_id="string")
    
    const customEnvironmentResource = new vercel.CustomEnvironment("customEnvironmentResource", {
        projectId: "string",
        branchTracking: {
            pattern: "string",
            type: "string",
        },
        description: "string",
        name: "string",
        teamId: "string",
    });
    
    type: vercel:CustomEnvironment
    properties:
        branchTracking:
            pattern: string
            type: string
        description: string
        name: string
        projectId: string
        teamId: string
    

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

    ProjectId string
    The ID of the existing Vercel Project.
    BranchTracking Pulumiverse.Vercel.Inputs.CustomEnvironmentBranchTracking
    The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
    Description string
    A description of what the environment is.
    Name string
    The name of the environment.
    TeamId string
    The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
    ProjectId string
    The ID of the existing Vercel Project.
    BranchTracking CustomEnvironmentBranchTrackingArgs
    The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
    Description string
    A description of what the environment is.
    Name string
    The name of the environment.
    TeamId string
    The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
    projectId String
    The ID of the existing Vercel Project.
    branchTracking CustomEnvironmentBranchTracking
    The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
    description String
    A description of what the environment is.
    name String
    The name of the environment.
    teamId String
    The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
    projectId string
    The ID of the existing Vercel Project.
    branchTracking CustomEnvironmentBranchTracking
    The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
    description string
    A description of what the environment is.
    name string
    The name of the environment.
    teamId string
    The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
    project_id str
    The ID of the existing Vercel Project.
    branch_tracking CustomEnvironmentBranchTrackingArgs
    The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
    description str
    A description of what the environment is.
    name str
    The name of the environment.
    team_id str
    The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
    projectId String
    The ID of the existing Vercel Project.
    branchTracking Property Map
    The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
    description String
    A description of what the environment is.
    name String
    The name of the environment.
    teamId String
    The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CustomEnvironment 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 CustomEnvironment Resource

    Get an existing CustomEnvironment 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?: CustomEnvironmentState, opts?: CustomResourceOptions): CustomEnvironment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            branch_tracking: Optional[CustomEnvironmentBranchTrackingArgs] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            team_id: Optional[str] = None) -> CustomEnvironment
    func GetCustomEnvironment(ctx *Context, name string, id IDInput, state *CustomEnvironmentState, opts ...ResourceOption) (*CustomEnvironment, error)
    public static CustomEnvironment Get(string name, Input<string> id, CustomEnvironmentState? state, CustomResourceOptions? opts = null)
    public static CustomEnvironment get(String name, Output<String> id, CustomEnvironmentState state, CustomResourceOptions options)
    resources:  _:    type: vercel:CustomEnvironment    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:
    BranchTracking Pulumiverse.Vercel.Inputs.CustomEnvironmentBranchTracking
    The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
    Description string
    A description of what the environment is.
    Name string
    The name of the environment.
    ProjectId string
    The ID of the existing Vercel Project.
    TeamId string
    The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
    BranchTracking CustomEnvironmentBranchTrackingArgs
    The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
    Description string
    A description of what the environment is.
    Name string
    The name of the environment.
    ProjectId string
    The ID of the existing Vercel Project.
    TeamId string
    The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
    branchTracking CustomEnvironmentBranchTracking
    The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
    description String
    A description of what the environment is.
    name String
    The name of the environment.
    projectId String
    The ID of the existing Vercel Project.
    teamId String
    The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
    branchTracking CustomEnvironmentBranchTracking
    The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
    description string
    A description of what the environment is.
    name string
    The name of the environment.
    projectId string
    The ID of the existing Vercel Project.
    teamId string
    The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
    branch_tracking CustomEnvironmentBranchTrackingArgs
    The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
    description str
    A description of what the environment is.
    name str
    The name of the environment.
    project_id str
    The ID of the existing Vercel Project.
    team_id str
    The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
    branchTracking Property Map
    The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
    description String
    A description of what the environment is.
    name String
    The name of the environment.
    projectId String
    The ID of the existing Vercel Project.
    teamId String
    The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.

    Supporting Types

    CustomEnvironmentBranchTracking, CustomEnvironmentBranchTrackingArgs

    Pattern string
    The pattern of the branch name to track.
    Type string
    How a branch name should be matched against the pattern. Must be one of 'startsWith', 'endsWith' or 'equals'.
    Pattern string
    The pattern of the branch name to track.
    Type string
    How a branch name should be matched against the pattern. Must be one of 'startsWith', 'endsWith' or 'equals'.
    pattern String
    The pattern of the branch name to track.
    type String
    How a branch name should be matched against the pattern. Must be one of 'startsWith', 'endsWith' or 'equals'.
    pattern string
    The pattern of the branch name to track.
    type string
    How a branch name should be matched against the pattern. Must be one of 'startsWith', 'endsWith' or 'equals'.
    pattern str
    The pattern of the branch name to track.
    type str
    How a branch name should be matched against the pattern. Must be one of 'startsWith', 'endsWith' or 'equals'.
    pattern String
    The pattern of the branch name to track.
    type String
    How a branch name should be matched against the pattern. Must be one of 'startsWith', 'endsWith' or 'equals'.

    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