SecretCacheConfig

Configure the cache for the Transit Secret Backend in Vault.

Example Usage

using Pulumi;
using Vault = Pulumi.Vault;

class MyStack : Stack
{
    public MyStack()
    {
        var transit = new Vault.Mount("transit", new Vault.MountArgs
        {
            Path = "transit",
            Type = "transit",
            Description = "Example description",
            DefaultLeaseTtlSeconds = 3600,
            MaxLeaseTtlSeconds = 86400,
        });
        var cfg = new Vault.Transit.SecretCacheConfig("cfg", new Vault.Transit.SecretCacheConfigArgs
        {
            Backend = transit.Path,
            Size = 500,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-vault/sdk/v4/go/vault"
	"github.com/pulumi/pulumi-vault/sdk/v4/go/vault/transit"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		transit, err := vault.NewMount(ctx, "transit", &vault.MountArgs{
			Path:                   pulumi.String("transit"),
			Type:                   pulumi.String("transit"),
			Description:            pulumi.String("Example description"),
			DefaultLeaseTtlSeconds: pulumi.Int(3600),
			MaxLeaseTtlSeconds:     pulumi.Int(86400),
		})
		if err != nil {
			return err
		}
		_, err = transit.NewSecretCacheConfig(ctx, "cfg", &transit.SecretCacheConfigArgs{
			Backend: transit.Path,
			Size:    pulumi.Int(500),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_vault as vault

transit = vault.Mount("transit",
    path="transit",
    type="transit",
    description="Example description",
    default_lease_ttl_seconds=3600,
    max_lease_ttl_seconds=86400)
cfg = vault.transit.SecretCacheConfig("cfg",
    backend=transit.path,
    size=500)
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";

const transit = new vault.Mount("transit", {
    path: "transit",
    type: "transit",
    description: "Example description",
    defaultLeaseTtlSeconds: 3600,
    maxLeaseTtlSeconds: 86400,
});
const cfg = new vault.transit.SecretCacheConfig("cfg", {
    backend: transit.path,
    size: 500,
});

Create a SecretCacheConfig Resource

new SecretCacheConfig(name: string, args: SecretCacheConfigArgs, opts?: CustomResourceOptions);
@overload
def SecretCacheConfig(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      backend: Optional[str] = None,
                      size: Optional[int] = None)
@overload
def SecretCacheConfig(resource_name: str,
                      args: SecretCacheConfigArgs,
                      opts: Optional[ResourceOptions] = None)
func NewSecretCacheConfig(ctx *Context, name string, args SecretCacheConfigArgs, opts ...ResourceOption) (*SecretCacheConfig, error)
public SecretCacheConfig(string name, SecretCacheConfigArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args SecretCacheConfigArgs
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 SecretCacheConfigArgs
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 SecretCacheConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SecretCacheConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

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

Backend string
The path the transit secret backend is mounted at, with no leading or trailing /s.
Size int
The number of cache entries. 0 means unlimited.
Backend string
The path the transit secret backend is mounted at, with no leading or trailing /s.
Size int
The number of cache entries. 0 means unlimited.
backend string
The path the transit secret backend is mounted at, with no leading or trailing /s.
size number
The number of cache entries. 0 means unlimited.
backend str
The path the transit secret backend is mounted at, with no leading or trailing /s.
size int
The number of cache entries. 0 means unlimited.

Outputs

All input properties are implicitly available as output properties. Additionally, the SecretCacheConfig 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing SecretCacheConfig Resource

Get an existing SecretCacheConfig 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?: SecretCacheConfigState, opts?: CustomResourceOptions): SecretCacheConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backend: Optional[str] = None,
        size: Optional[int] = None) -> SecretCacheConfig
func GetSecretCacheConfig(ctx *Context, name string, id IDInput, state *SecretCacheConfigState, opts ...ResourceOption) (*SecretCacheConfig, error)
public static SecretCacheConfig Get(string name, Input<string> id, SecretCacheConfigState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Backend string
The path the transit secret backend is mounted at, with no leading or trailing /s.
Size int
The number of cache entries. 0 means unlimited.
Backend string
The path the transit secret backend is mounted at, with no leading or trailing /s.
Size int
The number of cache entries. 0 means unlimited.
backend string
The path the transit secret backend is mounted at, with no leading or trailing /s.
size number
The number of cache entries. 0 means unlimited.
backend str
The path the transit secret backend is mounted at, with no leading or trailing /s.
size int
The number of cache entries. 0 means unlimited.

Package Details

Repository
https://github.com/pulumi/pulumi-vault
License
Apache-2.0
Notes
This Pulumi package is based on the vault Terraform Provider.