1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. alikafka
  5. SaslAcl
Alibaba Cloud v3.94.0 published on Tuesday, Feb 3, 2026 by Pulumi
alicloud logo
Alibaba Cloud v3.94.0 published on Tuesday, Feb 3, 2026 by Pulumi

    Provides a Alikafka Sasl Acl resource.

    Kafka access control.

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

    NOTE: Available since v1.66.0.

    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 defaultInteger = new random.index.Integer("default", {
        min: 10000,
        max: 99999,
    });
    const _default = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const defaultNetwork = new alicloud.vpc.Network("default", {
        vpcName: name,
        cidrBlock: "10.4.0.0/16",
    });
    const defaultSwitch = new alicloud.vpc.Switch("default", {
        vswitchName: name,
        cidrBlock: "10.4.0.0/24",
        vpcId: defaultNetwork.id,
        zoneId: _default.then(_default => _default.zones?.[0]?.id),
    });
    const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {vpcId: defaultNetwork.id});
    const defaultInstance = new alicloud.alikafka.Instance("default", {
        name: `${name}-${defaultInteger.result}`,
        partitionNum: 50,
        diskType: 1,
        diskSize: 500,
        deployType: 5,
        ioMax: 20,
        specType: "professional",
        serviceVersion: "2.2.0",
        config: "{\"enable.acl\":\"true\"}",
        vswitchId: defaultSwitch.id,
        securityGroup: defaultSecurityGroup.id,
    });
    const defaultTopic = new alicloud.alikafka.Topic("default", {
        instanceId: defaultInstance.id,
        topic: "example-topic",
        remark: "topic-remark",
    });
    const defaultSaslUser = new alicloud.alikafka.SaslUser("default", {
        instanceId: defaultInstance.id,
        username: name,
        password: "tf_example123",
    });
    const defaultSaslAcl = new alicloud.alikafka.SaslAcl("default", {
        instanceId: defaultInstance.id,
        username: defaultSaslUser.username,
        aclResourceType: "Topic",
        aclResourceName: defaultTopic.topic,
        aclResourcePatternType: "LITERAL",
        aclOperationType: "Write",
    });
    
    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_integer = random.index.Integer("default",
        min=10000,
        max=99999)
    default = alicloud.get_zones(available_resource_creation="VSwitch")
    default_network = alicloud.vpc.Network("default",
        vpc_name=name,
        cidr_block="10.4.0.0/16")
    default_switch = alicloud.vpc.Switch("default",
        vswitch_name=name,
        cidr_block="10.4.0.0/24",
        vpc_id=default_network.id,
        zone_id=default.zones[0].id)
    default_security_group = alicloud.ecs.SecurityGroup("default", vpc_id=default_network.id)
    default_instance = alicloud.alikafka.Instance("default",
        name=f"{name}-{default_integer['result']}",
        partition_num=50,
        disk_type=1,
        disk_size=500,
        deploy_type=5,
        io_max=20,
        spec_type="professional",
        service_version="2.2.0",
        config="{\"enable.acl\":\"true\"}",
        vswitch_id=default_switch.id,
        security_group=default_security_group.id)
    default_topic = alicloud.alikafka.Topic("default",
        instance_id=default_instance.id,
        topic="example-topic",
        remark="topic-remark")
    default_sasl_user = alicloud.alikafka.SaslUser("default",
        instance_id=default_instance.id,
        username=name,
        password="tf_example123")
    default_sasl_acl = alicloud.alikafka.SaslAcl("default",
        instance_id=default_instance.id,
        username=default_sasl_user.username,
        acl_resource_type="Topic",
        acl_resource_name=default_topic.topic,
        acl_resource_pattern_type="LITERAL",
        acl_operation_type="Write")
    
    package main
    
    import (
    	"fmt"
    
    	"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
    		}
    		defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
    			Min: 10000,
    			Max: 99999,
    		})
    		if err != nil {
    			return err
    		}
    		_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("10.4.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("10.4.0.0/24"),
    			VpcId:       defaultNetwork.ID(),
    			ZoneId:      pulumi.String(_default.Zones[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
    			VpcId: defaultNetwork.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		defaultInstance, err := alikafka.NewInstance(ctx, "default", &alikafka.InstanceArgs{
    			Name:           pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
    			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"),
    			Config:         pulumi.String("{\"enable.acl\":\"true\"}"),
    			VswitchId:      defaultSwitch.ID(),
    			SecurityGroup:  defaultSecurityGroup.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		defaultTopic, err := alikafka.NewTopic(ctx, "default", &alikafka.TopicArgs{
    			InstanceId: defaultInstance.ID(),
    			Topic:      pulumi.String("example-topic"),
    			Remark:     pulumi.String("topic-remark"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSaslUser, err := alikafka.NewSaslUser(ctx, "default", &alikafka.SaslUserArgs{
    			InstanceId: defaultInstance.ID(),
    			Username:   pulumi.String(name),
    			Password:   pulumi.String("tf_example123"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = alikafka.NewSaslAcl(ctx, "default", &alikafka.SaslAclArgs{
    			InstanceId:             defaultInstance.ID(),
    			Username:               defaultSaslUser.Username,
    			AclResourceType:        pulumi.String("Topic"),
    			AclResourceName:        defaultTopic.Topic,
    			AclResourcePatternType: pulumi.String("LITERAL"),
    			AclOperationType:       pulumi.String("Write"),
    		})
    		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 defaultInteger = new Random.Index.Integer("default", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var @default = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultNetwork = new AliCloud.Vpc.Network("default", new()
        {
            VpcName = name,
            CidrBlock = "10.4.0.0/16",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
        {
            VswitchName = name,
            CidrBlock = "10.4.0.0/24",
            VpcId = defaultNetwork.Id,
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
        });
    
        var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
        {
            VpcId = defaultNetwork.Id,
        });
    
        var defaultInstance = new AliCloud.Alikafka.Instance("default", new()
        {
            Name = $"{name}-{defaultInteger.Result}",
            PartitionNum = 50,
            DiskType = 1,
            DiskSize = 500,
            DeployType = 5,
            IoMax = 20,
            SpecType = "professional",
            ServiceVersion = "2.2.0",
            Config = "{\"enable.acl\":\"true\"}",
            VswitchId = defaultSwitch.Id,
            SecurityGroup = defaultSecurityGroup.Id,
        });
    
        var defaultTopic = new AliCloud.Alikafka.Topic("default", new()
        {
            InstanceId = defaultInstance.Id,
            TopicName = "example-topic",
            Remark = "topic-remark",
        });
    
        var defaultSaslUser = new AliCloud.Alikafka.SaslUser("default", new()
        {
            InstanceId = defaultInstance.Id,
            Username = name,
            Password = "tf_example123",
        });
    
        var defaultSaslAcl = new AliCloud.Alikafka.SaslAcl("default", new()
        {
            InstanceId = defaultInstance.Id,
            Username = defaultSaslUser.Username,
            AclResourceType = "Topic",
            AclResourceName = defaultTopic.TopicName,
            AclResourcePatternType = "LITERAL",
            AclOperationType = "Write",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.Integer;
    import com.pulumi.random.IntegerArgs;
    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.alicloud.alikafka.Instance;
    import com.pulumi.alicloud.alikafka.InstanceArgs;
    import com.pulumi.alicloud.alikafka.Topic;
    import com.pulumi.alicloud.alikafka.TopicArgs;
    import com.pulumi.alicloud.alikafka.SaslUser;
    import com.pulumi.alicloud.alikafka.SaslUserArgs;
    import com.pulumi.alicloud.alikafka.SaslAcl;
    import com.pulumi.alicloud.alikafka.SaslAclArgs;
    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");
            var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
                .min(10000)
                .max(99999)
                .build());
    
            final var default = 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(default_.zones()[0].id())
                .build());
    
            var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
                .vpcId(defaultNetwork.id())
                .build());
    
            var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
                .name(String.format("%s-%s", name,defaultInteger.result()))
                .partitionNum(50)
                .diskType(1)
                .diskSize(500)
                .deployType(5)
                .ioMax(20)
                .specType("professional")
                .serviceVersion("2.2.0")
                .config("{\"enable.acl\":\"true\"}")
                .vswitchId(defaultSwitch.id())
                .securityGroup(defaultSecurityGroup.id())
                .build());
    
            var defaultTopic = new Topic("defaultTopic", TopicArgs.builder()
                .instanceId(defaultInstance.id())
                .topic("example-topic")
                .remark("topic-remark")
                .build());
    
            var defaultSaslUser = new SaslUser("defaultSaslUser", SaslUserArgs.builder()
                .instanceId(defaultInstance.id())
                .username(name)
                .password("tf_example123")
                .build());
    
            var defaultSaslAcl = new SaslAcl("defaultSaslAcl", SaslAclArgs.builder()
                .instanceId(defaultInstance.id())
                .username(defaultSaslUser.username())
                .aclResourceType("Topic")
                .aclResourceName(defaultTopic.topic())
                .aclResourcePatternType("LITERAL")
                .aclOperationType("Write")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf_example
    resources:
      defaultInteger:
        type: random:Integer
        name: default
        properties:
          min: 10000
          max: 99999
      defaultNetwork:
        type: alicloud:vpc:Network
        name: default
        properties:
          vpcName: ${name}
          cidrBlock: 10.4.0.0/16
      defaultSwitch:
        type: alicloud:vpc:Switch
        name: default
        properties:
          vswitchName: ${name}
          cidrBlock: 10.4.0.0/24
          vpcId: ${defaultNetwork.id}
          zoneId: ${default.zones[0].id}
      defaultSecurityGroup:
        type: alicloud:ecs:SecurityGroup
        name: default
        properties:
          vpcId: ${defaultNetwork.id}
      defaultInstance:
        type: alicloud:alikafka:Instance
        name: default
        properties:
          name: ${name}-${defaultInteger.result}
          partitionNum: 50
          diskType: '1'
          diskSize: '500'
          deployType: '5'
          ioMax: '20'
          specType: professional
          serviceVersion: 2.2.0
          config: '{"enable.acl":"true"}'
          vswitchId: ${defaultSwitch.id}
          securityGroup: ${defaultSecurityGroup.id}
      defaultTopic:
        type: alicloud:alikafka:Topic
        name: default
        properties:
          instanceId: ${defaultInstance.id}
          topic: example-topic
          remark: topic-remark
      defaultSaslUser:
        type: alicloud:alikafka:SaslUser
        name: default
        properties:
          instanceId: ${defaultInstance.id}
          username: ${name}
          password: tf_example123
      defaultSaslAcl:
        type: alicloud:alikafka:SaslAcl
        name: default
        properties:
          instanceId: ${defaultInstance.id}
          username: ${defaultSaslUser.username}
          aclResourceType: Topic
          aclResourceName: ${defaultTopic.topic}
          aclResourcePatternType: LITERAL
          aclOperationType: Write
    variables:
      default:
        fn::invoke:
          function: alicloud:getZones
          arguments:
            availableResourceCreation: VSwitch
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create SaslAcl Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SaslAcl(name: string, args: SaslAclArgs, opts?: CustomResourceOptions);
    @overload
    def SaslAcl(resource_name: str,
                args: SaslAclArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def SaslAcl(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                acl_operation_type: Optional[str] = None,
                acl_resource_name: Optional[str] = None,
                acl_resource_pattern_type: Optional[str] = None,
                acl_resource_type: Optional[str] = None,
                instance_id: Optional[str] = None,
                username: Optional[str] = None,
                acl_operation_types: Optional[str] = None,
                acl_permission_type: Optional[str] = None,
                host: Optional[str] = None)
    func NewSaslAcl(ctx *Context, name string, args SaslAclArgs, opts ...ResourceOption) (*SaslAcl, error)
    public SaslAcl(string name, SaslAclArgs args, CustomResourceOptions? opts = null)
    public SaslAcl(String name, SaslAclArgs args)
    public SaslAcl(String name, SaslAclArgs args, CustomResourceOptions options)
    
    type: alicloud:alikafka:SaslAcl
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SaslAclArgs
    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 SaslAclArgs
    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 SaslAclArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SaslAclArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SaslAclArgs
    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 saslAclResource = new AliCloud.Alikafka.SaslAcl("saslAclResource", new()
    {
        AclOperationType = "string",
        AclResourceName = "string",
        AclResourcePatternType = "string",
        AclResourceType = "string",
        InstanceId = "string",
        Username = "string",
        AclOperationTypes = "string",
        AclPermissionType = "string",
        Host = "string",
    });
    
    example, err := alikafka.NewSaslAcl(ctx, "saslAclResource", &alikafka.SaslAclArgs{
    	AclOperationType:       pulumi.String("string"),
    	AclResourceName:        pulumi.String("string"),
    	AclResourcePatternType: pulumi.String("string"),
    	AclResourceType:        pulumi.String("string"),
    	InstanceId:             pulumi.String("string"),
    	Username:               pulumi.String("string"),
    	AclOperationTypes:      pulumi.String("string"),
    	AclPermissionType:      pulumi.String("string"),
    	Host:                   pulumi.String("string"),
    })
    
    var saslAclResource = new SaslAcl("saslAclResource", SaslAclArgs.builder()
        .aclOperationType("string")
        .aclResourceName("string")
        .aclResourcePatternType("string")
        .aclResourceType("string")
        .instanceId("string")
        .username("string")
        .aclOperationTypes("string")
        .aclPermissionType("string")
        .host("string")
        .build());
    
    sasl_acl_resource = alicloud.alikafka.SaslAcl("saslAclResource",
        acl_operation_type="string",
        acl_resource_name="string",
        acl_resource_pattern_type="string",
        acl_resource_type="string",
        instance_id="string",
        username="string",
        acl_operation_types="string",
        acl_permission_type="string",
        host="string")
    
    const saslAclResource = new alicloud.alikafka.SaslAcl("saslAclResource", {
        aclOperationType: "string",
        aclResourceName: "string",
        aclResourcePatternType: "string",
        aclResourceType: "string",
        instanceId: "string",
        username: "string",
        aclOperationTypes: "string",
        aclPermissionType: "string",
        host: "string",
    });
    
    type: alicloud:alikafka:SaslAcl
    properties:
        aclOperationType: string
        aclOperationTypes: string
        aclPermissionType: string
        aclResourceName: string
        aclResourcePatternType: string
        aclResourceType: string
        host: string
        instanceId: string
        username: string
    

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

    AclOperationType string
    Operation type. Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.
    AclResourceName string
    The resource name.

    • The name of the resource, which can be a topic name, Group ID, cluster name, or transaction ID.
    • You can use an asterisk (*) to represent all resources of this type.
    AclResourcePatternType string
    Match the pattern. Valid values:

    • LITERAL: exact match
    • PREFIXED: prefix matching
    AclResourceType string
    The resource type. Valid values:

    • Topic: the message Topic.
    • Group: consumer Group.
    • Cluster: the instance.
    • TransactionalId: transaction ID.
    InstanceId string
    The instance ID.
    Username string
    The user name.
    AclOperationTypes string

    Batch authorization operation types. Multiple operations are separated by commas (,). Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.

    NOTE: acl_operation_types is only supported for Serverless instances.

    AclPermissionType string

    Authorization method. Value:

    • DENY: deny.
    • ALLOW: allow.

    NOTE: acl_permission_type is only supported for Serverless instances.

    Host string

    The host of the acl.

    NOTE: From version 1.270.0, host can be set.

    AclOperationType string
    Operation type. Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.
    AclResourceName string
    The resource name.

    • The name of the resource, which can be a topic name, Group ID, cluster name, or transaction ID.
    • You can use an asterisk (*) to represent all resources of this type.
    AclResourcePatternType string
    Match the pattern. Valid values:

    • LITERAL: exact match
    • PREFIXED: prefix matching
    AclResourceType string
    The resource type. Valid values:

    • Topic: the message Topic.
    • Group: consumer Group.
    • Cluster: the instance.
    • TransactionalId: transaction ID.
    InstanceId string
    The instance ID.
    Username string
    The user name.
    AclOperationTypes string

    Batch authorization operation types. Multiple operations are separated by commas (,). Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.

    NOTE: acl_operation_types is only supported for Serverless instances.

    AclPermissionType string

    Authorization method. Value:

    • DENY: deny.
    • ALLOW: allow.

    NOTE: acl_permission_type is only supported for Serverless instances.

    Host string

    The host of the acl.

    NOTE: From version 1.270.0, host can be set.

    aclOperationType String
    Operation type. Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.
    aclResourceName String
    The resource name.

    • The name of the resource, which can be a topic name, Group ID, cluster name, or transaction ID.
    • You can use an asterisk (*) to represent all resources of this type.
    aclResourcePatternType String
    Match the pattern. Valid values:

    • LITERAL: exact match
    • PREFIXED: prefix matching
    aclResourceType String
    The resource type. Valid values:

    • Topic: the message Topic.
    • Group: consumer Group.
    • Cluster: the instance.
    • TransactionalId: transaction ID.
    instanceId String
    The instance ID.
    username String
    The user name.
    aclOperationTypes String

    Batch authorization operation types. Multiple operations are separated by commas (,). Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.

    NOTE: acl_operation_types is only supported for Serverless instances.

    aclPermissionType String

    Authorization method. Value:

    • DENY: deny.
    • ALLOW: allow.

    NOTE: acl_permission_type is only supported for Serverless instances.

    host String

    The host of the acl.

    NOTE: From version 1.270.0, host can be set.

    aclOperationType string
    Operation type. Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.
    aclResourceName string
    The resource name.

    • The name of the resource, which can be a topic name, Group ID, cluster name, or transaction ID.
    • You can use an asterisk (*) to represent all resources of this type.
    aclResourcePatternType string
    Match the pattern. Valid values:

    • LITERAL: exact match
    • PREFIXED: prefix matching
    aclResourceType string
    The resource type. Valid values:

    • Topic: the message Topic.
    • Group: consumer Group.
    • Cluster: the instance.
    • TransactionalId: transaction ID.
    instanceId string
    The instance ID.
    username string
    The user name.
    aclOperationTypes string

    Batch authorization operation types. Multiple operations are separated by commas (,). Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.

    NOTE: acl_operation_types is only supported for Serverless instances.

    aclPermissionType string

    Authorization method. Value:

    • DENY: deny.
    • ALLOW: allow.

    NOTE: acl_permission_type is only supported for Serverless instances.

    host string

    The host of the acl.

    NOTE: From version 1.270.0, host can be set.

    acl_operation_type str
    Operation type. Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.
    acl_resource_name str
    The resource name.

    • The name of the resource, which can be a topic name, Group ID, cluster name, or transaction ID.
    • You can use an asterisk (*) to represent all resources of this type.
    acl_resource_pattern_type str
    Match the pattern. Valid values:

    • LITERAL: exact match
    • PREFIXED: prefix matching
    acl_resource_type str
    The resource type. Valid values:

    • Topic: the message Topic.
    • Group: consumer Group.
    • Cluster: the instance.
    • TransactionalId: transaction ID.
    instance_id str
    The instance ID.
    username str
    The user name.
    acl_operation_types str

    Batch authorization operation types. Multiple operations are separated by commas (,). Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.

    NOTE: acl_operation_types is only supported for Serverless instances.

    acl_permission_type str

    Authorization method. Value:

    • DENY: deny.
    • ALLOW: allow.

    NOTE: acl_permission_type is only supported for Serverless instances.

    host str

    The host of the acl.

    NOTE: From version 1.270.0, host can be set.

    aclOperationType String
    Operation type. Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.
    aclResourceName String
    The resource name.

    • The name of the resource, which can be a topic name, Group ID, cluster name, or transaction ID.
    • You can use an asterisk (*) to represent all resources of this type.
    aclResourcePatternType String
    Match the pattern. Valid values:

    • LITERAL: exact match
    • PREFIXED: prefix matching
    aclResourceType String
    The resource type. Valid values:

    • Topic: the message Topic.
    • Group: consumer Group.
    • Cluster: the instance.
    • TransactionalId: transaction ID.
    instanceId String
    The instance ID.
    username String
    The user name.
    aclOperationTypes String

    Batch authorization operation types. Multiple operations are separated by commas (,). Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.

    NOTE: acl_operation_types is only supported for Serverless instances.

    aclPermissionType String

    Authorization method. Value:

    • DENY: deny.
    • ALLOW: allow.

    NOTE: acl_permission_type is only supported for Serverless instances.

    host String

    The host of the acl.

    NOTE: From version 1.270.0, host can be set.

    Outputs

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

    Get an existing SaslAcl 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?: SaslAclState, opts?: CustomResourceOptions): SaslAcl
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acl_operation_type: Optional[str] = None,
            acl_operation_types: Optional[str] = None,
            acl_permission_type: Optional[str] = None,
            acl_resource_name: Optional[str] = None,
            acl_resource_pattern_type: Optional[str] = None,
            acl_resource_type: Optional[str] = None,
            host: Optional[str] = None,
            instance_id: Optional[str] = None,
            username: Optional[str] = None) -> SaslAcl
    func GetSaslAcl(ctx *Context, name string, id IDInput, state *SaslAclState, opts ...ResourceOption) (*SaslAcl, error)
    public static SaslAcl Get(string name, Input<string> id, SaslAclState? state, CustomResourceOptions? opts = null)
    public static SaslAcl get(String name, Output<String> id, SaslAclState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:alikafka:SaslAcl    get:      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.
    The following state arguments are supported:
    AclOperationType string
    Operation type. Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.
    AclOperationTypes string

    Batch authorization operation types. Multiple operations are separated by commas (,). Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.

    NOTE: acl_operation_types is only supported for Serverless instances.

    AclPermissionType string

    Authorization method. Value:

    • DENY: deny.
    • ALLOW: allow.

    NOTE: acl_permission_type is only supported for Serverless instances.

    AclResourceName string
    The resource name.

    • The name of the resource, which can be a topic name, Group ID, cluster name, or transaction ID.
    • You can use an asterisk (*) to represent all resources of this type.
    AclResourcePatternType string
    Match the pattern. Valid values:

    • LITERAL: exact match
    • PREFIXED: prefix matching
    AclResourceType string
    The resource type. Valid values:

    • Topic: the message Topic.
    • Group: consumer Group.
    • Cluster: the instance.
    • TransactionalId: transaction ID.
    Host string

    The host of the acl.

    NOTE: From version 1.270.0, host can be set.

    InstanceId string
    The instance ID.
    Username string
    The user name.
    AclOperationType string
    Operation type. Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.
    AclOperationTypes string

    Batch authorization operation types. Multiple operations are separated by commas (,). Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.

    NOTE: acl_operation_types is only supported for Serverless instances.

    AclPermissionType string

    Authorization method. Value:

    • DENY: deny.
    • ALLOW: allow.

    NOTE: acl_permission_type is only supported for Serverless instances.

    AclResourceName string
    The resource name.

    • The name of the resource, which can be a topic name, Group ID, cluster name, or transaction ID.
    • You can use an asterisk (*) to represent all resources of this type.
    AclResourcePatternType string
    Match the pattern. Valid values:

    • LITERAL: exact match
    • PREFIXED: prefix matching
    AclResourceType string
    The resource type. Valid values:

    • Topic: the message Topic.
    • Group: consumer Group.
    • Cluster: the instance.
    • TransactionalId: transaction ID.
    Host string

    The host of the acl.

    NOTE: From version 1.270.0, host can be set.

    InstanceId string
    The instance ID.
    Username string
    The user name.
    aclOperationType String
    Operation type. Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.
    aclOperationTypes String

    Batch authorization operation types. Multiple operations are separated by commas (,). Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.

    NOTE: acl_operation_types is only supported for Serverless instances.

    aclPermissionType String

    Authorization method. Value:

    • DENY: deny.
    • ALLOW: allow.

    NOTE: acl_permission_type is only supported for Serverless instances.

    aclResourceName String
    The resource name.

    • The name of the resource, which can be a topic name, Group ID, cluster name, or transaction ID.
    • You can use an asterisk (*) to represent all resources of this type.
    aclResourcePatternType String
    Match the pattern. Valid values:

    • LITERAL: exact match
    • PREFIXED: prefix matching
    aclResourceType String
    The resource type. Valid values:

    • Topic: the message Topic.
    • Group: consumer Group.
    • Cluster: the instance.
    • TransactionalId: transaction ID.
    host String

    The host of the acl.

    NOTE: From version 1.270.0, host can be set.

    instanceId String
    The instance ID.
    username String
    The user name.
    aclOperationType string
    Operation type. Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.
    aclOperationTypes string

    Batch authorization operation types. Multiple operations are separated by commas (,). Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.

    NOTE: acl_operation_types is only supported for Serverless instances.

    aclPermissionType string

    Authorization method. Value:

    • DENY: deny.
    • ALLOW: allow.

    NOTE: acl_permission_type is only supported for Serverless instances.

    aclResourceName string
    The resource name.

    • The name of the resource, which can be a topic name, Group ID, cluster name, or transaction ID.
    • You can use an asterisk (*) to represent all resources of this type.
    aclResourcePatternType string
    Match the pattern. Valid values:

    • LITERAL: exact match
    • PREFIXED: prefix matching
    aclResourceType string
    The resource type. Valid values:

    • Topic: the message Topic.
    • Group: consumer Group.
    • Cluster: the instance.
    • TransactionalId: transaction ID.
    host string

    The host of the acl.

    NOTE: From version 1.270.0, host can be set.

    instanceId string
    The instance ID.
    username string
    The user name.
    acl_operation_type str
    Operation type. Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.
    acl_operation_types str

    Batch authorization operation types. Multiple operations are separated by commas (,). Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.

    NOTE: acl_operation_types is only supported for Serverless instances.

    acl_permission_type str

    Authorization method. Value:

    • DENY: deny.
    • ALLOW: allow.

    NOTE: acl_permission_type is only supported for Serverless instances.

    acl_resource_name str
    The resource name.

    • The name of the resource, which can be a topic name, Group ID, cluster name, or transaction ID.
    • You can use an asterisk (*) to represent all resources of this type.
    acl_resource_pattern_type str
    Match the pattern. Valid values:

    • LITERAL: exact match
    • PREFIXED: prefix matching
    acl_resource_type str
    The resource type. Valid values:

    • Topic: the message Topic.
    • Group: consumer Group.
    • Cluster: the instance.
    • TransactionalId: transaction ID.
    host str

    The host of the acl.

    NOTE: From version 1.270.0, host can be set.

    instance_id str
    The instance ID.
    username str
    The user name.
    aclOperationType String
    Operation type. Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.
    aclOperationTypes String

    Batch authorization operation types. Multiple operations are separated by commas (,). Valid values:

    • Write: write
    • Read: read
    • Describe: read TransactionalId
    • IdempotentWrite: idempotent write to Cluster
    • IDEMPOTENT_WRITE: idempotent write to Cluster, only available for Serverless instances.
    • DESCRIBE_CONFIGS: query configuration, only available for Serverless instances.

    NOTE: acl_operation_types is only supported for Serverless instances.

    aclPermissionType String

    Authorization method. Value:

    • DENY: deny.
    • ALLOW: allow.

    NOTE: acl_permission_type is only supported for Serverless instances.

    aclResourceName String
    The resource name.

    • The name of the resource, which can be a topic name, Group ID, cluster name, or transaction ID.
    • You can use an asterisk (*) to represent all resources of this type.
    aclResourcePatternType String
    Match the pattern. Valid values:

    • LITERAL: exact match
    • PREFIXED: prefix matching
    aclResourceType String
    The resource type. Valid values:

    • Topic: the message Topic.
    • Group: consumer Group.
    • Cluster: the instance.
    • TransactionalId: transaction ID.
    host String

    The host of the acl.

    NOTE: From version 1.270.0, host can be set.

    instanceId String
    The instance ID.
    username String
    The user name.

    Import

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

    $ pulumi import alicloud:alikafka/saslAcl:SaslAcl example <instance_id>:<username>:<acl_resource_type>:<acl_resource_name>:<acl_resource_pattern_type>:<acl_operation_type>
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.94.0 published on Tuesday, Feb 3, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate