harness logo
Harness v0.0.5, Oct 31 22

harness.platform.InputSet

Resource for creating a Harness Resource Group

Example Usage

using System.Collections.Generic;
using Pulumi;
using Harness = Lbrlabs.PulumiPackage.Harness;

return await Deployment.RunAsync(() => 
{
    var example = new Harness.Platform.InputSet("example", new()
    {
        Identifier = "identifier",
        OrgId = "org_id",
        PipelineId = "pipeline_id",
        ProjectId = "project_id",
        Tags = new[]
        {
            "foo:bar",
        },
        Yaml = @"    inputSet:
      identifier: ""identifier""
      name: ""name""
      tags:
        foo: ""bar""
      orgIdentifier: ""org_id""
      projectIdentifier: ""project_id""
      pipeline:
        identifier: ""pipeline_id""
        variables:
        - name: ""key""
          type: ""String""
          value: ""value""

",
    });

});
package main

import (
	"fmt"

	"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.NewInputSet(ctx, "example", &platform.InputSetArgs{
			Identifier: pulumi.String("identifier"),
			OrgId:      pulumi.String("org_id"),
			PipelineId: pulumi.String("pipeline_id"),
			ProjectId:  pulumi.String("project_id"),
			Tags: pulumi.StringArray{
				pulumi.String("foo:bar"),
			},
			Yaml: pulumi.String(fmt.Sprintf(`    inputSet:
      identifier: "identifier"
      name: "name"
      tags:
        foo: "bar"
      orgIdentifier: "org_id"
      projectIdentifier: "project_id"
      pipeline:
        identifier: "pipeline_id"
        variables:
        - name: "key"
          type: "String"
          value: "value"

`)),
		})
		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.InputSet;
import com.pulumi.harness.platform.InputSetArgs;
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 example = new InputSet("example", InputSetArgs.builder()        
            .identifier("identifier")
            .orgId("org_id")
            .pipelineId("pipeline_id")
            .projectId("project_id")
            .tags("foo:bar")
            .yaml("""
    inputSet:
      identifier: "identifier"
      name: "name"
      tags:
        foo: "bar"
      orgIdentifier: "org_id"
      projectIdentifier: "project_id"
      pipeline:
        identifier: "pipeline_id"
        variables:
        - name: "key"
          type: "String"
          value: "value"

            """)
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_harness as harness

example = harness.platform.InputSet("example",
    identifier="identifier",
    org_id="org_id",
    pipeline_id="pipeline_id",
    project_id="project_id",
    tags=["foo:bar"],
    yaml="""    inputSet:
      identifier: "identifier"
      name: "name"
      tags:
        foo: "bar"
      orgIdentifier: "org_id"
      projectIdentifier: "project_id"
      pipeline:
        identifier: "pipeline_id"
        variables:
        - name: "key"
          type: "String"
          value: "value"

""")
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";

const example = new harness.platform.InputSet("example", {
    identifier: "identifier",
    orgId: "org_id",
    pipelineId: "pipeline_id",
    projectId: "project_id",
    tags: ["foo:bar"],
    yaml: `    inputSet:
      identifier: "identifier"
      name: "name"
      tags:
        foo: "bar"
      orgIdentifier: "org_id"
      projectIdentifier: "project_id"
      pipeline:
        identifier: "pipeline_id"
        variables:
        - name: "key"
          type: "String"
          value: "value"
`,
});
resources:
  example:
    type: harness:platform:InputSet
    properties:
      identifier: identifier
      orgId: org_id
      pipelineId: pipeline_id
      projectId: project_id
      tags:
        - foo:bar
      yaml: |2+
            inputSet:
              identifier: "identifier"
              name: "name"
              tags:
                foo: "bar"
              orgIdentifier: "org_id"
              projectIdentifier: "project_id"
              pipeline:
                identifier: "pipeline_id"
                variables:
                - name: "key"
                  type: "String"
                  value: "value"

Create InputSet Resource

new InputSet(name: string, args: InputSetArgs, opts?: CustomResourceOptions);
@overload
def InputSet(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             description: Optional[str] = None,
             identifier: Optional[str] = None,
             name: Optional[str] = None,
             org_id: Optional[str] = None,
             pipeline_id: Optional[str] = None,
             project_id: Optional[str] = None,
             tags: Optional[Sequence[str]] = None,
             yaml: Optional[str] = None)
@overload
def InputSet(resource_name: str,
             args: InputSetArgs,
             opts: Optional[ResourceOptions] = None)
func NewInputSet(ctx *Context, name string, args InputSetArgs, opts ...ResourceOption) (*InputSet, error)
public InputSet(string name, InputSetArgs args, CustomResourceOptions? opts = null)
public InputSet(String name, InputSetArgs args)
public InputSet(String name, InputSetArgs args, CustomResourceOptions options)
type: harness:platform:InputSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args InputSetArgs
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 InputSetArgs
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 InputSetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args InputSetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args InputSetArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Identifier string

Unique identifier of the resource.

PipelineId string

Identifier of the pipeline

Yaml string

Input Set YAML

Description string

Description of the resource.

Name string

Name of the resource.

OrgId string

Unique identifier of the Organization.

ProjectId string

Unique identifier of the Project.

Tags List<string>

Tags to associate with the resource. Tags should be in the form name:value.

Identifier string

Unique identifier of the resource.

PipelineId string

Identifier of the pipeline

Yaml string

Input Set YAML

Description string

Description of the resource.

Name string

Name of the resource.

OrgId string

Unique identifier of the Organization.

ProjectId string

Unique identifier of the Project.

Tags []string

Tags to associate with the resource. Tags should be in the form name:value.

identifier String

Unique identifier of the resource.

pipelineId String

Identifier of the pipeline

yaml String

Input Set YAML

description String

Description of the resource.

name String

Name of the resource.

orgId String

Unique identifier of the Organization.

projectId String

Unique identifier of the Project.

tags List<String>

Tags to associate with the resource. Tags should be in the form name:value.

identifier string

Unique identifier of the resource.

pipelineId string

Identifier of the pipeline

yaml string

Input Set YAML

description string

Description of the resource.

name string

Name of the resource.

orgId string

Unique identifier of the Organization.

projectId string

Unique identifier of the Project.

tags string[]

Tags to associate with the resource. Tags should be in the form name:value.

identifier str

Unique identifier of the resource.

pipeline_id str

Identifier of the pipeline

yaml str

Input Set YAML

description str

Description of the resource.

name str

Name of the resource.

org_id str

Unique identifier of the Organization.

project_id str

Unique identifier of the Project.

tags Sequence[str]

Tags to associate with the resource. Tags should be in the form name:value.

identifier String

Unique identifier of the resource.

pipelineId String

Identifier of the pipeline

yaml String

Input Set YAML

description String

Description of the resource.

name String

Name of the resource.

orgId String

Unique identifier of the Organization.

projectId String

Unique identifier of the Project.

tags List<String>

Tags to associate with the resource. Tags should be in the form name:value.

Outputs

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

Get an existing InputSet 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?: InputSetState, opts?: CustomResourceOptions): InputSet
@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,
        pipeline_id: Optional[str] = None,
        project_id: Optional[str] = None,
        tags: Optional[Sequence[str]] = None,
        yaml: Optional[str] = None) -> InputSet
