vercel.ProjectEnvironmentVariables
Explore with Pulumi AI
Create ProjectEnvironmentVariables Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectEnvironmentVariables(name: string, args: ProjectEnvironmentVariablesArgs, opts?: CustomResourceOptions);
@overload
def ProjectEnvironmentVariables(resource_name: str,
args: ProjectEnvironmentVariablesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectEnvironmentVariables(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
variables: Optional[Sequence[ProjectEnvironmentVariablesVariableArgs]] = None,
team_id: Optional[str] = None)
func NewProjectEnvironmentVariables(ctx *Context, name string, args ProjectEnvironmentVariablesArgs, opts ...ResourceOption) (*ProjectEnvironmentVariables, error)
public ProjectEnvironmentVariables(string name, ProjectEnvironmentVariablesArgs args, CustomResourceOptions? opts = null)
public ProjectEnvironmentVariables(String name, ProjectEnvironmentVariablesArgs args)
public ProjectEnvironmentVariables(String name, ProjectEnvironmentVariablesArgs args, CustomResourceOptions options)
type: vercel:ProjectEnvironmentVariables
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 ProjectEnvironmentVariablesArgs
- 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 ProjectEnvironmentVariablesArgs
- 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 ProjectEnvironmentVariablesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectEnvironmentVariablesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectEnvironmentVariablesArgs
- 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 projectEnvironmentVariablesResource = new Vercel.ProjectEnvironmentVariables("projectEnvironmentVariablesResource", new()
{
ProjectId = "string",
Variables = new[]
{
new Vercel.Inputs.ProjectEnvironmentVariablesVariableArgs
{
Key = "string",
Value = "string",
Comment = "string",
CustomEnvironmentIds = new[]
{
"string",
},
GitBranch = "string",
Id = "string",
Sensitive = false,
Targets = new[]
{
"string",
},
},
},
TeamId = "string",
});
example, err := vercel.NewProjectEnvironmentVariables(ctx, "projectEnvironmentVariablesResource", &vercel.ProjectEnvironmentVariablesArgs{
ProjectId: pulumi.String("string"),
Variables: vercel.ProjectEnvironmentVariablesVariableArray{
&vercel.ProjectEnvironmentVariablesVariableArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
Comment: pulumi.String("string"),
CustomEnvironmentIds: pulumi.StringArray{
pulumi.String("string"),
},
GitBranch: pulumi.String("string"),
Id: pulumi.String("string"),
Sensitive: pulumi.Bool(false),
Targets: pulumi.StringArray{
pulumi.String("string"),
},
},
},
TeamId: pulumi.String("string"),
})
var projectEnvironmentVariablesResource = new ProjectEnvironmentVariables("projectEnvironmentVariablesResource", ProjectEnvironmentVariablesArgs.builder()
.projectId("string")
.variables(ProjectEnvironmentVariablesVariableArgs.builder()
.key("string")
.value("string")
.comment("string")
.customEnvironmentIds("string")
.gitBranch("string")
.id("string")
.sensitive(false)
.targets("string")
.build())
.teamId("string")
.build());
project_environment_variables_resource = vercel.ProjectEnvironmentVariables("projectEnvironmentVariablesResource",
project_id="string",
variables=[{
"key": "string",
"value": "string",
"comment": "string",
"custom_environment_ids": ["string"],
"git_branch": "string",
"id": "string",
"sensitive": False,
"targets": ["string"],
}],
team_id="string")
const projectEnvironmentVariablesResource = new vercel.ProjectEnvironmentVariables("projectEnvironmentVariablesResource", {
projectId: "string",
variables: [{
key: "string",
value: "string",
comment: "string",
customEnvironmentIds: ["string"],
gitBranch: "string",
id: "string",
sensitive: false,
targets: ["string"],
}],
teamId: "string",
});
type: vercel:ProjectEnvironmentVariables
properties:
projectId: string
teamId: string
variables:
- comment: string
customEnvironmentIds:
- string
gitBranch: string
id: string
key: string
sensitive: false
targets:
- string
value: string
ProjectEnvironmentVariables 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 ProjectEnvironmentVariables resource accepts the following input properties:
- Project
Id string - The ID of the Vercel project.
- Variables
List<Pulumiverse.
Vercel. Inputs. Project Environment Variables Variable> - A set of Environment Variables that should be configured for the project.
- Team
Id string - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- Project
Id string - The ID of the Vercel project.
- Variables
[]Project
Environment Variables Variable Args - A set of Environment Variables that should be configured for the project.
- Team
Id string - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- project
Id String - The ID of the Vercel project.
- variables
List<Project
Environment Variables Variable> - A set of Environment Variables that should be configured for the project.
- team
Id String - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- project
Id string - The ID of the Vercel project.
- variables
Project
Environment Variables Variable[] - A set of Environment Variables that should be configured for the project.
- team
Id string - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- project_
id str - The ID of the Vercel project.
- variables
Sequence[Project
Environment Variables Variable Args] - A set of Environment Variables that should be configured for the project.
- team_
id str - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- project
Id String - The ID of the Vercel project.
- variables List<Property Map>
- A set of Environment Variables that should be configured for the project.
- team
Id String - The ID of the Vercel team. 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 ProjectEnvironmentVariables 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 ProjectEnvironmentVariables Resource
Get an existing ProjectEnvironmentVariables 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?: ProjectEnvironmentVariablesState, opts?: CustomResourceOptions): ProjectEnvironmentVariables
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
team_id: Optional[str] = None,
variables: Optional[Sequence[ProjectEnvironmentVariablesVariableArgs]] = None) -> ProjectEnvironmentVariables
func GetProjectEnvironmentVariables(ctx *Context, name string, id IDInput, state *ProjectEnvironmentVariablesState, opts ...ResourceOption) (*ProjectEnvironmentVariables, error)
public static ProjectEnvironmentVariables Get(string name, Input<string> id, ProjectEnvironmentVariablesState? state, CustomResourceOptions? opts = null)
public static ProjectEnvironmentVariables get(String name, Output<String> id, ProjectEnvironmentVariablesState state, CustomResourceOptions options)
resources: _: type: vercel:ProjectEnvironmentVariables 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.
- Project
Id string - The ID of the Vercel project.
- Team
Id string - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- Variables
List<Pulumiverse.
Vercel. Inputs. Project Environment Variables Variable> - A set of Environment Variables that should be configured for the project.
- Project
Id string - The ID of the Vercel project.
- Team
Id string - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- Variables
[]Project
Environment Variables Variable Args - A set of Environment Variables that should be configured for the project.
- project
Id String - The ID of the Vercel project.
- team
Id String - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- variables
List<Project
Environment Variables Variable> - A set of Environment Variables that should be configured for the project.
- project
Id string - The ID of the Vercel project.
- team
Id string - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- variables
Project
Environment Variables Variable[] - A set of Environment Variables that should be configured for the project.
- project_
id str - The ID of the Vercel project.
- team_
id str - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- variables
Sequence[Project
Environment Variables Variable Args] - A set of Environment Variables that should be configured for the project.
- project
Id String - The ID of the Vercel project.
- team
Id String - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- variables List<Property Map>
- A set of Environment Variables that should be configured for the project.
Supporting Types
ProjectEnvironmentVariablesVariable, ProjectEnvironmentVariablesVariableArgs
- Key string
- The name of the Environment Variable.
- Value string
- The value of the Environment Variable.
- Comment string
- A comment explaining what the environment variable is for.
- Custom
Environment List<string>Ids - The IDs of Custom Environments that the Environment Variable should be present on. At least one of
target
orcustom_environment_ids
must be set. - Git
Branch string - The git branch of the Environment Variable.
- Id string
- The ID of the Environment Variable.
- Sensitive bool
- Whether the Environment Variable is sensitive or not.
- Targets List<string>
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. At least one oftarget
orcustom_environment_ids
must be set.
- Key string
- The name of the Environment Variable.
- Value string
- The value of the Environment Variable.
- Comment string
- A comment explaining what the environment variable is for.
- Custom
Environment []stringIds - The IDs of Custom Environments that the Environment Variable should be present on. At least one of
target
orcustom_environment_ids
must be set. - Git
Branch string - The git branch of the Environment Variable.
- Id string
- The ID of the Environment Variable.
- Sensitive bool
- Whether the Environment Variable is sensitive or not.
- Targets []string
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. At least one oftarget
orcustom_environment_ids
must be set.
- key String
- The name of the Environment Variable.
- value String
- The value of the Environment Variable.
- comment String
- A comment explaining what the environment variable is for.
- custom
Environment List<String>Ids - The IDs of Custom Environments that the Environment Variable should be present on. At least one of
target
orcustom_environment_ids
must be set. - git
Branch String - The git branch of the Environment Variable.
- id String
- The ID of the Environment Variable.
- sensitive Boolean
- Whether the Environment Variable is sensitive or not.
- targets List<String>
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. At least one oftarget
orcustom_environment_ids
must be set.
- key string
- The name of the Environment Variable.
- value string
- The value of the Environment Variable.
- comment string
- A comment explaining what the environment variable is for.
- custom
Environment string[]Ids - The IDs of Custom Environments that the Environment Variable should be present on. At least one of
target
orcustom_environment_ids
must be set. - git
Branch string - The git branch of the Environment Variable.
- id string
- The ID of the Environment Variable.
- sensitive boolean
- Whether the Environment Variable is sensitive or not.
- targets string[]
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. At least one oftarget
orcustom_environment_ids
must be set.
- key str
- The name of the Environment Variable.
- value str
- The value of the Environment Variable.
- comment str
- A comment explaining what the environment variable is for.
- custom_
environment_ Sequence[str]ids - The IDs of Custom Environments that the Environment Variable should be present on. At least one of
target
orcustom_environment_ids
must be set. - git_
branch str - The git branch of the Environment Variable.
- id str
- The ID of the Environment Variable.
- sensitive bool
- Whether the Environment Variable is sensitive or not.
- targets Sequence[str]
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. At least one oftarget
orcustom_environment_ids
must be set.
- key String
- The name of the Environment Variable.
- value String
- The value of the Environment Variable.
- comment String
- A comment explaining what the environment variable is for.
- custom
Environment List<String>Ids - The IDs of Custom Environments that the Environment Variable should be present on. At least one of
target
orcustom_environment_ids
must be set. - git
Branch String - The git branch of the Environment Variable.
- id String
- The ID of the Environment Variable.
- sensitive Boolean
- Whether the Environment Variable is sensitive or not.
- targets List<String>
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. At least one oftarget
orcustom_environment_ids
must be set.
Package Details
- Repository
- vercel pulumiverse/pulumi-vercel
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vercel
Terraform Provider.