harness.platform.Variables
Resource for creating a Harness Variables.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Harness = Lbrlabs.PulumiPackage.Harness;
return await Deployment.RunAsync(() =>
{
var test = new Harness.Platform.Variables("test", new()
{
Identifier = "identifier",
OrgId = "org_id",
ProjectId = "project_id",
Spec = new Harness.Platform.Inputs.VariablesSpecArgs
{
FixedValue = "fixedValue",
ValueType = "FIXED",
},
Type = "String",
});
});
package main
import (
"github.com/lbrlabs/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.NewVariables(ctx, "test", &platform.VariablesArgs{
Identifier: pulumi.String("identifier"),
OrgId: pulumi.String("org_id"),
ProjectId: pulumi.String("project_id"),
Spec: &platform.VariablesSpecArgs{
FixedValue: pulumi.String("fixedValue"),
ValueType: pulumi.String("FIXED"),
},
Type: pulumi.String("String"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.Variables;
import com.pulumi.harness.platform.VariablesArgs;
import com.pulumi.harness.platform.inputs.VariablesSpecArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new Variables("test", VariablesArgs.builder()
.identifier("identifier")
.orgId("org_id")
.projectId("project_id")
.spec(VariablesSpecArgs.builder()
.fixedValue("fixedValue")
.valueType("FIXED")
.build())
.type("String")
.build());
}
}
import pulumi
import lbrlabs_pulumi_harness as harness
test = harness.platform.Variables("test",
identifier="identifier",
org_id="org_id",
project_id="project_id",
spec=harness.platform.VariablesSpecArgs(
fixed_value="fixedValue",
value_type="FIXED",
),
type="String")
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const test = new harness.platform.Variables("test", {
identifier: "identifier",
orgId: "org_id",
projectId: "project_id",
spec: {
fixedValue: "fixedValue",
valueType: "FIXED",
},
type: "String",
});
resources:
test:
type: harness:platform:Variables
properties:
identifier: identifier
orgId: org_id
projectId: project_id
spec:
fixedValue: fixedValue
valueType: FIXED
type: String
Create Variables Resource
new Variables(name: string, args: VariablesArgs, opts?: CustomResourceOptions);
@overload
def Variables(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
spec: Optional[VariablesSpecArgs] = None,
type: Optional[str] = None)
@overload
def Variables(resource_name: str,
args: VariablesArgs,
opts: Optional[ResourceOptions] = None)
func NewVariables(ctx *Context, name string, args VariablesArgs, opts ...ResourceOption) (*Variables, error)
public Variables(string name, VariablesArgs args, CustomResourceOptions? opts = null)
public Variables(String name, VariablesArgs args)
public Variables(String name, VariablesArgs args, CustomResourceOptions options)
type: harness:platform:Variables
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VariablesArgs
- 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 VariablesArgs
- 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 VariablesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VariablesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VariablesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Variables Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Variables resource accepts the following input properties:
- Identifier string
Unique identifier of the resource
- Spec
Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Variables Spec Args List of Spec Fields.
- Type string
Type of Variable
- Description string
Description of the entity
- Name string
Name of the Variable
- Org
Id string Organization Identifier for the Entity
- Project
Id string Project Identifier for the Entity
- Identifier string
Unique identifier of the resource
- Spec
Variables
Spec Args List of Spec Fields.
- Type string
Type of Variable
- Description string
Description of the entity
- Name string
Name of the Variable
- Org
Id string Organization Identifier for the Entity
- Project
Id string Project Identifier for the Entity
- identifier String
Unique identifier of the resource
- spec
Variables
Spec Args List of Spec Fields.
- type String
Type of Variable
- description String
Description of the entity
- name String
Name of the Variable
- org
Id String Organization Identifier for the Entity
- project
Id String Project Identifier for the Entity
- identifier string
Unique identifier of the resource
- spec
Variables
Spec Args List of Spec Fields.
- type string
Type of Variable
- description string
Description of the entity
- name string
Name of the Variable
- org
Id string Organization Identifier for the Entity
- project
Id string Project Identifier for the Entity
- identifier str
Unique identifier of the resource
- spec
Variables
Spec Args List of Spec Fields.
- type str
Type of Variable
- description str
Description of the entity
- name str
Name of the Variable
- org_
id str Organization Identifier for the Entity
- project_
id str Project Identifier for the Entity
- identifier String
Unique identifier of the resource
- spec Property Map
List of Spec Fields.
- type String
Type of Variable
- description String
Description of the entity
- name String
Name of the Variable
- org
Id String Organization Identifier for the Entity
- project
Id String Project Identifier for the Entity
Outputs
All input properties are implicitly available as output properties. Additionally, the Variables 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 Variables Resource
Get an existing Variables 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?: VariablesState, opts?: CustomResourceOptions): Variables
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
spec: Optional[VariablesSpecArgs] = None,
type: Optional[str] = None) -> Variables
func GetVariables(ctx *Context, name string, id IDInput, state *VariablesState, opts ...ResourceOption) (*Variables, error)
public static Variables Get(string name, Input<string> id, VariablesState? state, CustomResourceOptions? opts = null)
public static Variables get(String name, Output<String> id, VariablesState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Description string
Description of the entity
- Identifier string
Unique identifier of the resource
- Name string
Name of the Variable
- Org
Id string Organization Identifier for the Entity
- Project
Id string Project Identifier for the Entity
- Spec
Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Variables Spec Args List of Spec Fields.
- Type string
Type of Variable
- Description string
Description of the entity
- Identifier string
Unique identifier of the resource
- Name string
Name of the Variable
- Org
Id string Organization Identifier for the Entity
- Project
Id string Project Identifier for the Entity
- Spec
Variables
Spec Args List of Spec Fields.
- Type string
Type of Variable
- description String
Description of the entity
- identifier String
Unique identifier of the resource
- name String
Name of the Variable
- org
Id String Organization Identifier for the Entity
- project
Id String Project Identifier for the Entity
- spec
Variables
Spec Args List of Spec Fields.
- type String
Type of Variable
- description string
Description of the entity
- identifier string
Unique identifier of the resource
- name string
Name of the Variable
- org
Id string Organization Identifier for the Entity
- project
Id string Project Identifier for the Entity
- spec
Variables
Spec Args List of Spec Fields.
- type string
Type of Variable
- description str
Description of the entity
- identifier str
Unique identifier of the resource
- name str
Name of the Variable
- org_
id str Organization Identifier for the Entity
- project_
id str Project Identifier for the Entity
- spec
Variables
Spec Args List of Spec Fields.
- type str
Type of Variable
- description String
Description of the entity
- identifier String
Unique identifier of the resource
- name String
Name of the Variable
- org
Id String Organization Identifier for the Entity
- project
Id String Project Identifier for the Entity
- spec Property Map
List of Spec Fields.
- type String
Type of Variable
Supporting Types
VariablesSpec
- Fixed
Value string FixedValue of the variable
- Value
Type string Type of Value of the Variable. For now only FIXED is supported
- Fixed
Value string FixedValue of the variable
- Value
Type string Type of Value of the Variable. For now only FIXED is supported
- fixed
Value String FixedValue of the variable
- value
Type String Type of Value of the Variable. For now only FIXED is supported
- fixed
Value string FixedValue of the variable
- value
Type string Type of Value of the Variable. For now only FIXED is supported
- fixed_
value str FixedValue of the variable
- value_
type str Type of Value of the Variable. For now only FIXED is supported
- fixed
Value String FixedValue of the variable
- value
Type String Type of Value of the Variable. For now only FIXED is supported
Import
Import using user group id
$ pulumi import harness:platform/variables:Variables example <variable_id>
Package Details
- Repository
- harness lbrlabs/pulumi-harness
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
harness
Terraform Provider.