![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.managednetworkfabric.kotlin.NetworkDeviceArgs.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.managednetworkfabric.kotlin
import com.pulumi.azurenative.managednetworkfabric.NetworkDeviceArgs.builder
import com.pulumi.azurenative.managednetworkfabric.kotlin.enums.NetworkDeviceRoleTypes
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* The NetworkDevice resource definition.
* Azure REST API version: 2023-02-01-preview. Prior API version in Azure Native 1.x: 2023-02-01-preview.
* Other available API versions: 2023-06-15.
* ## Example Usage
* ### NetworkDevices_Create_MaximumSet_Gen
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var networkDevice = new AzureNative.ManagedNetworkFabric.NetworkDevice("networkDevice", new()
* {
* Annotation = "null",
* HostName = "networkDeviceName",
* Location = "eastus",
* NetworkDeviceName = "networkDeviceName",
* NetworkDeviceRole = AzureNative.ManagedNetworkFabric.NetworkDeviceRoleTypes.CE,
* NetworkDeviceSku = "DefaultSku",
* ResourceGroupName = "resourceGroupName",
* SerialNumber = "Arista;DCS-7280PR3-24;12.05;JPE21330382",
* Tags =
* {
* { "keyID", "keyValue" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* managednetworkfabric "github.com/pulumi/pulumi-azure-native-sdk/managednetworkfabric/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := managednetworkfabric.NewNetworkDevice(ctx, "networkDevice", &managednetworkfabric.NetworkDeviceArgs{
* Annotation: pulumi.String("null"),
* HostName: pulumi.String("networkDeviceName"),
* Location: pulumi.String("eastus"),
* NetworkDeviceName: pulumi.String("networkDeviceName"),
* NetworkDeviceRole: pulumi.String(managednetworkfabric.NetworkDeviceRoleTypesCE),
* NetworkDeviceSku: pulumi.String("DefaultSku"),
* ResourceGroupName: pulumi.String("resourceGroupName"),
* SerialNumber: pulumi.String("Arista;DCS-7280PR3-24;12.05;JPE21330382"),
* Tags: pulumi.StringMap{
* "keyID": pulumi.String("keyValue"),
* },
* })
* 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.managednetworkfabric.NetworkDevice;
* import com.pulumi.azurenative.managednetworkfabric.NetworkDeviceArgs;
* 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 networkDevice = new NetworkDevice("networkDevice", NetworkDeviceArgs.builder()
* .annotation("null")
* .hostName("networkDeviceName")
* .location("eastus")
* .networkDeviceName("networkDeviceName")
* .networkDeviceRole("CE")
* .networkDeviceSku("DefaultSku")
* .resourceGroupName("resourceGroupName")
* .serialNumber("Arista;DCS-7280PR3-24;12.05;JPE21330382")
* .tags(Map.of("keyID", "keyValue"))
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:managednetworkfabric:NetworkDevice networkDeviceName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}
* ```
* @property annotation Switch configuration description.
* @property hostName The host Name of the device.
* @property location The geo-location where the resource lives
* @property networkDeviceName Name of the Network Device
* @property networkDeviceRole networkDeviceRole is the device role: Example: CE | ToR.
* @property networkDeviceSku Network Device SKU name.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property serialNumber serialNumber of the format Make;Model;HardwareRevisionId;SerialNumber. Example: Arista;DCS-7280DR3-24;12.05;JPE21116969
* @property tags Resource tags.
*/
public data class NetworkDeviceArgs(
public val `annotation`: Output? = null,
public val hostName: Output? = null,
public val location: Output? = null,
public val networkDeviceName: Output? = null,
public val networkDeviceRole: Output>? = null,
public val networkDeviceSku: Output? = null,
public val resourceGroupName: Output? = null,
public val serialNumber: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy