AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.sqs.getQueues
Explore with Pulumi AI
Data source for managing an AWS SQS (Simple Queue) Queues.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.sqs.getQueues({
queueNamePrefix: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.sqs.get_queues(queue_name_prefix="example")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sqs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sqs.GetQueues(ctx, &sqs.GetQueuesArgs{
QueueNamePrefix: pulumi.StringRef("example"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Sqs.GetQueues.Invoke(new()
{
QueueNamePrefix = "example",
});
});
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.GetQueuesArgs;
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.getQueues(GetQueuesArgs.builder()
.queueNamePrefix("example")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:sqs:getQueues
Arguments:
queueNamePrefix: example
Using getQueues
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getQueues(args: GetQueuesArgs, opts?: InvokeOptions): Promise<GetQueuesResult>
function getQueuesOutput(args: GetQueuesOutputArgs, opts?: InvokeOptions): Output<GetQueuesResult>
def get_queues(queue_name_prefix: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetQueuesResult
def get_queues_output(queue_name_prefix: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetQueuesResult]
func GetQueues(ctx *Context, args *GetQueuesArgs, opts ...InvokeOption) (*GetQueuesResult, error)
func GetQueuesOutput(ctx *Context, args *GetQueuesOutputArgs, opts ...InvokeOption) GetQueuesResultOutput
> Note: This function is named GetQueues
in the Go SDK.
public static class GetQueues
{
public static Task<GetQueuesResult> InvokeAsync(GetQueuesArgs args, InvokeOptions? opts = null)
public static Output<GetQueuesResult> Invoke(GetQueuesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetQueuesResult> getQueues(GetQueuesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:sqs/getQueues:getQueues
arguments:
# arguments dictionary
The following arguments are supported:
- Queue
Name stringPrefix - A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned. Queue URLs and names are case-sensitive.
- Queue
Name stringPrefix - A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned. Queue URLs and names are case-sensitive.
- queue
Name StringPrefix - A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned. Queue URLs and names are case-sensitive.
- queue
Name stringPrefix - A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned. Queue URLs and names are case-sensitive.
- queue_
name_ strprefix - A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned. Queue URLs and names are case-sensitive.
- queue
Name StringPrefix - A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned. Queue URLs and names are case-sensitive.
getQueues Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Queue
Urls List<string> - A list of queue URLs.
- Queue
Name stringPrefix
- Id string
- The provider-assigned unique ID for this managed resource.
- Queue
Urls []string - A list of queue URLs.
- Queue
Name stringPrefix
- id String
- The provider-assigned unique ID for this managed resource.
- queue
Urls List<String> - A list of queue URLs.
- queue
Name StringPrefix
- id string
- The provider-assigned unique ID for this managed resource.
- queue
Urls string[] - A list of queue URLs.
- queue
Name stringPrefix
- id str
- The provider-assigned unique ID for this managed resource.
- queue_
urls Sequence[str] - A list of queue URLs.
- queue_
name_ strprefix
- id String
- The provider-assigned unique ID for this managed resource.
- queue
Urls List<String> - A list of queue URLs.
- queue
Name StringPrefix
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.