import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * The user gateway is a collection and abstraction of information on your local gateway side. With the user gateway, you can register local gateway information to the cloud VPC. One user gateway can connect to multiple VPN gateways * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const vpncustomergatewayDemo = new volcenginecc.vpn.CustomerGateway("vpncustomergatewayDemo", { * asn: 64513, * customerGatewayName: "ccapi-test", * description: "testdesc", * ipAddress: "115.***.151.5", * ipVersion: "ipv4", * projectName: "default", * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:vpn/customerGateway:CustomerGateway example "customer_gateway_id" * ``` */ export declare class CustomerGateway extends pulumi.CustomResource { /** * Get an existing CustomerGateway 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?: CustomerGatewayState, opts?: pulumi.CustomResourceOptions): CustomerGateway; /** * Returns true if the given object is an instance of CustomerGateway. 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 CustomerGateway; /** * ID of the account to which the user gateway belongs */ readonly accountId: pulumi.Output; /** * User gateway ASN (Autonomous System Number). This parameter is required if you need to use BGP functionality. Valid ASN range is 1–4294967295 (excluding 137718, 150436, and 65533) */ readonly asn: pulumi.Output; /** * Number of IPsec connections associated with the user gateway */ readonly connectionCount: pulumi.Output; /** * Time when the user gateway was created */ readonly createdTime: pulumi.Output; /** * Gateway ID */ readonly customerGatewayId: pulumi.Output; /** * User gateway name. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the user gateway ID */ readonly customerGatewayName: pulumi.Output; /** * Description of the user gateway. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length must be between 0 and 255 characters. If not specified, defaults to an empty string */ readonly description: pulumi.Output; /** * Static public IP address of the peer local data center gateway or the VPN gateway egress IP address of another VPC. If the peer does not have a fixed static public IP, enter 0.0.0.0 here */ readonly ipAddress: pulumi.Output; /** * IP address protocol type for the VPN gateway. Options: ipv4 (default), ipv6 */ readonly ipVersion: pulumi.Output; /** * Project to which the user gateway belongs. If not specified, defaults to 'default', meaning the created resource belongs to the default project */ readonly projectName: pulumi.Output; /** * Status of the user gateway. Creating: creating. Deleting: deleting. Pending: configuring. Available: available */ readonly status: pulumi.Output; readonly tags: pulumi.Output; /** * Time when the user gateway was updated */ readonly updatedTime: pulumi.Output; /** * Create a CustomerGateway 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: CustomerGatewayArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CustomerGateway resources. */ export interface CustomerGatewayState { /** * ID of the account to which the user gateway belongs */ accountId?: pulumi.Input; /** * User gateway ASN (Autonomous System Number). This parameter is required if you need to use BGP functionality. Valid ASN range is 1–4294967295 (excluding 137718, 150436, and 65533) */ asn?: pulumi.Input; /** * Number of IPsec connections associated with the user gateway */ connectionCount?: pulumi.Input; /** * Time when the user gateway was created */ createdTime?: pulumi.Input; /** * Gateway ID */ customerGatewayId?: pulumi.Input; /** * User gateway name. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the user gateway ID */ customerGatewayName?: pulumi.Input; /** * Description of the user gateway. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length must be between 0 and 255 characters. If not specified, defaults to an empty string */ description?: pulumi.Input; /** * Static public IP address of the peer local data center gateway or the VPN gateway egress IP address of another VPC. If the peer does not have a fixed static public IP, enter 0.0.0.0 here */ ipAddress?: pulumi.Input; /** * IP address protocol type for the VPN gateway. Options: ipv4 (default), ipv6 */ ipVersion?: pulumi.Input; /** * Project to which the user gateway belongs. If not specified, defaults to 'default', meaning the created resource belongs to the default project */ projectName?: pulumi.Input; /** * Status of the user gateway. Creating: creating. Deleting: deleting. Pending: configuring. Available: available */ status?: pulumi.Input; tags?: pulumi.Input[]>; /** * Time when the user gateway was updated */ updatedTime?: pulumi.Input; } /** * The set of arguments for constructing a CustomerGateway resource. */ export interface CustomerGatewayArgs { /** * User gateway ASN (Autonomous System Number). This parameter is required if you need to use BGP functionality. Valid ASN range is 1–4294967295 (excluding 137718, 150436, and 65533) */ asn?: pulumi.Input; /** * User gateway name. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the user gateway ID */ customerGatewayName?: pulumi.Input; /** * Description of the user gateway. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length must be between 0 and 255 characters. If not specified, defaults to an empty string */ description?: pulumi.Input; /** * Static public IP address of the peer local data center gateway or the VPN gateway egress IP address of another VPC. If the peer does not have a fixed static public IP, enter 0.0.0.0 here */ ipAddress: pulumi.Input; /** * IP address protocol type for the VPN gateway. Options: ipv4 (default), ipv6 */ ipVersion?: pulumi.Input; /** * Project to which the user gateway belongs. If not specified, defaults to 'default', meaning the created resource belongs to the default project */ projectName?: pulumi.Input; tags?: pulumi.Input[]>; }