UNPKG

@pulumi/aws

Version:

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

58 lines 1.88 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.getTopicOutput = exports.getTopic = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get the ARN of a topic in AWS Simple Notification * Service (SNS). By using this data source, you can reference SNS topics * without having to hard code the ARNs as input. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.sns.getTopic({ * name: "an_example_topic", * }); * ``` */ function getTopic(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:sns/getTopic:getTopic", { "name": args.name, "region": args.region, "tags": args.tags, }, opts); } exports.getTopic = getTopic; /** * Use this data source to get the ARN of a topic in AWS Simple Notification * Service (SNS). By using this data source, you can reference SNS topics * without having to hard code the ARNs as input. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.sns.getTopic({ * name: "an_example_topic", * }); * ``` */ function getTopicOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:sns/getTopic:getTopic", { "name": args.name, "region": args.region, "tags": args.tags, }, opts); } exports.getTopicOutput = getTopicOutput; //# sourceMappingURL=getTopic.js.map