published on Monday, Apr 27, 2026 by akeyless-community
published on Monday, Apr 27, 2026 by akeyless-community
Redis dynamic secret resource
Create DynamicSecretRedis Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DynamicSecretRedis(name: string, args?: DynamicSecretRedisArgs, opts?: CustomResourceOptions);@overload
def DynamicSecretRedis(resource_name: str,
args: Optional[DynamicSecretRedisArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DynamicSecretRedis(resource_name: str,
opts: Optional[ResourceOptions] = None,
acl_rules: Optional[str] = None,
custom_username_template: Optional[str] = None,
delete_protection: Optional[str] = None,
dynamic_secret_redis_id: Optional[str] = None,
host: Optional[str] = None,
item_custom_fields: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
password: Optional[str] = None,
password_length: Optional[str] = None,
port: Optional[str] = None,
producer_encryption_key_name: Optional[str] = None,
ssl: Optional[bool] = None,
ssl_certificate: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_name: Optional[str] = None,
user_ttl: Optional[str] = None,
username: Optional[str] = None)func NewDynamicSecretRedis(ctx *Context, name string, args *DynamicSecretRedisArgs, opts ...ResourceOption) (*DynamicSecretRedis, error)public DynamicSecretRedis(string name, DynamicSecretRedisArgs? args = null, CustomResourceOptions? opts = null)
public DynamicSecretRedis(String name, DynamicSecretRedisArgs args)
public DynamicSecretRedis(String name, DynamicSecretRedisArgs args, CustomResourceOptions options)
type: akeyless:DynamicSecretRedis
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 DynamicSecretRedisArgs
- 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 DynamicSecretRedisArgs
- 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 DynamicSecretRedisArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DynamicSecretRedisArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DynamicSecretRedisArgs
- 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 dynamicSecretRedisResource = new Akeyless.DynamicSecretRedis("dynamicSecretRedisResource", new()
{
AclRules = "string",
CustomUsernameTemplate = "string",
DeleteProtection = "string",
DynamicSecretRedisId = "string",
Host = "string",
ItemCustomFields =
{
{ "string", "string" },
},
Name = "string",
Password = "string",
PasswordLength = "string",
Port = "string",
ProducerEncryptionKeyName = "string",
Ssl = false,
SslCertificate = "string",
Tags = new[]
{
"string",
},
TargetName = "string",
UserTtl = "string",
Username = "string",
});
example, err := akeyless.NewDynamicSecretRedis(ctx, "dynamicSecretRedisResource", &akeyless.DynamicSecretRedisArgs{
AclRules: pulumi.String("string"),
CustomUsernameTemplate: pulumi.String("string"),
DeleteProtection: pulumi.String("string"),
DynamicSecretRedisId: pulumi.String("string"),
Host: pulumi.String("string"),
ItemCustomFields: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Password: pulumi.String("string"),
PasswordLength: pulumi.String("string"),
Port: pulumi.String("string"),
ProducerEncryptionKeyName: pulumi.String("string"),
Ssl: pulumi.Bool(false),
SslCertificate: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TargetName: pulumi.String("string"),
UserTtl: pulumi.String("string"),
Username: pulumi.String("string"),
})
var dynamicSecretRedisResource = new DynamicSecretRedis("dynamicSecretRedisResource", DynamicSecretRedisArgs.builder()
.aclRules("string")
.customUsernameTemplate("string")
.deleteProtection("string")
.dynamicSecretRedisId("string")
.host("string")
.itemCustomFields(Map.of("string", "string"))
.name("string")
.password("string")
.passwordLength("string")
.port("string")
.producerEncryptionKeyName("string")
.ssl(false)
.sslCertificate("string")
.tags("string")
.targetName("string")
.userTtl("string")
.username("string")
.build());
dynamic_secret_redis_resource = akeyless.DynamicSecretRedis("dynamicSecretRedisResource",
acl_rules="string",
custom_username_template="string",
delete_protection="string",
dynamic_secret_redis_id="string",
host="string",
item_custom_fields={
"string": "string",
},
name="string",
password="string",
password_length="string",
port="string",
producer_encryption_key_name="string",
ssl=False,
ssl_certificate="string",
tags=["string"],
target_name="string",
user_ttl="string",
username="string")
const dynamicSecretRedisResource = new akeyless.DynamicSecretRedis("dynamicSecretRedisResource", {
aclRules: "string",
customUsernameTemplate: "string",
deleteProtection: "string",
dynamicSecretRedisId: "string",
host: "string",
itemCustomFields: {
string: "string",
},
name: "string",
password: "string",
passwordLength: "string",
port: "string",
producerEncryptionKeyName: "string",
ssl: false,
sslCertificate: "string",
tags: ["string"],
targetName: "string",
userTtl: "string",
username: "string",
});
type: akeyless:DynamicSecretRedis
properties:
aclRules: string
customUsernameTemplate: string
deleteProtection: string
dynamicSecretRedisId: string
host: string
itemCustomFields:
string: string
name: string
password: string
passwordLength: string
port: string
producerEncryptionKeyName: string
ssl: false
sslCertificate: string
tags:
- string
targetName: string
userTtl: string
username: string
DynamicSecretRedis 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 DynamicSecretRedis resource accepts the following input properties:
- Acl
Rules string - A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '["~*", "+@read"]'
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Dynamic
Secret stringRedis Id - The ID of this resource.
- Host string
- Redis Host
- Item
Custom Dictionary<string, string>Fields - Additional custom fields to associate with the item
- Name string
- Dynamic secret name
- Password string
- Redis Password
- Password
Length string - The length of the password to be generated
- Port string
- Redis Port
- Producer
Encryption stringKey Name - Dynamic producer encryption key
- Ssl bool
- Enable/Disable SSL [true/false]
- Ssl
Certificate string - SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA)
- List<string>
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- Username string
- Redis Username
- Acl
Rules string - A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '["~*", "+@read"]'
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Dynamic
Secret stringRedis Id - The ID of this resource.
- Host string
- Redis Host
- Item
Custom map[string]stringFields - Additional custom fields to associate with the item
- Name string
- Dynamic secret name
- Password string
- Redis Password
- Password
Length string - The length of the password to be generated
- Port string
- Redis Port
- Producer
Encryption stringKey Name - Dynamic producer encryption key
- Ssl bool
- Enable/Disable SSL [true/false]
- Ssl
Certificate string - SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA)
- []string
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- Username string
- Redis Username
- acl
Rules String - A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '["~*", "+@read"]'
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- dynamic
Secret StringRedis Id - The ID of this resource.
- host String
- Redis Host
- item
Custom Map<String,String>Fields - Additional custom fields to associate with the item
- name String
- Dynamic secret name
- password String
- Redis Password
- password
Length String - The length of the password to be generated
- port String
- Redis Port
- producer
Encryption StringKey Name - Dynamic producer encryption key
- ssl Boolean
- Enable/Disable SSL [true/false]
- ssl
Certificate String - SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA)
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL
- username String
- Redis Username
- acl
Rules string - A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '["~*", "+@read"]'
- custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection string - Protection from accidental deletion of this object [true/false]
- dynamic
Secret stringRedis Id - The ID of this resource.
- host string
- Redis Host
- item
Custom {[key: string]: string}Fields - Additional custom fields to associate with the item
- name string
- Dynamic secret name
- password string
- Redis Password
- password
Length string - The length of the password to be generated
- port string
- Redis Port
- producer
Encryption stringKey Name - Dynamic producer encryption key
- ssl boolean
- Enable/Disable SSL [true/false]
- ssl
Certificate string - SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA)
- string[]
- Add tags attached to this object
- target
Name string - Target name
- user
Ttl string - User TTL
- username string
- Redis Username
- acl_
rules str - A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '["~*", "+@read"]'
- custom_
username_ strtemplate - Customize how temporary usernames are generated using go template
- delete_
protection str - Protection from accidental deletion of this object [true/false]
- dynamic_
secret_ strredis_ id - The ID of this resource.
- host str
- Redis Host
- item_
custom_ Mapping[str, str]fields - Additional custom fields to associate with the item
- name str
- Dynamic secret name
- password str
- Redis Password
- password_
length str - The length of the password to be generated
- port str
- Redis Port
- producer_
encryption_ strkey_ name - Dynamic producer encryption key
- ssl bool
- Enable/Disable SSL [true/false]
- ssl_
certificate str - SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA)
- Sequence[str]
- Add tags attached to this object
- target_
name str - Target name
- user_
ttl str - User TTL
- username str
- Redis Username
- acl
Rules String - A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '["~*", "+@read"]'
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- dynamic
Secret StringRedis Id - The ID of this resource.
- host String
- Redis Host
- item
Custom Map<String>Fields - Additional custom fields to associate with the item
- name String
- Dynamic secret name
- password String
- Redis Password
- password
Length String - The length of the password to be generated
- port String
- Redis Port
- producer
Encryption StringKey Name - Dynamic producer encryption key
- ssl Boolean
- Enable/Disable SSL [true/false]
- ssl
Certificate String - SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA)
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL
- username String
- Redis Username
Outputs
All input properties are implicitly available as output properties. Additionally, the DynamicSecretRedis 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 DynamicSecretRedis Resource
Get an existing DynamicSecretRedis 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?: DynamicSecretRedisState, opts?: CustomResourceOptions): DynamicSecretRedis@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl_rules: Optional[str] = None,
custom_username_template: Optional[str] = None,
delete_protection: Optional[str] = None,
dynamic_secret_redis_id: Optional[str] = None,
host: Optional[str] = None,
item_custom_fields: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
password: Optional[str] = None,
password_length: Optional[str] = None,
port: Optional[str] = None,
producer_encryption_key_name: Optional[str] = None,
ssl: Optional[bool] = None,
ssl_certificate: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_name: Optional[str] = None,
user_ttl: Optional[str] = None,
username: Optional[str] = None) -> DynamicSecretRedisfunc GetDynamicSecretRedis(ctx *Context, name string, id IDInput, state *DynamicSecretRedisState, opts ...ResourceOption) (*DynamicSecretRedis, error)public static DynamicSecretRedis Get(string name, Input<string> id, DynamicSecretRedisState? state, CustomResourceOptions? opts = null)public static DynamicSecretRedis get(String name, Output<String> id, DynamicSecretRedisState state, CustomResourceOptions options)resources: _: type: akeyless:DynamicSecretRedis 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.
- Acl
Rules string - A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '["~*", "+@read"]'
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Dynamic
Secret stringRedis Id - The ID of this resource.
- Host string
- Redis Host
- Item
Custom Dictionary<string, string>Fields - Additional custom fields to associate with the item
- Name string
- Dynamic secret name
- Password string
- Redis Password
- Password
Length string - The length of the password to be generated
- Port string
- Redis Port
- Producer
Encryption stringKey Name - Dynamic producer encryption key
- Ssl bool
- Enable/Disable SSL [true/false]
- Ssl
Certificate string - SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA)
- List<string>
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- Username string
- Redis Username
- Acl
Rules string - A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '["~*", "+@read"]'
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Dynamic
Secret stringRedis Id - The ID of this resource.
- Host string
- Redis Host
- Item
Custom map[string]stringFields - Additional custom fields to associate with the item
- Name string
- Dynamic secret name
- Password string
- Redis Password
- Password
Length string - The length of the password to be generated
- Port string
- Redis Port
- Producer
Encryption stringKey Name - Dynamic producer encryption key
- Ssl bool
- Enable/Disable SSL [true/false]
- Ssl
Certificate string - SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA)
- []string
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- Username string
- Redis Username
- acl
Rules String - A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '["~*", "+@read"]'
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- dynamic
Secret StringRedis Id - The ID of this resource.
- host String
- Redis Host
- item
Custom Map<String,String>Fields - Additional custom fields to associate with the item
- name String
- Dynamic secret name
- password String
- Redis Password
- password
Length String - The length of the password to be generated
- port String
- Redis Port
- producer
Encryption StringKey Name - Dynamic producer encryption key
- ssl Boolean
- Enable/Disable SSL [true/false]
- ssl
Certificate String - SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA)
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL
- username String
- Redis Username
- acl
Rules string - A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '["~*", "+@read"]'
- custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection string - Protection from accidental deletion of this object [true/false]
- dynamic
Secret stringRedis Id - The ID of this resource.
- host string
- Redis Host
- item
Custom {[key: string]: string}Fields - Additional custom fields to associate with the item
- name string
- Dynamic secret name
- password string
- Redis Password
- password
Length string - The length of the password to be generated
- port string
- Redis Port
- producer
Encryption stringKey Name - Dynamic producer encryption key
- ssl boolean
- Enable/Disable SSL [true/false]
- ssl
Certificate string - SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA)
- string[]
- Add tags attached to this object
- target
Name string - Target name
- user
Ttl string - User TTL
- username string
- Redis Username
- acl_
rules str - A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '["~*", "+@read"]'
- custom_
username_ strtemplate - Customize how temporary usernames are generated using go template
- delete_
protection str - Protection from accidental deletion of this object [true/false]
- dynamic_
secret_ strredis_ id - The ID of this resource.
- host str
- Redis Host
- item_
custom_ Mapping[str, str]fields - Additional custom fields to associate with the item
- name str
- Dynamic secret name
- password str
- Redis Password
- password_
length str - The length of the password to be generated
- port str
- Redis Port
- producer_
encryption_ strkey_ name - Dynamic producer encryption key
- ssl bool
- Enable/Disable SSL [true/false]
- ssl_
certificate str - SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA)
- Sequence[str]
- Add tags attached to this object
- target_
name str - Target name
- user_
ttl str - User TTL
- username str
- Redis Username
- acl
Rules String - A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '["~*", "+@read"]'
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- dynamic
Secret StringRedis Id - The ID of this resource.
- host String
- Redis Host
- item
Custom Map<String>Fields - Additional custom fields to associate with the item
- name String
- Dynamic secret name
- password String
- Redis Password
- password
Length String - The length of the password to be generated
- port String
- Redis Port
- producer
Encryption StringKey Name - Dynamic producer encryption key
- ssl Boolean
- Enable/Disable SSL [true/false]
- ssl
Certificate String - SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA)
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL
- username String
- Redis Username
Package Details
- Repository
- akeyless akeyless-community/terraform-provider-akeyless
- License
- Notes
- This Pulumi package is based on the
akeylessTerraform Provider.
published on Monday, Apr 27, 2026 by akeyless-community
