@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
78 lines (77 loc) • 2.11 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get all OBS buckets.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const buckets = pulumi.output(huaweicloud.Obs.getBuckets({
* bucket: "your-bucket-name",
* }));
* ```
*/
export declare function getBuckets(args?: GetBucketsArgs, opts?: pulumi.InvokeOptions): Promise<GetBucketsResult>;
/**
* A collection of arguments for invoking getBuckets.
*/
export interface GetBucketsArgs {
/**
* The name of the OBS bucket.
*/
bucket?: string;
/**
* The enterprise project id of the OBS bucket.
*/
enterpriseProjectId?: string;
/**
* The region in which to obtain the OBS bucket.
* If omitted, the provider-level region will be used.
*/
region?: string;
}
/**
* A collection of values returned by getBuckets.
*/
export interface GetBucketsResult {
/**
* The name of the OBS bucket.
*/
readonly bucket?: string;
/**
* A list of OBS buckets.
*/
readonly buckets: outputs.Obs.GetBucketsBucket[];
/**
* The enterprise project id of the OBS bucket.
*/
readonly enterpriseProjectId?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The region where the OBS bucket belongs.
*/
readonly region?: string;
}
export declare function getBucketsOutput(args?: GetBucketsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetBucketsResult>;
/**
* A collection of arguments for invoking getBuckets.
*/
export interface GetBucketsOutputArgs {
/**
* The name of the OBS bucket.
*/
bucket?: pulumi.Input<string>;
/**
* The enterprise project id of the OBS bucket.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* The region in which to obtain the OBS bucket.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
}