import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * When creating a Kafka instance, you can bind an allowlist as needed. After binding the allowlist to the Kafka instance, only IP addresses and address ranges specified in the allowlist can access the Kafka message queue instance. For security, we recommend creating an allowlist and adding the client IP address or IP address range to the Kafka instance's allowlist. Regularly maintain and manage the allowlist to enhance the security of Kafka instance access * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@pulumi/volcenginecc"; * * const kafkaAllowListDemo = new volcenginecc.index.KafkaAllowlist("KafkaAllowListDemo", { * allowList: "127.0.0.2", * allowListDesc: "test", * allowListName: "ccapi-text", * associatedInstances: [ * { * instanceId: "kafka-cnng9x9s***", * }, * { * instanceId: "kafka-cnnghf99**", * }, * ], * applyInstanceNum: 2, * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:kafka/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 rule list. Supports specifying IP addresses or IP ranges. Separate multiple IP addresses or ranges with commas (,). Each allowlist can contain up to 300 IP addresses or ranges */ readonly allowList: pulumi.Output; /** * Allowlist description. Maximum length: 200 characters */ readonly allowListDesc: pulumi.Output; /** * Allowlist ID */ readonly allowListId: pulumi.Output; /** * Number of rules specified in the allowlist */ readonly allowListIpNum: pulumi.Output; /** * Allowlist rule name. Length: 1–128 characters. Can only contain Chinese characters, letters, numbers, underscores, and hyphens (-). Cannot start with a number or hyphen (-). The allowlist name must be unique within the current region */ readonly allowListName: pulumi.Output; /** * Number of instances already bound to this allowlist. If the AllowList parameter is specified, this field is required to indicate the expected number of instances affected after rule modification. If the expected number does not match the actual number, the request fails */ readonly applyInstanceNum: pulumi.Output; /** * Number of instances bound to the allowlist */ readonly associatedInstanceNum: pulumi.Output; readonly associatedInstances: 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 rule list. Supports specifying IP addresses or IP ranges. Separate multiple IP addresses or ranges with commas (,). Each allowlist can contain up to 300 IP addresses or ranges */ allowList?: pulumi.Input; /** * Allowlist description. Maximum length: 200 characters */ allowListDesc?: pulumi.Input; /** * Allowlist ID */ allowListId?: pulumi.Input; /** * Number of rules specified in the allowlist */ allowListIpNum?: pulumi.Input; /** * Allowlist rule name. Length: 1–128 characters. Can only contain Chinese characters, letters, numbers, underscores, and hyphens (-). Cannot start with a number or hyphen (-). The allowlist name must be unique within the current region */ allowListName?: pulumi.Input; /** * Number of instances already bound to this allowlist. If the AllowList parameter is specified, this field is required to indicate the expected number of instances affected after rule modification. If the expected number does not match the actual number, the request fails */ applyInstanceNum?: pulumi.Input; /** * Number of instances bound to the allowlist */ associatedInstanceNum?: pulumi.Input; associatedInstances?: pulumi.Input[]>; } /** * The set of arguments for constructing a AllowList resource. */ export interface AllowListArgs { /** * Allowlist rule list. Supports specifying IP addresses or IP ranges. Separate multiple IP addresses or ranges with commas (,). Each allowlist can contain up to 300 IP addresses or ranges */ allowList: pulumi.Input; /** * Allowlist description. Maximum length: 200 characters */ allowListDesc?: pulumi.Input; /** * Allowlist rule name. Length: 1–128 characters. Can only contain Chinese characters, letters, numbers, underscores, and hyphens (-). Cannot start with a number or hyphen (-). The allowlist name must be unique within the current region */ allowListName: pulumi.Input; /** * Number of instances already bound to this allowlist. If the AllowList parameter is specified, this field is required to indicate the expected number of instances affected after rule modification. If the expected number does not match the actual number, the request fails */ applyInstanceNum?: pulumi.Input; associatedInstances?: pulumi.Input[]>; }