aiven.RedisUser
Explore with Pulumi AI
The Redis User resource allows the creation and management of Aiven Redis Users.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var foo = new Aiven.RedisUser("foo", new()
{
ServiceName = aiven_redis.Bar.Service_name,
Project = "my-project",
Username = "user-1",
Password = "Test$1234",
});
});
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.NewRedisUser(ctx, "foo", &aiven.RedisUserArgs{
ServiceName: pulumi.Any(aiven_redis.Bar.Service_name),
Project: pulumi.String("my-project"),
Username: pulumi.String("user-1"),
Password: pulumi.String("Test$1234"),
})
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.aiven.RedisUser;
import com.pulumi.aiven.RedisUserArgs;
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 foo = new RedisUser("foo", RedisUserArgs.builder()
.serviceName(aiven_redis.bar().service_name())
.project("my-project")
.username("user-1")
.password("Test$1234")
.build());
}
}
import pulumi
import pulumi_aiven as aiven
foo = aiven.RedisUser("foo",
service_name=aiven_redis["bar"]["service_name"],
project="my-project",
username="user-1",
password="Test$1234")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const foo = new aiven.RedisUser("foo", {
serviceName: aiven_redis.bar.service_name,
project: "my-project",
username: "user-1",
password: "Test$1234",
});
resources:
foo:
type: aiven:RedisUser
properties:
serviceName: ${aiven_redis.bar.service_name}
project: my-project
username: user-1
password: Test$1234
Create RedisUser Resource
new RedisUser(name: string, args: RedisUserArgs, opts?: CustomResourceOptions);
@overload
def RedisUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
password: Optional[str] = None,
project: Optional[str] = None,
redis_acl_categories: Optional[Sequence[str]] = None,
redis_acl_channels: Optional[Sequence[str]] = None,
redis_acl_commands: Optional[Sequence[str]] = None,
redis_acl_keys: Optional[Sequence[str]] = None,
service_name: Optional[str] = None,
username: Optional[str] = None)
@overload
def RedisUser(resource_name: str,
args: RedisUserArgs,
opts: Optional[ResourceOptions] = None)
func NewRedisUser(ctx *Context, name string, args RedisUserArgs, opts ...ResourceOption) (*RedisUser, error)
public RedisUser(string name, RedisUserArgs args, CustomResourceOptions? opts = null)
public RedisUser(String name, RedisUserArgs args)
public RedisUser(String name, RedisUserArgs args, CustomResourceOptions options)
type: aiven:RedisUser
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RedisUserArgs
- 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 RedisUserArgs
- 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 RedisUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RedisUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RedisUserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RedisUser Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The RedisUser resource accepts the following input properties:
- Project string
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Username string
The actual name of the Redis User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Password string
The password of the Redis User.
- Redis
Acl List<string>Categories Defines command category rules. The field is required with
redis_acl_commands
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- Redis
Acl List<string>Channels Defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- Redis
Acl List<string>Commands Defines rules for individual commands. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- Redis
Acl List<string>Keys Defines key access rules. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.
- Project string
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Username string
The actual name of the Redis User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Password string
The password of the Redis User.
- Redis
Acl []stringCategories Defines command category rules. The field is required with
redis_acl_commands
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- Redis
Acl []stringChannels Defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- Redis
Acl []stringCommands Defines rules for individual commands. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- Redis
Acl []stringKeys Defines key access rules. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.
- project String
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- username String
The actual name of the Redis User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- password String
The password of the Redis User.
- redis
Acl List<String>Categories Defines command category rules. The field is required with
redis_acl_commands
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis
Acl List<String>Channels Defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- redis
Acl List<String>Commands Defines rules for individual commands. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis
Acl List<String>Keys Defines key access rules. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.
- project string
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name string Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- username string
The actual name of the Redis User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- password string
The password of the Redis User.
- redis
Acl string[]Categories Defines command category rules. The field is required with
redis_acl_commands
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis
Acl string[]Channels Defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- redis
Acl string[]Commands Defines rules for individual commands. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis
Acl string[]Keys Defines key access rules. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.
- project str
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service_
name str Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- username str
The actual name of the Redis User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- password str
The password of the Redis User.
- redis_
acl_ Sequence[str]categories Defines command category rules. The field is required with
redis_acl_commands
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis_
acl_ Sequence[str]channels Defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- redis_
acl_ Sequence[str]commands Defines rules for individual commands. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis_
acl_ Sequence[str]keys Defines key access rules. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.
- project String
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- username String
The actual name of the Redis User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- password String
The password of the Redis User.
- redis
Acl List<String>Categories Defines command category rules. The field is required with
redis_acl_commands
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis
Acl List<String>Channels Defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- redis
Acl List<String>Commands Defines rules for individual commands. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis
Acl List<String>Keys Defines key access rules. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the RedisUser resource produces the following output properties:
Look up Existing RedisUser Resource
Get an existing RedisUser 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?: RedisUserState, opts?: CustomResourceOptions): RedisUser
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
password: Optional[str] = None,
project: Optional[str] = None,
redis_acl_categories: Optional[Sequence[str]] = None,
redis_acl_channels: Optional[Sequence[str]] = None,
redis_acl_commands: Optional[Sequence[str]] = None,
redis_acl_keys: Optional[Sequence[str]] = None,
service_name: Optional[str] = None,
type: Optional[str] = None,
username: Optional[str] = None) -> RedisUser
func GetRedisUser(ctx *Context, name string, id IDInput, state *RedisUserState, opts ...ResourceOption) (*RedisUser, error)
public static RedisUser Get(string name, Input<string> id, RedisUserState? state, CustomResourceOptions? opts = null)
public static RedisUser get(String name, Output<String> id, RedisUserState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Password string
The password of the Redis User.
- Project string
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Redis
Acl List<string>Categories Defines command category rules. The field is required with
redis_acl_commands
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- Redis
Acl List<string>Channels Defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- Redis
Acl List<string>Commands Defines rules for individual commands. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- Redis
Acl List<string>Keys Defines key access rules. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- Service
Name string Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Type string
Type of the user account. Tells whether the user is the primary account or a regular account.
- Username string
The actual name of the Redis User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Password string
The password of the Redis User.
- Project string
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Redis
Acl []stringCategories Defines command category rules. The field is required with
redis_acl_commands
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- Redis
Acl []stringChannels Defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- Redis
Acl []stringCommands Defines rules for individual commands. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- Redis
Acl []stringKeys Defines key access rules. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- Service
Name string Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Type string
Type of the user account. Tells whether the user is the primary account or a regular account.
- Username string
The actual name of the Redis User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- password String
The password of the Redis User.
- project String
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- redis
Acl List<String>Categories Defines command category rules. The field is required with
redis_acl_commands
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis
Acl List<String>Channels Defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- redis
Acl List<String>Commands Defines rules for individual commands. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis
Acl List<String>Keys Defines key access rules. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- service
Name String Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- type String
Type of the user account. Tells whether the user is the primary account or a regular account.
- username String
The actual name of the Redis User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- password string
The password of the Redis User.
- project string
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- redis
Acl string[]Categories Defines command category rules. The field is required with
redis_acl_commands
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis
Acl string[]Channels Defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- redis
Acl string[]Commands Defines rules for individual commands. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis
Acl string[]Keys Defines key access rules. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- service
Name string Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- type string
Type of the user account. Tells whether the user is the primary account or a regular account.
- username string
The actual name of the Redis User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- password str
The password of the Redis User.
- project str
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- redis_
acl_ Sequence[str]categories Defines command category rules. The field is required with
redis_acl_commands
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis_
acl_ Sequence[str]channels Defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- redis_
acl_ Sequence[str]commands Defines rules for individual commands. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis_
acl_ Sequence[str]keys Defines key access rules. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- service_
name str Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- type str
Type of the user account. Tells whether the user is the primary account or a regular account.
- username str
The actual name of the Redis User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- password String
The password of the Redis User.
- project String
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- redis
Acl List<String>Categories Defines command category rules. The field is required with
redis_acl_commands
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis
Acl List<String>Channels Defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- redis
Acl List<String>Commands Defines rules for individual commands. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- redis
Acl List<String>Keys Defines key access rules. The field is required with
redis_acl_categories
andredis_acl_keys
. This property cannot be changed, doing so forces recreation of the resource.- service
Name String Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- type String
Type of the user account. Tells whether the user is the primary account or a regular account.
- username String
The actual name of the Redis User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
Import
$ pulumi import aiven:index/redisUser:RedisUser foo project/service_name/username
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aiven
Terraform Provider.