@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
125 lines (124 loc) • 3.63 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",
* });
* ```
*/
export declare function getMongoAllowLists(args: GetMongoAllowListsArgs, opts?: pulumi.InvokeOptions): Promise<GetMongoAllowListsResult>;
/**
* A collection of arguments for invoking getMongoAllowLists.
*/
export interface GetMongoAllowListsArgs {
/**
* 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 getMongoAllowLists.
*/
export interface GetMongoAllowListsResult {
readonly allowListIds?: string[];
/**
* The collection of mongodb allow list query.
*/
readonly allowLists: outputs.mongodb.GetMongoAllowListsAllowList[];
/**
* 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",
* });
* ```
*/
export declare function getMongoAllowListsOutput(args: GetMongoAllowListsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMongoAllowListsResult>;
/**
* A collection of arguments for invoking getMongoAllowLists.
*/
export interface GetMongoAllowListsOutputArgs {
/**
* 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>;
}