func GetInputSet(ctx *Context, name string, id IDInput, state *InputSetState, opts ...ResourceOption) (*InputSet, error)
public static InputSet Get(string name, Input<string> id, InputSetState? state, CustomResourceOptions? opts = null)
public static InputSet get(String name, Output<String> id, InputSetState 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.
The following state arguments are supported:
Description string

Description of the resource.

Identifier string

Unique identifier of the resource.

Name string

Name of the resource.

OrgId string

Unique identifier of the Organization.

PipelineId string

Identifier of the pipeline

ProjectId string

Unique identifier of the Project.

Tags List<string>

Tags to associate with the resource. Tags should be in the form name:value.

Yaml string

Input Set YAML

Description string

Description of the resource.

Identifier string

Unique identifier of the resource.

Name string

Name of the resource.

OrgId string

Unique identifier of the Organization.

PipelineId string

Identifier of the pipeline

ProjectId string

Unique identifier of the Project.

Tags []string

Tags to associate with the resource. Tags should be in the form name:value.

Yaml string

Input Set YAML

description String

Description of the resource.

identifier String

Unique identifier of the resource.

name String

Name of the resource.

orgId String

Unique identifier of the Organization.

pipelineId String

Identifier of the pipeline

projectId String

Unique identifier of the Project.

tags List<String>

Tags to associate with the resource. Tags should be in the form name:value.

yaml String

Input Set YAML

description string

Description of the resource.

identifier string

Unique identifier of the resource.

name string

Name of the resource.

orgId string

Unique identifier of the Organization.

pipelineId string

Identifier of the pipeline

projectId string

Unique identifier of the Project.

tags string[]

Tags to associate with the resource. Tags should be in the form name:value.

yaml string

Input Set YAML

description str

Description of the resource.

identifier str

Unique identifier of the resource.

name str

Name of the resource.

org_id str

Unique identifier of the Organization.

pipeline_id str

Identifier of the pipeline

project_id str

Unique identifier of the Project.

tags Sequence[str]

Tags to associate with the resource. Tags should be in the form name:value.

yaml str

Input Set YAML

description String

Description of the resource.

identifier String

Unique identifier of the resource.

name String

Name of the resource.

orgId String

Unique identifier of the Organization.

pipelineId String

Identifier of the pipeline

projectId String

Unique identifier of the Project.

tags List<String>

Tags to associate with the resource. Tags should be in the form name:value.

yaml String

Input Set YAML

Import

Import using input set id

 $ pulumi import harness:platform/inputSet:InputSet example <input_set_id>

Package Details

Repository
harness lbrlabs/pulumi-harness
License
Apache-2.0
Notes

This Pulumi package is based on the harness Terraform Provider.