UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

62 lines 2.1 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getQueueOutput = exports.getQueue = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * 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. * * > **NOTE:** To use this data source, you must have the `sqs:GetQueueAttributes` and `sqs:GetQueueURL` permissions. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.sqs.getQueue({ * name: "queue", * }); * ``` */ function getQueue(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:sqs/getQueue:getQueue", { "name": args.name, "region": args.region, "tags": args.tags, }, opts); } exports.getQueue = getQueue; /** * 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. * * > **NOTE:** To use this data source, you must have the `sqs:GetQueueAttributes` and `sqs:GetQueueURL` permissions. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.sqs.getQueue({ * name: "queue", * }); * ``` */ function getQueueOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:sqs/getQueue:getQueue", { "name": args.name, "region": args.region, "tags": args.tags, }, opts); } exports.getQueueOutput = getQueueOutput; //# sourceMappingURL=getQueue.js.map