Class SecretBackend
Creates an PKI Secret Backend for Vault. PKI secret backends can then issue certificates, once a role has been added to the backend.
Example Usage
using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var pki = new Vault.PkiSecret.SecretBackend("pki", new Vault.PkiSecret.SecretBackendArgs
{
DefaultLeaseTtlSeconds = 3600,
MaxLeaseTtlSeconds = 86400,
Path = "pki",
});
}
}
Inherited Members
Namespace: Pulumi.Vault.PkiSecret
Assembly: Pulumi.Vault.dll
Syntax
public class SecretBackend : CustomResource
Constructors
View SourceSecretBackend(String, SecretBackendArgs, CustomResourceOptions)
Create a SecretBackend resource with the given unique name, arguments, and options.
Declaration
public SecretBackend(string name, SecretBackendArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SecretBackendArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDefaultLeaseTtlSeconds
The default TTL for credentials issued by this backend.
Declaration
public Output<int> DefaultLeaseTtlSeconds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Description
A human-friendly description for this backend.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MaxLeaseTtlSeconds
The maximum TTL that can be requested for credentials issued by this backend.
Declaration
public Output<int> MaxLeaseTtlSeconds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Path
The unique path this backend should be mounted at. Must not begin or end with a /.
Declaration
public Output<string> Path { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, SecretBackendState, CustomResourceOptions)
Get an existing SecretBackend resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static SecretBackend Get(string name, Input<string> id, SecretBackendState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| SecretBackendState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| SecretBackend |