harness.platform.SecretText

Resource for creating secret of type secret text

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var test = new Harness.Platform.SecretText("test", new()
    {
        Identifier = "identifier",
        Description = "test",
        Tags = new[]
        {
            "foo:bar",
        },
        SecretManagerIdentifier = "harnessSecretManager",
        ValueType = "Inline",
        Value = "secret",
    });

});
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.NewSecretText(ctx, "test", &platform.SecretTextArgs{
			Identifier:  pulumi.String("identifier"),
			Description: pulumi.String("test"),
			Tags: pulumi.StringArray{
				pulumi.String("foo:bar"),
			},
			SecretManagerIdentifier: pulumi.String("harnessSecretManager"),
			ValueType:               pulumi.String("Inline"),
			Value:                   pulumi.String("secret"),
		})
		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.SecretText;
import com.pulumi.harness.platform.SecretTextArgs;
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 SecretText("test", SecretTextArgs.builder()        
            .identifier("identifier")
            .description("test")
            .tags("foo:bar")
            .secretManagerIdentifier("harnessSecretManager")
            .valueType("Inline")
            .value("secret")
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_harness as harness

test = harness.platform.SecretText("test",
    identifier="identifier",
    description="test",
    tags=["foo:bar"],
    secret_manager_identifier="harnessSecretManager",
    value_type="Inline",
    value="secret")
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@lbrlabs/pulumi-harness";

const test = new harness.platform.SecretText("test", {
    identifier: "identifier",
    description: "test",
    tags: ["foo:bar"],
    secretManagerIdentifier: "harnessSecretManager",
    valueType: "Inline",
    value: "secret",
});
resources:
  test:
    type: harness:platform:SecretText
    properties:
      identifier: identifier
      description: test
      tags:
        - foo:bar
      secretManagerIdentifier: harnessSecretManager
      valueType: Inline
      value: secret

Create SecretText Resource

new SecretText(name: string, args: SecretTextArgs, opts?: CustomResourceOptions);
@overload
def SecretText(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,
               secret_manager_identifier: Optional[str] = None,
               tags: Optional[Sequence[str]] = None,
               value: Optional[str] = None,
               value_type: Optional[str] = None)
@overload
def SecretText(resource_name: str,
               args: SecretTextArgs,
               opts: Optional[ResourceOptions] = None)
func NewSecretText(ctx *Context, name string, args SecretTextArgs, opts ...ResourceOption) (*SecretText, error)
public SecretText(string name, SecretTextArgs args, CustomResourceOptions? opts = null)
public SecretText(String name, SecretTextArgs args)
public SecretText(String name, SecretTextArgs args, CustomResourceOptions options)
type: harness:platform:SecretText
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

Identifier string

Unique identifier of the resource.

SecretManagerIdentifier string

Identifier of the Secret Manager used to manage the secret.

ValueType string

This has details to specify if the secret value is Inline or Reference.

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.

Value string

Value of the Secret

Identifier string

Unique identifier of the resource.

SecretManagerIdentifier string

Identifier of the Secret Manager used to manage the secret.

ValueType string

This has details to specify if the secret value is Inline or Reference.

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.

Value string

Value of the Secret

identifier String

Unique identifier of the resource.

secretManagerIdentifier String

Identifier of the Secret Manager used to manage the secret.

valueType String

This has details to specify if the secret value is Inline or Reference.

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.

value String

Value of the Secret

identifier string

Unique identifier of the resource.

secretManagerIdentifier string

Identifier of the Secret Manager used to manage the secret.

valueType string

This has details to specify if the secret value is Inline or Reference.

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.

value string

Value of the Secret

identifier str

Unique identifier of the resource.

secret_manager_identifier str

Identifier of the Secret Manager used to manage the secret.

value_type str

This has details to specify if the secret value is Inline or Reference.

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.

value str

Value of the Secret

identifier String

Unique identifier of the resource.

secretManagerIdentifier String

Identifier of the Secret Manager used to manage the secret.

valueType String

This has details to specify if the secret value is Inline or Reference.

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.

value String

Value of the Secret

Outputs

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

Get an existing SecretText 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?: SecretTextState, opts?: CustomResourceOptions): SecretText
@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,
        secret_manager_identifier: Optional[str] = None,
        tags: Optional[Sequence[str]] = None,
        value: Optional[str] = None,
        value_type: Optional[str] = None) -> SecretText
func GetSecretText(ctx *Context, name string, id IDInput, state *SecretTextState, opts ...ResourceOption) (*SecretText, error)
public static SecretText Get(string name, Input<string> id, SecretTextState? state, CustomResourceOptions? opts = null)
public static SecretText get(String name, Output<String> id, SecretTextState 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.

ProjectId string

Unique identifier of the Project.

SecretManagerIdentifier string

Identifier of the Secret Manager used to manage the secret.

Tags List<string>

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

Value string

Value of the Secret

ValueType string

This has details to specify if the secret value is Inline or Reference.

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.

ProjectId string

Unique identifier of the Project.

SecretManagerIdentifier string

Identifier of the Secret Manager used to manage the secret.

Tags []string

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

Value string

Value of the Secret

ValueType string

This has details to specify if the secret value is Inline or Reference.

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.

projectId String

Unique identifier of the Project.

secretManagerIdentifier String

Identifier of the Secret Manager used to manage the secret.

tags List<String>

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

value String

Value of the Secret

valueType String

This has details to specify if the secret value is Inline or Reference.

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.

projectId string

Unique identifier of the Project.

secretManagerIdentifier string

Identifier of the Secret Manager used to manage the secret.

tags string[]

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

value string

Value of the Secret

valueType string

This has details to specify if the secret value is Inline or Reference.

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.

project_id str

Unique identifier of the Project.

secret_manager_identifier str

Identifier of the Secret Manager used to manage the secret.

tags Sequence[str]

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

value str

Value of the Secret

value_type str

This has details to specify if the secret value is Inline or Reference.

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.

projectId String

Unique identifier of the Project.

secretManagerIdentifier String

Identifier of the Secret Manager used to manage the secret.

tags List<String>

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

value String

Value of the Secret

valueType String

This has details to specify if the secret value is Inline or Reference.

Import

Import using secret text id

 $ pulumi import harness:platform/secretText:SecretText example <secret_text_id>

Package Details

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

This Pulumi package is based on the harness Terraform Provider.