Yandex

Pulumi Official
Package maintained by Pulumi
v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

getMessageQueue

Get information about a Yandex Message Queue. For more information about Yandex Message Queue, see Yandex.Cloud Message Queue.

Example Usage

using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleQueue = Output.Create(Yandex.GetMessageQueue.InvokeAsync(new Yandex.GetMessageQueueArgs
        {
            Name = "ymq_terraform_example",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := yandex.LookupMessageQueue(ctx, &GetMessageQueueArgs{
			Name: "ymq_terraform_example",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_yandex as yandex

example_queue = yandex.get_message_queue(name="ymq_terraform_example")
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";

const exampleQueue = pulumi.output(yandex.getMessageQueue({
    name: "ymq_terraform_example",
}));

Coming soon!

Using getMessageQueue

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 getMessageQueue(args: GetMessageQueueArgs, opts?: InvokeOptions): Promise<GetMessageQueueResult>
function getMessageQueueOutput(args: GetMessageQueueOutputArgs, opts?: InvokeOptions): Output<GetMessageQueueResult>
def get_message_queue(access_key: Optional[str] = None,
                      name: Optional[str] = None,
                      secret_key: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetMessageQueueResult
def get_message_queue_output(access_key: Optional[pulumi.Input[str]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      secret_key: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetMessageQueueResult]
func LookupMessageQueue(ctx *Context, args *LookupMessageQueueArgs, opts ...InvokeOption) (*LookupMessageQueueResult, error)
func LookupMessageQueueOutput(ctx *Context, args *LookupMessageQueueOutputArgs, opts ...InvokeOption) LookupMessageQueueResultOutput

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

public static class GetMessageQueue 
{
    public static Task<GetMessageQueueResult> InvokeAsync(GetMessageQueueArgs args, InvokeOptions? opts = null)
    public static Output<GetMessageQueueResult> Invoke(GetMessageQueueInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMessageQueueResult> getMessageQueue(GetMessageQueueArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: yandex:index/getMessageQueue:getMessageQueue
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

Queue name.

AccessKey string
SecretKey string
Name string

Queue name.

AccessKey string
SecretKey string
name String

Queue name.

accessKey String
secretKey String
name string

Queue name.

accessKey string
secretKey string
name str

Queue name.

access_key str
secret_key str
name String

Queue name.

accessKey String
secretKey String

getMessageQueue Result

The following output properties are available:

Arn string

ARN of the queue. It is used for setting up a redrive policy. See documentation.

Id string

The provider-assigned unique ID for this managed resource.

Name string
Url string

URL of the queue.

AccessKey string
SecretKey string
Arn string

ARN of the queue. It is used for setting up a redrive policy. See documentation.

Id string

The provider-assigned unique ID for this managed resource.

Name string
Url string

URL of the queue.

AccessKey string
SecretKey string
arn String

ARN of the queue. It is used for setting up a redrive policy. See documentation.

id String

The provider-assigned unique ID for this managed resource.

name String
url String

URL of the queue.

accessKey String
secretKey String
arn string

ARN of the queue. It is used for setting up a redrive policy. See documentation.

id string

The provider-assigned unique ID for this managed resource.

name string
url string

URL of the queue.

accessKey string
secretKey string
arn str

ARN of the queue. It is used for setting up a redrive policy. See documentation.

id str

The provider-assigned unique ID for this managed resource.

name str
url str

URL of the queue.

access_key str
secret_key str
arn String

ARN of the queue. It is used for setting up a redrive policy. See documentation.

id String

The provider-assigned unique ID for this managed resource.

name String
url String

URL of the queue.

accessKey String
secretKey String

Package Details

Repository
https://github.com/pulumi/pulumi-yandex
License
Apache-2.0
Notes

This Pulumi package is based on the yandex Terraform Provider.