Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

ServiceUser

# Service User Resource

The Service User resource allows the creation and management of Aiven Service Users.

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var myserviceuser = new Aiven.ServiceUser("myserviceuser", new Aiven.ServiceUserArgs
        {
            Project = aiven_project.Myproject.Project,
            ServiceName = aiven_service.Myservice.Service_name,
            Username = "<USERNAME>",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aiven/sdk/v3/go/aiven"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := aiven.NewServiceUser(ctx, "myserviceuser", &aiven.ServiceUserArgs{
            Project:     pulumi.Any(aiven_project.Myproject.Project),
            ServiceName: pulumi.Any(aiven_service.Myservice.Service_name),
            Username:    pulumi.String("<USERNAME>"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aiven as aiven

myserviceuser = aiven.ServiceUser("myserviceuser",
    project=aiven_project["myproject"]["project"],
    service_name=aiven_service["myservice"]["service_name"],
    username="<USERNAME>")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const myserviceuser = new aiven.ServiceUser("myserviceuser", {
    project: aiven_project_myproject.project,
    serviceName: aiven_service_myservice.serviceName,
    username: "<USERNAME>",
});

Create a ServiceUser Resource

new ServiceUser(name: string, args: ServiceUserArgs, opts?: CustomResourceOptions);
def ServiceUser(resource_name: str, opts: Optional[ResourceOptions] = None, authentication: Optional[str] = None, password: Optional[str] = None, project: Optional[str] = None, redis_acl_categories: 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)
func NewServiceUser(ctx *Context, name string, args ServiceUserArgs, opts ...ResourceOption) (*ServiceUser, error)
public ServiceUser(string name, ServiceUserArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ServiceUserArgs
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 ServiceUserArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServiceUserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ServiceUser Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ServiceUser resource accepts the following input properties:

Project string

and service_name - (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.

ServiceName string

Service to link the user to

Username string

is the actual name of the user account.

Authentication string

Authentication details

Password string

Password of the user

RedisAclCategories List<string>

Redis specific field, defines command category rules.

RedisAclCommands List<string>

Redis specific field, defines rules for individual commands.

RedisAclKeys List<string>

Redis specific field, defines key access rules.

Project string

and service_name - (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.

ServiceName string

Service to link the user to

Username string

is the actual name of the user account.

Authentication string

Authentication details

Password string

Password of the user

RedisAclCategories []string

Redis specific field, defines command category rules.

RedisAclCommands []string

Redis specific field, defines rules for individual commands.

RedisAclKeys []string

Redis specific field, defines key access rules.

project string

and service_name - (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.

serviceName string

Service to link the user to

username string

is the actual name of the user account.

authentication string

Authentication details

password string

Password of the user

redisAclCategories string[]

Redis specific field, defines command category rules.

redisAclCommands string[]

Redis specific field, defines rules for individual commands.

redisAclKeys string[]

Redis specific field, defines key access rules.

project str

and service_name - (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.

service_name str

Service to link the user to

username str

is the actual name of the user account.

authentication str

Authentication details

password str

Password of the user

redis_acl_categories Sequence[str]

Redis specific field, defines command category rules.

redis_acl_commands Sequence[str]

Redis specific field, defines rules for individual commands.

redis_acl_keys Sequence[str]

Redis specific field, defines key access rules.

Outputs

All input properties are implicitly available as output properties. Additionally, the ServiceUser resource produces the following output properties:

AccessCert string

is the access certificate of the user (not applicable for all services).

AccessKey string

is the access key of the user (not applicable for all services).

Id string
The provider-assigned unique ID for this managed resource.
Type string

tells whether the user is primary account or regular account.

AccessCert string

is the access certificate of the user (not applicable for all services).

AccessKey string

is the access key of the user (not applicable for all services).

Id string
The provider-assigned unique ID for this managed resource.
Type string

tells whether the user is primary account or regular account.

accessCert string

is the access certificate of the user (not applicable for all services).

accessKey string

is the access key of the user (not applicable for all services).

id string
The provider-assigned unique ID for this managed resource.
type string

tells whether the user is primary account or regular account.

access_cert str

is the access certificate of the user (not applicable for all services).

access_key str

is the access key of the user (not applicable for all services).

id str
The provider-assigned unique ID for this managed resource.
type str

tells whether the user is primary account or regular account.

Look up an Existing ServiceUser Resource

Get an existing ServiceUser 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?: ServiceUserState, opts?: CustomResourceOptions): ServiceUser
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, access_cert: Optional[str] = None, access_key: Optional[str] = None, authentication: Optional[str] = None, password: Optional[str] = None, project: Optional[str] = None, redis_acl_categories: 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) -> ServiceUser
func GetServiceUser(ctx *Context, name string, id IDInput, state *ServiceUserState, opts ...ResourceOption) (*ServiceUser, error)
public static ServiceUser Get(string name, Input<string> id, ServiceUserState? 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:

AccessCert string

is the access certificate of the user (not applicable for all services).

AccessKey string

is the access key of the user (not applicable for all services).

Authentication string

Authentication details

Password string

Password of the user

Project string

and service_name - (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.

RedisAclCategories List<string>

Redis specific field, defines command category rules.

RedisAclCommands List<string>

Redis specific field, defines rules for individual commands.

RedisAclKeys List<string>

Redis specific field, defines key access rules.

ServiceName string

Service to link the user to

Type string

tells whether the user is primary account or regular account.

Username string

is the actual name of the user account.

AccessCert string

is the access certificate of the user (not applicable for all services).

AccessKey string

is the access key of the user (not applicable for all services).

Authentication string

Authentication details

Password string

Password of the user

Project string

and service_name - (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.

RedisAclCategories []string

Redis specific field, defines command category rules.

RedisAclCommands []string

Redis specific field, defines rules for individual commands.

RedisAclKeys []string

Redis specific field, defines key access rules.

ServiceName string

Service to link the user to

Type string

tells whether the user is primary account or regular account.

Username string

is the actual name of the user account.

accessCert string

is the access certificate of the user (not applicable for all services).

accessKey string

is the access key of the user (not applicable for all services).

authentication string

Authentication details

password string

Password of the user

project string

and service_name - (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.

redisAclCategories string[]

Redis specific field, defines command category rules.

redisAclCommands string[]

Redis specific field, defines rules for individual commands.

redisAclKeys string[]

Redis specific field, defines key access rules.

serviceName string

Service to link the user to

type string

tells whether the user is primary account or regular account.

username string

is the actual name of the user account.

access_cert str

is the access certificate of the user (not applicable for all services).

access_key str

is the access key of the user (not applicable for all services).

authentication str

Authentication details

password str

Password of the user

project str

and service_name - (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.

redis_acl_categories Sequence[str]

Redis specific field, defines command category rules.

redis_acl_commands Sequence[str]

Redis specific field, defines rules for individual commands.

redis_acl_keys Sequence[str]

Redis specific field, defines key access rules.

service_name str

Service to link the user to

type str

tells whether the user is primary account or regular account.

username str

is the actual name of the user account.

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.