1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. alikafka
  5. SaslUser
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.alikafka.SaslUser

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    Provides an Alikafka Sasl User resource.

    NOTE: Available since v1.66.0.

    NOTE: Only the following regions support create alikafka Sasl User. [cn-hangzhou,cn-beijing,cn-shenzhen,cn-shanghai,cn-qingdao,cn-hongkong,cn-huhehaote,cn-zhangjiakou,cn-chengdu,cn-heyuan,ap-southeast-1,ap-southeast-3,ap-southeast-5,ap-south-1,ap-northeast-1,eu-central-1,eu-west-1,us-west-1,us-east-1]

    For information about Alikafka Sasl User and how to use it, see What is Sasl User.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const defaultZones = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
        vpcName: name,
        cidrBlock: "10.4.0.0/16",
    });
    const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
        vswitchName: name,
        cidrBlock: "10.4.0.0/24",
        vpcId: defaultNetwork.id,
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
    });
    const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetwork.id});
    const defaultRandomInteger = new random.RandomInteger("defaultRandomInteger", {
        min: 10000,
        max: 99999,
    });
    const defaultInstance = new alicloud.alikafka.Instance("defaultInstance", {
        partitionNum: 50,
        diskType: 1,
        diskSize: 500,
        deployType: 5,
        ioMax: 20,
        specType: "professional",
        serviceVersion: "2.2.0",
        vswitchId: defaultSwitch.id,
        securityGroup: defaultSecurityGroup.id,
        config: `  {
        "enable.acl": "true"
      }
    `,
    });
    const defaultSaslUser = new alicloud.alikafka.SaslUser("defaultSaslUser", {
        instanceId: defaultInstance.id,
        username: name,
        password: "tf_example123",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    default_zones = alicloud.get_zones(available_resource_creation="VSwitch")
    default_network = alicloud.vpc.Network("defaultNetwork",
        vpc_name=name,
        cidr_block="10.4.0.0/16")
    default_switch = alicloud.vpc.Switch("defaultSwitch",
        vswitch_name=name,
        cidr_block="10.4.0.0/24",
        vpc_id=default_network.id,
        zone_id=default_zones.zones[0].id)
    default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup", vpc_id=default_network.id)
    default_random_integer = random.RandomInteger("defaultRandomInteger",
        min=10000,
        max=99999)
    default_instance = alicloud.alikafka.Instance("defaultInstance",
        partition_num=50,
        disk_type=1,
        disk_size=500,
        deploy_type=5,
        io_max=20,
        spec_type="professional",
        service_version="2.2.0",
        vswitch_id=default_switch.id,
        security_group=default_security_group.id,
        config="""  {
        "enable.acl": "true"
      }
    """)
    default_sasl_user = alicloud.alikafka.SaslUser("defaultSaslUser",
        instance_id=default_instance.id,
        username=name,
        password="tf_example123")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alikafka"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("10.4.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("10.4.0.0/24"),
    			VpcId:       defaultNetwork.ID(),
    			ZoneId:      pulumi.String(defaultZones.Zones[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{
    			VpcId: defaultNetwork.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = random.NewRandomInteger(ctx, "defaultRandomInteger", &random.RandomIntegerArgs{
    			Min: pulumi.Int(10000),
    			Max: pulumi.Int(99999),
    		})
    		if err != nil {
    			return err
    		}
    		defaultInstance, err := alikafka.NewInstance(ctx, "defaultInstance", &alikafka.InstanceArgs{
    			PartitionNum:   pulumi.Int(50),
    			DiskType:       pulumi.Int(1),
    			DiskSize:       pulumi.Int(500),
    			DeployType:     pulumi.Int(5),
    			IoMax:          pulumi.Int(20),
    			SpecType:       pulumi.String("professional"),
    			ServiceVersion: pulumi.String("2.2.0"),
    			VswitchId:      defaultSwitch.ID(),
    			SecurityGroup:  defaultSecurityGroup.ID(),
    			Config:         pulumi.String("  {\n    \"enable.acl\": \"true\"\n  }\n"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = alikafka.NewSaslUser(ctx, "defaultSaslUser", &alikafka.SaslUserArgs{
    			InstanceId: defaultInstance.ID(),
    			Username:   pulumi.String(name),
    			Password:   pulumi.String("tf_example123"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-example";
        var defaultZones = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
        {
            VpcName = name,
            CidrBlock = "10.4.0.0/16",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
        {
            VswitchName = name,
            CidrBlock = "10.4.0.0/24",
            VpcId = defaultNetwork.Id,
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        });
    
        var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new()
        {
            VpcId = defaultNetwork.Id,
        });
    
        var defaultRandomInteger = new Random.RandomInteger("defaultRandomInteger", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var defaultInstance = new AliCloud.AliKafka.Instance("defaultInstance", new()
        {
            PartitionNum = 50,
            DiskType = 1,
            DiskSize = 500,
            DeployType = 5,
            IoMax = 20,
            SpecType = "professional",
            ServiceVersion = "2.2.0",
            VswitchId = defaultSwitch.Id,
            SecurityGroup = defaultSecurityGroup.Id,
            Config = @"  {
        ""enable.acl"": ""true""
      }
    ",
        });
    
        var defaultSaslUser = new AliCloud.AliKafka.SaslUser("defaultSaslUser", new()
        {
            InstanceId = defaultInstance.Id,
            Username = name,
            Password = "tf_example123",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.ecs.SecurityGroup;
    import com.pulumi.alicloud.ecs.SecurityGroupArgs;
    import com.pulumi.random.RandomInteger;
    import com.pulumi.random.RandomIntegerArgs;
    import com.pulumi.alicloud.alikafka.Instance;
    import com.pulumi.alicloud.alikafka.InstanceArgs;
    import com.pulumi.alicloud.alikafka.SaslUser;
    import com.pulumi.alicloud.alikafka.SaslUserArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf-example");
            final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()        
                .vpcName(name)
                .cidrBlock("10.4.0.0/16")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()        
                .vswitchName(name)
                .cidrBlock("10.4.0.0/24")
                .vpcId(defaultNetwork.id())
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .build());
    
            var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()        
                .vpcId(defaultNetwork.id())
                .build());
    
            var defaultRandomInteger = new RandomInteger("defaultRandomInteger", RandomIntegerArgs.builder()        
                .min(10000)
                .max(99999)
                .build());
    
            var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()        
                .partitionNum(50)
                .diskType("1")
                .diskSize("500")
                .deployType("5")
                .ioMax("20")
                .specType("professional")
                .serviceVersion("2.2.0")
                .vswitchId(defaultSwitch.id())
                .securityGroup(defaultSecurityGroup.id())
                .config("""
      {
        "enable.acl": "true"
      }
                """)
                .build());
    
            var defaultSaslUser = new SaslUser("defaultSaslUser", SaslUserArgs.builder()        
                .instanceId(defaultInstance.id())
                .username(name)
                .password("tf_example123")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 10.4.0.0/16
      defaultSwitch:
        type: alicloud:vpc:Switch
        properties:
          vswitchName: ${name}
          cidrBlock: 10.4.0.0/24
          vpcId: ${defaultNetwork.id}
          zoneId: ${defaultZones.zones[0].id}
      defaultSecurityGroup:
        type: alicloud:ecs:SecurityGroup
        properties:
          vpcId: ${defaultNetwork.id}
      defaultRandomInteger:
        type: random:RandomInteger
        properties:
          min: 10000
          max: 99999
      defaultInstance:
        type: alicloud:alikafka:Instance
        properties:
          partitionNum: 50
          diskType: '1'
          diskSize: '500'
          deployType: '5'
          ioMax: '20'
          specType: professional
          serviceVersion: 2.2.0
          vswitchId: ${defaultSwitch.id}
          securityGroup: ${defaultSecurityGroup.id}
          config: |2
              {
                "enable.acl": "true"
              }
      defaultSaslUser:
        type: alicloud:alikafka:SaslUser
        properties:
          instanceId: ${defaultInstance.id}
          username: ${name}
          password: tf_example123
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
    

    Create SaslUser Resource

    new SaslUser(name: string, args: SaslUserArgs, opts?: CustomResourceOptions);
    @overload
    def SaslUser(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 instance_id: Optional[str] = None,
                 kms_encrypted_password: Optional[str] = None,
                 kms_encryption_context: Optional[Mapping[str, Any]] = None,
                 password: Optional[str] = None,
                 type: Optional[str] = None,
                 username: Optional[str] = None)
    @overload
    def SaslUser(resource_name: str,
                 args: SaslUserArgs,
                 opts: Optional[ResourceOptions] = None)
    func NewSaslUser(ctx *Context, name string, args SaslUserArgs, opts ...ResourceOption) (*SaslUser, error)
    public SaslUser(string name, SaslUserArgs args, CustomResourceOptions? opts = null)
    public SaslUser(String name, SaslUserArgs args)
    public SaslUser(String name, SaslUserArgs args, CustomResourceOptions options)
    
    type: alicloud:alikafka:SaslUser
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args SaslUserArgs
    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 SaslUserArgs
    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 SaslUserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SaslUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SaslUserArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SaslUser 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 SaslUser resource accepts the following input properties:

    InstanceId string
    ID of the ALIKAFKA Instance that owns the groups.
    Username string
    The name of the SASL user. The length should between 1 to 64 characters. The characters can only contain a-z, A-Z, 0-9, _ and -.
    KmsEncryptedPassword string
    An KMS encrypts password used to a db account. You have to specify one of password and kms_encrypted_password fields.
    KmsEncryptionContext Dictionary<string, object>
    An KMS encryption context used to decrypt kms_encrypted_password before creating or updating a user with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
    Password string
    The password of the SASL user. It may consist of letters, digits, or underlines, with a length of 1 to 64 characters. You have to specify one of password and kms_encrypted_password fields.
    Type string
    The authentication mechanism. Default value: plain. Valid values: plain, scram.
    InstanceId string
    ID of the ALIKAFKA Instance that owns the groups.
    Username string
    The name of the SASL user. The length should between 1 to 64 characters. The characters can only contain a-z, A-Z, 0-9, _ and -.
    KmsEncryptedPassword string
    An KMS encrypts password used to a db account. You have to specify one of password and kms_encrypted_password fields.
    KmsEncryptionContext map[string]interface{}
    An KMS encryption context used to decrypt kms_encrypted_password before creating or updating a user with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
    Password string
    The password of the SASL user. It may consist of letters, digits, or underlines, with a length of 1 to 64 characters. You have to specify one of password and kms_encrypted_password fields.
    Type string
    The authentication mechanism. Default value: plain. Valid values: plain, scram.
    instanceId String
    ID of the ALIKAFKA Instance that owns the groups.
    username String
    The name of the SASL user. The length should between 1 to 64 characters. The characters can only contain a-z, A-Z, 0-9, _ and -.
    kmsEncryptedPassword String
    An KMS encrypts password used to a db account. You have to specify one of password and kms_encrypted_password fields.
    kmsEncryptionContext Map<String,Object>
    An KMS encryption context used to decrypt kms_encrypted_password before creating or updating a user with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
    password String
    The password of the SASL user. It may consist of letters, digits, or underlines, with a length of 1 to 64 characters. You have to specify one of password and kms_encrypted_password fields.
    type String
    The authentication mechanism. Default value: plain. Valid values: plain, scram.
    instanceId string
    ID of the ALIKAFKA Instance that owns the groups.
    username string
    The name of the SASL user. The length should between 1 to 64 characters. The characters can only contain a-z, A-Z, 0-9, _ and -.
    kmsEncryptedPassword string
    An KMS encrypts password used to a db account. You have to specify one of password and kms_encrypted_password fields.
    kmsEncryptionContext {[key: string]: any}
    An KMS encryption context used to decrypt kms_encrypted_password before creating or updating a user with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
    password string
    The password of the SASL user. It may consist of letters, digits, or underlines, with a length of 1 to 64 characters. You have to specify one of password and kms_encrypted_password fields.
    type string
    The authentication mechanism. Default value: plain. Valid values: plain, scram.
    instance_id str
    ID of the ALIKAFKA Instance that owns the groups.
    username str
    The name of the SASL user. The length should between 1 to 64 characters. The characters can only contain a-z, A-Z, 0-9, _ and -.
    kms_encrypted_password str
    An KMS encrypts password used to a db account. You have to specify one of password and kms_encrypted_password fields.
    kms_encryption_context Mapping[str, Any]
    An KMS encryption context used to decrypt kms_encrypted_password before creating or updating a user with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
    password str
    The password of the SASL user. It may consist of letters, digits, or underlines, with a length of 1 to 64 characters. You have to specify one of password and kms_encrypted_password fields.
    type str
    The authentication mechanism. Default value: plain. Valid values: plain, scram.
    instanceId String
    ID of the ALIKAFKA Instance that owns the groups.
    username String
    The name of the SASL user. The length should between 1 to 64 characters. The characters can only contain a-z, A-Z, 0-9, _ and -.
    kmsEncryptedPassword String
    An KMS encrypts password used to a db account. You have to specify one of password and kms_encrypted_password fields.
    kmsEncryptionContext Map<Any>
    An KMS encryption context used to decrypt kms_encrypted_password before creating or updating a user with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
    password String
    The password of the SASL user. It may consist of letters, digits, or underlines, with a length of 1 to 64 characters. You have to specify one of password and kms_encrypted_password fields.
    type String
    The authentication mechanism. Default value: plain. Valid values: plain, scram.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SaslUser 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 SaslUser Resource

    Get an existing SaslUser 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?: SaslUserState, opts?: CustomResourceOptions): SaslUser
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            instance_id: Optional[str] = None,
            kms_encrypted_password: Optional[str] = None,
            kms_encryption_context: Optional[Mapping[str, Any]] = None,
            password: Optional[str] = None,
            type: Optional[str] = None,
            username: Optional[str] = None) -> SaslUser
    func GetSaslUser(ctx *Context, name string, id IDInput, state *SaslUserState, opts ...ResourceOption) (*SaslUser, error)
    public static SaslUser Get(string name, Input<string> id, SaslUserState? state, CustomResourceOptions? opts = null)
    public static SaslUser get(String name, Output<String> id, SaslUserState 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.
    The following state arguments are supported:
    InstanceId string
    ID of the ALIKAFKA Instance that owns the groups.
    KmsEncryptedPassword string
    An KMS encrypts password used to a db account. You have to specify one of password and kms_encrypted_password fields.
    KmsEncryptionContext Dictionary<string, object>
    An KMS encryption context used to decrypt kms_encrypted_password before creating or updating a user with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
    Password string
    The password of the SASL user. It may consist of letters, digits, or underlines, with a length of 1 to 64 characters. You have to specify one of password and kms_encrypted_password fields.
    Type string
    The authentication mechanism. Default value: plain. Valid values: plain, scram.
    Username string
    The name of the SASL user. The length should between 1 to 64 characters. The characters can only contain a-z, A-Z, 0-9, _ and -.
    InstanceId string
    ID of the ALIKAFKA Instance that owns the groups.
    KmsEncryptedPassword string
    An KMS encrypts password used to a db account. You have to specify one of password and kms_encrypted_password fields.
    KmsEncryptionContext map[string]interface{}
    An KMS encryption context used to decrypt kms_encrypted_password before creating or updating a user with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
    Password string
    The password of the SASL user. It may consist of letters, digits, or underlines, with a length of 1 to 64 characters. You have to specify one of password and kms_encrypted_password fields.
    Type string
    The authentication mechanism. Default value: plain. Valid values: plain, scram.
    Username string
    The name of the SASL user. The length should between 1 to 64 characters. The characters can only contain a-z, A-Z, 0-9, _ and -.
    instanceId String
    ID of the ALIKAFKA Instance that owns the groups.
    kmsEncryptedPassword String
    An KMS encrypts password used to a db account. You have to specify one of password and kms_encrypted_password fields.
    kmsEncryptionContext Map<String,Object>
    An KMS encryption context used to decrypt kms_encrypted_password before creating or updating a user with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
    password String
    The password of the SASL user. It may consist of letters, digits, or underlines, with a length of 1 to 64 characters. You have to specify one of password and kms_encrypted_password fields.
    type String
    The authentication mechanism. Default value: plain. Valid values: plain, scram.
    username String
    The name of the SASL user. The length should between 1 to 64 characters. The characters can only contain a-z, A-Z, 0-9, _ and -.
    instanceId string
    ID of the ALIKAFKA Instance that owns the groups.
    kmsEncryptedPassword string
    An KMS encrypts password used to a db account. You have to specify one of password and kms_encrypted_password fields.
    kmsEncryptionContext {[key: string]: any}
    An KMS encryption context used to decrypt kms_encrypted_password before creating or updating a user with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
    password string
    The password of the SASL user. It may consist of letters, digits, or underlines, with a length of 1 to 64 characters. You have to specify one of password and kms_encrypted_password fields.
    type string
    The authentication mechanism. Default value: plain. Valid values: plain, scram.
    username string
    The name of the SASL user. The length should between 1 to 64 characters. The characters can only contain a-z, A-Z, 0-9, _ and -.
    instance_id str
    ID of the ALIKAFKA Instance that owns the groups.
    kms_encrypted_password str
    An KMS encrypts password used to a db account. You have to specify one of password and kms_encrypted_password fields.
    kms_encryption_context Mapping[str, Any]
    An KMS encryption context used to decrypt kms_encrypted_password before creating or updating a user with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
    password str
    The password of the SASL user. It may consist of letters, digits, or underlines, with a length of 1 to 64 characters. You have to specify one of password and kms_encrypted_password fields.
    type str
    The authentication mechanism. Default value: plain. Valid values: plain, scram.
    username str
    The name of the SASL user. The length should between 1 to 64 characters. The characters can only contain a-z, A-Z, 0-9, _ and -.
    instanceId String
    ID of the ALIKAFKA Instance that owns the groups.
    kmsEncryptedPassword String
    An KMS encrypts password used to a db account. You have to specify one of password and kms_encrypted_password fields.
    kmsEncryptionContext Map<Any>
    An KMS encryption context used to decrypt kms_encrypted_password before creating or updating a user with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
    password String
    The password of the SASL user. It may consist of letters, digits, or underlines, with a length of 1 to 64 characters. You have to specify one of password and kms_encrypted_password fields.
    type String
    The authentication mechanism. Default value: plain. Valid values: plain, scram.
    username String
    The name of the SASL user. The length should between 1 to 64 characters. The characters can only contain a-z, A-Z, 0-9, _ and -.

    Import

    Alikafka Sasl User can be imported using the id, e.g.

    $ pulumi import alicloud:alikafka/saslUser:SaslUser example <instance_id>:<username>
    

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi