Inbound Nat Rule Args
data class InboundNatRuleArgs(val backendAddressPool: Output<SubResourceArgs>? = null, val backendPort: Output<Int>? = null, val enableFloatingIP: Output<Boolean>? = null, val enableTcpReset: Output<Boolean>? = null, val frontendIPConfiguration: Output<SubResourceArgs>? = null, val frontendPort: Output<Int>? = null, val frontendPortRangeEnd: Output<Int>? = null, val frontendPortRangeStart: Output<Int>? = null, val id: Output<String>? = null, val idleTimeoutInMinutes: Output<Int>? = null, val inboundNatRuleName: Output<String>? = null, val loadBalancerName: Output<String>? = null, val name: Output<String>? = null, val protocol: Output<Either<String, TransportProtocol>>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<InboundNatRuleArgs>
Inbound NAT rule of the load balancer. Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01. Other available API versions: 2019-06-01, 2023-04-01, 2023-05-01.
Example Usage
InboundNatRuleCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var inboundNatRule = new AzureNative.Network.InboundNatRule("inboundNatRule", new()
{
BackendPort = 3389,
EnableFloatingIP = false,
EnableTcpReset = false,
FrontendIPConfiguration = new AzureNative.Network.Inputs.SubResourceArgs
{
Id = "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1",
},
FrontendPort = 3390,
IdleTimeoutInMinutes = 4,
InboundNatRuleName = "natRule1.1",
LoadBalancerName = "lb1",
Protocol = "Tcp",
ResourceGroupName = "testrg",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewInboundNatRule(ctx, "inboundNatRule", &network.InboundNatRuleArgs{
BackendPort: pulumi.Int(3389),
EnableFloatingIP: pulumi.Bool(false),
EnableTcpReset: pulumi.Bool(false),
FrontendIPConfiguration: &network.SubResourceArgs{
Id: pulumi.String("/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1"),
},
FrontendPort: pulumi.Int(3390),
IdleTimeoutInMinutes: pulumi.Int(4),
InboundNatRuleName: pulumi.String("natRule1.1"),
LoadBalancerName: pulumi.String("lb1"),
Protocol: pulumi.String("Tcp"),
ResourceGroupName: pulumi.String("testrg"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.InboundNatRule;
import com.pulumi.azurenative.network.InboundNatRuleArgs;
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) {
var inboundNatRule = new InboundNatRule("inboundNatRule", InboundNatRuleArgs.builder()
.backendPort(3389)
.enableFloatingIP(false)
.enableTcpReset(false)
.frontendIPConfiguration(Map.of("id", "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1"))
.frontendPort(3390)
.idleTimeoutInMinutes(4)
.inboundNatRuleName("natRule1.1")
.loadBalancerName("lb1")
.protocol("Tcp")
.resourceGroupName("testrg")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:InboundNatRule natRule1.1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}
Content copied to clipboard
Constructors
Link copied to clipboard
fun InboundNatRuleArgs(backendAddressPool: Output<SubResourceArgs>? = null, backendPort: Output<Int>? = null, enableFloatingIP: Output<Boolean>? = null, enableTcpReset: Output<Boolean>? = null, frontendIPConfiguration: Output<SubResourceArgs>? = null, frontendPort: Output<Int>? = null, frontendPortRangeEnd: Output<Int>? = null, frontendPortRangeStart: Output<Int>? = null, id: Output<String>? = null, idleTimeoutInMinutes: Output<Int>? = null, inboundNatRuleName: Output<String>? = null, loadBalancerName: Output<String>? = null, name: Output<String>? = null, protocol: Output<Either<String, TransportProtocol>>? = null, resourceGroupName: Output<String>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard