import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * After a Redis cache database instance is created, you can set an allowlist for the instance to permit devices to access it. * * ## Import * * ```sh * $ pulumi import volcenginecc:redis/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; /** * Enter an IP address or an address range in CIDR format. Note: The AllowList and SecurityGroupBindInfos parameters cannot both be empty. Duplicate addresses are not allowed. Separate multiple addresses with commas (,). Setting 0.0.0.0/0 allows access from all addresses. Setting 127.0.0.1 denies access from all addresses. Setting both 0.0.0.0/0 and 127.0.0.1 allows access from all addresses. Setting CIDR 192.168.1.0/24 allows access from IP addresses within that subnet. Setting 192.168.1.1 allows access only from that IP address. */ readonly allowList: pulumi.Output; /** * Type of allowlist. The value range is as follows: Ordinary (default): ordinary allowlist. Default: default allowlist. Note: Each account can set at most one default allowlist per region. When a new default allowlist is set, it automatically replaces the original default allowlist, and the original default allowlist becomes a non-default allowlist. For more details, see Constraints and Limitations */ readonly allowListCategory: pulumi.Output; /** * Allowlist remarks. The length cannot exceed 200 characters. Note: If this parameter is not set, the remarks for the new allowlist will be empty by default */ readonly allowListDesc: pulumi.Output; /** * Allowlist ID. */ readonly allowListId: pulumi.Output; /** * Number of IP addresses 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; /** * Total number of instances bound to the allowlist */ readonly associatedInstanceNum: pulumi.Output; readonly associatedInstances: pulumi.Output; /** * List of instance IDs bound to the current allowlist */ readonly instanceIds: pulumi.Output; /** * Project name associated with the allowlist */ readonly projectName: pulumi.Output; readonly securityGroupBindInfos: 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 { /** * Enter an IP address or an address range in CIDR format. Note: The AllowList and SecurityGroupBindInfos parameters cannot both be empty. Duplicate addresses are not allowed. Separate multiple addresses with commas (,). Setting 0.0.0.0/0 allows access from all addresses. Setting 127.0.0.1 denies access from all addresses. Setting both 0.0.0.0/0 and 127.0.0.1 allows access from all addresses. Setting CIDR 192.168.1.0/24 allows access from IP addresses within that subnet. Setting 192.168.1.1 allows access only from that IP address. */ allowList?: pulumi.Input; /** * Type of allowlist. The value range is as follows: Ordinary (default): ordinary allowlist. Default: default allowlist. Note: Each account can set at most one default allowlist per region. When a new default allowlist is set, it automatically replaces the original default allowlist, and the original default allowlist becomes a non-default allowlist. For more details, see Constraints and Limitations */ allowListCategory?: pulumi.Input; /** * Allowlist remarks. The length cannot exceed 200 characters. Note: If this parameter is not set, the remarks for the new allowlist will be empty by default */ allowListDesc?: pulumi.Input; /** * Allowlist ID. */ allowListId?: pulumi.Input; /** * Number of IP addresses 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; /** * Total number of instances bound to the allowlist */ associatedInstanceNum?: pulumi.Input; associatedInstances?: pulumi.Input[]>; /** * List of instance IDs bound to the current allowlist */ instanceIds?: pulumi.Input[]>; /** * Project name associated with the allowlist */ projectName?: pulumi.Input; securityGroupBindInfos?: pulumi.Input[]>; } /** * The set of arguments for constructing a AllowList resource. */ export interface AllowListArgs { /** * Enter an IP address or an address range in CIDR format. Note: The AllowList and SecurityGroupBindInfos parameters cannot both be empty. Duplicate addresses are not allowed. Separate multiple addresses with commas (,). Setting 0.0.0.0/0 allows access from all addresses. Setting 127.0.0.1 denies access from all addresses. Setting both 0.0.0.0/0 and 127.0.0.1 allows access from all addresses. Setting CIDR 192.168.1.0/24 allows access from IP addresses within that subnet. Setting 192.168.1.1 allows access only from that IP address. */ allowList?: pulumi.Input; /** * Type of allowlist. The value range is as follows: Ordinary (default): ordinary allowlist. Default: default allowlist. Note: Each account can set at most one default allowlist per region. When a new default allowlist is set, it automatically replaces the original default allowlist, and the original default allowlist becomes a non-default allowlist. For more details, see Constraints and Limitations */ allowListCategory?: pulumi.Input; /** * Allowlist remarks. The length cannot exceed 200 characters. Note: If this parameter is not set, the remarks for the new allowlist will be empty by default */ 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; /** * List of instance IDs bound to the current allowlist */ instanceIds?: pulumi.Input[]>; /** * Project name associated with the allowlist */ projectName?: pulumi.Input; securityGroupBindInfos?: pulumi.Input[]>; }