Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
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
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const exampleQueue = pulumi.output(yandex.getMessageQueue({
name: "ymq_terraform_example",
}));
import pulumi
import pulumi_yandex as yandex
example_queue = yandex.get_message_queue(name="ymq_terraform_example")
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)
public static Output<GetMessageQueueResult> getMessageQueue(GetMessageQueueArgs args, InvokeOptions options)
fn::invoke:
function: yandex:index/getMessageQueue:getMessageQueue
arguments:
# arguments dictionaryThe following arguments are supported:
- name str
- Queue name.
- access_
key str - secret_
key str
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.
- Access
Key string - Secret
Key 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.
- Access
Key string - Secret
Key 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.
- access
Key String - secret
Key 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.
- access
Key string - secret
Key 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.
- access
Key String - secret
Key String
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandexTerraform Provider.
Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
