alicloud.vpc.ForwardEntry
Explore with Pulumi AI
Provides a forward resource.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "forward-entry-example-name";
var defaultZones = AliCloud.GetZones.Invoke(new()
{
AvailableResourceCreation = "VSwitch",
});
var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
{
VpcName = name,
CidrBlock = "172.16.0.0/12",
});
var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/21",
ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
VswitchName = name,
});
var defaultNatGateway = new AliCloud.Vpc.NatGateway("defaultNatGateway", new()
{
VpcId = defaultNetwork.Id,
InternetChargeType = "PayByLcu",
NatGatewayName = name,
NatType = "Enhanced",
VswitchId = defaultSwitch.Id,
});
var defaultEipAddress = new AliCloud.Ecs.EipAddress("defaultEipAddress", new()
{
AddressName = name,
});
var defaultEipAssociation = new AliCloud.Ecs.EipAssociation("defaultEipAssociation", new()
{
AllocationId = defaultEipAddress.Id,
InstanceId = defaultNatGateway.Id,
});
var defaultForwardEntry = new AliCloud.Vpc.ForwardEntry("defaultForwardEntry", new()
{
ForwardTableId = defaultNatGateway.ForwardTableIds,
ExternalIp = defaultEipAddress.IpAddress,
ExternalPort = "80",
IpProtocol = "tcp",
InternalIp = "172.16.0.3",
InternalPort = "8080",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "forward-entry-example-name"
if param := cfg.Get("name"); param != "" {
name = param
}
defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableResourceCreation: pulumi.StringRef("VSwitch"),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("172.16.0.0/12"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String("172.16.0.0/21"),
ZoneId: *pulumi.String(defaultZones.Zones[0].Id),
VswitchName: pulumi.String(name),
})
if err != nil {
return err
}
defaultNatGateway, err := vpc.NewNatGateway(ctx, "defaultNatGateway", &vpc.NatGatewayArgs{
VpcId: defaultNetwork.ID(),
InternetChargeType: pulumi.String("PayByLcu"),
NatGatewayName: pulumi.String(name),
NatType: pulumi.String("Enhanced"),
VswitchId: defaultSwitch.ID(),
})
if err != nil {
return err
}
defaultEipAddress, err := ecs.NewEipAddress(ctx, "defaultEipAddress", &ecs.EipAddressArgs{
AddressName: pulumi.String(name),
})
if err != nil {
return err
}
_, err = ecs.NewEipAssociation(ctx, "defaultEipAssociation", &ecs.EipAssociationArgs{
AllocationId: defaultEipAddress.ID(),
InstanceId: defaultNatGateway.ID(),
})
if err != nil {
return err
}
_, err = vpc.NewForwardEntry(ctx, "defaultForwardEntry", &vpc.ForwardEntryArgs{
ForwardTableId: defaultNatGateway.ForwardTableIds,
ExternalIp: defaultEipAddress.IpAddress,
ExternalPort: pulumi.String("80"),
IpProtocol: pulumi.String("tcp"),
InternalIp: pulumi.String("172.16.0.3"),
InternalPort: pulumi.String("8080"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.vpc.NatGateway;
import com.pulumi.alicloud.vpc.NatGatewayArgs;
import com.pulumi.alicloud.ecs.EipAddress;
import com.pulumi.alicloud.ecs.EipAddressArgs;
import com.pulumi.alicloud.ecs.EipAssociation;
import com.pulumi.alicloud.ecs.EipAssociationArgs;
import com.pulumi.alicloud.vpc.ForwardEntry;
import com.pulumi.alicloud.vpc.ForwardEntryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("forward-entry-example-name");
final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("172.16.0.0/12")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock("172.16.0.0/21")
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.vswitchName(name)
.build());
var defaultNatGateway = new NatGateway("defaultNatGateway", NatGatewayArgs.builder()
.vpcId(defaultNetwork.id())
.internetChargeType("PayByLcu")
.natGatewayName(name)
.natType("Enhanced")
.vswitchId(defaultSwitch.id())
.build());
var defaultEipAddress = new EipAddress("defaultEipAddress", EipAddressArgs.builder()
.addressName(name)
.build());
var defaultEipAssociation = new EipAssociation("defaultEipAssociation", EipAssociationArgs.builder()
.allocationId(defaultEipAddress.id())
.instanceId(defaultNatGateway.id())
.build());
var defaultForwardEntry = new ForwardEntry("defaultForwardEntry", ForwardEntryArgs.builder()
.forwardTableId(defaultNatGateway.forwardTableIds())
.externalIp(defaultEipAddress.ipAddress())
.externalPort("80")
.ipProtocol("tcp")
.internalIp("172.16.0.3")
.internalPort("8080")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "forward-entry-example-name"
default_zones = alicloud.get_zones(available_resource_creation="VSwitch")
default_network = alicloud.vpc.Network("defaultNetwork",
vpc_name=name,
cidr_block="172.16.0.0/12")
default_switch = alicloud.vpc.Switch("defaultSwitch",
vpc_id=default_network.id,
cidr_block="172.16.0.0/21",
zone_id=default_zones.zones[0].id,
vswitch_name=name)
default_nat_gateway = alicloud.vpc.NatGateway("defaultNatGateway",
vpc_id=default_network.id,
internet_charge_type="PayByLcu",
nat_gateway_name=name,
nat_type="Enhanced",
vswitch_id=default_switch.id)
default_eip_address = alicloud.ecs.EipAddress("defaultEipAddress", address_name=name)
default_eip_association = alicloud.ecs.EipAssociation("defaultEipAssociation",
allocation_id=default_eip_address.id,
instance_id=default_nat_gateway.id)
default_forward_entry = alicloud.vpc.ForwardEntry("defaultForwardEntry",
forward_table_id=default_nat_gateway.forward_table_ids,
external_ip=default_eip_address.ip_address,
external_port="80",
ip_protocol="tcp",
internal_ip="172.16.0.3",
internal_port="8080")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "forward-entry-example-name";
const defaultZones = alicloud.getZones({
availableResourceCreation: "VSwitch",
});
const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
vpcName: name,
cidrBlock: "172.16.0.0/12",
});
const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
vpcId: defaultNetwork.id,
cidrBlock: "172.16.0.0/21",
zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
vswitchName: name,
});
const defaultNatGateway = new alicloud.vpc.NatGateway("defaultNatGateway", {
vpcId: defaultNetwork.id,
internetChargeType: "PayByLcu",
natGatewayName: name,
natType: "Enhanced",
vswitchId: defaultSwitch.id,
});
const defaultEipAddress = new alicloud.ecs.EipAddress("defaultEipAddress", {addressName: name});
const defaultEipAssociation = new alicloud.ecs.EipAssociation("defaultEipAssociation", {
allocationId: defaultEipAddress.id,
instanceId: defaultNatGateway.id,
});
const defaultForwardEntry = new alicloud.vpc.ForwardEntry("defaultForwardEntry", {
forwardTableId: defaultNatGateway.forwardTableIds,
externalIp: defaultEipAddress.ipAddress,
externalPort: "80",
ipProtocol: "tcp",
internalIp: "172.16.0.3",
internalPort: "8080",
});
configuration:
name:
type: string
default: forward-entry-example-name
resources:
defaultNetwork:
type: alicloud:vpc:Network
properties:
vpcName: ${name}
cidrBlock: 172.16.0.0/12
defaultSwitch:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultNetwork.id}
cidrBlock: 172.16.0.0/21
zoneId: ${defaultZones.zones[0].id}
vswitchName: ${name}
defaultNatGateway:
type: alicloud:vpc:NatGateway
properties:
vpcId: ${defaultNetwork.id}
internetChargeType: PayByLcu
natGatewayName: ${name}
natType: Enhanced
vswitchId: ${defaultSwitch.id}
defaultEipAddress:
type: alicloud:ecs:EipAddress
properties:
addressName: ${name}
defaultEipAssociation:
type: alicloud:ecs:EipAssociation
properties:
allocationId: ${defaultEipAddress.id}
instanceId: ${defaultNatGateway.id}
defaultForwardEntry:
type: alicloud:vpc:ForwardEntry
properties:
forwardTableId: ${defaultNatGateway.forwardTableIds}
externalIp: ${defaultEipAddress.ipAddress}
externalPort: '80'
ipProtocol: tcp
internalIp: 172.16.0.3
internalPort: '8080'
variables:
defaultZones:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableResourceCreation: VSwitch
Create ForwardEntry Resource
new ForwardEntry(name: string, args: ForwardEntryArgs, opts?: CustomResourceOptions);
@overload
def ForwardEntry(resource_name: str,
opts: Optional[ResourceOptions] = None,
external_ip: Optional[str] = None,
external_port: Optional[str] = None,
forward_entry_name: Optional[str] = None,
forward_table_id: Optional[str] = None,
internal_ip: Optional[str] = None,
internal_port: Optional[str] = None,
ip_protocol: Optional[str] = None,
name: Optional[str] = None,
port_break: Optional[bool] = None)
@overload
def ForwardEntry(resource_name: str,
args: ForwardEntryArgs,
opts: Optional[ResourceOptions] = None)
func NewForwardEntry(ctx *Context, name string, args ForwardEntryArgs, opts ...ResourceOption) (*ForwardEntry, error)
public ForwardEntry(string name, ForwardEntryArgs args, CustomResourceOptions? opts = null)
public ForwardEntry(String name, ForwardEntryArgs args)
public ForwardEntry(String name, ForwardEntryArgs args, CustomResourceOptions options)
type: alicloud:vpc:ForwardEntry
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ForwardEntryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ForwardEntryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ForwardEntryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ForwardEntryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ForwardEntryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ForwardEntry Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ForwardEntry resource accepts the following input properties:
- External
Ip string The external ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- External
Port string The external port, valid value is 1~65535|any.
- Forward
Table stringId The value can get from
alicloud.vpc.NatGateway
Attributes "forward_table_ids".- Internal
Ip string The internal ip, must a private ip.
- Internal
Port string The internal port, valid value is 1~65535|any.
- Ip
Protocol string The ip protocol, valid value is tcp|udp|any.
- Forward
Entry stringName The name of forward entry.
- Name string
Field
name
has been deprecated from provider version 1.119.1. New fieldforward_entry_name
instead.Field 'name' has been deprecated from provider version 1.119.1. New field 'forward_entry_name' instead.
- Port
Break bool Specifies whether to remove limits on the port range. Default value is
false
.NOTE: A SNAT entry and a DNAT entry may use the same public IP address. If you want to specify a port number greater than 1024 in this case, set
port_break
to true.
- External
Ip string The external ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- External
Port string The external port, valid value is 1~65535|any.
- Forward
Table stringId The value can get from
alicloud.vpc.NatGateway
Attributes "forward_table_ids".- Internal
Ip string The internal ip, must a private ip.
- Internal
Port string The internal port, valid value is 1~65535|any.
- Ip
Protocol string The ip protocol, valid value is tcp|udp|any.
- Forward
Entry stringName The name of forward entry.
- Name string
Field
name
has been deprecated from provider version 1.119.1. New fieldforward_entry_name
instead.Field 'name' has been deprecated from provider version 1.119.1. New field 'forward_entry_name' instead.
- Port
Break bool Specifies whether to remove limits on the port range. Default value is
false
.NOTE: A SNAT entry and a DNAT entry may use the same public IP address. If you want to specify a port number greater than 1024 in this case, set
port_break
to true.
- external
Ip String The external ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- external
Port String The external port, valid value is 1~65535|any.
- forward
Table StringId The value can get from
alicloud.vpc.NatGateway
Attributes "forward_table_ids".- internal
Ip String The internal ip, must a private ip.
- internal
Port String The internal port, valid value is 1~65535|any.
- ip
Protocol String The ip protocol, valid value is tcp|udp|any.
- forward
Entry StringName The name of forward entry.
- name String
Field
name
has been deprecated from provider version 1.119.1. New fieldforward_entry_name
instead.Field 'name' has been deprecated from provider version 1.119.1. New field 'forward_entry_name' instead.
- port
Break Boolean Specifies whether to remove limits on the port range. Default value is
false
.NOTE: A SNAT entry and a DNAT entry may use the same public IP address. If you want to specify a port number greater than 1024 in this case, set
port_break
to true.
- external
Ip string The external ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- external
Port string The external port, valid value is 1~65535|any.
- forward
Table stringId The value can get from
alicloud.vpc.NatGateway
Attributes "forward_table_ids".- internal
Ip string The internal ip, must a private ip.
- internal
Port string The internal port, valid value is 1~65535|any.
- ip
Protocol string The ip protocol, valid value is tcp|udp|any.
- forward
Entry stringName The name of forward entry.
- name string
Field
name
has been deprecated from provider version 1.119.1. New fieldforward_entry_name
instead.Field 'name' has been deprecated from provider version 1.119.1. New field 'forward_entry_name' instead.
- port
Break boolean Specifies whether to remove limits on the port range. Default value is
false
.NOTE: A SNAT entry and a DNAT entry may use the same public IP address. If you want to specify a port number greater than 1024 in this case, set
port_break
to true.
- external_
ip str The external ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- external_
port str The external port, valid value is 1~65535|any.
- forward_
table_ strid The value can get from
alicloud.vpc.NatGateway
Attributes "forward_table_ids".- internal_
ip str The internal ip, must a private ip.
- internal_
port str The internal port, valid value is 1~65535|any.
- ip_
protocol str The ip protocol, valid value is tcp|udp|any.
- forward_
entry_ strname The name of forward entry.
- name str
Field
name
has been deprecated from provider version 1.119.1. New fieldforward_entry_name
instead.Field 'name' has been deprecated from provider version 1.119.1. New field 'forward_entry_name' instead.
- port_
break bool Specifies whether to remove limits on the port range. Default value is
false
.NOTE: A SNAT entry and a DNAT entry may use the same public IP address. If you want to specify a port number greater than 1024 in this case, set
port_break
to true.
- external
Ip String The external ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- external
Port String The external port, valid value is 1~65535|any.
- forward
Table StringId The value can get from
alicloud.vpc.NatGateway
Attributes "forward_table_ids".- internal
Ip String The internal ip, must a private ip.
- internal
Port String The internal port, valid value is 1~65535|any.
- ip
Protocol String The ip protocol, valid value is tcp|udp|any.
- forward
Entry StringName The name of forward entry.
- name String
Field
name
has been deprecated from provider version 1.119.1. New fieldforward_entry_name
instead.Field 'name' has been deprecated from provider version 1.119.1. New field 'forward_entry_name' instead.
- port
Break Boolean Specifies whether to remove limits on the port range. Default value is
false
.NOTE: A SNAT entry and a DNAT entry may use the same public IP address. If you want to specify a port number greater than 1024 in this case, set
port_break
to true.
Outputs
All input properties are implicitly available as output properties. Additionally, the ForwardEntry resource produces the following output properties:
- Forward
Entry stringId The id of the forward entry on the server.
- Id string
The provider-assigned unique ID for this managed resource.
- Status string
(Available in 1.119.1+) The status of forward entry.
- Forward
Entry stringId The id of the forward entry on the server.
- Id string
The provider-assigned unique ID for this managed resource.
- Status string
(Available in 1.119.1+) The status of forward entry.
- forward
Entry StringId The id of the forward entry on the server.
- id String
The provider-assigned unique ID for this managed resource.
- status String
(Available in 1.119.1+) The status of forward entry.
- forward
Entry stringId The id of the forward entry on the server.
- id string
The provider-assigned unique ID for this managed resource.
- status string
(Available in 1.119.1+) The status of forward entry.
- forward_
entry_ strid The id of the forward entry on the server.
- id str
The provider-assigned unique ID for this managed resource.
- status str
(Available in 1.119.1+) The status of forward entry.
- forward
Entry StringId The id of the forward entry on the server.
- id String
The provider-assigned unique ID for this managed resource.
- status String
(Available in 1.119.1+) The status of forward entry.
Look up Existing ForwardEntry Resource
Get an existing ForwardEntry 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?: ForwardEntryState, opts?: CustomResourceOptions): ForwardEntry
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
external_ip: Optional[str] = None,
external_port: Optional[str] = None,
forward_entry_id: Optional[str] = None,
forward_entry_name: Optional[str] = None,
forward_table_id: Optional[str] = None,
internal_ip: Optional[str] = None,
internal_port: Optional[str] = None,
ip_protocol: Optional[str] = None,
name: Optional[str] = None,
port_break: Optional[bool] = None,
status: Optional[str] = None) -> ForwardEntry
func GetForwardEntry(ctx *Context, name string, id IDInput, state *ForwardEntryState, opts ...ResourceOption) (*ForwardEntry, error)
public static ForwardEntry Get(string name, Input<string> id, ForwardEntryState? state, CustomResourceOptions? opts = null)
public static ForwardEntry get(String name, Output<String> id, ForwardEntryState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- External
Ip string The external ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- External
Port string The external port, valid value is 1~65535|any.
- Forward
Entry stringId The id of the forward entry on the server.
- Forward
Entry stringName The name of forward entry.
- Forward
Table stringId The value can get from
alicloud.vpc.NatGateway
Attributes "forward_table_ids".- Internal
Ip string The internal ip, must a private ip.
- Internal
Port string The internal port, valid value is 1~65535|any.
- Ip
Protocol string The ip protocol, valid value is tcp|udp|any.
- Name string
Field
name
has been deprecated from provider version 1.119.1. New fieldforward_entry_name
instead.Field 'name' has been deprecated from provider version 1.119.1. New field 'forward_entry_name' instead.
- Port
Break bool Specifies whether to remove limits on the port range. Default value is
false
.NOTE: A SNAT entry and a DNAT entry may use the same public IP address. If you want to specify a port number greater than 1024 in this case, set
port_break
to true.- Status string
(Available in 1.119.1+) The status of forward entry.
- External
Ip string The external ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- External
Port string The external port, valid value is 1~65535|any.
- Forward
Entry stringId The id of the forward entry on the server.
- Forward
Entry stringName The name of forward entry.
- Forward
Table stringId The value can get from
alicloud.vpc.NatGateway
Attributes "forward_table_ids".- Internal
Ip string The internal ip, must a private ip.
- Internal
Port string The internal port, valid value is 1~65535|any.
- Ip
Protocol string The ip protocol, valid value is tcp|udp|any.
- Name string
Field
name
has been deprecated from provider version 1.119.1. New fieldforward_entry_name
instead.Field 'name' has been deprecated from provider version 1.119.1. New field 'forward_entry_name' instead.
- Port
Break bool Specifies whether to remove limits on the port range. Default value is
false
.NOTE: A SNAT entry and a DNAT entry may use the same public IP address. If you want to specify a port number greater than 1024 in this case, set
port_break
to true.- Status string
(Available in 1.119.1+) The status of forward entry.
- external
Ip String The external ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- external
Port String The external port, valid value is 1~65535|any.
- forward
Entry StringId The id of the forward entry on the server.
- forward
Entry StringName The name of forward entry.
- forward
Table StringId The value can get from
alicloud.vpc.NatGateway
Attributes "forward_table_ids".- internal
Ip String The internal ip, must a private ip.
- internal
Port String The internal port, valid value is 1~65535|any.
- ip
Protocol String The ip protocol, valid value is tcp|udp|any.
- name String
Field
name
has been deprecated from provider version 1.119.1. New fieldforward_entry_name
instead.Field 'name' has been deprecated from provider version 1.119.1. New field 'forward_entry_name' instead.
- port
Break Boolean Specifies whether to remove limits on the port range. Default value is
false
.NOTE: A SNAT entry and a DNAT entry may use the same public IP address. If you want to specify a port number greater than 1024 in this case, set
port_break
to true.- status String
(Available in 1.119.1+) The status of forward entry.
- external
Ip string The external ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- external
Port string The external port, valid value is 1~65535|any.
- forward
Entry stringId The id of the forward entry on the server.
- forward
Entry stringName The name of forward entry.
- forward
Table stringId The value can get from
alicloud.vpc.NatGateway
Attributes "forward_table_ids".- internal
Ip string The internal ip, must a private ip.
- internal
Port string The internal port, valid value is 1~65535|any.
- ip
Protocol string The ip protocol, valid value is tcp|udp|any.
- name string
Field
name
has been deprecated from provider version 1.119.1. New fieldforward_entry_name
instead.Field 'name' has been deprecated from provider version 1.119.1. New field 'forward_entry_name' instead.
- port
Break boolean Specifies whether to remove limits on the port range. Default value is
false
.NOTE: A SNAT entry and a DNAT entry may use the same public IP address. If you want to specify a port number greater than 1024 in this case, set
port_break
to true.- status string
(Available in 1.119.1+) The status of forward entry.
- external_
ip str The external ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- external_
port str The external port, valid value is 1~65535|any.
- forward_
entry_ strid The id of the forward entry on the server.
- forward_
entry_ strname The name of forward entry.
- forward_
table_ strid The value can get from
alicloud.vpc.NatGateway
Attributes "forward_table_ids".- internal_
ip str The internal ip, must a private ip.
- internal_
port str The internal port, valid value is 1~65535|any.
- ip_
protocol str The ip protocol, valid value is tcp|udp|any.
- name str
Field
name
has been deprecated from provider version 1.119.1. New fieldforward_entry_name
instead.Field 'name' has been deprecated from provider version 1.119.1. New field 'forward_entry_name' instead.
- port_
break bool Specifies whether to remove limits on the port range. Default value is
false
.NOTE: A SNAT entry and a DNAT entry may use the same public IP address. If you want to specify a port number greater than 1024 in this case, set
port_break
to true.- status str
(Available in 1.119.1+) The status of forward entry.
- external
Ip String The external ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- external
Port String The external port, valid value is 1~65535|any.
- forward
Entry StringId The id of the forward entry on the server.
- forward
Entry StringName The name of forward entry.
- forward
Table StringId The value can get from
alicloud.vpc.NatGateway
Attributes "forward_table_ids".- internal
Ip String The internal ip, must a private ip.
- internal
Port String The internal port, valid value is 1~65535|any.
- ip
Protocol String The ip protocol, valid value is tcp|udp|any.
- name String
Field
name
has been deprecated from provider version 1.119.1. New fieldforward_entry_name
instead.Field 'name' has been deprecated from provider version 1.119.1. New field 'forward_entry_name' instead.
- port
Break Boolean Specifies whether to remove limits on the port range. Default value is
false
.NOTE: A SNAT entry and a DNAT entry may use the same public IP address. If you want to specify a port number greater than 1024 in this case, set
port_break
to true.- status String
(Available in 1.119.1+) The status of forward entry.
Import
Forward Entry can be imported using the id, e.g.
$ pulumi import alicloud:vpc/forwardEntry:ForwardEntry foo ftb-1aece3:fwd-232ce2
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.