@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
58 lines • 2.31 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.getEventSourceOutput = exports.getEventSource = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get information about an EventBridge Partner Event Source. This data source will only return one partner event source. An error will be returned if multiple sources match the same name prefix.
*
* > **Note:** EventBridge was formerly known as CloudWatch Events. The functionality is identical.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const examplepartner = aws.cloudwatch.getEventSource({
* namePrefix: "aws.partner/examplepartner.com",
* });
* ```
*/
function getEventSource(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:cloudwatch/getEventSource:getEventSource", {
"namePrefix": args.namePrefix,
"region": args.region,
}, opts);
}
exports.getEventSource = getEventSource;
/**
* Use this data source to get information about an EventBridge Partner Event Source. This data source will only return one partner event source. An error will be returned if multiple sources match the same name prefix.
*
* > **Note:** EventBridge was formerly known as CloudWatch Events. The functionality is identical.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const examplepartner = aws.cloudwatch.getEventSource({
* namePrefix: "aws.partner/examplepartner.com",
* });
* ```
*/
function getEventSourceOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:cloudwatch/getEventSource:getEventSource", {
"namePrefix": args.namePrefix,
"region": args.region,
}, opts);
}
exports.getEventSourceOutput = getEventSourceOutput;
//# sourceMappingURL=getEventSource.js.map
;