harness.platform.SecretText
Explore with Pulumi AI
Resource for creating secret of type secret text
Create SecretText Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecretText(name: string, args: SecretTextArgs, opts?: CustomResourceOptions);
@overload
def SecretText(resource_name: str,
args: SecretTextArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecretText(resource_name: str,
opts: Optional[ResourceOptions] = None,
identifier: Optional[str] = None,
secret_manager_identifier: Optional[str] = None,
value_type: Optional[str] = None,
additional_metadatas: Optional[Sequence[SecretTextAdditionalMetadataArgs]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
value: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var secretTextResource = new Harness.Platform.SecretText("secretTextResource", new()
{
Identifier = "string",
SecretManagerIdentifier = "string",
ValueType = "string",
AdditionalMetadatas = new[]
{
new Harness.Platform.Inputs.SecretTextAdditionalMetadataArgs
{
Values = new[]
{
new Harness.Platform.Inputs.SecretTextAdditionalMetadataValueArgs
{
Version = "string",
},
},
},
},
Description = "string",
Name = "string",
OrgId = "string",
ProjectId = "string",
Tags = new[]
{
"string",
},
Value = "string",
});
example, err := platform.NewSecretText(ctx, "secretTextResource", &platform.SecretTextArgs{
Identifier: pulumi.String("string"),
SecretManagerIdentifier: pulumi.String("string"),
ValueType: pulumi.String("string"),
AdditionalMetadatas: platform.SecretTextAdditionalMetadataArray{
&platform.SecretTextAdditionalMetadataArgs{
Values: platform.SecretTextAdditionalMetadataValueArray{
&platform.SecretTextAdditionalMetadataValueArgs{
Version: pulumi.String("string"),
},
},
},
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Value: pulumi.String("string"),
})
var secretTextResource = new SecretText("secretTextResource", SecretTextArgs.builder()
.identifier("string")
.secretManagerIdentifier("string")
.valueType("string")
.additionalMetadatas(SecretTextAdditionalMetadataArgs.builder()
.values(SecretTextAdditionalMetadataValueArgs.builder()
.version("string")
.build())
.build())
.description("string")
.name("string")
.orgId("string")
.projectId("string")
.tags("string")
.value("string")
.build());
secret_text_resource = harness.platform.SecretText("secretTextResource",
identifier="string",
secret_manager_identifier="string",
value_type="string",
additional_metadatas=[{
"values": [{
"version": "string",
}],
}],
description="string",
name="string",
org_id="string",
project_id="string",
tags=["string"],
value="string")
const secretTextResource = new harness.platform.SecretText("secretTextResource", {
identifier: "string",
secretManagerIdentifier: "string",
valueType: "string",
additionalMetadatas: [{
values: [{
version: "string",
}],
}],
description: "string",
name: "string",
orgId: "string",
projectId: "string",
tags: ["string"],
value: "string",
});
type: harness:platform:SecretText
properties:
additionalMetadatas:
- values:
- version: string
description: string
identifier: string
name: string
orgId: string
projectId: string
secretManagerIdentifier: string
tags:
- string
value: string
valueType: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SecretText resource accepts the following input properties:
- Identifier string
- Unique identifier of the resource.
- Secret
Manager stringIdentifier - Identifier of the Secret Manager used to manage the secret.
- Value
Type string - This has details to specify if the secret value is Inline or Reference.
- Additional
Metadatas List<SecretText Additional Metadata> - Additional Metadata for the Secret
- Description string
- Description of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- Value string
- Value of the Secret
- Identifier string
- Unique identifier of the resource.
- Secret
Manager stringIdentifier - Identifier of the Secret Manager used to manage the secret.
- Value
Type string - This has details to specify if the secret value is Inline or Reference.
- Additional
Metadatas []SecretText Additional Metadata Args - Additional Metadata for the Secret
- Description string
- Description of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- []string
- Tags to associate with the resource.
- Value string
- Value of the Secret
- identifier String
- Unique identifier of the resource.
- secret
Manager StringIdentifier - Identifier of the Secret Manager used to manage the secret.
- value
Type String - This has details to specify if the secret value is Inline or Reference.
- additional
Metadatas List<SecretText Additional Metadata> - Additional Metadata for the Secret
- description String
- Description of the resource.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- value String
- Value of the Secret
- identifier string
- Unique identifier of the resource.
- secret
Manager stringIdentifier - Identifier of the Secret Manager used to manage the secret.
- value
Type string - This has details to specify if the secret value is Inline or Reference.
- additional
Metadatas SecretText Additional Metadata[] - Additional Metadata for the Secret
- description string
- Description of the resource.
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- string[]
- Tags to associate with the resource.
- value string
- Value of the Secret
- identifier str
- Unique identifier of the resource.
- secret_
manager_ stridentifier - 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.
- additional_
metadatas Sequence[SecretText Additional Metadata Args] - Additional Metadata for the Secret
- 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.
- Sequence[str]
- Tags to associate with the resource.
- value str
- Value of the Secret
- identifier String
- Unique identifier of the resource.
- secret
Manager StringIdentifier - Identifier of the Secret Manager used to manage the secret.
- value
Type String - This has details to specify if the secret value is Inline or Reference.
- additional
Metadatas List<Property Map> - Additional Metadata for the Secret
- description String
- Description of the resource.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- 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,
additional_metadatas: Optional[Sequence[SecretTextAdditionalMetadataArgs]] = 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.
- Additional
Metadatas List<SecretText Additional Metadata> - Additional Metadata for the Secret
- Description string
- Description of the resource.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Secret
Manager stringIdentifier - Identifier of the Secret Manager used to manage the secret.
- List<string>
- Tags to associate with the resource.
- Value string
- Value of the Secret
- Value
Type string - This has details to specify if the secret value is Inline or Reference.
- Additional
Metadatas []SecretText Additional Metadata Args - Additional Metadata for the Secret
- Description string
- Description of the resource.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Secret
Manager stringIdentifier - Identifier of the Secret Manager used to manage the secret.
- []string
- Tags to associate with the resource.
- Value string
- Value of the Secret
- Value
Type string - This has details to specify if the secret value is Inline or Reference.
- additional
Metadatas List<SecretText Additional Metadata> - Additional Metadata for the Secret
- description String
- Description of the resource.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- secret
Manager StringIdentifier - Identifier of the Secret Manager used to manage the secret.
- List<String>
- Tags to associate with the resource.
- value String
- Value of the Secret
- value
Type String - This has details to specify if the secret value is Inline or Reference.
- additional
Metadatas SecretText Additional Metadata[] - Additional Metadata for the Secret
- description string
- Description of the resource.
- identifier string
- Unique identifier of the resource.
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- secret
Manager stringIdentifier - Identifier of the Secret Manager used to manage the secret.
- string[]
- Tags to associate with the resource.
- value string
- Value of the Secret
- value
Type string - This has details to specify if the secret value is Inline or Reference.
- additional_
metadatas Sequence[SecretText Additional Metadata Args] - Additional Metadata for the Secret
- 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_ stridentifier - Identifier of the Secret Manager used to manage the secret.
- Sequence[str]
- Tags to associate with the resource.
- value str
- Value of the Secret
- value_
type str - This has details to specify if the secret value is Inline or Reference.
- additional
Metadatas List<Property Map> - Additional Metadata for the Secret
- description String
- Description of the resource.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- secret
Manager StringIdentifier - Identifier of the Secret Manager used to manage the secret.
- List<String>
- Tags to associate with the resource.
- value String
- Value of the Secret
- value
Type String - This has details to specify if the secret value is Inline or Reference.
Supporting Types
SecretTextAdditionalMetadata, SecretTextAdditionalMetadataArgs
SecretTextAdditionalMetadataValue, SecretTextAdditionalMetadataValueArgs
- Version string
- Version string
- version String
- version string
- version str
- version String
Import
Import account level secret text
$ pulumi import harness:platform/secretText:SecretText example <secret_text_id>
Import org level secret text
$ pulumi import harness:platform/secretText:SecretText example <ord_id>/<secret_text_id>
Import project level secret text
$ pulumi import harness:platform/secretText:SecretText example <org_id>/<project_id>/<secret_text_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.