dbtcloud.PartialEnvironmentVariable
Explore with Pulumi AI
Example Usage
Create PartialEnvironmentVariable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PartialEnvironmentVariable(name: string, args: PartialEnvironmentVariableArgs, opts?: CustomResourceOptions);
@overload
def PartialEnvironmentVariable(resource_name: str,
args: PartialEnvironmentVariableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PartialEnvironmentVariable(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment_values: Optional[Mapping[str, str]] = None,
project_id: Optional[int] = None,
name: Optional[str] = None)
func NewPartialEnvironmentVariable(ctx *Context, name string, args PartialEnvironmentVariableArgs, opts ...ResourceOption) (*PartialEnvironmentVariable, error)
public PartialEnvironmentVariable(string name, PartialEnvironmentVariableArgs args, CustomResourceOptions? opts = null)
public PartialEnvironmentVariable(String name, PartialEnvironmentVariableArgs args)
public PartialEnvironmentVariable(String name, PartialEnvironmentVariableArgs args, CustomResourceOptions options)
type: dbtcloud:PartialEnvironmentVariable
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 PartialEnvironmentVariableArgs
- 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 PartialEnvironmentVariableArgs
- 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 PartialEnvironmentVariableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PartialEnvironmentVariableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PartialEnvironmentVariableArgs
- 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 partialEnvironmentVariableResource = new DbtCloud.PartialEnvironmentVariable("partialEnvironmentVariableResource", new()
{
EnvironmentValues =
{
{ "string", "string" },
},
ProjectId = 0,
Name = "string",
});
example, err := dbtcloud.NewPartialEnvironmentVariable(ctx, "partialEnvironmentVariableResource", &dbtcloud.PartialEnvironmentVariableArgs{
EnvironmentValues: pulumi.StringMap{
"string": pulumi.String("string"),
},
ProjectId: pulumi.Int(0),
Name: pulumi.String("string"),
})
var partialEnvironmentVariableResource = new PartialEnvironmentVariable("partialEnvironmentVariableResource", PartialEnvironmentVariableArgs.builder()
.environmentValues(Map.of("string", "string"))
.projectId(0)
.name("string")
.build());
partial_environment_variable_resource = dbtcloud.PartialEnvironmentVariable("partialEnvironmentVariableResource",
environment_values={
"string": "string",
},
project_id=0,
name="string")
const partialEnvironmentVariableResource = new dbtcloud.PartialEnvironmentVariable("partialEnvironmentVariableResource", {
environmentValues: {
string: "string",
},
projectId: 0,
name: "string",
});
type: dbtcloud:PartialEnvironmentVariable
properties:
environmentValues:
string: string
name: string
projectId: 0
PartialEnvironmentVariable 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 PartialEnvironmentVariable resource accepts the following input properties:
- Environment
Values Dictionary<string, string> - Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
- Project
Id int - Project ID to create or update the environment variable in
- Name string
- Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
- Environment
Values map[string]string - Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
- Project
Id int - Project ID to create or update the environment variable in
- Name string
- Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
- environment
Values Map<String,String> - Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
- project
Id Integer - Project ID to create or update the environment variable in
- name String
- Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
- environment
Values {[key: string]: string} - Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
- project
Id number - Project ID to create or update the environment variable in
- name string
- Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
- environment_
values Mapping[str, str] - Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
- project_
id int - Project ID to create or update the environment variable in
- name str
- Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
- environment
Values Map<String> - Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
- project
Id Number - Project ID to create or update the environment variable in
- name String
- Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
Outputs
All input properties are implicitly available as output properties. Additionally, the PartialEnvironmentVariable 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 PartialEnvironmentVariable Resource
Get an existing PartialEnvironmentVariable 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?: PartialEnvironmentVariableState, opts?: CustomResourceOptions): PartialEnvironmentVariable
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
environment_values: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project_id: Optional[int] = None) -> PartialEnvironmentVariable
func GetPartialEnvironmentVariable(ctx *Context, name string, id IDInput, state *PartialEnvironmentVariableState, opts ...ResourceOption) (*PartialEnvironmentVariable, error)
public static PartialEnvironmentVariable Get(string name, Input<string> id, PartialEnvironmentVariableState? state, CustomResourceOptions? opts = null)
public static PartialEnvironmentVariable get(String name, Output<String> id, PartialEnvironmentVariableState state, CustomResourceOptions options)
resources: _: type: dbtcloud:PartialEnvironmentVariable 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.
- Environment
Values Dictionary<string, string> - Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
- Name string
- Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
- Project
Id int - Project ID to create or update the environment variable in
- Environment
Values map[string]string - Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
- Name string
- Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
- Project
Id int - Project ID to create or update the environment variable in
- environment
Values Map<String,String> - Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
- name String
- Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
- project
Id Integer - Project ID to create or update the environment variable in
- environment
Values {[key: string]: string} - Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
- name string
- Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
- project
Id number - Project ID to create or update the environment variable in
- environment_
values Mapping[str, str] - Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
- name str
- Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
- project_
id int - Project ID to create or update the environment variable in
- environment
Values Map<String> - Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
- name String
- Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
- project
Id Number - Project ID to create or update the environment variable in
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dbtcloud
Terraform Provider.