Class SecretBackendRole
Inherited Members
Namespace: Pulumi.Vault.Database
Assembly: Pulumi.Vault.dll
Syntax
public class SecretBackendRole : CustomResource
Constructors
View SourceSecretBackendRole(String, SecretBackendRoleArgs, CustomResourceOptions)
Create a SecretBackendRole resource with the given unique name, arguments, and options.
Declaration
public SecretBackendRole(string name, SecretBackendRoleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SecretBackendRoleArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBackend
The unique name of the Vault mount to configure.
Declaration
public Output<string> Backend { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CreationStatements
The database statements to execute when creating a user.
Declaration
public Output<ImmutableArray<string>> CreationStatements { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
DbName
The unique name of the database connection to use for the role.
Declaration
public Output<string> DbName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DefaultTtl
The default number of seconds for leases for this role.
Declaration
public Output<int?> DefaultTtl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
MaxTtl
The maximum number of seconds for leases for this role.
Declaration
public Output<int?> MaxTtl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Name
A unique name to give the role.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RenewStatements
The database statements to execute when renewing a user.
Declaration
public Output<ImmutableArray<string>> RenewStatements { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
RevocationStatements
The database statements to execute when revoking a user.
Declaration
public Output<ImmutableArray<string>> RevocationStatements { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
RollbackStatements
The database statements to execute when rolling back creation due to an error.
Declaration
public Output<ImmutableArray<string>> RollbackStatements { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Methods
View SourceGet(String, Input<String>, SecretBackendRoleState, CustomResourceOptions)
Get an existing SecretBackendRole resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static SecretBackendRole Get(string name, Input<string> id, SecretBackendRoleState 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. |
| SecretBackendRoleState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| SecretBackendRole |