SyncConfig

class SyncConfig : KotlinCustomResource

Configures the secret sync global config. The config is global and can only be managed in the root namespace.

Important The config is global so the vault.secrets.SyncConfig resource must not be defined multiple times for the same Vault server. If multiple definition exists, the last one applied will be effective.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const globalConfig = new vault.secrets.SyncConfig("global_config", {
disabled: true,
queueCapacity: 500000,
});
import pulumi
import pulumi_vault as vault
global_config = vault.secrets.SyncConfig("global_config",
disabled=True,
queue_capacity=500000)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var globalConfig = new Vault.Secrets.SyncConfig("global_config", new()
{
Disabled = true,
QueueCapacity = 500000,
});
});
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/secrets"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := secrets.NewSyncConfig(ctx, "global_config", &secrets.SyncConfigArgs{
Disabled: pulumi.Bool(true),
QueueCapacity: pulumi.Int(500000),
})
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.vault.secrets.SyncConfig;
import com.pulumi.vault.secrets.SyncConfigArgs;
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 globalConfig = new SyncConfig("globalConfig", SyncConfigArgs.builder()
.disabled(true)
.queueCapacity(500000)
.build());
}
}
resources:
globalConfig:
type: vault:secrets:SyncConfig
name: global_config
properties:
disabled: true
queueCapacity: 500000

Import

$ pulumi import vault:secrets/syncConfig:SyncConfig config global_config

Properties

Link copied to clipboard
val disabled: Output<Boolean>?

Disables the syncing process between Vault and external destinations. Defaults to false.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val namespace: Output<String>?

The namespace to provision the resource in. This resource can only be configured in the root namespace. Available only for Vault Enterprise.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val queueCapacity: Output<Int>?

Maximum number of pending sync operations allowed on the queue. Defaults to 1000000.

Link copied to clipboard
val urn: Output<String>