published on Thursday, Jun 11, 2026 by Volcengine
published on Thursday, Jun 11, 2026 by Volcengine
SASL user details
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const kafkaUserDemo = new volcenginecc.kafka.User("KafkaUserDemo", {
instanceId: "kafka-cnngavomxxxxxx",
userName: "user1123",
userPassword: "********",
allAuthority: true,
description: "vip",
});
import pulumi
import pulumi_volcenginecc as volcenginecc
kafka_user_demo = volcenginecc.kafka.User("KafkaUserDemo",
instance_id="kafka-cnngavomxxxxxx",
user_name="user1123",
user_password="********",
all_authority=True,
description="vip")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/kafka"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kafka.NewUser(ctx, "KafkaUserDemo", &kafka.UserArgs{
InstanceId: pulumi.String("kafka-cnngavomxxxxxx"),
UserName: pulumi.String("user1123"),
UserPassword: pulumi.String("********"),
AllAuthority: pulumi.Bool(true),
Description: pulumi.String("vip"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var kafkaUserDemo = new Volcenginecc.Kafka.User("KafkaUserDemo", new()
{
InstanceId = "kafka-cnngavomxxxxxx",
UserName = "user1123",
UserPassword = "********",
AllAuthority = true,
Description = "vip",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.kafka.User;
import com.volcengine.volcenginecc.kafka.UserArgs;
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 kafkaUserDemo = new User("kafkaUserDemo", UserArgs.builder()
.instanceId("kafka-cnngavomxxxxxx")
.userName("user1123")
.userPassword("********")
.allAuthority(true)
.description("vip")
.build());
}
}
resources:
kafkaUserDemo:
type: volcenginecc:kafka:User
name: KafkaUserDemo
properties:
instanceId: kafka-cnngavomxxxxxx
userName: user1123
userPassword: '********'
allAuthority: true
description: vip
Example coming soon!
Create User Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);@overload
def User(resource_name: str,
args: UserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
all_authority: Optional[bool] = None,
instance_id: Optional[str] = None,
user_name: Optional[str] = None,
user_password: Optional[str] = None,
description: Optional[str] = None,
password_type: Optional[str] = None)func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)public User(string name, UserArgs args, CustomResourceOptions? opts = null)type: volcenginecc:kafka:User
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "volcenginecc_kafka_user" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args UserArgs
- 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 UserArgs
- 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 UserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserArgs
- 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 exampleuserResourceResourceFromKafkauser = new Volcenginecc.Kafka.User("exampleuserResourceResourceFromKafkauser", new()
{
AllAuthority = false,
InstanceId = "string",
UserName = "string",
UserPassword = "string",
Description = "string",
PasswordType = "string",
});
example, err := kafka.NewUser(ctx, "exampleuserResourceResourceFromKafkauser", &kafka.UserArgs{
AllAuthority: pulumi.Bool(false),
InstanceId: pulumi.String("string"),
UserName: pulumi.String("string"),
UserPassword: pulumi.String("string"),
Description: pulumi.String("string"),
PasswordType: pulumi.String("string"),
})
resource "volcenginecc_kafka_user" "exampleuserResourceResourceFromKafkauser" {
all_authority = false
instance_id = "string"
user_name = "string"
user_password = "string"
description = "string"
password_type = "string"
}
var exampleuserResourceResourceFromKafkauser = new com.volcengine.volcenginecc.kafka.User("exampleuserResourceResourceFromKafkauser", com.volcengine.volcenginecc.kafka.UserArgs.builder()
.allAuthority(false)
.instanceId("string")
.userName("string")
.userPassword("string")
.description("string")
.passwordType("string")
.build());
exampleuser_resource_resource_from_kafkauser = volcenginecc.kafka.User("exampleuserResourceResourceFromKafkauser",
all_authority=False,
instance_id="string",
user_name="string",
user_password="string",
description="string",
password_type="string")
const exampleuserResourceResourceFromKafkauser = new volcenginecc.kafka.User("exampleuserResourceResourceFromKafkauser", {
allAuthority: false,
instanceId: "string",
userName: "string",
userPassword: "string",
description: "string",
passwordType: "string",
});
type: volcenginecc:kafka:User
properties:
allAuthority: false
description: string
instanceId: string
passwordType: string
userName: string
userPassword: string
User 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 User resource accepts the following input properties:
- bool
- Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions for all Topics - false: This user does not have read and write permissions for all Topics
- Instance
Id string - Instance ID to which the user belongs
- User
Name string - SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
- User
Password string - SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
!@#$%^&*()_+-= - Description string
- SASL user description
- Password
Type string - SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type Note: If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
- bool
- Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions for all Topics - false: This user does not have read and write permissions for all Topics
- Instance
Id string - Instance ID to which the user belongs
- User
Name string - SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
- User
Password string - SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
!@#$%^&*()_+-= - Description string
- SASL user description
- Password
Type string - SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type Note: If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
- bool
- Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions for all Topics - false: This user does not have read and write permissions for all Topics
- instance_
id string - Instance ID to which the user belongs
- user_
name string - SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
- user_
password string - SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
!@#$%^&*()_+-= - description string
- SASL user description
- password_
type string - SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type Note: If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
- Boolean
- Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions for all Topics - false: This user does not have read and write permissions for all Topics
- instance
Id String - Instance ID to which the user belongs
- user
Name String - SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
- user
Password String - SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
!@#$%^&*()_+-= - description String
- SASL user description
- password
Type String - SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type Note: If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
- boolean
- Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions for all Topics - false: This user does not have read and write permissions for all Topics
- instance
Id string - Instance ID to which the user belongs
- user
Name string - SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
- user
Password string - SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
!@#$%^&*()_+-= - description string
- SASL user description
- password
Type string - SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type Note: If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
- bool
- Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions for all Topics - false: This user does not have read and write permissions for all Topics
- instance_
id str - Instance ID to which the user belongs
- user_
name str - SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
- user_
password str - SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
!@#$%^&*()_+-= - description str
- SASL user description
- password_
type str - SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type Note: If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
- Boolean
- Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions for all Topics - false: This user does not have read and write permissions for all Topics
- instance
Id String - Instance ID to which the user belongs
- user
Name String - SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
- user
Password String - SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
!@#$%^&*()_+-= - description String
- SASL user description
- password
Type String - SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type Note: If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
- Create
Time string - SASL user creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - SASL user creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- create_
time string - SASL user creation time
- id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - SASL user creation time
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - SASL user creation time
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - SASL user creation time
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - SASL user creation time
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing User Resource
Get an existing User 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?: UserState, opts?: CustomResourceOptions): User@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
all_authority: Optional[bool] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
instance_id: Optional[str] = None,
password_type: Optional[str] = None,
user_name: Optional[str] = None,
user_password: Optional[str] = None) -> Userfunc GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)public static User get(String name, Output<String> id, UserState state, CustomResourceOptions options)resources: _: type: volcenginecc:kafka:User get: id: ${id}import {
to = volcenginecc_kafka_user.example
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.
- bool
- Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions for all Topics - false: This user does not have read and write permissions for all Topics
- Create
Time string - SASL user creation time
- Description string
- SASL user description
- Instance
Id string - Instance ID to which the user belongs
- Password
Type string - SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type Note: If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
- User
Name string - SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
- User
Password string - SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
!@#$%^&*()_+-=
- bool
- Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions for all Topics - false: This user does not have read and write permissions for all Topics
- Create
Time string - SASL user creation time
- Description string
- SASL user description
- Instance
Id string - Instance ID to which the user belongs
- Password
Type string - SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type Note: If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
- User
Name string - SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
- User
Password string - SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
!@#$%^&*()_+-=
- bool
- Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions for all Topics - false: This user does not have read and write permissions for all Topics
- create_
time string - SASL user creation time
- description string
- SASL user description
- instance_
id string - Instance ID to which the user belongs
- password_
type string - SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type Note: If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
- user_
name string - SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
- user_
password string - SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
!@#$%^&*()_+-=
- Boolean
- Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions for all Topics - false: This user does not have read and write permissions for all Topics
- create
Time String - SASL user creation time
- description String
- SASL user description
- instance
Id String - Instance ID to which the user belongs
- password
Type String - SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type Note: If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
- user
Name String - SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
- user
Password String - SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
!@#$%^&*()_+-=
- boolean
- Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions for all Topics - false: This user does not have read and write permissions for all Topics
- create
Time string - SASL user creation time
- description string
- SASL user description
- instance
Id string - Instance ID to which the user belongs
- password
Type string - SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type Note: If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
- user
Name string - SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
- user
Password string - SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
!@#$%^&*()_+-=
- bool
- Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions for all Topics - false: This user does not have read and write permissions for all Topics
- create_
time str - SASL user creation time
- description str
- SASL user description
- instance_
id str - Instance ID to which the user belongs
- password_
type str - SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type Note: If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
- user_
name str - SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
- user_
password str - SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
!@#$%^&*()_+-=
- Boolean
- Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions for all Topics - false: This user does not have read and write permissions for all Topics
- create
Time String - SASL user creation time
- description String
- SASL user description
- instance
Id String - Instance ID to which the user belongs
- password
Type String - SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type Note: If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
- user
Name String - SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
- user
Password String - SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
!@#$%^&*()_+-=
Import
$ pulumi import volcenginecc:kafka/user:User example "instance_id|user_name"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Jun 11, 2026 by Volcengine