tencentcloud.MqttAuthorizationPolicy
Explore with Pulumi AI
Provides a resource to create a MQTT authorization policy
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.MqttAuthorizationPolicy("example", {
actions: "connect,pub,sub",
clientId: "client",
effect: "allow",
instanceId: "mqtt-g4qgr3gx",
ip: "192.168.1.1",
policyName: "tf-example",
policyVersion: 1,
priority: 10,
qos: "0,1,2",
remark: "policy remark.",
resources: "topic-demo",
retain: 3,
username: "*root*",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.MqttAuthorizationPolicy("example",
actions="connect,pub,sub",
client_id="client",
effect="allow",
instance_id="mqtt-g4qgr3gx",
ip="192.168.1.1",
policy_name="tf-example",
policy_version=1,
priority=10,
qos="0,1,2",
remark="policy remark.",
resources="topic-demo",
retain=3,
username="*root*")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewMqttAuthorizationPolicy(ctx, "example", &tencentcloud.MqttAuthorizationPolicyArgs{
Actions: pulumi.String("connect,pub,sub"),
ClientId: pulumi.String("client"),
Effect: pulumi.String("allow"),
InstanceId: pulumi.String("mqtt-g4qgr3gx"),
Ip: pulumi.String("192.168.1.1"),
PolicyName: pulumi.String("tf-example"),
PolicyVersion: pulumi.Float64(1),
Priority: pulumi.Float64(10),
Qos: pulumi.String("0,1,2"),
Remark: pulumi.String("policy remark."),
Resources: pulumi.String("topic-demo"),
Retain: pulumi.Float64(3),
Username: pulumi.String("*root*"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.MqttAuthorizationPolicy("example", new()
{
Actions = "connect,pub,sub",
ClientId = "client",
Effect = "allow",
InstanceId = "mqtt-g4qgr3gx",
Ip = "192.168.1.1",
PolicyName = "tf-example",
PolicyVersion = 1,
Priority = 10,
Qos = "0,1,2",
Remark = "policy remark.",
Resources = "topic-demo",
Retain = 3,
Username = "*root*",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MqttAuthorizationPolicy;
import com.pulumi.tencentcloud.MqttAuthorizationPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new MqttAuthorizationPolicy("example", MqttAuthorizationPolicyArgs.builder()
.actions("connect,pub,sub")
.clientId("client")
.effect("allow")
.instanceId("mqtt-g4qgr3gx")
.ip("192.168.1.1")
.policyName("tf-example")
.policyVersion(1)
.priority(10)
.qos("0,1,2")
.remark("policy remark.")
.resources("topic-demo")
.retain(3)
.username("*root*")
.build());
}
}
resources:
example:
type: tencentcloud:MqttAuthorizationPolicy
properties:
actions: connect,pub,sub
clientId: client
effect: allow
instanceId: mqtt-g4qgr3gx
ip: 192.168.1.1
policyName: tf-example
policyVersion: 1
priority: 10
qos: 0,1,2
remark: policy remark.
resources: topic-demo
retain: 3
username: '*root*'
Or
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.MqttAuthorizationPolicy("example", {
actions: "pub,sub",
clientId: "*${Username}*",
effect: "deny",
instanceId: "mqtt-g4qgr3gx",
ip: "192.168.1.0/24",
policyName: "tf-example",
policyVersion: 1,
priority: 10,
qos: "1,2",
remark: "policy remark.",
resources: "topic-demo",
retain: 3,
username: "root*",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.MqttAuthorizationPolicy("example",
actions="pub,sub",
client_id="*${Username}*",
effect="deny",
instance_id="mqtt-g4qgr3gx",
ip="192.168.1.0/24",
policy_name="tf-example",
policy_version=1,
priority=10,
qos="1,2",
remark="policy remark.",
resources="topic-demo",
retain=3,
username="root*")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewMqttAuthorizationPolicy(ctx, "example", &tencentcloud.MqttAuthorizationPolicyArgs{
Actions: pulumi.String("pub,sub"),
ClientId: pulumi.String("*${Username}*"),
Effect: pulumi.String("deny"),
InstanceId: pulumi.String("mqtt-g4qgr3gx"),
Ip: pulumi.String("192.168.1.0/24"),
PolicyName: pulumi.String("tf-example"),
PolicyVersion: pulumi.Float64(1),
Priority: pulumi.Float64(10),
Qos: pulumi.String("1,2"),
Remark: pulumi.String("policy remark."),
Resources: pulumi.String("topic-demo"),
Retain: pulumi.Float64(3),
Username: pulumi.String("root*"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.MqttAuthorizationPolicy("example", new()
{
Actions = "pub,sub",
ClientId = "*${Username}*",
Effect = "deny",
InstanceId = "mqtt-g4qgr3gx",
Ip = "192.168.1.0/24",
PolicyName = "tf-example",
PolicyVersion = 1,
Priority = 10,
Qos = "1,2",
Remark = "policy remark.",
Resources = "topic-demo",
Retain = 3,
Username = "root*",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MqttAuthorizationPolicy;
import com.pulumi.tencentcloud.MqttAuthorizationPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new MqttAuthorizationPolicy("example", MqttAuthorizationPolicyArgs.builder()
.actions("pub,sub")
.clientId("*${Username}*")
.effect("deny")
.instanceId("mqtt-g4qgr3gx")
.ip("192.168.1.0/24")
.policyName("tf-example")
.policyVersion(1)
.priority(10)
.qos("1,2")
.remark("policy remark.")
.resources("topic-demo")
.retain(3)
.username("root*")
.build());
}
}
resources:
example:
type: tencentcloud:MqttAuthorizationPolicy
properties:
actions: pub,sub
clientId: '*$${Username}*'
effect: deny
instanceId: mqtt-g4qgr3gx
ip: 192.168.1.0/24
policyName: tf-example
policyVersion: 1
priority: 10
qos: 1,2
remark: policy remark.
resources: topic-demo
retain: 3
username: root*
Create MqttAuthorizationPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MqttAuthorizationPolicy(name: string, args: MqttAuthorizationPolicyArgs, opts?: CustomResourceOptions);
@overload
def MqttAuthorizationPolicy(resource_name: str,
args: MqttAuthorizationPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MqttAuthorizationPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
policy_name: Optional[str] = None,
qos: Optional[str] = None,
effect: Optional[str] = None,
instance_id: Optional[str] = None,
actions: Optional[str] = None,
policy_version: Optional[float] = None,
priority: Optional[float] = None,
retain: Optional[float] = None,
ip: Optional[str] = None,
client_id: Optional[str] = None,
remark: Optional[str] = None,
resources: Optional[str] = None,
mqtt_authorization_policy_id: Optional[str] = None,
username: Optional[str] = None)
func NewMqttAuthorizationPolicy(ctx *Context, name string, args MqttAuthorizationPolicyArgs, opts ...ResourceOption) (*MqttAuthorizationPolicy, error)
public MqttAuthorizationPolicy(string name, MqttAuthorizationPolicyArgs args, CustomResourceOptions? opts = null)
public MqttAuthorizationPolicy(String name, MqttAuthorizationPolicyArgs args)
public MqttAuthorizationPolicy(String name, MqttAuthorizationPolicyArgs args, CustomResourceOptions options)
type: tencentcloud:MqttAuthorizationPolicy
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 MqttAuthorizationPolicyArgs
- 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 MqttAuthorizationPolicyArgs
- 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 MqttAuthorizationPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MqttAuthorizationPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MqttAuthorizationPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MqttAuthorizationPolicy 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 MqttAuthorizationPolicy resource accepts the following input properties:
- Actions string
- Operation - connect: connect; pub: publish; sub: subscribe.
- Effect string
- Decision: allow/deny.
- Instance
Id string - MQTT instance ID.
- Policy
Name string - Policy name, cannot be empty, 3-64 characters, supports Chinese characters, letters, numbers, "-" and "_".
- Policy
Version double - Policy version, default is 1, currently only 1 is supported.
- Priority double
- The strategy priority, the smaller the higher the priority, cannot be repeated.
- Qos string
- Condition: Quality of Service 0: At most once 1: At least once 2: Exactly once.
- Retain double
- Condition - Reserved message 1, match reserved message; 2, match unreserved message, 3. match reserved and unreserved message.
- Client
Id string - Condition - Client ID, supports regular expressions.
- Ip string
- Condition - Client IP address, supports IP or CIDR.
- string
- ID of the resource.
- Remark string
- Remarks, up to 128 characters.
- Resources string
- Resources, requiring matching subscriptions.
- Username string
- Condition - Username.
- Actions string
- Operation - connect: connect; pub: publish; sub: subscribe.
- Effect string
- Decision: allow/deny.
- Instance
Id string - MQTT instance ID.
- Policy
Name string - Policy name, cannot be empty, 3-64 characters, supports Chinese characters, letters, numbers, "-" and "_".
- Policy
Version float64 - Policy version, default is 1, currently only 1 is supported.
- Priority float64
- The strategy priority, the smaller the higher the priority, cannot be repeated.
- Qos string
- Condition: Quality of Service 0: At most once 1: At least once 2: Exactly once.
- Retain float64
- Condition - Reserved message 1, match reserved message; 2, match unreserved message, 3. match reserved and unreserved message.
- Client
Id string - Condition - Client ID, supports regular expressions.
- Ip string
- Condition - Client IP address, supports IP or CIDR.
- string
- ID of the resource.
- Remark string
- Remarks, up to 128 characters.
- Resources string
- Resources, requiring matching subscriptions.
- Username string
- Condition - Username.
- actions String
- Operation - connect: connect; pub: publish; sub: subscribe.
- effect String
- Decision: allow/deny.
- instance
Id String - MQTT instance ID.
- policy
Name String - Policy name, cannot be empty, 3-64 characters, supports Chinese characters, letters, numbers, "-" and "_".
- policy
Version Double - Policy version, default is 1, currently only 1 is supported.
- priority Double
- The strategy priority, the smaller the higher the priority, cannot be repeated.
- qos String
- Condition: Quality of Service 0: At most once 1: At least once 2: Exactly once.
- retain Double
- Condition - Reserved message 1, match reserved message; 2, match unreserved message, 3. match reserved and unreserved message.
- client
Id String - Condition - Client ID, supports regular expressions.
- ip String
- Condition - Client IP address, supports IP or CIDR.
- String
- ID of the resource.
- remark String
- Remarks, up to 128 characters.
- resources String
- Resources, requiring matching subscriptions.
- username String
- Condition - Username.
- actions string
- Operation - connect: connect; pub: publish; sub: subscribe.
- effect string
- Decision: allow/deny.
- instance
Id string - MQTT instance ID.
- policy
Name string - Policy name, cannot be empty, 3-64 characters, supports Chinese characters, letters, numbers, "-" and "_".
- policy
Version number - Policy version, default is 1, currently only 1 is supported.
- priority number
- The strategy priority, the smaller the higher the priority, cannot be repeated.
- qos string
- Condition: Quality of Service 0: At most once 1: At least once 2: Exactly once.
- retain number
- Condition - Reserved message 1, match reserved message; 2, match unreserved message, 3. match reserved and unreserved message.
- client
Id string - Condition - Client ID, supports regular expressions.
- ip string
- Condition - Client IP address, supports IP or CIDR.
- string
- ID of the resource.
- remark string
- Remarks, up to 128 characters.
- resources string
- Resources, requiring matching subscriptions.
- username string
- Condition - Username.
- actions str
- Operation - connect: connect; pub: publish; sub: subscribe.
- effect str
- Decision: allow/deny.
- instance_
id str - MQTT instance ID.
- policy_
name str - Policy name, cannot be empty, 3-64 characters, supports Chinese characters, letters, numbers, "-" and "_".
- policy_
version float - Policy version, default is 1, currently only 1 is supported.
- priority float
- The strategy priority, the smaller the higher the priority, cannot be repeated.
- qos str
- Condition: Quality of Service 0: At most once 1: At least once 2: Exactly once.
- retain float
- Condition - Reserved message 1, match reserved message; 2, match unreserved message, 3. match reserved and unreserved message.
- client_
id str - Condition - Client ID, supports regular expressions.
- ip str
- Condition - Client IP address, supports IP or CIDR.
- str
- ID of the resource.
- remark str
- Remarks, up to 128 characters.
- resources str
- Resources, requiring matching subscriptions.
- username str
- Condition - Username.
- actions String
- Operation - connect: connect; pub: publish; sub: subscribe.
- effect String
- Decision: allow/deny.
- instance
Id String - MQTT instance ID.
- policy
Name String - Policy name, cannot be empty, 3-64 characters, supports Chinese characters, letters, numbers, "-" and "_".
- policy
Version Number - Policy version, default is 1, currently only 1 is supported.
- priority Number
- The strategy priority, the smaller the higher the priority, cannot be repeated.
- qos String
- Condition: Quality of Service 0: At most once 1: At least once 2: Exactly once.
- retain Number
- Condition - Reserved message 1, match reserved message; 2, match unreserved message, 3. match reserved and unreserved message.
- client
Id String - Condition - Client ID, supports regular expressions.
- ip String
- Condition - Client IP address, supports IP or CIDR.
- String
- ID of the resource.
- remark String
- Remarks, up to 128 characters.
- resources String
- Resources, requiring matching subscriptions.
- username String
- Condition - Username.
Outputs
All input properties are implicitly available as output properties. Additionally, the MqttAuthorizationPolicy resource produces the following output properties:
Look up Existing MqttAuthorizationPolicy Resource
Get an existing MqttAuthorizationPolicy 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?: MqttAuthorizationPolicyState, opts?: CustomResourceOptions): MqttAuthorizationPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[str] = None,
client_id: Optional[str] = None,
effect: Optional[str] = None,
instance_id: Optional[str] = None,
ip: Optional[str] = None,
mqtt_authorization_policy_id: Optional[str] = None,
policy_id: Optional[float] = None,
policy_name: Optional[str] = None,
policy_version: Optional[float] = None,
priority: Optional[float] = None,
qos: Optional[str] = None,
remark: Optional[str] = None,
resources: Optional[str] = None,
retain: Optional[float] = None,
username: Optional[str] = None) -> MqttAuthorizationPolicy
func GetMqttAuthorizationPolicy(ctx *Context, name string, id IDInput, state *MqttAuthorizationPolicyState, opts ...ResourceOption) (*MqttAuthorizationPolicy, error)
public static MqttAuthorizationPolicy Get(string name, Input<string> id, MqttAuthorizationPolicyState? state, CustomResourceOptions? opts = null)
public static MqttAuthorizationPolicy get(String name, Output<String> id, MqttAuthorizationPolicyState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MqttAuthorizationPolicy 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.
- Actions string
- Operation - connect: connect; pub: publish; sub: subscribe.
- Client
Id string - Condition - Client ID, supports regular expressions.
- Effect string
- Decision: allow/deny.
- Instance
Id string - MQTT instance ID.
- Ip string
- Condition - Client IP address, supports IP or CIDR.
- string
- ID of the resource.
- Policy
Id double - Authorization policy rule id.
- Policy
Name string - Policy name, cannot be empty, 3-64 characters, supports Chinese characters, letters, numbers, "-" and "_".
- Policy
Version double - Policy version, default is 1, currently only 1 is supported.
- Priority double
- The strategy priority, the smaller the higher the priority, cannot be repeated.
- Qos string
- Condition: Quality of Service 0: At most once 1: At least once 2: Exactly once.
- Remark string
- Remarks, up to 128 characters.
- Resources string
- Resources, requiring matching subscriptions.
- Retain double
- Condition - Reserved message 1, match reserved message; 2, match unreserved message, 3. match reserved and unreserved message.
- Username string
- Condition - Username.
- Actions string
- Operation - connect: connect; pub: publish; sub: subscribe.
- Client
Id string - Condition - Client ID, supports regular expressions.
- Effect string
- Decision: allow/deny.
- Instance
Id string - MQTT instance ID.
- Ip string
- Condition - Client IP address, supports IP or CIDR.
- string
- ID of the resource.
- Policy
Id float64 - Authorization policy rule id.
- Policy
Name string - Policy name, cannot be empty, 3-64 characters, supports Chinese characters, letters, numbers, "-" and "_".
- Policy
Version float64 - Policy version, default is 1, currently only 1 is supported.
- Priority float64
- The strategy priority, the smaller the higher the priority, cannot be repeated.
- Qos string
- Condition: Quality of Service 0: At most once 1: At least once 2: Exactly once.
- Remark string
- Remarks, up to 128 characters.
- Resources string
- Resources, requiring matching subscriptions.
- Retain float64
- Condition - Reserved message 1, match reserved message; 2, match unreserved message, 3. match reserved and unreserved message.
- Username string
- Condition - Username.
- actions String
- Operation - connect: connect; pub: publish; sub: subscribe.
- client
Id String - Condition - Client ID, supports regular expressions.
- effect String
- Decision: allow/deny.
- instance
Id String - MQTT instance ID.
- ip String
- Condition - Client IP address, supports IP or CIDR.
- String
- ID of the resource.
- policy
Id Double - Authorization policy rule id.
- policy
Name String - Policy name, cannot be empty, 3-64 characters, supports Chinese characters, letters, numbers, "-" and "_".
- policy
Version Double - Policy version, default is 1, currently only 1 is supported.
- priority Double
- The strategy priority, the smaller the higher the priority, cannot be repeated.
- qos String
- Condition: Quality of Service 0: At most once 1: At least once 2: Exactly once.
- remark String
- Remarks, up to 128 characters.
- resources String
- Resources, requiring matching subscriptions.
- retain Double
- Condition - Reserved message 1, match reserved message; 2, match unreserved message, 3. match reserved and unreserved message.
- username String
- Condition - Username.
- actions string
- Operation - connect: connect; pub: publish; sub: subscribe.
- client
Id string - Condition - Client ID, supports regular expressions.
- effect string
- Decision: allow/deny.
- instance
Id string - MQTT instance ID.
- ip string
- Condition - Client IP address, supports IP or CIDR.
- string
- ID of the resource.
- policy
Id number - Authorization policy rule id.
- policy
Name string - Policy name, cannot be empty, 3-64 characters, supports Chinese characters, letters, numbers, "-" and "_".
- policy
Version number - Policy version, default is 1, currently only 1 is supported.
- priority number
- The strategy priority, the smaller the higher the priority, cannot be repeated.
- qos string
- Condition: Quality of Service 0: At most once 1: At least once 2: Exactly once.
- remark string
- Remarks, up to 128 characters.
- resources string
- Resources, requiring matching subscriptions.
- retain number
- Condition - Reserved message 1, match reserved message; 2, match unreserved message, 3. match reserved and unreserved message.
- username string
- Condition - Username.
- actions str
- Operation - connect: connect; pub: publish; sub: subscribe.
- client_
id str - Condition - Client ID, supports regular expressions.
- effect str
- Decision: allow/deny.
- instance_
id str - MQTT instance ID.
- ip str
- Condition - Client IP address, supports IP or CIDR.
- str
- ID of the resource.
- policy_
id float - Authorization policy rule id.
- policy_
name str - Policy name, cannot be empty, 3-64 characters, supports Chinese characters, letters, numbers, "-" and "_".
- policy_
version float - Policy version, default is 1, currently only 1 is supported.
- priority float
- The strategy priority, the smaller the higher the priority, cannot be repeated.
- qos str
- Condition: Quality of Service 0: At most once 1: At least once 2: Exactly once.
- remark str
- Remarks, up to 128 characters.
- resources str
- Resources, requiring matching subscriptions.
- retain float
- Condition - Reserved message 1, match reserved message; 2, match unreserved message, 3. match reserved and unreserved message.
- username str
- Condition - Username.
- actions String
- Operation - connect: connect; pub: publish; sub: subscribe.
- client
Id String - Condition - Client ID, supports regular expressions.
- effect String
- Decision: allow/deny.
- instance
Id String - MQTT instance ID.
- ip String
- Condition - Client IP address, supports IP or CIDR.
- String
- ID of the resource.
- policy
Id Number - Authorization policy rule id.
- policy
Name String - Policy name, cannot be empty, 3-64 characters, supports Chinese characters, letters, numbers, "-" and "_".
- policy
Version Number - Policy version, default is 1, currently only 1 is supported.
- priority Number
- The strategy priority, the smaller the higher the priority, cannot be repeated.
- qos String
- Condition: Quality of Service 0: At most once 1: At least once 2: Exactly once.
- remark String
- Remarks, up to 128 characters.
- resources String
- Resources, requiring matching subscriptions.
- retain Number
- Condition - Reserved message 1, match reserved message; 2, match unreserved message, 3. match reserved and unreserved message.
- username String
- Condition - Username.
Import
MQTT authorization policy can be imported using the id, e.g.
$ pulumi import tencentcloud:index/mqttAuthorizationPolicy:MqttAuthorizationPolicy example mqtt-g4qgr3gx#140
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.