1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. rocketmq
  5. Acl
Alibaba Cloud v3.77.0 published on Friday, May 2, 2025 by Pulumi

alicloud.rocketmq.Acl

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.77.0 published on Friday, May 2, 2025 by Pulumi

    Provides a RocketMQ Acl resource.

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

    NOTE: Available since v1.245.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const defaultrqDtGm = new alicloud.vpc.Network("defaultrqDtGm", {
        description: "1111",
        cidrBlock: "192.168.0.0/16",
        vpcName: "pop-example-vpc",
    });
    const defaultjUrTYm = new alicloud.vpc.Switch("defaultjUrTYm", {
        vpcId: defaultrqDtGm.id,
        zoneId: "cn-hangzhou-j",
        cidrBlock: "192.168.0.0/24",
        vswitchName: "pop-example-vswitch",
    });
    const defaultKJZNVM = new alicloud.rocketmq.RocketMQInstance("defaultKJZNVM", {
        productInfo: {
            msgProcessSpec: "rmq.p2.4xlarge",
            sendReceiveRatio: 0.3,
            messageRetentionTime: 70,
        },
        serviceCode: "rmq",
        seriesCode: "professional",
        paymentType: "PayAsYouGo",
        instanceName: name,
        subSeriesCode: "cluster_ha",
        remark: "example",
        networkInfo: {
            vpcInfo: {
                vpcId: defaultrqDtGm.id,
                vswitches: [{
                    vswitchId: defaultjUrTYm.id,
                }],
            },
            internetInfo: {
                internetSpec: "enable",
                flowOutType: "payByBandwidth",
                flowOutBandwidth: 5,
            },
        },
        aclInfo: {
            defaultVpcAuthFree: false,
            aclTypes: [
                "default",
                "apache_acl",
            ],
        },
    });
    const defaultMeNlxe = new alicloud.rocketmq.Account("defaultMeNlxe", {
        accountStatus: "ENABLE",
        instanceId: defaultKJZNVM.id,
        username: "tfexample",
        password: "123456",
    });
    const defaultVA0zog = new alicloud.rocketmq.RocketMQTopic("defaultVA0zog", {
        instanceId: defaultKJZNVM.id,
        messageType: "NORMAL",
        topicName: "tfexample",
    });
    const _default = new alicloud.rocketmq.Acl("default", {
        actions: [
            "Pub",
            "Sub",
        ],
        instanceId: defaultKJZNVM.id,
        username: defaultMeNlxe.username,
        resourceName: defaultVA0zog.topicName,
        resourceType: "Topic",
        decision: "Deny",
        ipWhitelists: ["192.168.5.5"],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    defaultrq_dt_gm = alicloud.vpc.Network("defaultrqDtGm",
        description="1111",
        cidr_block="192.168.0.0/16",
        vpc_name="pop-example-vpc")
    defaultj_ur_t_ym = alicloud.vpc.Switch("defaultjUrTYm",
        vpc_id=defaultrq_dt_gm.id,
        zone_id="cn-hangzhou-j",
        cidr_block="192.168.0.0/24",
        vswitch_name="pop-example-vswitch")
    default_kjznvm = alicloud.rocketmq.RocketMQInstance("defaultKJZNVM",
        product_info={
            "msg_process_spec": "rmq.p2.4xlarge",
            "send_receive_ratio": 0.3,
            "message_retention_time": 70,
        },
        service_code="rmq",
        series_code="professional",
        payment_type="PayAsYouGo",
        instance_name=name,
        sub_series_code="cluster_ha",
        remark="example",
        network_info={
            "vpc_info": {
                "vpc_id": defaultrq_dt_gm.id,
                "vswitches": [{
                    "vswitch_id": defaultj_ur_t_ym.id,
                }],
            },
            "internet_info": {
                "internet_spec": "enable",
                "flow_out_type": "payByBandwidth",
                "flow_out_bandwidth": 5,
            },
        },
        acl_info={
            "default_vpc_auth_free": False,
            "acl_types": [
                "default",
                "apache_acl",
            ],
        })
    default_me_nlxe = alicloud.rocketmq.Account("defaultMeNlxe",
        account_status="ENABLE",
        instance_id=default_kjznvm.id,
        username="tfexample",
        password="123456")
    default_va0zog = alicloud.rocketmq.RocketMQTopic("defaultVA0zog",
        instance_id=default_kjznvm.id,
        message_type="NORMAL",
        topic_name="tfexample")
    default = alicloud.rocketmq.Acl("default",
        actions=[
            "Pub",
            "Sub",
        ],
        instance_id=default_kjznvm.id,
        username=default_me_nlxe.username,
        resource_name_=default_va0zog.topic_name,
        resource_type="Topic",
        decision="Deny",
        ip_whitelists=["192.168.5.5"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rocketmq"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"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 := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultrqDtGm, err := vpc.NewNetwork(ctx, "defaultrqDtGm", &vpc.NetworkArgs{
    			Description: pulumi.String("1111"),
    			CidrBlock:   pulumi.String("192.168.0.0/16"),
    			VpcName:     pulumi.String("pop-example-vpc"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultjUrTYm, err := vpc.NewSwitch(ctx, "defaultjUrTYm", &vpc.SwitchArgs{
    			VpcId:       defaultrqDtGm.ID(),
    			ZoneId:      pulumi.String("cn-hangzhou-j"),
    			CidrBlock:   pulumi.String("192.168.0.0/24"),
    			VswitchName: pulumi.String("pop-example-vswitch"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultKJZNVM, err := rocketmq.NewRocketMQInstance(ctx, "defaultKJZNVM", &rocketmq.RocketMQInstanceArgs{
    			ProductInfo: &rocketmq.RocketMQInstanceProductInfoArgs{
    				MsgProcessSpec:       pulumi.String("rmq.p2.4xlarge"),
    				SendReceiveRatio:     pulumi.Float64(0.3),
    				MessageRetentionTime: pulumi.Int(70),
    			},
    			ServiceCode:   pulumi.String("rmq"),
    			SeriesCode:    pulumi.String("professional"),
    			PaymentType:   pulumi.String("PayAsYouGo"),
    			InstanceName:  pulumi.String(name),
    			SubSeriesCode: pulumi.String("cluster_ha"),
    			Remark:        pulumi.String("example"),
    			NetworkInfo: &rocketmq.RocketMQInstanceNetworkInfoArgs{
    				VpcInfo: &rocketmq.RocketMQInstanceNetworkInfoVpcInfoArgs{
    					VpcId: defaultrqDtGm.ID(),
    					Vswitches: rocketmq.RocketMQInstanceNetworkInfoVpcInfoVswitchArray{
    						&rocketmq.RocketMQInstanceNetworkInfoVpcInfoVswitchArgs{
    							VswitchId: defaultjUrTYm.ID(),
    						},
    					},
    				},
    				InternetInfo: &rocketmq.RocketMQInstanceNetworkInfoInternetInfoArgs{
    					InternetSpec:     pulumi.String("enable"),
    					FlowOutType:      pulumi.String("payByBandwidth"),
    					FlowOutBandwidth: pulumi.Int(5),
    				},
    			},
    			AclInfo: &rocketmq.RocketMQInstanceAclInfoArgs{
    				DefaultVpcAuthFree: pulumi.Bool(false),
    				AclTypes: pulumi.StringArray{
    					pulumi.String("default"),
    					pulumi.String("apache_acl"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		defaultMeNlxe, err := rocketmq.NewAccount(ctx, "defaultMeNlxe", &rocketmq.AccountArgs{
    			AccountStatus: pulumi.String("ENABLE"),
    			InstanceId:    defaultKJZNVM.ID(),
    			Username:      pulumi.String("tfexample"),
    			Password:      pulumi.String("123456"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultVA0zog, err := rocketmq.NewRocketMQTopic(ctx, "defaultVA0zog", &rocketmq.RocketMQTopicArgs{
    			InstanceId:  defaultKJZNVM.ID(),
    			MessageType: pulumi.String("NORMAL"),
    			TopicName:   pulumi.String("tfexample"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = rocketmq.NewAcl(ctx, "default", &rocketmq.AclArgs{
    			Actions: pulumi.StringArray{
    				pulumi.String("Pub"),
    				pulumi.String("Sub"),
    			},
    			InstanceId:   defaultKJZNVM.ID(),
    			Username:     defaultMeNlxe.Username,
    			ResourceName: defaultVA0zog.TopicName,
    			ResourceType: pulumi.String("Topic"),
    			Decision:     pulumi.String("Deny"),
    			IpWhitelists: pulumi.StringArray{
    				pulumi.String("192.168.5.5"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var defaultrqDtGm = new AliCloud.Vpc.Network("defaultrqDtGm", new()
        {
            Description = "1111",
            CidrBlock = "192.168.0.0/16",
            VpcName = "pop-example-vpc",
        });
    
        var defaultjUrTYm = new AliCloud.Vpc.Switch("defaultjUrTYm", new()
        {
            VpcId = defaultrqDtGm.Id,
            ZoneId = "cn-hangzhou-j",
            CidrBlock = "192.168.0.0/24",
            VswitchName = "pop-example-vswitch",
        });
    
        var defaultKJZNVM = new AliCloud.RocketMQ.RocketMQInstance("defaultKJZNVM", new()
        {
            ProductInfo = new AliCloud.RocketMQ.Inputs.RocketMQInstanceProductInfoArgs
            {
                MsgProcessSpec = "rmq.p2.4xlarge",
                SendReceiveRatio = 0.3,
                MessageRetentionTime = 70,
            },
            ServiceCode = "rmq",
            SeriesCode = "professional",
            PaymentType = "PayAsYouGo",
            InstanceName = name,
            SubSeriesCode = "cluster_ha",
            Remark = "example",
            NetworkInfo = new AliCloud.RocketMQ.Inputs.RocketMQInstanceNetworkInfoArgs
            {
                VpcInfo = new AliCloud.RocketMQ.Inputs.RocketMQInstanceNetworkInfoVpcInfoArgs
                {
                    VpcId = defaultrqDtGm.Id,
                    Vswitches = new[]
                    {
                        new AliCloud.RocketMQ.Inputs.RocketMQInstanceNetworkInfoVpcInfoVswitchArgs
                        {
                            VswitchId = defaultjUrTYm.Id,
                        },
                    },
                },
                InternetInfo = new AliCloud.RocketMQ.Inputs.RocketMQInstanceNetworkInfoInternetInfoArgs
                {
                    InternetSpec = "enable",
                    FlowOutType = "payByBandwidth",
                    FlowOutBandwidth = 5,
                },
            },
            AclInfo = new AliCloud.RocketMQ.Inputs.RocketMQInstanceAclInfoArgs
            {
                DefaultVpcAuthFree = false,
                AclTypes = new[]
                {
                    "default",
                    "apache_acl",
                },
            },
        });
    
        var defaultMeNlxe = new AliCloud.RocketMQ.Account("defaultMeNlxe", new()
        {
            AccountStatus = "ENABLE",
            InstanceId = defaultKJZNVM.Id,
            Username = "tfexample",
            Password = "123456",
        });
    
        var defaultVA0zog = new AliCloud.RocketMQ.RocketMQTopic("defaultVA0zog", new()
        {
            InstanceId = defaultKJZNVM.Id,
            MessageType = "NORMAL",
            TopicName = "tfexample",
        });
    
        var @default = new AliCloud.RocketMQ.Acl("default", new()
        {
            Actions = new[]
            {
                "Pub",
                "Sub",
            },
            InstanceId = defaultKJZNVM.Id,
            Username = defaultMeNlxe.Username,
            ResourceName = defaultVA0zog.TopicName,
            ResourceType = "Topic",
            Decision = "Deny",
            IpWhitelists = new[]
            {
                "192.168.5.5",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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.rocketmq.RocketMQInstance;
    import com.pulumi.alicloud.rocketmq.RocketMQInstanceArgs;
    import com.pulumi.alicloud.rocketmq.inputs.RocketMQInstanceProductInfoArgs;
    import com.pulumi.alicloud.rocketmq.inputs.RocketMQInstanceNetworkInfoArgs;
    import com.pulumi.alicloud.rocketmq.inputs.RocketMQInstanceNetworkInfoVpcInfoArgs;
    import com.pulumi.alicloud.rocketmq.inputs.RocketMQInstanceNetworkInfoInternetInfoArgs;
    import com.pulumi.alicloud.rocketmq.inputs.RocketMQInstanceAclInfoArgs;
    import com.pulumi.alicloud.rocketmq.Account;
    import com.pulumi.alicloud.rocketmq.AccountArgs;
    import com.pulumi.alicloud.rocketmq.RocketMQTopic;
    import com.pulumi.alicloud.rocketmq.RocketMQTopicArgs;
    import com.pulumi.alicloud.rocketmq.Acl;
    import com.pulumi.alicloud.rocketmq.AclArgs;
    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("terraform-example");
            var defaultrqDtGm = new Network("defaultrqDtGm", NetworkArgs.builder()
                .description("1111")
                .cidrBlock("192.168.0.0/16")
                .vpcName("pop-example-vpc")
                .build());
    
            var defaultjUrTYm = new Switch("defaultjUrTYm", SwitchArgs.builder()
                .vpcId(defaultrqDtGm.id())
                .zoneId("cn-hangzhou-j")
                .cidrBlock("192.168.0.0/24")
                .vswitchName("pop-example-vswitch")
                .build());
    
            var defaultKJZNVM = new RocketMQInstance("defaultKJZNVM", RocketMQInstanceArgs.builder()
                .productInfo(RocketMQInstanceProductInfoArgs.builder()
                    .msgProcessSpec("rmq.p2.4xlarge")
                    .sendReceiveRatio(0.3)
                    .messageRetentionTime(70)
                    .build())
                .serviceCode("rmq")
                .seriesCode("professional")
                .paymentType("PayAsYouGo")
                .instanceName(name)
                .subSeriesCode("cluster_ha")
                .remark("example")
                .networkInfo(RocketMQInstanceNetworkInfoArgs.builder()
                    .vpcInfo(RocketMQInstanceNetworkInfoVpcInfoArgs.builder()
                        .vpcId(defaultrqDtGm.id())
                        .vswitches(RocketMQInstanceNetworkInfoVpcInfoVswitchArgs.builder()
                            .vswitchId(defaultjUrTYm.id())
                            .build())
                        .build())
                    .internetInfo(RocketMQInstanceNetworkInfoInternetInfoArgs.builder()
                        .internetSpec("enable")
                        .flowOutType("payByBandwidth")
                        .flowOutBandwidth(5)
                        .build())
                    .build())
                .aclInfo(RocketMQInstanceAclInfoArgs.builder()
                    .defaultVpcAuthFree(false)
                    .aclTypes(                
                        "default",
                        "apache_acl")
                    .build())
                .build());
    
            var defaultMeNlxe = new Account("defaultMeNlxe", AccountArgs.builder()
                .accountStatus("ENABLE")
                .instanceId(defaultKJZNVM.id())
                .username("tfexample")
                .password("123456")
                .build());
    
            var defaultVA0zog = new RocketMQTopic("defaultVA0zog", RocketMQTopicArgs.builder()
                .instanceId(defaultKJZNVM.id())
                .messageType("NORMAL")
                .topicName("tfexample")
                .build());
    
            var default_ = new Acl("default", AclArgs.builder()
                .actions(            
                    "Pub",
                    "Sub")
                .instanceId(defaultKJZNVM.id())
                .username(defaultMeNlxe.username())
                .resourceName(defaultVA0zog.topicName())
                .resourceType("Topic")
                .decision("Deny")
                .ipWhitelists("192.168.5.5")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultrqDtGm:
        type: alicloud:vpc:Network
        properties:
          description: '1111'
          cidrBlock: 192.168.0.0/16
          vpcName: pop-example-vpc
      defaultjUrTYm:
        type: alicloud:vpc:Switch
        properties:
          vpcId: ${defaultrqDtGm.id}
          zoneId: cn-hangzhou-j
          cidrBlock: 192.168.0.0/24
          vswitchName: pop-example-vswitch
      defaultKJZNVM:
        type: alicloud:rocketmq:RocketMQInstance
        properties:
          productInfo:
            msgProcessSpec: rmq.p2.4xlarge
            sendReceiveRatio: '0.3'
            messageRetentionTime: '70'
          serviceCode: rmq
          seriesCode: professional
          paymentType: PayAsYouGo
          instanceName: ${name}
          subSeriesCode: cluster_ha
          remark: example
          networkInfo:
            vpcInfo:
              vpcId: ${defaultrqDtGm.id}
              vswitches:
                - vswitchId: ${defaultjUrTYm.id}
            internetInfo:
              internetSpec: enable
              flowOutType: payByBandwidth
              flowOutBandwidth: '5'
          aclInfo:
            defaultVpcAuthFree: false
            aclTypes:
              - default
              - apache_acl
      defaultMeNlxe:
        type: alicloud:rocketmq:Account
        properties:
          accountStatus: ENABLE
          instanceId: ${defaultKJZNVM.id}
          username: tfexample
          password: '123456'
      defaultVA0zog:
        type: alicloud:rocketmq:RocketMQTopic
        properties:
          instanceId: ${defaultKJZNVM.id}
          messageType: NORMAL
          topicName: tfexample
      default:
        type: alicloud:rocketmq:Acl
        properties:
          actions:
            - Pub
            - Sub
          instanceId: ${defaultKJZNVM.id}
          username: ${defaultMeNlxe.username}
          resourceName: ${defaultVA0zog.topicName}
          resourceType: Topic
          decision: Deny
          ipWhitelists:
            - 192.168.5.5
    

    Create Acl Resource

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

    Constructor syntax

    new Acl(name: string, args: AclArgs, opts?: CustomResourceOptions);
    @overload
    def Acl(resource_name: str,
            args: AclArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Acl(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            actions: Optional[Sequence[str]] = None,
            decision: Optional[str] = None,
            instance_id: Optional[str] = None,
            resource_name_: Optional[str] = None,
            resource_type: Optional[str] = None,
            username: Optional[str] = None,
            ip_whitelists: Optional[Sequence[str]] = None)
    func NewAcl(ctx *Context, name string, args AclArgs, opts ...ResourceOption) (*Acl, error)
    public Acl(string name, AclArgs args, CustomResourceOptions? opts = null)
    public Acl(String name, AclArgs args)
    public Acl(String name, AclArgs args, CustomResourceOptions options)
    
    type: alicloud:rocketmq:Acl
    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 AclArgs
    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 AclArgs
    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 AclArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AclArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AclArgs
    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 exampleaclResourceResourceFromRocketmqacl = new AliCloud.RocketMQ.Acl("exampleaclResourceResourceFromRocketmqacl", new()
    {
        Actions = new[]
        {
            "string",
        },
        Decision = "string",
        InstanceId = "string",
        ResourceName = "string",
        ResourceType = "string",
        Username = "string",
        IpWhitelists = new[]
        {
            "string",
        },
    });
    
    example, err := rocketmq.NewAcl(ctx, "exampleaclResourceResourceFromRocketmqacl", &rocketmq.AclArgs{
    	Actions: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Decision:     pulumi.String("string"),
    	InstanceId:   pulumi.String("string"),
    	ResourceName: pulumi.String("string"),
    	ResourceType: pulumi.String("string"),
    	Username:     pulumi.String("string"),
    	IpWhitelists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var exampleaclResourceResourceFromRocketmqacl = new com.pulumi.alicloud.rocketmq.Acl("exampleaclResourceResourceFromRocketmqacl", com.pulumi.alicloud.rocketmq.AclArgs.builder()
        .actions("string")
        .decision("string")
        .instanceId("string")
        .resourceName("string")
        .resourceType("string")
        .username("string")
        .ipWhitelists("string")
        .build());
    
    exampleacl_resource_resource_from_rocketmqacl = alicloud.rocketmq.Acl("exampleaclResourceResourceFromRocketmqacl",
        actions=["string"],
        decision="string",
        instance_id="string",
        resource_name_="string",
        resource_type="string",
        username="string",
        ip_whitelists=["string"])
    
    const exampleaclResourceResourceFromRocketmqacl = new alicloud.rocketmq.Acl("exampleaclResourceResourceFromRocketmqacl", {
        actions: ["string"],
        decision: "string",
        instanceId: "string",
        resourceName: "string",
        resourceType: "string",
        username: "string",
        ipWhitelists: ["string"],
    });
    
    type: alicloud:rocketmq:Acl
    properties:
        actions:
            - string
        decision: string
        instanceId: string
        ipWhitelists:
            - string
        resourceName: string
        resourceType: string
        username: string
    

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

    Actions List<string>
    The type of operations that can be performed on the resource. Valid values:

    • If resource_type is set to Topic. Valid values: Pub, Sub.
    • If resource_type is set to Group. Valid values: Sub.
    Decision string
    The decision result of the authorization. Valid values: Deny, Allow.
    InstanceId string
    The instance ID.
    ResourceName string
    The name of the resource on which you want to grant permissions.
    ResourceType string
    The type of the resource on which you want to grant permissions. Valid values: Group, Topic.
    Username string
    The username of the account.
    IpWhitelists List<string>
    The IP address whitelists.
    Actions []string
    The type of operations that can be performed on the resource. Valid values:

    • If resource_type is set to Topic. Valid values: Pub, Sub.
    • If resource_type is set to Group. Valid values: Sub.
    Decision string
    The decision result of the authorization. Valid values: Deny, Allow.
    InstanceId string
    The instance ID.
    ResourceName string
    The name of the resource on which you want to grant permissions.
    ResourceType string
    The type of the resource on which you want to grant permissions. Valid values: Group, Topic.
    Username string
    The username of the account.
    IpWhitelists []string
    The IP address whitelists.
    actions List<String>
    The type of operations that can be performed on the resource. Valid values:

    • If resource_type is set to Topic. Valid values: Pub, Sub.
    • If resource_type is set to Group. Valid values: Sub.
    decision String
    The decision result of the authorization. Valid values: Deny, Allow.
    instanceId String
    The instance ID.
    resourceName String
    The name of the resource on which you want to grant permissions.
    resourceType String
    The type of the resource on which you want to grant permissions. Valid values: Group, Topic.
    username String
    The username of the account.
    ipWhitelists List<String>
    The IP address whitelists.
    actions string[]
    The type of operations that can be performed on the resource. Valid values:

    • If resource_type is set to Topic. Valid values: Pub, Sub.
    • If resource_type is set to Group. Valid values: Sub.
    decision string
    The decision result of the authorization. Valid values: Deny, Allow.
    instanceId string
    The instance ID.
    resourceName string
    The name of the resource on which you want to grant permissions.
    resourceType string
    The type of the resource on which you want to grant permissions. Valid values: Group, Topic.
    username string
    The username of the account.
    ipWhitelists string[]
    The IP address whitelists.
    actions Sequence[str]
    The type of operations that can be performed on the resource. Valid values:

    • If resource_type is set to Topic. Valid values: Pub, Sub.
    • If resource_type is set to Group. Valid values: Sub.
    decision str
    The decision result of the authorization. Valid values: Deny, Allow.
    instance_id str
    The instance ID.
    resource_name str
    The name of the resource on which you want to grant permissions.
    resource_type str
    The type of the resource on which you want to grant permissions. Valid values: Group, Topic.
    username str
    The username of the account.
    ip_whitelists Sequence[str]
    The IP address whitelists.
    actions List<String>
    The type of operations that can be performed on the resource. Valid values:

    • If resource_type is set to Topic. Valid values: Pub, Sub.
    • If resource_type is set to Group. Valid values: Sub.
    decision String
    The decision result of the authorization. Valid values: Deny, Allow.
    instanceId String
    The instance ID.
    resourceName String
    The name of the resource on which you want to grant permissions.
    resourceType String
    The type of the resource on which you want to grant permissions. Valid values: Group, Topic.
    username String
    The username of the account.
    ipWhitelists List<String>
    The IP address whitelists.

    Outputs

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

    Get an existing Acl 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?: AclState, opts?: CustomResourceOptions): Acl
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            actions: Optional[Sequence[str]] = None,
            decision: Optional[str] = None,
            instance_id: Optional[str] = None,
            ip_whitelists: Optional[Sequence[str]] = None,
            resource_name: Optional[str] = None,
            resource_type: Optional[str] = None,
            username: Optional[str] = None) -> Acl
    func GetAcl(ctx *Context, name string, id IDInput, state *AclState, opts ...ResourceOption) (*Acl, error)
    public static Acl Get(string name, Input<string> id, AclState? state, CustomResourceOptions? opts = null)
    public static Acl get(String name, Output<String> id, AclState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:rocketmq:Acl    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:
    Actions List<string>
    The type of operations that can be performed on the resource. Valid values:

    • If resource_type is set to Topic. Valid values: Pub, Sub.
    • If resource_type is set to Group. Valid values: Sub.
    Decision string
    The decision result of the authorization. Valid values: Deny, Allow.
    InstanceId string
    The instance ID.
    IpWhitelists List<string>
    The IP address whitelists.
    ResourceName string
    The name of the resource on which you want to grant permissions.
    ResourceType string
    The type of the resource on which you want to grant permissions. Valid values: Group, Topic.
    Username string
    The username of the account.
    Actions []string
    The type of operations that can be performed on the resource. Valid values:

    • If resource_type is set to Topic. Valid values: Pub, Sub.
    • If resource_type is set to Group. Valid values: Sub.
    Decision string
    The decision result of the authorization. Valid values: Deny, Allow.
    InstanceId string
    The instance ID.
    IpWhitelists []string
    The IP address whitelists.
    ResourceName string
    The name of the resource on which you want to grant permissions.
    ResourceType string
    The type of the resource on which you want to grant permissions. Valid values: Group, Topic.
    Username string
    The username of the account.
    actions List<String>
    The type of operations that can be performed on the resource. Valid values:

    • If resource_type is set to Topic. Valid values: Pub, Sub.
    • If resource_type is set to Group. Valid values: Sub.
    decision String
    The decision result of the authorization. Valid values: Deny, Allow.
    instanceId String
    The instance ID.
    ipWhitelists List<String>
    The IP address whitelists.
    resourceName String
    The name of the resource on which you want to grant permissions.
    resourceType String
    The type of the resource on which you want to grant permissions. Valid values: Group, Topic.
    username String
    The username of the account.
    actions string[]
    The type of operations that can be performed on the resource. Valid values:

    • If resource_type is set to Topic. Valid values: Pub, Sub.
    • If resource_type is set to Group. Valid values: Sub.
    decision string
    The decision result of the authorization. Valid values: Deny, Allow.
    instanceId string
    The instance ID.
    ipWhitelists string[]
    The IP address whitelists.
    resourceName string
    The name of the resource on which you want to grant permissions.
    resourceType string
    The type of the resource on which you want to grant permissions. Valid values: Group, Topic.
    username string
    The username of the account.
    actions Sequence[str]
    The type of operations that can be performed on the resource. Valid values:

    • If resource_type is set to Topic. Valid values: Pub, Sub.
    • If resource_type is set to Group. Valid values: Sub.
    decision str
    The decision result of the authorization. Valid values: Deny, Allow.
    instance_id str
    The instance ID.
    ip_whitelists Sequence[str]
    The IP address whitelists.
    resource_name str
    The name of the resource on which you want to grant permissions.
    resource_type str
    The type of the resource on which you want to grant permissions. Valid values: Group, Topic.
    username str
    The username of the account.
    actions List<String>
    The type of operations that can be performed on the resource. Valid values:

    • If resource_type is set to Topic. Valid values: Pub, Sub.
    • If resource_type is set to Group. Valid values: Sub.
    decision String
    The decision result of the authorization. Valid values: Deny, Allow.
    instanceId String
    The instance ID.
    ipWhitelists List<String>
    The IP address whitelists.
    resourceName String
    The name of the resource on which you want to grant permissions.
    resourceType String
    The type of the resource on which you want to grant permissions. Valid values: Group, Topic.
    username String
    The username of the account.

    Import

    RocketMQ Acl can be imported using the id, e.g.

    $ pulumi import alicloud:rocketmq/acl:Acl example <instance_id>:<username>:<resource_type>:<resource_name>
    

    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.77.0 published on Friday, May 2, 2025 by Pulumi