get Queue
Use this data source to get the ARN and URL of queue in AWS Simple Queue Service (SQS). By using this data source, you can reference SQS queues without having to hardcode the ARNs as input.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sqs.SqsFunctions;
import com.pulumi.aws.sqs.inputs.GetQueueArgs;
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 example = SqsFunctions.getQueue(GetQueueArgs.builder()
.name("queue")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getQueue.
Parameters
argument
A collection of arguments for invoking getQueue.
Return
A collection of values returned by getQueue.
Parameters
name
Name of the queue to match.
tags
Map of tags for the resource.
See also
Return
A collection of values returned by getQueue.
Parameters
argument
Builder for com.pulumi.aws.sqs.kotlin.inputs.GetQueuePlainArgs.