@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
60 lines • 2.18 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.getReportDefinitionOutput = exports.getReportDefinition = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get information on an AWS Cost and Usage Report Definition.
*
* > *NOTE:* The AWS Cost and Usage Report service is only available in `us-east-1` currently.
*
* > *NOTE:* If AWS Organizations is enabled, only the master account can use this resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const reportDefinition = aws.cur.getReportDefinition({
* reportName: "example",
* });
* ```
*/
function getReportDefinition(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:cur/getReportDefinition:getReportDefinition", {
"reportName": args.reportName,
"tags": args.tags,
}, opts);
}
exports.getReportDefinition = getReportDefinition;
/**
* Use this data source to get information on an AWS Cost and Usage Report Definition.
*
* > *NOTE:* The AWS Cost and Usage Report service is only available in `us-east-1` currently.
*
* > *NOTE:* If AWS Organizations is enabled, only the master account can use this resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const reportDefinition = aws.cur.getReportDefinition({
* reportName: "example",
* });
* ```
*/
function getReportDefinitionOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:cur/getReportDefinition:getReportDefinition", {
"reportName": args.reportName,
"tags": args.tags,
}, opts);
}
exports.getReportDefinitionOutput = getReportDefinitionOutput;
//# sourceMappingURL=getReportDefinition.js.map