@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
56 lines • 1.87 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.getEventBusOutput = exports.getEventBus = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This data source can be used to fetch information about a specific
* EventBridge event bus. Use this data source to compute the ARN of
* an event bus, given the name of the bus.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.cloudwatch.getEventBus({
* name: "example-bus-name",
* });
* ```
*/
function getEventBus(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:cloudwatch/getEventBus:getEventBus", {
"name": args.name,
"region": args.region,
}, opts);
}
exports.getEventBus = getEventBus;
/**
* This data source can be used to fetch information about a specific
* EventBridge event bus. Use this data source to compute the ARN of
* an event bus, given the name of the bus.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.cloudwatch.getEventBus({
* name: "example-bus-name",
* });
* ```
*/
function getEventBusOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:cloudwatch/getEventBus:getEventBus", {
"name": args.name,
"region": args.region,
}, opts);
}
exports.getEventBusOutput = getEventBusOutput;
//# sourceMappingURL=getEventBus.js.map