Skip to content

SaslUserProps

Properties for defining a SaslUser.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-kafka-sasluser

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkkafka"
&alicloudroscdkkafka.SaslUserProps {
    InstanceId: interface{},
    Password: interface{},
    Username: interface{},
    Mechanism: interface{},
    Type: interface{},
}

Properties

Name Type Description
InstanceId interface{} Property instanceId: The instance ID.
Password interface{} Property password: The password of the SASL user.
Username interface{} Property username: The name of the SASL user.
Mechanism interface{} Property mechanism: The encryption method.
Type interface{} Property type: The type of the Simple Authentication and Security Layer (SASL) user.

InstanceIdRequired

InstanceId interface{}
  • Type: interface{}

Property instanceId: The instance ID.


PasswordRequired

Password interface{}
  • Type: interface{}

Property password: The password of the SASL user.


UsernameRequired

Username interface{}
  • Type: interface{}

Property username: The name of the SASL user.


MechanismOptional

Mechanism interface{}
  • Type: interface{}

Property mechanism: The encryption method.

Valid values: SCRAM-SHA-512 (default) SCRAM-SHA-256 Note This parameter is available only for ApsaraMQ for Kafka V3 serverless instances.


TypeOptional

Type interface{}
  • Type: interface{}

Property type: The type of the Simple Authentication and Security Layer (SASL) user.

Valid values: plain: a simple mechanism that uses usernames and passwords to verify user identities. ApsaraMQ for Kafka provides an improved PLAIN mechanism that allows you to dynamically add SASL users without the need to restart an instance. SCRAM: a mechanism that uses usernames and passwords to verify user identities. Compared with the PLAIN mechanism, this mechanism provides better security protection. ApsaraMQ for Kafka uses the SCRAM-SHA-256 algorithm. LDAP: This value is available only for the SASL users of ApsaraMQ for Confluent instances. Default value: plain.