All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.network.InboundNatRule Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.network;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.network.InboundNatRuleArgs;
import com.pulumi.azurenative.network.outputs.NetworkInterfaceIPConfigurationResponse;
import com.pulumi.azurenative.network.outputs.SubResourceResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * 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, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01.
 * 
 * ## Example Usage
 * ### InboundNatRuleCreate
 * 
 * 
 * {@code
 * 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 com.pulumi.azurenative.network.inputs.SubResourceArgs;
 * 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(SubResourceArgs.builder()
 *                 .id("/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1")
 *                 .build())
 *             .frontendPort(3390)
 *             .idleTimeoutInMinutes(4)
 *             .inboundNatRuleName("natRule1.1")
 *             .loadBalancerName("lb1")
 *             .protocol("Tcp")
 *             .resourceGroupName("testrg")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:network:InboundNatRule natRule1.1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName} * ``` * */ @ResourceType(type="azure-native:network:InboundNatRule") public class InboundNatRule extends com.pulumi.resources.CustomResource { /** * A reference to backendAddressPool resource. * */ @Export(name="backendAddressPool", refs={SubResourceResponse.class}, tree="[0]") private Output backendAddressPool; /** * @return A reference to backendAddressPool resource. * */ public Output> backendAddressPool() { return Codegen.optional(this.backendAddressPool); } /** * 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. * */ @Export(name="backendIPConfiguration", refs={NetworkInterfaceIPConfigurationResponse.class}, tree="[0]") private Output backendIPConfiguration; /** * @return 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. * */ public Output backendIPConfiguration() { return this.backendIPConfiguration; } /** * The port used for the internal endpoint. Acceptable values range from 1 to 65535. * */ @Export(name="backendPort", refs={Integer.class}, tree="[0]") private Output backendPort; /** * @return The port used for the internal endpoint. Acceptable values range from 1 to 65535. * */ public Output> backendPort() { return Codegen.optional(this.backendPort); } /** * 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. * */ @Export(name="enableFloatingIP", refs={Boolean.class}, tree="[0]") private Output enableFloatingIP; /** * @return 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. * */ public Output> enableFloatingIP() { return Codegen.optional(this.enableFloatingIP); } /** * 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. * */ @Export(name="enableTcpReset", refs={Boolean.class}, tree="[0]") private Output enableTcpReset; /** * @return 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. * */ public Output> enableTcpReset() { return Codegen.optional(this.enableTcpReset); } /** * A unique read-only string that changes whenever the resource is updated. * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return A unique read-only string that changes whenever the resource is updated. * */ public Output etag() { return this.etag; } /** * A reference to frontend IP addresses. * */ @Export(name="frontendIPConfiguration", refs={SubResourceResponse.class}, tree="[0]") private Output frontendIPConfiguration; /** * @return A reference to frontend IP addresses. * */ public Output> frontendIPConfiguration() { return Codegen.optional(this.frontendIPConfiguration); } /** * 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. * */ @Export(name="frontendPort", refs={Integer.class}, tree="[0]") private Output frontendPort; /** * @return 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. * */ public Output> frontendPort() { return Codegen.optional(this.frontendPort); } /** * 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. * */ @Export(name="frontendPortRangeEnd", refs={Integer.class}, tree="[0]") private Output frontendPortRangeEnd; /** * @return 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. * */ public Output> frontendPortRangeEnd() { return Codegen.optional(this.frontendPortRangeEnd); } /** * 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. * */ @Export(name="frontendPortRangeStart", refs={Integer.class}, tree="[0]") private Output frontendPortRangeStart; /** * @return 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. * */ public Output> frontendPortRangeStart() { return Codegen.optional(this.frontendPortRangeStart); } /** * 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. * */ @Export(name="idleTimeoutInMinutes", refs={Integer.class}, tree="[0]") private Output idleTimeoutInMinutes; /** * @return 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. * */ public Output> idleTimeoutInMinutes() { return Codegen.optional(this.idleTimeoutInMinutes); } /** * 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. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return 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. * */ public Output> name() { return Codegen.optional(this.name); } /** * The reference to the transport protocol used by the load balancing rule. * */ @Export(name="protocol", refs={String.class}, tree="[0]") private Output protocol; /** * @return The reference to the transport protocol used by the load balancing rule. * */ public Output> protocol() { return Codegen.optional(this.protocol); } /** * The provisioning state of the inbound NAT rule resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of the inbound NAT rule resource. * */ public Output provisioningState() { return this.provisioningState; } /** * Type of the resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Type of the resource. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public InboundNatRule(java.lang.String name) { this(name, InboundNatRuleArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public InboundNatRule(java.lang.String name, InboundNatRuleArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public InboundNatRule(java.lang.String name, InboundNatRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:network:InboundNatRule", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private InboundNatRule(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:network:InboundNatRule", name, null, makeResourceOptions(options, id), false); } private static InboundNatRuleArgs makeArgs(InboundNatRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? InboundNatRuleArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:network/v20170601:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20170801:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20170901:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20171001:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20171101:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20180101:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20180201:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20180401:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20180601:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20180701:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20180801:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20181001:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20181101:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20181201:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20190201:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20190401:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20190601:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20190701:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20190801:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20190901:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20191101:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20191201:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20200301:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20200401:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20200501:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20200601:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20200701:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20200801:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20201101:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20210201:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20210301:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20210501:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20210801:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20220101:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20220501:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20220701:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20220901:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20221101:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20230201:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20230401:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20230501:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20230601:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20230901:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20231101:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20240101:InboundNatRule").build()), Output.of(Alias.builder().type("azure-native:network/v20240301:InboundNatRule").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host 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 options Optional settings to control the behavior of the CustomResource. */ public static InboundNatRule get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new InboundNatRule(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy