Skip to content
v2.278.0

CfnDeviceProps Struct ​

Properties for defining a CfnDevice.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkmanager as networkmanager } from 'aws-cdk-lib';
const cfnDeviceProps: networkmanager.CfnDeviceProps = {
  globalNetworkId: 'globalNetworkId',

  // the properties below are optional
  awsLocation: {
    subnetArn: 'subnetArn',
    zone: 'zone',
  },
  description: 'description',
  location: {
    address: 'address',
    latitude: 'latitude',
    longitude: 'longitude',
  },
  model: 'model',
  serialNumber: 'serialNumber',
  siteId: 'siteId',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  type: 'type',
  vendor: 'vendor',
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_networkmanager as networkmanager

cfn_device_props = networkmanager.CfnDeviceProps(
    global_network_id="globalNetworkId",

    # the properties below are optional
    aws_location=networkmanager.CfnDevice.AWSLocationProperty(
        subnet_arn="subnetArn",
        zone="zone"
    ),
    description="description",
    location=networkmanager.CfnDevice.LocationProperty(
        address="address",
        latitude="latitude",
        longitude="longitude"
    ),
    model="model",
    serial_number="serialNumber",
    site_id="siteId",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    type="type",
    vendor="vendor"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networkmanager.*;

CfnDeviceProps cfnDeviceProps = CfnDeviceProps.builder()
        .globalNetworkId("globalNetworkId")

        // the properties below are optional
        .awsLocation(AWSLocationProperty.builder()
                .subnetArn("subnetArn")
                .zone("zone")
                .build())
        .description("description")
        .location(LocationProperty.builder()
                .address("address")
                .latitude("latitude")
                .longitude("longitude")
                .build())
        .model("model")
        .serialNumber("serialNumber")
        .siteId("siteId")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .type("type")
        .vendor("vendor")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.NetworkManager;

var cfnDeviceProps = new CfnDeviceProps {
    GlobalNetworkId = "globalNetworkId",

    // the properties below are optional
    AwsLocation = new AWSLocationProperty {
        SubnetArn = "subnetArn",
        Zone = "zone"
    },
    Description = "description",
    Location = new LocationProperty {
        Address = "address",
        Latitude = "latitude",
        Longitude = "longitude"
    },
    Model = "model",
    SerialNumber = "serialNumber",
    SiteId = "siteId",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    Type = "type",
    Vendor = "vendor"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnDeviceProps := &CfnDeviceProps{
	GlobalNetworkId: jsii.String("globalNetworkId"),

	// the properties below are optional
	AwsLocation: &AWSLocationProperty{
		SubnetArn: jsii.String("subnetArn"),
		Zone: jsii.String("zone"),
	},
	Description: jsii.String("description"),
	Location: &LocationProperty{
		Address: jsii.String("address"),
		Latitude: jsii.String("latitude"),
		Longitude: jsii.String("longitude"),
	},
	Model: jsii.String("model"),
	SerialNumber: jsii.String("serialNumber"),
	SiteId: jsii.String("siteId"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	Type: jsii.String("type"),
	Vendor: jsii.String("vendor"),
}

Properties ​

awsLocationoptionalIResolvable | CfnDevice.AWSLocationPropertyaws_locationoptionaltyping.Union[IResolvable, AWSLocationProperty]awsLocationoptionalIResolvableAwsLocationoptionalIResolvableAwsLocationoptionalinterface{} #
The AWS location of the device.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
A description of the device.

Constraints: Maximum length of 256 characters.

globalNetworkIdstringglobal_network_idstrglobalNetworkIdStringGlobalNetworkIdstringGlobalNetworkId*string required #
The ID of the global network.
locationoptionalIResolvable | CfnDevice.LocationPropertylocationoptionaltyping.Union[IResolvable, LocationProperty]locationoptionalIResolvableLocationoptionalIResolvableLocationoptionalinterface{} #
The site location.
modeloptionalstringmodeloptionalstrmodeloptionalStringModeloptionalstringModeloptional*string #
The model of the device.

Constraints: Maximum length of 128 characters.

serialNumberoptionalstringserial_numberoptionalstrserialNumberoptionalStringSerialNumberoptionalstringSerialNumberoptional*string #
The serial number of the device.

Constraints: Maximum length of 128 characters.

siteIdoptionalstringsite_idoptionalstrsiteIdoptionalStringSiteIdoptionalstringSiteIdoptional*string #
The site ID.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags for the device.
typeoptionalstringtypeoptionalstrtypeoptionalStringTypeoptionalstringTypeoptional*string #
The device type.
vendoroptionalstringvendoroptionalstrvendoroptionalStringVendoroptionalstringVendoroptional*string #
The vendor of the device.

Constraints: Maximum length of 128 characters.