import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::RDSPostgreSQL::AllowList */ export declare function getAllowList(args: GetAllowListArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAllowList. */ export interface GetAllowListArgs { /** * Uniquely identifies the resource. */ id: string; } /** * A collection of values returned by getAllowList. */ export interface GetAllowListResult { /** * Allowlist category. Values: Ordinary: ordinary allowlist; Default: default allowlist. Note: This parameter has no default value when used as a request parameter. If not provided, all categories of allowlists are queried. */ readonly allowListCategory: string; /** * Description of the allowlist. Up to 200 characters. Default value is an empty string. */ readonly allowListDesc: string; /** * Allowlist ID. */ readonly allowListId: string; /** * Number of IP addresses or IP segments in the allowlist. */ readonly allowListIpNum: number; /** * Allowlist naming rules: The allowlist name must be unique within the current region. It must start with a Chinese character, letter, or underscore (*). It can only contain Chinese characters, letters, numbers, underscores (*), and hyphens (-). Length must be 1–128 characters. */ readonly allowListName: string; /** * Network protocol type used by the allowlist. Value: IPv4 (default). */ readonly allowListType: string; /** * IP addresses included in the allowlist. Supports the following two formats: IP address format, for example: 10.23.12.24. CIDR IP address range format, for example: 10.23.12.0/24 (Classless Inter-Domain Routing, 24 indicates the prefix length, range is 1–32). Note: Each allowlist can add up to 300 IP addresses or IP ranges. If there are many IPs, it is recommended to merge them into IP ranges, such as 10.23.12.0/24. Do not add IP addresses ending with x.x.x.x/0 except for 0.0.0.0/0 to the allowlist. This field cannot be used together with the UserAllowList field. */ readonly allowLists: string[]; /** * Number of instances bound to this allowlist. */ readonly associatedInstanceNum: number; /** * List of instances bound to this allowlist, including instance ID and instance name. */ readonly associatedInstances: outputs.rdspostgresql.GetAllowListAssociatedInstance[]; /** * Uniquely identifies the resource. */ readonly id: string; /** * Instance ID. When UpgradeAllowListVersion is set to true, you must provide this field to specify the instance for upgrading the allowlist version. */ readonly instanceId: string; /** * Query allowlist by IP address. Supports multiple IP addresses separated by commas (,). Note: If the allowlist contains any subset of the provided IP addresses, that allowlist will be returned. */ readonly ipAddress: string; /** * Allowlist modification mode. Values: Cover (default): overwrite, use the value of the AllowList field to overwrite the original allowlist. Append: add, add the IP addresses in the AllowList field to the original allowlist. Delete: remove, remove the IP addresses in the AllowList field from the original allowlist. At least one IP address must remain. Note: If the allowlist to be modified is bound to a security group, or if you need to bind a security group when modifying the allowlist, ModifyMode can only be set to Cover. */ readonly modifyMode: string; /** * List of security groups bound to this allowlist. */ readonly securityGroupBindInfos: outputs.rdspostgresql.GetAllowListSecurityGroupBindInfo[]; /** * Whether to update the security group bound to the allowlist. Values: true: update; false: do not update. Default value. */ readonly updateSecurityGroup: boolean; /** * Whether to upgrade the allowlist version. Values: true: upgrade; false: do not upgrade (default). You must also provide the InstanceId field. */ readonly upgradeAllowListVersion: boolean; /** * IP addresses outside the security group that need to be added to the allowlist. You can enter IP addresses or CIDR IP ranges. Note: This field cannot be used together with the AllowList field. */ readonly userAllowList: string; } /** * Data Source schema for Volcengine::RDSPostgreSQL::AllowList */ export declare function getAllowListOutput(args: GetAllowListOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAllowList. */ export interface GetAllowListOutputArgs { /** * Uniquely identifies the resource. */ id: pulumi.Input; }