@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
108 lines (107 loc) • 3.43 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* 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",
* },
* });
* ```
*/
export declare function getTags(args: GetTagsArgs, opts?: pulumi.InvokeOptions): Promise<GetTagsResult>;
/**
* A collection of arguments for invoking getTags.
*/
export interface GetTagsArgs {
/**
* Configuration block for the `Expression` object used to categorize costs. See `filter` block below for details.
*/
filter?: inputs.costexplorer.GetTagsFilter;
/**
* Value that you want to search for.
*/
searchString?: string;
/**
* Configuration block for the value by which you want to sort the data. `sortBy` block below for details.
*/
sortBies?: inputs.costexplorer.GetTagsSortBy[];
/**
* Key of the tag that you want to return values for.
*/
tagKey?: string;
/**
* Configuration block for the start and end dates for retrieving the dimension values. See `timePeriod` block below for details.
*/
timePeriod: inputs.costexplorer.GetTagsTimePeriod;
}
/**
* A collection of values returned by getTags.
*/
export interface GetTagsResult {
readonly filter?: outputs.costexplorer.GetTagsFilter;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly searchString?: string;
readonly sortBies?: outputs.costexplorer.GetTagsSortBy[];
readonly tagKey?: string;
/**
* Tags that match your request.
*/
readonly tags: string[];
readonly timePeriod: outputs.costexplorer.GetTagsTimePeriod;
}
/**
* 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",
* },
* });
* ```
*/
export declare function getTagsOutput(args: GetTagsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTagsResult>;
/**
* A collection of arguments for invoking getTags.
*/
export interface GetTagsOutputArgs {
/**
* Configuration block for the `Expression` object used to categorize costs. See `filter` block below for details.
*/
filter?: pulumi.Input<inputs.costexplorer.GetTagsFilterArgs>;
/**
* Value that you want to search for.
*/
searchString?: pulumi.Input<string>;
/**
* Configuration block for the value by which you want to sort the data. `sortBy` block below for details.
*/
sortBies?: pulumi.Input<pulumi.Input<inputs.costexplorer.GetTagsSortByArgs>[]>;
/**
* Key of the tag that you want to return values for.
*/
tagKey?: pulumi.Input<string>;
/**
* Configuration block for the start and end dates for retrieving the dimension values. See `timePeriod` block below for details.
*/
timePeriod: pulumi.Input<inputs.costexplorer.GetTagsTimePeriodArgs>;
}