1. Packages
  2. AWS
  3. API Docs
  4. mediaconvert
  5. getQueue
AWS v6.75.0 published on Wednesday, Apr 2, 2025 by Pulumi

aws.mediaconvert.getQueue

Explore with Pulumi AI

AWS v6.75.0 published on Wednesday, Apr 2, 2025 by Pulumi

Retrieve information about a AWS Elemental MediaConvert Queue.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.mediaconvert.getQueue({
    id: "tf-example-queue",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.mediaconvert.get_queue(id="tf-example-queue")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/mediaconvert"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := mediaconvert.LookupQueue(ctx, &mediaconvert.LookupQueueArgs{
			Id: "tf-example-queue",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.MediaConvert.GetQueue.Invoke(new()
    {
        Id = "tf-example-queue",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.mediaconvert.MediaconvertFunctions;
import com.pulumi.aws.mediaconvert.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 = MediaconvertFunctions.getQueue(GetQueueArgs.builder()
            .id("tf-example-queue")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:mediaconvert:getQueue
      arguments:
        id: tf-example-queue
Copy

Using getQueue

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 getQueue(args: GetQueueArgs, opts?: InvokeOptions): Promise<GetQueueResult>
function getQueueOutput(args: GetQueueOutputArgs, opts?: InvokeOptions): Output<GetQueueResult>
Copy
def get_queue(id: Optional[str] = None,
              tags: Optional[Mapping[str, str]] = None,
              opts: Optional[InvokeOptions] = None) -> GetQueueResult
def get_queue_output(id: Optional[pulumi.Input[str]] = None,
              tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetQueueResult]
Copy
func LookupQueue(ctx *Context, args *LookupQueueArgs, opts ...InvokeOption) (*LookupQueueResult, error)
func LookupQueueOutput(ctx *Context, args *LookupQueueOutputArgs, opts ...InvokeOption) LookupQueueResultOutput
Copy

> Note: This function is named LookupQueue in the Go SDK.

public static class GetQueue 
{
    public static Task<GetQueueResult> InvokeAsync(GetQueueArgs args, InvokeOptions? opts = null)
    public static Output<GetQueueResult> Invoke(GetQueueInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetQueueResult> getQueue(GetQueueArgs args, InvokeOptions options)
public static Output<GetQueueResult> getQueue(GetQueueArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:mediaconvert/getQueue:getQueue
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
Unique identifier of the queue. The same as name.
Tags Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
Id This property is required. string
Unique identifier of the queue. The same as name.
Tags map[string]string
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
id This property is required. String
Unique identifier of the queue. The same as name.
tags Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
id This property is required. string
Unique identifier of the queue. The same as name.
tags {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
id This property is required. str
Unique identifier of the queue. The same as name.
tags Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
id This property is required. String
Unique identifier of the queue. The same as name.
tags Map<String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

getQueue Result

The following output properties are available:

Arn string
The Arn of the queue.
Id string
Name string
The same as id.
Status string
The status of the queue.
Tags Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
Arn string
The Arn of the queue.
Id string
Name string
The same as id.
Status string
The status of the queue.
Tags map[string]string
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
arn String
The Arn of the queue.
id String
name String
The same as id.
status String
The status of the queue.
tags Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
arn string
The Arn of the queue.
id string
name string
The same as id.
status string
The status of the queue.
tags {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
arn str
The Arn of the queue.
id str
name str
The same as id.
status str
The status of the queue.
tags Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
arn String
The Arn of the queue.
id String
name String
The same as id.
status String
The status of the queue.
tags Map<String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.
AWS v6.75.0 published on Wednesday, Apr 2, 2025 by Pulumi