get Service Queues
This data source provides the Message Notification Service Queues of the current Alibaba Cloud user.
NOTE: Available in v1.188.0+.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.message.MessageFunctions;
import com.pulumi.alicloud.message.inputs.GetServiceQueuesArgs;
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 ids = MessageFunctions.getServiceQueues(GetServiceQueuesArgs.builder()
.ids("example_id")
.build());
ctx.export("queueId1", ids.applyValue(getServiceQueuesResult -> getServiceQueuesResult.queues()[0].id()));
final var name = MessageFunctions.getServiceQueues(GetServiceQueuesArgs.builder()
.queueName("tf-example")
.build());
ctx.export("queueId2", name.applyValue(getServiceQueuesResult -> getServiceQueuesResult.queues()[0].id()));
}
}Content copied to clipboard
Return
A collection of values returned by getServiceQueues.
Parameters
argument
A collection of arguments for invoking getServiceQueues.
suspend fun getServiceQueues(ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, pageNumber: Int? = null, pageSize: Int? = null, queueName: String? = null): GetServiceQueuesResult
Return
A collection of values returned by getServiceQueues.
See also
Parameters
ids
A list of Queue IDs. Its element value is same as Queue Name.
name Regex
A regex string to filter results by Queue name.
output File
page Number
page Size
queue Name
The name of the queue.
suspend fun getServiceQueues(argument: suspend GetServiceQueuesPlainArgsBuilder.() -> Unit): GetServiceQueuesResult
Return
A collection of values returned by getServiceQueues.
See also
Parameters
argument
Builder for com.pulumi.alicloud.message.kotlin.inputs.GetServiceQueuesPlainArgs.