UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

99 lines (98 loc) 3.49 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage kafka allow list * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.kafka.AllowList("foo", { * allowLists: [ * "192.168.0.1", * "10.32.55.66", * "10.22.55.66", * ], * allowListName: "tf-test", * }); * ``` * * ## Import * * KafkaAllowList can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:kafka/allowList:AllowList default resource_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<pulumi.ID>, 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; /** * The description of the allow list. */ readonly allowListDesc: pulumi.Output<string | undefined>; /** * The name of the allow list. */ readonly allowListName: pulumi.Output<string>; /** * Whitelist rule list. Supports specifying as IP addresses or IP network segments. Each whitelist can be configured with a maximum of 300 IP addresses or network segments. */ readonly allowLists: pulumi.Output<string[]>; /** * 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 { /** * The description of the allow list. */ allowListDesc?: pulumi.Input<string>; /** * The name of the allow list. */ allowListName?: pulumi.Input<string>; /** * Whitelist rule list. Supports specifying as IP addresses or IP network segments. Each whitelist can be configured with a maximum of 300 IP addresses or network segments. */ allowLists?: pulumi.Input<pulumi.Input<string>[]>; } /** * The set of arguments for constructing a AllowList resource. */ export interface AllowListArgs { /** * The description of the allow list. */ allowListDesc?: pulumi.Input<string>; /** * The name of the allow list. */ allowListName: pulumi.Input<string>; /** * Whitelist rule list. Supports specifying as IP addresses or IP network segments. Each whitelist can be configured with a maximum of 300 IP addresses or network segments. */ allowLists: pulumi.Input<pulumi.Input<string>[]>; }