UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

129 lines (128 loc) 4.72 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage cfw address book * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.cloud_firewall.CfwAddressBook("foo", { * addressLists: [ * "192.168.1.1", * "192.168.2.2", * ], * description: "acc-test", * groupName: "acc-test-address-book", * groupType: "ip", * }); * ``` * * ## Import * * AddressBook can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:cloud_firewall/cfwAddressBook:CfwAddressBook default resource_id * ``` */ export declare class CfwAddressBook extends pulumi.CustomResource { /** * Get an existing CfwAddressBook 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?: CfwAddressBookState, opts?: pulumi.CustomResourceOptions): CfwAddressBook; /** * Returns true if the given object is an instance of CfwAddressBook. 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 CfwAddressBook; /** * The address list of the address book. * When groupType is `ip`, fill in IPv4/CIDRV4 addresses in the address list. * When groupType is `port`, fill in the port information in the address list, supporting two formats: 22 and 100/200. * When groupType is `domain`, fill in the domain name information in the address list. */ readonly addressLists: pulumi.Output<string[]>; /** * The description of the address book. */ readonly description: pulumi.Output<string | undefined>; /** * The name of the address book. */ readonly groupName: pulumi.Output<string>; /** * The type of the address book. Valid values: `ip`, `port`, `domain`. */ readonly groupType: pulumi.Output<string>; /** * The reference count of the address book. */ readonly refCnt: pulumi.Output<number>; /** * Create a CfwAddressBook 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: CfwAddressBookArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CfwAddressBook resources. */ export interface CfwAddressBookState { /** * The address list of the address book. * When groupType is `ip`, fill in IPv4/CIDRV4 addresses in the address list. * When groupType is `port`, fill in the port information in the address list, supporting two formats: 22 and 100/200. * When groupType is `domain`, fill in the domain name information in the address list. */ addressLists?: pulumi.Input<pulumi.Input<string>[]>; /** * The description of the address book. */ description?: pulumi.Input<string>; /** * The name of the address book. */ groupName?: pulumi.Input<string>; /** * The type of the address book. Valid values: `ip`, `port`, `domain`. */ groupType?: pulumi.Input<string>; /** * The reference count of the address book. */ refCnt?: pulumi.Input<number>; } /** * The set of arguments for constructing a CfwAddressBook resource. */ export interface CfwAddressBookArgs { /** * The address list of the address book. * When groupType is `ip`, fill in IPv4/CIDRV4 addresses in the address list. * When groupType is `port`, fill in the port information in the address list, supporting two formats: 22 and 100/200. * When groupType is `domain`, fill in the domain name information in the address list. */ addressLists: pulumi.Input<pulumi.Input<string>[]>; /** * The description of the address book. */ description?: pulumi.Input<string>; /** * The name of the address book. */ groupName: pulumi.Input<string>; /** * The type of the address book. Valid values: `ip`, `port`, `domain`. */ groupType: pulumi.Input<string>; }