vault.rabbitMq.SecretBackend
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const rabbitmq = new vault.rabbitmq.SecretBackend("rabbitmq", {
    connectionUri: "https://.....",
    username: "user",
    password: "password",
});
import pulumi
import pulumi_vault as vault
rabbitmq = vault.rabbit_mq.SecretBackend("rabbitmq",
    connection_uri="https://.....",
    username="user",
    password="password")
package main
import (
	"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/rabbitmq"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rabbitmq.NewSecretBackend(ctx, "rabbitmq", &rabbitmq.SecretBackendArgs{
			ConnectionUri: pulumi.String("https://....."),
			Username:      pulumi.String("user"),
			Password:      pulumi.String("password"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() => 
{
    var rabbitmq = new Vault.RabbitMQ.SecretBackend("rabbitmq", new()
    {
        ConnectionUri = "https://.....",
        Username = "user",
        Password = "password",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.rabbitMq.SecretBackend;
import com.pulumi.vault.rabbitMq.SecretBackendArgs;
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 rabbitmq = new SecretBackend("rabbitmq", SecretBackendArgs.builder()
            .connectionUri("https://.....")
            .username("user")
            .password("password")
            .build());
    }
}
resources:
  rabbitmq:
    type: vault:rabbitMq:SecretBackend
    properties:
      connectionUri: https://.....
      username: user
      password: password
Create SecretBackend Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecretBackend(name: string, args: SecretBackendArgs, opts?: CustomResourceOptions);@overload
def SecretBackend(resource_name: str,
                  args: SecretBackendArgs,
                  opts: Optional[ResourceOptions] = None)
@overload
def SecretBackend(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  connection_uri: Optional[str] = None,
                  password: Optional[str] = None,
                  username: Optional[str] = None,
                  default_lease_ttl_seconds: Optional[int] = None,
                  description: Optional[str] = None,
                  disable_remount: Optional[bool] = None,
                  max_lease_ttl_seconds: Optional[int] = None,
                  namespace: Optional[str] = None,
                  password_policy: Optional[str] = None,
                  path: Optional[str] = None,
                  username_template: Optional[str] = None,
                  verify_connection: Optional[bool] = None)func NewSecretBackend(ctx *Context, name string, args SecretBackendArgs, opts ...ResourceOption) (*SecretBackend, error)public SecretBackend(string name, SecretBackendArgs args, CustomResourceOptions? opts = null)
public SecretBackend(String name, SecretBackendArgs args)
public SecretBackend(String name, SecretBackendArgs args, CustomResourceOptions options)
type: vault:rabbitMq:SecretBackend
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 SecretBackendArgs
- 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 SecretBackendArgs
- 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 SecretBackendArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecretBackendArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecretBackendArgs
- 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 examplesecretBackendResourceResourceFromRabbitMqsecretBackend = new Vault.RabbitMQ.SecretBackend("examplesecretBackendResourceResourceFromRabbitMqsecretBackend", new()
{
    ConnectionUri = "string",
    Password = "string",
    Username = "string",
    DefaultLeaseTtlSeconds = 0,
    Description = "string",
    DisableRemount = false,
    MaxLeaseTtlSeconds = 0,
    Namespace = "string",
    PasswordPolicy = "string",
    Path = "string",
    UsernameTemplate = "string",
    VerifyConnection = false,
});
example, err := rabbitMq.NewSecretBackend(ctx, "examplesecretBackendResourceResourceFromRabbitMqsecretBackend", &rabbitMq.SecretBackendArgs{
	ConnectionUri:          pulumi.String("string"),
	Password:               pulumi.String("string"),
	Username:               pulumi.String("string"),
	DefaultLeaseTtlSeconds: pulumi.Int(0),
	Description:            pulumi.String("string"),
	DisableRemount:         pulumi.Bool(false),
	MaxLeaseTtlSeconds:     pulumi.Int(0),
	Namespace:              pulumi.String("string"),
	PasswordPolicy:         pulumi.String("string"),
	Path:                   pulumi.String("string"),
	UsernameTemplate:       pulumi.String("string"),
	VerifyConnection:       pulumi.Bool(false),
})
var examplesecretBackendResourceResourceFromRabbitMqsecretBackend = new SecretBackend("examplesecretBackendResourceResourceFromRabbitMqsecretBackend", SecretBackendArgs.builder()
    .connectionUri("string")
    .password("string")
    .username("string")
    .defaultLeaseTtlSeconds(0)
    .description("string")
    .disableRemount(false)
    .maxLeaseTtlSeconds(0)
    .namespace("string")
    .passwordPolicy("string")
    .path("string")
    .usernameTemplate("string")
    .verifyConnection(false)
    .build());
examplesecret_backend_resource_resource_from_rabbit_mqsecret_backend = vault.rabbit_mq.SecretBackend("examplesecretBackendResourceResourceFromRabbitMqsecretBackend",
    connection_uri="string",
    password="string",
    username="string",
    default_lease_ttl_seconds=0,
    description="string",
    disable_remount=False,
    max_lease_ttl_seconds=0,
    namespace="string",
    password_policy="string",
    path="string",
    username_template="string",
    verify_connection=False)
const examplesecretBackendResourceResourceFromRabbitMqsecretBackend = new vault.rabbitmq.SecretBackend("examplesecretBackendResourceResourceFromRabbitMqsecretBackend", {
    connectionUri: "string",
    password: "string",
    username: "string",
    defaultLeaseTtlSeconds: 0,
    description: "string",
    disableRemount: false,
    maxLeaseTtlSeconds: 0,
    namespace: "string",
    passwordPolicy: "string",
    path: "string",
    usernameTemplate: "string",
    verifyConnection: false,
});
type: vault:rabbitMq:SecretBackend
properties:
    connectionUri: string
    defaultLeaseTtlSeconds: 0
    description: string
    disableRemount: false
    maxLeaseTtlSeconds: 0
    namespace: string
    password: string
    passwordPolicy: string
    path: string
    username: string
    usernameTemplate: string
    verifyConnection: false
SecretBackend 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 SecretBackend resource accepts the following input properties:
- ConnectionUri string
- Specifies the RabbitMQ connection URI.
- Password string
- Specifies the RabbitMQ management administrator password.
- Username string
- Specifies the RabbitMQ management administrator username.
- DefaultLease intTtl Seconds 
- The default TTL for credentials issued by this backend.
- Description string
- A human-friendly description for this backend.
- DisableRemount bool
- If set, opts out of mount migration on path updates. See here for more info on Mount Migration
- MaxLease intTtl Seconds 
- The maximum TTL that can be requested for credentials issued by this backend.
- Namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- PasswordPolicy string
- Specifies a password policy to use when creating dynamic credentials. Defaults to generating an alphanumeric password if not set.
- Path string
- The unique path this backend should be mounted at. Must
not begin or end with a /. Defaults torabbitmq.
- UsernameTemplate string
- Template describing how dynamic usernames are generated.
- VerifyConnection bool
- Specifies whether to verify connection URI, username, and password.
Defaults to true.
- ConnectionUri string
- Specifies the RabbitMQ connection URI.
- Password string
- Specifies the RabbitMQ management administrator password.
- Username string
- Specifies the RabbitMQ management administrator username.
- DefaultLease intTtl Seconds 
- The default TTL for credentials issued by this backend.
- Description string
- A human-friendly description for this backend.
- DisableRemount bool
- If set, opts out of mount migration on path updates. See here for more info on Mount Migration
- MaxLease intTtl Seconds 
- The maximum TTL that can be requested for credentials issued by this backend.
- Namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- PasswordPolicy string
- Specifies a password policy to use when creating dynamic credentials. Defaults to generating an alphanumeric password if not set.
- Path string
- The unique path this backend should be mounted at. Must
not begin or end with a /. Defaults torabbitmq.
- UsernameTemplate string
- Template describing how dynamic usernames are generated.
- VerifyConnection bool
- Specifies whether to verify connection URI, username, and password.
Defaults to true.
- connectionUri String
- Specifies the RabbitMQ connection URI.
- password String
- Specifies the RabbitMQ management administrator password.
- username String
- Specifies the RabbitMQ management administrator username.
- defaultLease IntegerTtl Seconds 
- The default TTL for credentials issued by this backend.
- description String
- A human-friendly description for this backend.
- disableRemount Boolean
- If set, opts out of mount migration on path updates. See here for more info on Mount Migration
- maxLease IntegerTtl Seconds 
- The maximum TTL that can be requested for credentials issued by this backend.
- namespace String
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- passwordPolicy String
- Specifies a password policy to use when creating dynamic credentials. Defaults to generating an alphanumeric password if not set.
- path String
- The unique path this backend should be mounted at. Must
not begin or end with a /. Defaults torabbitmq.
- usernameTemplate String
- Template describing how dynamic usernames are generated.
- verifyConnection Boolean
- Specifies whether to verify connection URI, username, and password.
Defaults to true.
- connectionUri string
- Specifies the RabbitMQ connection URI.
- password string
- Specifies the RabbitMQ management administrator password.
- username string
- Specifies the RabbitMQ management administrator username.
- defaultLease numberTtl Seconds 
- The default TTL for credentials issued by this backend.
- description string
- A human-friendly description for this backend.
- disableRemount boolean
- If set, opts out of mount migration on path updates. See here for more info on Mount Migration
- maxLease numberTtl Seconds 
- The maximum TTL that can be requested for credentials issued by this backend.
- namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- passwordPolicy string
- Specifies a password policy to use when creating dynamic credentials. Defaults to generating an alphanumeric password if not set.
- path string
- The unique path this backend should be mounted at. Must
not begin or end with a /. Defaults torabbitmq.
- usernameTemplate string
- Template describing how dynamic usernames are generated.
- verifyConnection boolean
- Specifies whether to verify connection URI, username, and password.
Defaults to true.
- connection_uri str
- Specifies the RabbitMQ connection URI.
- password str
- Specifies the RabbitMQ management administrator password.
- username str
- Specifies the RabbitMQ management administrator username.
- default_lease_ intttl_ seconds 
- The default TTL for credentials issued by this backend.
- description str
- A human-friendly description for this backend.
- disable_remount bool
- If set, opts out of mount migration on path updates. See here for more info on Mount Migration
- max_lease_ intttl_ seconds 
- The maximum TTL that can be requested for credentials issued by this backend.
- namespace str
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- password_policy str
- Specifies a password policy to use when creating dynamic credentials. Defaults to generating an alphanumeric password if not set.
- path str
- The unique path this backend should be mounted at. Must
not begin or end with a /. Defaults torabbitmq.
- username_template str
- Template describing how dynamic usernames are generated.
- verify_connection bool
- Specifies whether to verify connection URI, username, and password.
Defaults to true.
- connectionUri String
- Specifies the RabbitMQ connection URI.
- password String
- Specifies the RabbitMQ management administrator password.
- username String
- Specifies the RabbitMQ management administrator username.
- defaultLease NumberTtl Seconds 
- The default TTL for credentials issued by this backend.
- description String
- A human-friendly description for this backend.
- disableRemount Boolean
- If set, opts out of mount migration on path updates. See here for more info on Mount Migration
- maxLease NumberTtl Seconds 
- The maximum TTL that can be requested for credentials issued by this backend.
- namespace String
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- passwordPolicy String
- Specifies a password policy to use when creating dynamic credentials. Defaults to generating an alphanumeric password if not set.
- path String
- The unique path this backend should be mounted at. Must
not begin or end with a /. Defaults torabbitmq.
- usernameTemplate String
- Template describing how dynamic usernames are generated.
- verifyConnection Boolean
- Specifies whether to verify connection URI, username, and password.
Defaults to true.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecretBackend 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 SecretBackend Resource
Get an existing SecretBackend 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?: SecretBackendState, opts?: CustomResourceOptions): SecretBackend@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        connection_uri: Optional[str] = None,
        default_lease_ttl_seconds: Optional[int] = None,
        description: Optional[str] = None,
        disable_remount: Optional[bool] = None,
        max_lease_ttl_seconds: Optional[int] = None,
        namespace: Optional[str] = None,
        password: Optional[str] = None,
        password_policy: Optional[str] = None,
        path: Optional[str] = None,
        username: Optional[str] = None,
        username_template: Optional[str] = None,
        verify_connection: Optional[bool] = None) -> SecretBackendfunc GetSecretBackend(ctx *Context, name string, id IDInput, state *SecretBackendState, opts ...ResourceOption) (*SecretBackend, error)public static SecretBackend Get(string name, Input<string> id, SecretBackendState? state, CustomResourceOptions? opts = null)public static SecretBackend get(String name, Output<String> id, SecretBackendState state, CustomResourceOptions options)resources:  _:    type: vault:rabbitMq:SecretBackend    get:      id: ${id}- 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.
- ConnectionUri string
- Specifies the RabbitMQ connection URI.
- DefaultLease intTtl Seconds 
- The default TTL for credentials issued by this backend.
- Description string
- A human-friendly description for this backend.
- DisableRemount bool
- If set, opts out of mount migration on path updates. See here for more info on Mount Migration
- MaxLease intTtl Seconds 
- The maximum TTL that can be requested for credentials issued by this backend.
- Namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- Password string
- Specifies the RabbitMQ management administrator password.
- PasswordPolicy string
- Specifies a password policy to use when creating dynamic credentials. Defaults to generating an alphanumeric password if not set.
- Path string
- The unique path this backend should be mounted at. Must
not begin or end with a /. Defaults torabbitmq.
- Username string
- Specifies the RabbitMQ management administrator username.
- UsernameTemplate string
- Template describing how dynamic usernames are generated.
- VerifyConnection bool
- Specifies whether to verify connection URI, username, and password.
Defaults to true.
- ConnectionUri string
- Specifies the RabbitMQ connection URI.
- DefaultLease intTtl Seconds 
- The default TTL for credentials issued by this backend.
- Description string
- A human-friendly description for this backend.
- DisableRemount bool
- If set, opts out of mount migration on path updates. See here for more info on Mount Migration
- MaxLease intTtl Seconds 
- The maximum TTL that can be requested for credentials issued by this backend.
- Namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- Password string
- Specifies the RabbitMQ management administrator password.
- PasswordPolicy string
- Specifies a password policy to use when creating dynamic credentials. Defaults to generating an alphanumeric password if not set.
- Path string
- The unique path this backend should be mounted at. Must
not begin or end with a /. Defaults torabbitmq.
- Username string
- Specifies the RabbitMQ management administrator username.
- UsernameTemplate string
- Template describing how dynamic usernames are generated.
- VerifyConnection bool
- Specifies whether to verify connection URI, username, and password.
Defaults to true.
- connectionUri String
- Specifies the RabbitMQ connection URI.
- defaultLease IntegerTtl Seconds 
- The default TTL for credentials issued by this backend.
- description String
- A human-friendly description for this backend.
- disableRemount Boolean
- If set, opts out of mount migration on path updates. See here for more info on Mount Migration
- maxLease IntegerTtl Seconds 
- The maximum TTL that can be requested for credentials issued by this backend.
- namespace String
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- password String
- Specifies the RabbitMQ management administrator password.
- passwordPolicy String
- Specifies a password policy to use when creating dynamic credentials. Defaults to generating an alphanumeric password if not set.
- path String
- The unique path this backend should be mounted at. Must
not begin or end with a /. Defaults torabbitmq.
- username String
- Specifies the RabbitMQ management administrator username.
- usernameTemplate String
- Template describing how dynamic usernames are generated.
- verifyConnection Boolean
- Specifies whether to verify connection URI, username, and password.
Defaults to true.
- connectionUri string
- Specifies the RabbitMQ connection URI.
- defaultLease numberTtl Seconds 
- The default TTL for credentials issued by this backend.
- description string
- A human-friendly description for this backend.
- disableRemount boolean
- If set, opts out of mount migration on path updates. See here for more info on Mount Migration
- maxLease numberTtl Seconds 
- The maximum TTL that can be requested for credentials issued by this backend.
- namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- password string
- Specifies the RabbitMQ management administrator password.
- passwordPolicy string
- Specifies a password policy to use when creating dynamic credentials. Defaults to generating an alphanumeric password if not set.
- path string
- The unique path this backend should be mounted at. Must
not begin or end with a /. Defaults torabbitmq.
- username string
- Specifies the RabbitMQ management administrator username.
- usernameTemplate string
- Template describing how dynamic usernames are generated.
- verifyConnection boolean
- Specifies whether to verify connection URI, username, and password.
Defaults to true.
- connection_uri str
- Specifies the RabbitMQ connection URI.
- default_lease_ intttl_ seconds 
- The default TTL for credentials issued by this backend.
- description str
- A human-friendly description for this backend.
- disable_remount bool
- If set, opts out of mount migration on path updates. See here for more info on Mount Migration
- max_lease_ intttl_ seconds 
- The maximum TTL that can be requested for credentials issued by this backend.
- namespace str
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- password str
- Specifies the RabbitMQ management administrator password.
- password_policy str
- Specifies a password policy to use when creating dynamic credentials. Defaults to generating an alphanumeric password if not set.
- path str
- The unique path this backend should be mounted at. Must
not begin or end with a /. Defaults torabbitmq.
- username str
- Specifies the RabbitMQ management administrator username.
- username_template str
- Template describing how dynamic usernames are generated.
- verify_connection bool
- Specifies whether to verify connection URI, username, and password.
Defaults to true.
- connectionUri String
- Specifies the RabbitMQ connection URI.
- defaultLease NumberTtl Seconds 
- The default TTL for credentials issued by this backend.
- description String
- A human-friendly description for this backend.
- disableRemount Boolean
- If set, opts out of mount migration on path updates. See here for more info on Mount Migration
- maxLease NumberTtl Seconds 
- The maximum TTL that can be requested for credentials issued by this backend.
- namespace String
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- password String
- Specifies the RabbitMQ management administrator password.
- passwordPolicy String
- Specifies a password policy to use when creating dynamic credentials. Defaults to generating an alphanumeric password if not set.
- path String
- The unique path this backend should be mounted at. Must
not begin or end with a /. Defaults torabbitmq.
- username String
- Specifies the RabbitMQ management administrator username.
- usernameTemplate String
- Template describing how dynamic usernames are generated.
- verifyConnection Boolean
- Specifies whether to verify connection URI, username, and password.
Defaults to true.
Import
RabbitMQ secret backends can be imported using the path, e.g.
$ pulumi import vault:rabbitMq/secretBackend:SecretBackend rabbitmq rabbitmq
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Vault pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the vaultTerraform Provider.