DeviceArgs

data class DeviceArgs(val awsLocation: Output<DeviceAwsLocationArgs>? = null, val description: Output<String>? = null, val globalNetworkId: Output<String>? = null, val location: Output<DeviceLocationArgs>? = null, val model: Output<String>? = null, val serialNumber: Output<String>? = null, val siteId: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val type: Output<String>? = null, val vendor: Output<String>? = null) : ConvertibleToJava<DeviceArgs>

Creates a device in a global network. If you specify both a site ID and a location, the location of the site is used for visualization in the Network Manager console.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.networkmanager.Device("example", {
globalNetworkId: exampleAwsNetworkmanagerGlobalNetwork.id,
siteId: exampleAwsNetworkmanagerSite.id,
});
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.Device("example",
global_network_id=example_aws_networkmanager_global_network["id"],
site_id=example_aws_networkmanager_site["id"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.NetworkManager.Device("example", new()
{
GlobalNetworkId = exampleAwsNetworkmanagerGlobalNetwork.Id,
SiteId = exampleAwsNetworkmanagerSite.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/networkmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkmanager.NewDevice(ctx, "example", &networkmanager.DeviceArgs{
GlobalNetworkId: pulumi.Any(exampleAwsNetworkmanagerGlobalNetwork.Id),
SiteId: pulumi.Any(exampleAwsNetworkmanagerSite.Id),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.networkmanager.Device;
import com.pulumi.aws.networkmanager.DeviceArgs;
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 example = new Device("example", DeviceArgs.builder()
.globalNetworkId(exampleAwsNetworkmanagerGlobalNetwork.id())
.siteId(exampleAwsNetworkmanagerSite.id())
.build());
}
}
resources:
example:
type: aws:networkmanager:Device
properties:
globalNetworkId: ${exampleAwsNetworkmanagerGlobalNetwork.id}
siteId: ${exampleAwsNetworkmanagerSite.id}

Import

Using pulumi import, import aws_networkmanager_device using the device ARN. For example:

$ pulumi import aws:networkmanager/device:Device example arn:aws:networkmanager::123456789012:device/global-network-0d47f6t230mz46dy4/device-07f6fd08867abc123

Constructors

Link copied to clipboard
constructor(awsLocation: Output<DeviceAwsLocationArgs>? = null, description: Output<String>? = null, globalNetworkId: Output<String>? = null, location: Output<DeviceLocationArgs>? = null, model: Output<String>? = null, serialNumber: Output<String>? = null, siteId: Output<String>? = null, tags: Output<Map<String, String>>? = null, type: Output<String>? = null, vendor: Output<String>? = null)

Properties

Link copied to clipboard
val awsLocation: Output<DeviceAwsLocationArgs>? = null

The AWS location of the device. Documented below.

Link copied to clipboard
val description: Output<String>? = null

A description of the device.

Link copied to clipboard
val globalNetworkId: Output<String>? = null

The ID of the global network.

Link copied to clipboard
val location: Output<DeviceLocationArgs>? = null

The location of the device. Documented below.

Link copied to clipboard
val model: Output<String>? = null

The model of device.

Link copied to clipboard
val serialNumber: Output<String>? = null

The serial number of the device.

Link copied to clipboard
val siteId: Output<String>? = null

The ID of the site.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value tags for the device. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val type: Output<String>? = null

The type of device.

Link copied to clipboard
val vendor: Output<String>? = null

The vendor of the device.

Functions

Link copied to clipboard
open override fun toJava(): DeviceArgs