@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
94 lines (93 loc) • 2.46 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of tos objects
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.tos.getBucketObjects({
* bucketName: "test",
* });
* ```
*/
export declare function getBucketObjects(args: GetBucketObjectsArgs, opts?: pulumi.InvokeOptions): Promise<GetBucketObjectsResult>;
/**
* A collection of arguments for invoking getBucketObjects.
*/
export interface GetBucketObjectsArgs {
/**
* The name the TOS bucket.
*/
bucketName: string;
/**
* A Name Regex of TOS Object.
*/
nameRegex?: string;
/**
* The name the TOS Object.
*/
objectName?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
}
/**
* A collection of values returned by getBucketObjects.
*/
export interface GetBucketObjectsResult {
readonly bucketName: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly nameRegex?: string;
readonly objectName?: string;
/**
* The collection of TOS Object query.
*/
readonly objects: outputs.tos.GetBucketObjectsObject[];
readonly outputFile?: string;
/**
* The total count of TOS Object query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of tos objects
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.tos.getBucketObjects({
* bucketName: "test",
* });
* ```
*/
export declare function getBucketObjectsOutput(args: GetBucketObjectsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetBucketObjectsResult>;
/**
* A collection of arguments for invoking getBucketObjects.
*/
export interface GetBucketObjectsOutputArgs {
/**
* The name the TOS bucket.
*/
bucketName: pulumi.Input<string>;
/**
* A Name Regex of TOS Object.
*/
nameRegex?: pulumi.Input<string>;
/**
* The name the TOS Object.
*/
objectName?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
}