@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
127 lines (126 loc) • 3.83 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of mongodb allow lists
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooMongoAllowList = new volcengine.mongodb.MongoAllowList("fooMongoAllowList", {
* allowListName: "acc-test",
* allowListDesc: "acc-test",
* allowListType: "IPv4",
* allowList: "10.1.1.3,10.2.3.0/24,10.1.1.1",
* });
* const fooMongoAllowLists = volcengine.mongodb.getMongoAllowListsOutput({
* allowListIds: [fooMongoAllowList.id],
* regionId: "cn-beijing",
* });
* ```
*/
/** @deprecated volcengine.mongodb.MongoAllowLists has been deprecated in favor of volcengine.mongodb.getMongoAllowLists */
export declare function mongoAllowLists(args: MongoAllowListsArgs, opts?: pulumi.InvokeOptions): Promise<MongoAllowListsResult>;
/**
* A collection of arguments for invoking MongoAllowLists.
*/
export interface MongoAllowListsArgs {
/**
* The allow list IDs to query.
*/
allowListIds?: string[];
/**
* The instance ID to query.
*/
instanceId?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The project name of the allow list.
*/
projectName?: string;
/**
* The region ID.
*/
regionId: string;
}
/**
* A collection of values returned by MongoAllowLists.
*/
export interface MongoAllowListsResult {
readonly allowListIds?: string[];
/**
* The collection of mongodb allow list query.
*/
readonly allowLists: outputs.mongodb.MongoAllowListsAllowList[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The instance id that bound to the allow list.
*/
readonly instanceId?: string;
readonly outputFile?: string;
/**
* The project name of the allow list.
*/
readonly projectName?: string;
readonly regionId: string;
/**
* The total count of mongodb allow lists query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of mongodb allow lists
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooMongoAllowList = new volcengine.mongodb.MongoAllowList("fooMongoAllowList", {
* allowListName: "acc-test",
* allowListDesc: "acc-test",
* allowListType: "IPv4",
* allowList: "10.1.1.3,10.2.3.0/24,10.1.1.1",
* });
* const fooMongoAllowLists = volcengine.mongodb.getMongoAllowListsOutput({
* allowListIds: [fooMongoAllowList.id],
* regionId: "cn-beijing",
* });
* ```
*/
/** @deprecated volcengine.mongodb.MongoAllowLists has been deprecated in favor of volcengine.mongodb.getMongoAllowLists */
export declare function mongoAllowListsOutput(args: MongoAllowListsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<MongoAllowListsResult>;
/**
* A collection of arguments for invoking MongoAllowLists.
*/
export interface MongoAllowListsOutputArgs {
/**
* The allow list IDs to query.
*/
allowListIds?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The instance ID to query.
*/
instanceId?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The project name of the allow list.
*/
projectName?: pulumi.Input<string>;
/**
* The region ID.
*/
regionId: pulumi.Input<string>;
}