ServiceQueue

class ServiceQueue : KotlinCustomResource

Provides a Message Notification Service Queue resource. For information about Message Notification Service Queue and how to use it, see What is Queue.

NOTE: Available since v1.188.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.message.ServiceQueue;
import com.pulumi.alicloud.message.ServiceQueueArgs;
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 queue = new ServiceQueue("queue", ServiceQueueArgs.builder()
.queueName(name)
.delaySeconds(60478)
.maximumMessageSize(12357)
.messageRetentionPeriod(256000)
.visibilityTimeout(30)
.pollingWaitSeconds(3)
.loggingEnabled(true)
.build());
}
}

Import

Message Notification Service Queue can be imported using the id or queue_name, e.g.

$ pulumi import alicloud:message/serviceQueue:ServiceQueue example <queue_name>

Properties

Link copied to clipboard
val delaySeconds: Output<Int>

The delay period after which a message sent to the queue can be consumed. Unit: seconds. Valid values: 0-604800 seconds. Default value: 0.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val loggingEnabled: Output<Boolean>?

Specifies whether to enable the log management feature. Default value: false. Valid values:

Link copied to clipboard
val maximumMessageSize: Output<Int>

The maximum size of a message body that can be sent to the queue. Unit: bytes. Valid value range: 1024-65536. Default value: 65536.

Link copied to clipboard

The maximum period for which a message can be retained in the queue. After the specified period, the message is deleted no matter whether the message is consumed. Unit: seconds. Valid values: 60-604800. Default value: 345600.

Link copied to clipboard
val pollingWaitSeconds: Output<Int>

The maximum period for which a ReceiveMessage request waits if no message is available in the queue. Unit: seconds. Valid values: 0-30. Default value: 0.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val queueName: Output<String>

Two queues on a single account in the same region cannot have the same name. A queue name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 120 characters.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val visibilityTimeout: Output<Int>

The invisibility period for which the received message remains the Inactive state. Unit: seconds. Valid values: 1-43200. Default value: 30.