Gateway
Create a Gateway Resource
new Gateway(name: string, args: GatewayArgs, opts?: CustomResourceOptions);def Gateway(resource_name, opts=None, bandwidth=None, description=None, enable_ipsec=None, enable_ssl=None, instance_charge_type=None, name=None, period=None, ssl_connections=None, vpc_id=None, vswitch_id=None, __props__=None);func NewGateway(ctx *Context, name string, args GatewayArgs, opts ...ResourceOption) (*Gateway, error)public Gateway(string name, GatewayArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Gateway Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Gateway resource accepts the following input properties:
- Bandwidth int
- Vpc
Id string The VPN belongs the vpc_id, the field can’t be changed.
- Description string
The description of the VPN instance.
- Enable
Ipsec bool Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- Enable
Ssl bool Enable or Disable SSL VPN. At least one type of VPN should be enabled.
- Instance
Charge stringType The charge type for instance. If it is an international site account, the valid value is PostPaid, otherwise PrePaid. Default to PostPaid.
- Name string
The name of the VPN. Defaults to null.
- Period int
The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- Ssl
Connections int The max connections of SSL VPN. Default to 5. The number of connections supported by each account is different. This field is ignored when enable_ssl is false.
- Vswitch
Id string The VPN belongs the vswitch_id, the field can’t be changed.
- Bandwidth int
- Vpc
Id string The VPN belongs the vpc_id, the field can’t be changed.
- Description string
The description of the VPN instance.
- Enable
Ipsec bool Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- Enable
Ssl bool Enable or Disable SSL VPN. At least one type of VPN should be enabled.
- Instance
Charge stringType The charge type for instance. If it is an international site account, the valid value is PostPaid, otherwise PrePaid. Default to PostPaid.
- Name string
The name of the VPN. Defaults to null.
- Period int
The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- Ssl
Connections int The max connections of SSL VPN. Default to 5. The number of connections supported by each account is different. This field is ignored when enable_ssl is false.
- Vswitch
Id string The VPN belongs the vswitch_id, the field can’t be changed.
- bandwidth number
- vpc
Id string The VPN belongs the vpc_id, the field can’t be changed.
- description string
The description of the VPN instance.
- enable
Ipsec boolean Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- enable
Ssl boolean Enable or Disable SSL VPN. At least one type of VPN should be enabled.
- instance
Charge stringType The charge type for instance. If it is an international site account, the valid value is PostPaid, otherwise PrePaid. Default to PostPaid.
- name string
The name of the VPN. Defaults to null.
- period number
The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- ssl
Connections number The max connections of SSL VPN. Default to 5. The number of connections supported by each account is different. This field is ignored when enable_ssl is false.
- vswitch
Id string The VPN belongs the vswitch_id, the field can’t be changed.
- bandwidth float
- vpc_
id str The VPN belongs the vpc_id, the field can’t be changed.
- description str
The description of the VPN instance.
- enable_
ipsec bool Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- enable_
ssl bool Enable or Disable SSL VPN. At least one type of VPN should be enabled.
- instance_
charge_ strtype The charge type for instance. If it is an international site account, the valid value is PostPaid, otherwise PrePaid. Default to PostPaid.
- name str
The name of the VPN. Defaults to null.
- period float
The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- ssl_
connections float The max connections of SSL VPN. Default to 5. The number of connections supported by each account is different. This field is ignored when enable_ssl is false.
- vswitch_
id str The VPN belongs the vswitch_id, the field can’t be changed.
Outputs
All input properties are implicitly available as output properties. Additionally, the Gateway resource produces the following output properties:
- Business
Status string The business status of the VPN gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internet
Ip string The internet ip of the VPN.
- Status string
The status of the VPN gateway.
- Business
Status string The business status of the VPN gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internet
Ip string The internet ip of the VPN.
- Status string
The status of the VPN gateway.
- business
Status string The business status of the VPN gateway.
- id string
- The provider-assigned unique ID for this managed resource.
- internet
Ip string The internet ip of the VPN.
- status string
The status of the VPN gateway.
- business_
status str The business status of the VPN gateway.
- id str
- The provider-assigned unique ID for this managed resource.
- internet_
ip str The internet ip of the VPN.
- status str
The status of the VPN gateway.
Look up an Existing Gateway Resource
Get an existing Gateway resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: GatewayState, opts?: CustomResourceOptions): Gatewaystatic get(resource_name, id, opts=None, bandwidth=None, business_status=None, description=None, enable_ipsec=None, enable_ssl=None, instance_charge_type=None, internet_ip=None, name=None, period=None, ssl_connections=None, status=None, vpc_id=None, vswitch_id=None, __props__=None);func GetGateway(ctx *Context, name string, id IDInput, state *GatewayState, opts ...ResourceOption) (*Gateway, error)public static Gateway Get(string name, Input<string> id, GatewayState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Bandwidth int
- Business
Status string The business status of the VPN gateway.
- Description string
The description of the VPN instance.
- Enable
Ipsec bool Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- Enable
Ssl bool Enable or Disable SSL VPN. At least one type of VPN should be enabled.
- Instance
Charge stringType The charge type for instance. If it is an international site account, the valid value is PostPaid, otherwise PrePaid. Default to PostPaid.
- Internet
Ip string The internet ip of the VPN.
- Name string
The name of the VPN. Defaults to null.
- Period int
The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- Ssl
Connections int The max connections of SSL VPN. Default to 5. The number of connections supported by each account is different. This field is ignored when enable_ssl is false.
- Status string
The status of the VPN gateway.
- Vpc
Id string The VPN belongs the vpc_id, the field can’t be changed.
- Vswitch
Id string The VPN belongs the vswitch_id, the field can’t be changed.
- Bandwidth int
- Business
Status string The business status of the VPN gateway.
- Description string
The description of the VPN instance.
- Enable
Ipsec bool Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- Enable
Ssl bool Enable or Disable SSL VPN. At least one type of VPN should be enabled.
- Instance
Charge stringType The charge type for instance. If it is an international site account, the valid value is PostPaid, otherwise PrePaid. Default to PostPaid.
- Internet
Ip string The internet ip of the VPN.
- Name string
The name of the VPN. Defaults to null.
- Period int
The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- Ssl
Connections int The max connections of SSL VPN. Default to 5. The number of connections supported by each account is different. This field is ignored when enable_ssl is false.
- Status string
The status of the VPN gateway.
- Vpc
Id string The VPN belongs the vpc_id, the field can’t be changed.
- Vswitch
Id string The VPN belongs the vswitch_id, the field can’t be changed.
- bandwidth number
- business
Status string The business status of the VPN gateway.
- description string
The description of the VPN instance.
- enable
Ipsec boolean Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- enable
Ssl boolean Enable or Disable SSL VPN. At least one type of VPN should be enabled.
- instance
Charge stringType The charge type for instance. If it is an international site account, the valid value is PostPaid, otherwise PrePaid. Default to PostPaid.
- internet
Ip string The internet ip of the VPN.
- name string
The name of the VPN. Defaults to null.
- period number
The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- ssl
Connections number The max connections of SSL VPN. Default to 5. The number of connections supported by each account is different. This field is ignored when enable_ssl is false.
- status string
The status of the VPN gateway.
- vpc
Id string The VPN belongs the vpc_id, the field can’t be changed.
- vswitch
Id string The VPN belongs the vswitch_id, the field can’t be changed.
- bandwidth float
- business_
status str The business status of the VPN gateway.
- description str
The description of the VPN instance.
- enable_
ipsec bool Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- enable_
ssl bool Enable or Disable SSL VPN. At least one type of VPN should be enabled.
- instance_
charge_ strtype The charge type for instance. If it is an international site account, the valid value is PostPaid, otherwise PrePaid. Default to PostPaid.
- internet_
ip str The internet ip of the VPN.
- name str
The name of the VPN. Defaults to null.
- period float
The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- ssl_
connections float The max connections of SSL VPN. Default to 5. The number of connections supported by each account is different. This field is ignored when enable_ssl is false.
- status str
The status of the VPN gateway.
- vpc_
id str The VPN belongs the vpc_id, the field can’t be changed.
- vswitch_
id str The VPN belongs the vswitch_id, the field can’t be changed.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.