import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * After you create a MongoDB document database instance, you can set an allowlist for the instance to permit external devices to access it. This article describes how to set an allowlist in the console. * * ## Import * * ```sh * $ pulumi import volcenginecc:mongodb/allowList:AllowList example "allow_list_id" * ``` */ export declare class AllowList extends pulumi.CustomResource { /** * Get an existing AllowList resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AllowListState, opts?: pulumi.CustomResourceOptions): AllowList; /** * Returns true if the given object is an instance of AllowList. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AllowList; /** * Allowlist type. Valid values: Ordinary: ordinary allowlist; Default: default allowlist. */ readonly allowListCategory: pulumi.Output; /** * Allowlist remarks. Maximum length: 200 characters. */ readonly allowListDesc: pulumi.Output; /** * Allowlist ID. */ readonly allowListId: pulumi.Output; /** * Total number of IP addresses (or address ranges) in the allowlist. */ readonly allowListIpNum: pulumi.Output; /** * Allowlist name. The name must meet the following requirements: Cannot start with a digit or hyphen (-). Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be 1–128 characters. */ readonly allowListName: pulumi.Output; /** * IP address type in the allowlist. Only IPv4 addresses are currently supported. */ readonly allowListType: pulumi.Output; /** * Enter an IP address or a CIDR-format IP address range. */ readonly allowLists: pulumi.Output; /** * Total number of instances bound to the current allowlist. */ readonly associatedInstanceNum: pulumi.Output; readonly associatedInstances: pulumi.Output; /** * Project to which the current allowlist belongs. */ readonly projectName: pulumi.Output; /** * Create a AllowList resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AllowListArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AllowList resources. */ export interface AllowListState { /** * Allowlist type. Valid values: Ordinary: ordinary allowlist; Default: default allowlist. */ allowListCategory?: pulumi.Input; /** * Allowlist remarks. Maximum length: 200 characters. */ allowListDesc?: pulumi.Input; /** * Allowlist ID. */ allowListId?: pulumi.Input; /** * Total number of IP addresses (or address ranges) in the allowlist. */ allowListIpNum?: pulumi.Input; /** * Allowlist name. The name must meet the following requirements: Cannot start with a digit or hyphen (-). Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be 1–128 characters. */ allowListName?: pulumi.Input; /** * IP address type in the allowlist. Only IPv4 addresses are currently supported. */ allowListType?: pulumi.Input; /** * Enter an IP address or a CIDR-format IP address range. */ allowLists?: pulumi.Input[]>; /** * Total number of instances bound to the current allowlist. */ associatedInstanceNum?: pulumi.Input; associatedInstances?: pulumi.Input[]>; /** * Project to which the current allowlist belongs. */ projectName?: pulumi.Input; } /** * The set of arguments for constructing a AllowList resource. */ export interface AllowListArgs { /** * Allowlist type. Valid values: Ordinary: ordinary allowlist; Default: default allowlist. */ allowListCategory?: pulumi.Input; /** * Allowlist remarks. Maximum length: 200 characters. */ allowListDesc?: pulumi.Input; /** * Allowlist name. The name must meet the following requirements: Cannot start with a digit or hyphen (-). Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be 1–128 characters. */ allowListName: pulumi.Input; /** * IP address type in the allowlist. Only IPv4 addresses are currently supported. */ allowListType?: pulumi.Input; /** * Enter an IP address or a CIDR-format IP address range. */ allowLists: pulumi.Input[]>; associatedInstances?: pulumi.Input[]>; /** * Project to which the current allowlist belongs. */ projectName?: pulumi.Input; }