@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
92 lines • 2.71 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.getEventCategoriesOutput = exports.getEventCategories = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* ## Example Usage
*
* List the event categories of all the RDS resources.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* export = async () => {
* const example = await aws.rds.getEventCategories({});
* return {
* example: example.eventCategories,
* };
* }
* ```
*
* List the event categories specific to the RDS resource `db-snapshot`.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* export = async () => {
* const example = await aws.rds.getEventCategories({
* sourceType: "db-snapshot",
* });
* return {
* example: example.eventCategories,
* };
* }
* ```
*/
function getEventCategories(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:rds/getEventCategories:getEventCategories", {
"region": args.region,
"sourceType": args.sourceType,
}, opts);
}
exports.getEventCategories = getEventCategories;
/**
* ## Example Usage
*
* List the event categories of all the RDS resources.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* export = async () => {
* const example = await aws.rds.getEventCategories({});
* return {
* example: example.eventCategories,
* };
* }
* ```
*
* List the event categories specific to the RDS resource `db-snapshot`.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* export = async () => {
* const example = await aws.rds.getEventCategories({
* sourceType: "db-snapshot",
* });
* return {
* example: example.eventCategories,
* };
* }
* ```
*/
function getEventCategoriesOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:rds/getEventCategories:getEventCategories", {
"region": args.region,
"sourceType": args.sourceType,
}, opts);
}
exports.getEventCategoriesOutput = getEventCategoriesOutput;
//# sourceMappingURL=getEventCategories.js.map