SecretBackendRole
Create a SecretBackendRole Resource
new SecretBackendRole(name: string, args: SecretBackendRoleArgs, opts?: CustomResourceOptions);def SecretBackendRole(resource_name, opts=None, backend=None, creation_statements=None, db_name=None, default_ttl=None, max_ttl=None, name=None, renew_statements=None, revocation_statements=None, rollback_statements=None, __props__=None);func NewSecretBackendRole(ctx *Context, name string, args SecretBackendRoleArgs, opts ...ResourceOption) (*SecretBackendRole, error)public SecretBackendRole(string name, SecretBackendRoleArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SecretBackendRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecretBackendRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecretBackendRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SecretBackendRole Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SecretBackendRole resource accepts the following input properties:
- Backend string
The unique name of the Vault mount to configure.
- Creation
Statements List<string> The database statements to execute when creating a user.
- Db
Name string The unique name of the database connection to use for the role.
- Default
Ttl int The default number of seconds for leases for this role.
- Max
Ttl int The maximum number of seconds for leases for this role.
- Name string
A unique name to give the role.
- Renew
Statements List<string> The database statements to execute when renewing a user.
- Revocation
Statements List<string> The database statements to execute when revoking a user.
- Rollback
Statements List<string> The database statements to execute when rolling back creation due to an error.
- Backend string
The unique name of the Vault mount to configure.
- Creation
Statements []string The database statements to execute when creating a user.
- Db
Name string The unique name of the database connection to use for the role.
- Default
Ttl int The default number of seconds for leases for this role.
- Max
Ttl int The maximum number of seconds for leases for this role.
- Name string
A unique name to give the role.
- Renew
Statements []string The database statements to execute when renewing a user.
- Revocation
Statements []string The database statements to execute when revoking a user.
- Rollback
Statements []string The database statements to execute when rolling back creation due to an error.
- backend string
The unique name of the Vault mount to configure.
- creation
Statements string[] The database statements to execute when creating a user.
- db
Name string The unique name of the database connection to use for the role.
- default
Ttl number The default number of seconds for leases for this role.
- max
Ttl number The maximum number of seconds for leases for this role.
- name string
A unique name to give the role.
- renew
Statements string[] The database statements to execute when renewing a user.
- revocation
Statements string[] The database statements to execute when revoking a user.
- rollback
Statements string[] The database statements to execute when rolling back creation due to an error.
- backend str
The unique name of the Vault mount to configure.
- creation_
statements List[str] The database statements to execute when creating a user.
- db_
name str The unique name of the database connection to use for the role.
- default_
ttl float The default number of seconds for leases for this role.
- max_
ttl float The maximum number of seconds for leases for this role.
- name str
A unique name to give the role.
- renew_
statements List[str] The database statements to execute when renewing a user.
- revocation_
statements List[str] The database statements to execute when revoking a user.
- rollback_
statements List[str] The database statements to execute when rolling back creation due to an error.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecretBackendRole resource produces the following output properties:
Look up an Existing SecretBackendRole Resource
Get an existing SecretBackendRole 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?: SecretBackendRoleState, opts?: CustomResourceOptions): SecretBackendRolestatic get(resource_name, id, opts=None, backend=None, creation_statements=None, db_name=None, default_ttl=None, max_ttl=None, name=None, renew_statements=None, revocation_statements=None, rollback_statements=None, __props__=None);func GetSecretBackendRole(ctx *Context, name string, id IDInput, state *SecretBackendRoleState, opts ...ResourceOption) (*SecretBackendRole, error)public static SecretBackendRole Get(string name, Input<string> id, SecretBackendRoleState? 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 unique name of the Vault mount to configure.
- Creation
Statements List<string> The database statements to execute when creating a user.
- Db
Name string The unique name of the database connection to use for the role.
- Default
Ttl int The default number of seconds for leases for this role.
- Max
Ttl int The maximum number of seconds for leases for this role.
- Name string
A unique name to give the role.
- Renew
Statements List<string> The database statements to execute when renewing a user.
- Revocation
Statements List<string> The database statements to execute when revoking a user.
- Rollback
Statements List<string> The database statements to execute when rolling back creation due to an error.
- Backend string
The unique name of the Vault mount to configure.
- Creation
Statements []string The database statements to execute when creating a user.
- Db
Name string The unique name of the database connection to use for the role.
- Default
Ttl int The default number of seconds for leases for this role.
- Max
Ttl int The maximum number of seconds for leases for this role.
- Name string
A unique name to give the role.
- Renew
Statements []string The database statements to execute when renewing a user.
- Revocation
Statements []string The database statements to execute when revoking a user.
- Rollback
Statements []string The database statements to execute when rolling back creation due to an error.
- backend string
The unique name of the Vault mount to configure.
- creation
Statements string[] The database statements to execute when creating a user.
- db
Name string The unique name of the database connection to use for the role.
- default
Ttl number The default number of seconds for leases for this role.
- max
Ttl number The maximum number of seconds for leases for this role.
- name string
A unique name to give the role.
- renew
Statements string[] The database statements to execute when renewing a user.
- revocation
Statements string[] The database statements to execute when revoking a user.
- rollback
Statements string[] The database statements to execute when rolling back creation due to an error.
- backend str
The unique name of the Vault mount to configure.
- creation_
statements List[str] The database statements to execute when creating a user.
- db_
name str The unique name of the database connection to use for the role.
- default_
ttl float The default number of seconds for leases for this role.
- max_
ttl float The maximum number of seconds for leases for this role.
- name str
A unique name to give the role.
- renew_
statements List[str] The database statements to execute when renewing a user.
- revocation_
statements List[str] The database statements to execute when revoking a user.
- rollback_
statements List[str] The database statements to execute when rolling back creation due to an error.
Package Details
- Repository
- https://github.com/pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vaultTerraform Provider.