UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

121 lines (120 loc) 3.92 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage vedb mysql allowlist * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.vedb_mysql.Allowlist("foo", { * allowLists: [ * "192.168.0.0/24", * "192.168.1.0/24", * "192.168.2.0/24", * ], * allowListDesc: "acc-test", * allowListName: "acc-test-allowlist", * allowListType: "IPv4", * }); * ``` * * ## Import * * VedbMysqlAllowlist can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:vedb_mysql/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 id of the allow list. */ readonly allowListId: pulumi.Output<string>; /** * The name of the allow list. */ readonly allowListName: pulumi.Output<string>; /** * The type of IP address in the whitelist. Currently only IPv4 addresses are supported. */ readonly allowListType: pulumi.Output<string>; /** * Enter an IP address or a range of IP addresses in CIDR format. */ 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 id of the allow list. */ allowListId?: pulumi.Input<string>; /** * The name of the allow list. */ allowListName?: pulumi.Input<string>; /** * The type of IP address in the whitelist. Currently only IPv4 addresses are supported. */ allowListType?: pulumi.Input<string>; /** * Enter an IP address or a range of IP addresses in CIDR format. */ 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>; /** * The type of IP address in the whitelist. Currently only IPv4 addresses are supported. */ allowListType?: pulumi.Input<string>; /** * Enter an IP address or a range of IP addresses in CIDR format. */ allowLists: pulumi.Input<pulumi.Input<string>[]>; }