@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
60 lines • 1.92 kB
JavaScript
;
// *** 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.getStreamOutput = exports.getStream = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get information about a Kinesis Stream for use in other
* resources.
*
* For more details, see the [Amazon Kinesis Documentation](https://aws.amazon.com/documentation/kinesis/).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const stream = aws.kinesis.getStream({
* name: "stream-name",
* });
* ```
*/
function getStream(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:kinesis/getStream:getStream", {
"name": args.name,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getStream = getStream;
/**
* Use this data source to get information about a Kinesis Stream for use in other
* resources.
*
* For more details, see the [Amazon Kinesis Documentation](https://aws.amazon.com/documentation/kinesis/).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const stream = aws.kinesis.getStream({
* name: "stream-name",
* });
* ```
*/
function getStreamOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:kinesis/getStream:getStream", {
"name": args.name,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getStreamOutput = getStreamOutput;
//# sourceMappingURL=getStream.js.map