UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

167 lines (166 loc) 5.21 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage redis allow list * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.redis.AllowList("foo", { * allowLists: [ * "0.0.0.0/0", * "192.168.0.0/24", * "192.168.1.1", * "192.168.2.22", * ], * allowListDesc: "acctftestallowlist", * allowListName: "acc_test_tf_allowlist_create", * }); * ``` * * ## Import * * Redis AllowList can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:redis/allowList:AllowList default acl-cn03wk541s55c376xxxx * ``` */ 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 type of the whitelist. */ readonly allowListCategory: pulumi.Output<string>; /** * Description of allow list. */ readonly allowListDesc: pulumi.Output<string | undefined>; /** * Id of allow list. */ readonly allowListId: pulumi.Output<string>; /** * The IP number of allow list. */ readonly allowListIpNum: pulumi.Output<number>; /** * Name of allow list. */ readonly allowListName: pulumi.Output<string>; /** * Type of allow list. */ readonly allowListType: pulumi.Output<string>; /** * Ip list of allow list. */ readonly allowLists: pulumi.Output<string[]>; /** * The number of instance that associated to allow list. */ readonly associatedInstanceNum: pulumi.Output<number>; /** * Instances associated by this allow list. */ readonly associatedInstances: pulumi.Output<outputs.redis.AllowListAssociatedInstance[]>; /** * The name of the project to which the white list belongs. */ readonly projectName: pulumi.Output<string>; /** * The current whitelist is the list of security group information that has been associated. */ readonly securityGroupBindInfos: pulumi.Output<outputs.redis.AllowListSecurityGroupBindInfo[]>; /** * 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 type of the whitelist. */ allowListCategory?: pulumi.Input<string>; /** * Description of allow list. */ allowListDesc?: pulumi.Input<string>; /** * Id of allow list. */ allowListId?: pulumi.Input<string>; /** * The IP number of allow list. */ allowListIpNum?: pulumi.Input<number>; /** * Name of allow list. */ allowListName?: pulumi.Input<string>; /** * Type of allow list. */ allowListType?: pulumi.Input<string>; /** * Ip list of allow list. */ allowLists?: pulumi.Input<pulumi.Input<string>[]>; /** * The number of instance that associated to allow list. */ associatedInstanceNum?: pulumi.Input<number>; /** * Instances associated by this allow list. */ associatedInstances?: pulumi.Input<pulumi.Input<inputs.redis.AllowListAssociatedInstance>[]>; /** * The name of the project to which the white list belongs. */ projectName?: pulumi.Input<string>; /** * The current whitelist is the list of security group information that has been associated. */ securityGroupBindInfos?: pulumi.Input<pulumi.Input<inputs.redis.AllowListSecurityGroupBindInfo>[]>; } /** * The set of arguments for constructing a AllowList resource. */ export interface AllowListArgs { /** * Description of allow list. */ allowListDesc?: pulumi.Input<string>; /** * Name of allow list. */ allowListName: pulumi.Input<string>; /** * Ip list of allow list. */ allowLists: pulumi.Input<pulumi.Input<string>[]>; }