UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

85 lines (84 loc) 2.18 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of tos buckets * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.tos.getBuckets({ * nameRegex: "test", * }); * ``` */ export declare function getBuckets(args?: GetBucketsArgs, opts?: pulumi.InvokeOptions): Promise<GetBucketsResult>; /** * A collection of arguments for invoking getBuckets. */ export interface GetBucketsArgs { /** * The name the TOS bucket. */ bucketName?: string; /** * A Name Regex of TOS bucket. */ nameRegex?: string; /** * File name where to save data source results. */ outputFile?: string; } /** * A collection of values returned by getBuckets. */ export interface GetBucketsResult { readonly bucketName?: string; /** * The collection of TOS bucket query. */ readonly buckets: outputs.tos.GetBucketsBucket[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly nameRegex?: string; readonly outputFile?: string; /** * The total count of TOS bucket query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of tos buckets * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.tos.getBuckets({ * nameRegex: "test", * }); * ``` */ export declare function getBucketsOutput(args?: GetBucketsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetBucketsResult>; /** * A collection of arguments for invoking getBuckets. */ export interface GetBucketsOutputArgs { /** * The name the TOS bucket. */ bucketName?: pulumi.Input<string>; /** * A Name Regex of TOS bucket. */ nameRegex?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; }