vercel.SharedEnvironmentVariable
Explore with Pulumi AI
Create SharedEnvironmentVariable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SharedEnvironmentVariable(name: string, args: SharedEnvironmentVariableArgs, opts?: CustomResourceOptions);
@overload
def SharedEnvironmentVariable(resource_name: str,
args: SharedEnvironmentVariableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SharedEnvironmentVariable(resource_name: str,
opts: Optional[ResourceOptions] = None,
key: Optional[str] = None,
project_ids: Optional[Sequence[str]] = None,
targets: Optional[Sequence[str]] = None,
value: Optional[str] = None,
comment: Optional[str] = None,
sensitive: Optional[bool] = None,
team_id: Optional[str] = None)
func NewSharedEnvironmentVariable(ctx *Context, name string, args SharedEnvironmentVariableArgs, opts ...ResourceOption) (*SharedEnvironmentVariable, error)
public SharedEnvironmentVariable(string name, SharedEnvironmentVariableArgs args, CustomResourceOptions? opts = null)
public SharedEnvironmentVariable(String name, SharedEnvironmentVariableArgs args)
public SharedEnvironmentVariable(String name, SharedEnvironmentVariableArgs args, CustomResourceOptions options)
type: vercel:SharedEnvironmentVariable
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 SharedEnvironmentVariableArgs
- 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 SharedEnvironmentVariableArgs
- 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 SharedEnvironmentVariableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SharedEnvironmentVariableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SharedEnvironmentVariableArgs
- 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 sharedEnvironmentVariableResource = new Vercel.SharedEnvironmentVariable("sharedEnvironmentVariableResource", new()
{
Key = "string",
ProjectIds = new[]
{
"string",
},
Targets = new[]
{
"string",
},
Value = "string",
Comment = "string",
Sensitive = false,
TeamId = "string",
});
example, err := vercel.NewSharedEnvironmentVariable(ctx, "sharedEnvironmentVariableResource", &vercel.SharedEnvironmentVariableArgs{
Key: pulumi.String("string"),
ProjectIds: pulumi.StringArray{
pulumi.String("string"),
},
Targets: pulumi.StringArray{
pulumi.String("string"),
},
Value: pulumi.String("string"),
Comment: pulumi.String("string"),
Sensitive: pulumi.Bool(false),
TeamId: pulumi.String("string"),
})
var sharedEnvironmentVariableResource = new SharedEnvironmentVariable("sharedEnvironmentVariableResource", SharedEnvironmentVariableArgs.builder()
.key("string")
.projectIds("string")
.targets("string")
.value("string")
.comment("string")
.sensitive(false)
.teamId("string")
.build());
shared_environment_variable_resource = vercel.SharedEnvironmentVariable("sharedEnvironmentVariableResource",
key="string",
project_ids=["string"],
targets=["string"],
value="string",
comment="string",
sensitive=False,
team_id="string")
const sharedEnvironmentVariableResource = new vercel.SharedEnvironmentVariable("sharedEnvironmentVariableResource", {
key: "string",
projectIds: ["string"],
targets: ["string"],
value: "string",
comment: "string",
sensitive: false,
teamId: "string",
});
type: vercel:SharedEnvironmentVariable
properties:
comment: string
key: string
projectIds:
- string
sensitive: false
targets:
- string
teamId: string
value: string
SharedEnvironmentVariable 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 SharedEnvironmentVariable resource accepts the following input properties:
- Key string
- The name of the Environment Variable.
- Project
Ids List<string> - The ID of the Vercel project.
- Targets List<string>
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. - Value string
- The value of the Environment Variable.
- Comment string
- A comment explaining what the environment variable is for.
- Sensitive bool
- Whether the Environment Variable is sensitive or not. (May be affected by a team-wide environment variable policy)
- Team
Id string - The ID of the Vercel team. Shared environment variables require a team.
- Key string
- The name of the Environment Variable.
- Project
Ids []string - The ID of the Vercel project.
- Targets []string
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. - Value string
- The value of the Environment Variable.
- Comment string
- A comment explaining what the environment variable is for.
- Sensitive bool
- Whether the Environment Variable is sensitive or not. (May be affected by a team-wide environment variable policy)
- Team
Id string - The ID of the Vercel team. Shared environment variables require a team.
- key String
- The name of the Environment Variable.
- project
Ids List<String> - The ID of the Vercel project.
- targets List<String>
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. - value String
- The value of the Environment Variable.
- comment String
- A comment explaining what the environment variable is for.
- sensitive Boolean
- Whether the Environment Variable is sensitive or not. (May be affected by a team-wide environment variable policy)
- team
Id String - The ID of the Vercel team. Shared environment variables require a team.
- key string
- The name of the Environment Variable.
- project
Ids string[] - The ID of the Vercel project.
- targets string[]
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. - value string
- The value of the Environment Variable.
- comment string
- A comment explaining what the environment variable is for.
- sensitive boolean
- Whether the Environment Variable is sensitive or not. (May be affected by a team-wide environment variable policy)
- team
Id string - The ID of the Vercel team. Shared environment variables require a team.
- key str
- The name of the Environment Variable.
- project_
ids Sequence[str] - The ID of the Vercel project.
- targets Sequence[str]
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. - value str
- The value of the Environment Variable.
- comment str
- A comment explaining what the environment variable is for.
- sensitive bool
- Whether the Environment Variable is sensitive or not. (May be affected by a team-wide environment variable policy)
- team_
id str - The ID of the Vercel team. Shared environment variables require a team.
- key String
- The name of the Environment Variable.
- project
Ids List<String> - The ID of the Vercel project.
- targets List<String>
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. - value String
- The value of the Environment Variable.
- comment String
- A comment explaining what the environment variable is for.
- sensitive Boolean
- Whether the Environment Variable is sensitive or not. (May be affected by a team-wide environment variable policy)
- team
Id String - The ID of the Vercel team. Shared environment variables require a team.
Outputs
All input properties are implicitly available as output properties. Additionally, the SharedEnvironmentVariable 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 SharedEnvironmentVariable Resource
Get an existing SharedEnvironmentVariable 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?: SharedEnvironmentVariableState, opts?: CustomResourceOptions): SharedEnvironmentVariable
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
key: Optional[str] = None,
project_ids: Optional[Sequence[str]] = None,
sensitive: Optional[bool] = None,
targets: Optional[Sequence[str]] = None,
team_id: Optional[str] = None,
value: Optional[str] = None) -> SharedEnvironmentVariable
func GetSharedEnvironmentVariable(ctx *Context, name string, id IDInput, state *SharedEnvironmentVariableState, opts ...ResourceOption) (*SharedEnvironmentVariable, error)
public static SharedEnvironmentVariable Get(string name, Input<string> id, SharedEnvironmentVariableState? state, CustomResourceOptions? opts = null)
public static SharedEnvironmentVariable get(String name, Output<String> id, SharedEnvironmentVariableState state, CustomResourceOptions options)
resources: _: type: vercel:SharedEnvironmentVariable 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.
- Comment string
- A comment explaining what the environment variable is for.
- Key string
- The name of the Environment Variable.
- Project
Ids List<string> - The ID of the Vercel project.
- Sensitive bool
- Whether the Environment Variable is sensitive or not. (May be affected by a team-wide environment variable policy)
- Targets List<string>
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. - Team
Id string - The ID of the Vercel team. Shared environment variables require a team.
- Value string
- The value of the Environment Variable.
- Comment string
- A comment explaining what the environment variable is for.
- Key string
- The name of the Environment Variable.
- Project
Ids []string - The ID of the Vercel project.
- Sensitive bool
- Whether the Environment Variable is sensitive or not. (May be affected by a team-wide environment variable policy)
- Targets []string
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. - Team
Id string - The ID of the Vercel team. Shared environment variables require a team.
- Value string
- The value of the Environment Variable.
- comment String
- A comment explaining what the environment variable is for.
- key String
- The name of the Environment Variable.
- project
Ids List<String> - The ID of the Vercel project.
- sensitive Boolean
- Whether the Environment Variable is sensitive or not. (May be affected by a team-wide environment variable policy)
- targets List<String>
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. - team
Id String - The ID of the Vercel team. Shared environment variables require a team.
- value String
- The value of the Environment Variable.
- comment string
- A comment explaining what the environment variable is for.
- key string
- The name of the Environment Variable.
- project
Ids string[] - The ID of the Vercel project.
- sensitive boolean
- Whether the Environment Variable is sensitive or not. (May be affected by a team-wide environment variable policy)
- targets string[]
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. - team
Id string - The ID of the Vercel team. Shared environment variables require a team.
- value string
- The value of the Environment Variable.
- comment str
- A comment explaining what the environment variable is for.
- key str
- The name of the Environment Variable.
- project_
ids Sequence[str] - The ID of the Vercel project.
- sensitive bool
- Whether the Environment Variable is sensitive or not. (May be affected by a team-wide environment variable policy)
- targets Sequence[str]
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. - team_
id str - The ID of the Vercel team. Shared environment variables require a team.
- value str
- The value of the Environment Variable.
- comment String
- A comment explaining what the environment variable is for.
- key String
- The name of the Environment Variable.
- project
Ids List<String> - The ID of the Vercel project.
- sensitive Boolean
- Whether the Environment Variable is sensitive or not. (May be affected by a team-wide environment variable policy)
- targets List<String>
- The environments that the Environment Variable should be present on. Valid targets are either
production
,preview
, ordevelopment
. - team
Id String - The ID of the Vercel team. Shared environment variables require a team.
- value String
- The value of the Environment Variable.
Package Details
- Repository
- vercel pulumiverse/pulumi-vercel
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vercel
Terraform Provider.