![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.network.kotlin.LocalNetworkGatewayArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.network.kotlin
import com.pulumi.azurenative.network.LocalNetworkGatewayArgs.builder
import com.pulumi.azurenative.network.kotlin.inputs.AddressSpaceArgs
import com.pulumi.azurenative.network.kotlin.inputs.AddressSpaceArgsBuilder
import com.pulumi.azurenative.network.kotlin.inputs.BgpSettingsArgs
import com.pulumi.azurenative.network.kotlin.inputs.BgpSettingsArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* A common class for general resource information.
* Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01.
* Other available API versions: 2016-06-01, 2016-09-01, 2019-08-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01.
* ## Example Usage
* ### CreateLocalNetworkGateway
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var localNetworkGateway = new AzureNative.Network.LocalNetworkGateway("localNetworkGateway", new()
* {
* Fqdn = "site1.contoso.com",
* GatewayIpAddress = "11.12.13.14",
* LocalNetworkAddressSpace = new AzureNative.Network.Inputs.AddressSpaceArgs
* {
* AddressPrefixes = new[]
* {
* "10.1.0.0/16",
* },
* },
* LocalNetworkGatewayName = "localgw",
* Location = "Central US",
* ResourceGroupName = "rg1",
* });
* });
* ```
* ```go
* package main
* import (
* network "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.NewLocalNetworkGateway(ctx, "localNetworkGateway", &network.LocalNetworkGatewayArgs{
* Fqdn: pulumi.String("site1.contoso.com"),
* GatewayIpAddress: pulumi.String("11.12.13.14"),
* LocalNetworkAddressSpace: &network.AddressSpaceArgs{
* AddressPrefixes: pulumi.StringArray{
* pulumi.String("10.1.0.0/16"),
* },
* },
* LocalNetworkGatewayName: pulumi.String("localgw"),
* Location: pulumi.String("Central US"),
* ResourceGroupName: pulumi.String("rg1"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.network.LocalNetworkGateway;
* import com.pulumi.azurenative.network.LocalNetworkGatewayArgs;
* import com.pulumi.azurenative.network.inputs.AddressSpaceArgs;
* 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 localNetworkGateway = new LocalNetworkGateway("localNetworkGateway", LocalNetworkGatewayArgs.builder()
* .fqdn("site1.contoso.com")
* .gatewayIpAddress("11.12.13.14")
* .localNetworkAddressSpace(AddressSpaceArgs.builder()
* .addressPrefixes("10.1.0.0/16")
* .build())
* .localNetworkGatewayName("localgw")
* .location("Central US")
* .resourceGroupName("rg1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:network:LocalNetworkGateway localgw /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}
* ```
* @property bgpSettings Local network gateway's BGP speaker settings.
* @property fqdn FQDN of local network gateway.
* @property gatewayIpAddress IP address of local network gateway.
* @property id Resource ID.
* @property localNetworkAddressSpace Local network site address space.
* @property localNetworkGatewayName The name of the local network gateway.
* @property location Resource location.
* @property resourceGroupName The name of the resource group.
* @property tags Resource tags.
*/
public data class LocalNetworkGatewayArgs(
public val bgpSettings: Output? = null,
public val fqdn: Output? = null,
public val gatewayIpAddress: Output? = null,
public val id: Output? = null,
public val localNetworkAddressSpace: Output? = null,
public val localNetworkGatewayName: Output? = null,
public val location: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy