@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
64 lines • 1.98 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.getTagsOutput = exports.getTags = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Provides the available cost allocation tag keys and tag values for a specified period.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.costexplorer.getTags({
* timePeriod: {
* start: "2021-01-01",
* end: "2022-12-01",
* },
* });
* ```
*/
function getTags(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:costexplorer/getTags:getTags", {
"filter": args.filter,
"searchString": args.searchString,
"sortBies": args.sortBies,
"tagKey": args.tagKey,
"timePeriod": args.timePeriod,
}, opts);
}
exports.getTags = getTags;
/**
* Provides the available cost allocation tag keys and tag values for a specified period.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.costexplorer.getTags({
* timePeriod: {
* start: "2021-01-01",
* end: "2022-12-01",
* },
* });
* ```
*/
function getTagsOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:costexplorer/getTags:getTags", {
"filter": args.filter,
"searchString": args.searchString,
"sortBies": args.sortBies,
"tagKey": args.tagKey,
"timePeriod": args.timePeriod,
}, opts);
}
exports.getTagsOutput = getTagsOutput;
//# sourceMappingURL=getTags.js.map