UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

165 lines (164 loc) 8.86 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; import * as enums from "../types/enums"; /** * Inbound NAT rule of the load balancer. * * Uses Azure REST API version 2024-05-01. In version 2.x of the Azure Native provider, it used API version 2023-02-01. * * Other available API versions: 2018-06-01, 2018-07-01, 2018-08-01, 2018-10-01, 2018-11-01, 2018-12-01, 2019-02-01, 2019-04-01, 2019-06-01, 2019-07-01, 2019-08-01, 2019-09-01, 2019-11-01, 2019-12-01, 2020-03-01, 2020-04-01, 2020-05-01, 2020-06-01, 2020-07-01, 2020-08-01, 2020-11-01, 2021-02-01, 2021-03-01, 2021-05-01, 2021-08-01, 2022-01-01, 2022-05-01, 2022-07-01, 2022-09-01, 2022-11-01, 2023-02-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01, 2024-07-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native network [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare class InboundNatRule extends pulumi.CustomResource { /** * Get an existing InboundNatRule 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): InboundNatRule; /** * Returns true if the given object is an instance of InboundNatRule. 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 InboundNatRule; /** * The Azure API version of the resource. */ readonly azureApiVersion: pulumi.Output<string>; /** * A reference to backendAddressPool resource. */ readonly backendAddressPool: pulumi.Output<outputs.network.SubResourceResponse | undefined>; /** * A reference to a private IP address defined on a network interface of a VM. Traffic sent to the frontend port of each of the frontend IP configurations is forwarded to the backend IP. */ readonly backendIPConfiguration: pulumi.Output<outputs.network.NetworkInterfaceIPConfigurationResponse>; /** * The port used for the internal endpoint. Acceptable values range from 1 to 65535. */ readonly backendPort: pulumi.Output<number | undefined>; /** * Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint. */ readonly enableFloatingIP: pulumi.Output<boolean | undefined>; /** * Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP. */ readonly enableTcpReset: pulumi.Output<boolean | undefined>; /** * A unique read-only string that changes whenever the resource is updated. */ readonly etag: pulumi.Output<string>; /** * A reference to frontend IP addresses. */ readonly frontendIPConfiguration: pulumi.Output<outputs.network.SubResourceResponse | undefined>; /** * The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534. */ readonly frontendPort: pulumi.Output<number | undefined>; /** * The port range end for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeStart. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534. */ readonly frontendPortRangeEnd: pulumi.Output<number | undefined>; /** * The port range start for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeEnd. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534. */ readonly frontendPortRangeStart: pulumi.Output<number | undefined>; /** * The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP. */ readonly idleTimeoutInMinutes: pulumi.Output<number | undefined>; /** * The name of the resource that is unique within the set of inbound NAT rules used by the load balancer. This name can be used to access the resource. */ readonly name: pulumi.Output<string | undefined>; /** * The reference to the transport protocol used by the load balancing rule. */ readonly protocol: pulumi.Output<string | undefined>; /** * The provisioning state of the inbound NAT rule resource. */ readonly provisioningState: pulumi.Output<string>; /** * Type of the resource. */ readonly type: pulumi.Output<string>; /** * Create a InboundNatRule 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: InboundNatRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a InboundNatRule resource. */ export interface InboundNatRuleArgs { /** * A reference to backendAddressPool resource. */ backendAddressPool?: pulumi.Input<inputs.network.SubResourceArgs>; /** * The port used for the internal endpoint. Acceptable values range from 1 to 65535. */ backendPort?: pulumi.Input<number>; /** * Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint. */ enableFloatingIP?: pulumi.Input<boolean>; /** * Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP. */ enableTcpReset?: pulumi.Input<boolean>; /** * A reference to frontend IP addresses. */ frontendIPConfiguration?: pulumi.Input<inputs.network.SubResourceArgs>; /** * The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534. */ frontendPort?: pulumi.Input<number>; /** * The port range end for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeStart. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534. */ frontendPortRangeEnd?: pulumi.Input<number>; /** * The port range start for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeEnd. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534. */ frontendPortRangeStart?: pulumi.Input<number>; /** * Resource ID. */ id?: pulumi.Input<string>; /** * The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP. */ idleTimeoutInMinutes?: pulumi.Input<number>; /** * The name of the inbound NAT rule. */ inboundNatRuleName?: pulumi.Input<string>; /** * The name of the load balancer. */ loadBalancerName: pulumi.Input<string>; /** * The name of the resource that is unique within the set of inbound NAT rules used by the load balancer. This name can be used to access the resource. */ name?: pulumi.Input<string>; /** * The reference to the transport protocol used by the load balancing rule. */ protocol?: pulumi.Input<string | enums.network.TransportProtocol>; /** * The name of the resource group. */ resourceGroupName: pulumi.Input<string>; }