@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
116 lines (115 loc) • 3.61 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of tls tags
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const basic = volcengine.tls.getTags({
* maxResults: 10,
* resourceIds: ["6e6ea17f-ee1d-494f-83f7-c3ecc5c351ea"],
* resourceType: "project",
* });
* ```
*/
export declare function getTags(args: GetTagsArgs, opts?: pulumi.InvokeOptions): Promise<GetTagsResult>;
/**
* A collection of arguments for invoking getTags.
*/
export interface GetTagsArgs {
/**
* The number of results returned per page. Default value: 20. Maximum value: 100.
*/
maxResults?: number;
/**
* The token to get the next page of results. If this parameter is left empty, it means to get the first page of results.
*/
nextToken?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The IDs of the resources.
*/
resourceIds: string[];
/**
* The type of the resource. Valid values: project, topic, shipper, host_group, host, consumer_group, rule, alarm, alarm_notify_group, etl_task, import_task, schedule_sql_task, download_task, trace_instance.
*/
resourceType: string;
/**
* The tag filters.
*/
tagFilters?: inputs.tls.GetTagsTagFilter[];
}
/**
* A collection of values returned by getTags.
*/
export interface GetTagsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly maxResults?: number;
readonly nextToken?: string;
readonly outputFile?: string;
readonly resourceIds: string[];
/**
* The type of the resource.
*/
readonly resourceType: string;
readonly tagFilters?: outputs.tls.GetTagsTagFilter[];
/**
* The list of tags.
*/
readonly tags: outputs.tls.GetTagsTag[];
}
/**
* Use this data source to query detailed information of tls tags
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const basic = volcengine.tls.getTags({
* maxResults: 10,
* resourceIds: ["6e6ea17f-ee1d-494f-83f7-c3ecc5c351ea"],
* resourceType: "project",
* });
* ```
*/
export declare function getTagsOutput(args: GetTagsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTagsResult>;
/**
* A collection of arguments for invoking getTags.
*/
export interface GetTagsOutputArgs {
/**
* The number of results returned per page. Default value: 20. Maximum value: 100.
*/
maxResults?: pulumi.Input<number>;
/**
* The token to get the next page of results. If this parameter is left empty, it means to get the first page of results.
*/
nextToken?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The IDs of the resources.
*/
resourceIds: pulumi.Input<pulumi.Input<string>[]>;
/**
* The type of the resource. Valid values: project, topic, shipper, host_group, host, consumer_group, rule, alarm, alarm_notify_group, etl_task, import_task, schedule_sql_task, download_task, trace_instance.
*/
resourceType: pulumi.Input<string>;
/**
* The tag filters.
*/
tagFilters?: pulumi.Input<pulumi.Input<inputs.tls.GetTagsTagFilterArgs>[]>;
}