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_sagemaker as sagemaker } from 'aws-cdk-lib';
const cfnDeviceProps: sagemaker.CfnDeviceProps = {
  deviceFleetName: 'deviceFleetName',

  // the properties below are optional
  device: {
    deviceName: 'deviceName',

    // the properties below are optional
    description: 'description',
    iotThingName: 'iotThingName',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
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_sagemaker as sagemaker

cfn_device_props = sagemaker.CfnDeviceProps(
    device_fleet_name="deviceFleetName",

    # the properties below are optional
    device=sagemaker.CfnDevice.DeviceProperty(
        device_name="deviceName",

        # the properties below are optional
        description="description",
        iot_thing_name="iotThingName"
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.sagemaker.*;

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

        // the properties below are optional
        .device(DeviceProperty.builder()
                .deviceName("deviceName")

                // the properties below are optional
                .description("description")
                .iotThingName("iotThingName")
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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.Sagemaker;

var cfnDeviceProps = new CfnDeviceProps {
    DeviceFleetName = "deviceFleetName",

    // the properties below are optional
    Device = new DeviceProperty {
        DeviceName = "deviceName",

        // the properties below are optional
        Description = "description",
        IotThingName = "iotThingName"
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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{
	DeviceFleetName: jsii.String("deviceFleetName"),

	// the properties below are optional
	Device: &DeviceProperty{
		DeviceName: jsii.String("deviceName"),

		// the properties below are optional
		Description: jsii.String("description"),
		IotThingName: jsii.String("iotThingName"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

deviceoptionalIResolvable | CfnDevice.DevicePropertydeviceoptionaltyping.Union[IResolvable, DeviceProperty]deviceoptionalIResolvableDeviceoptionalIResolvableDeviceoptionalinterface{} #
Edge device you want to create.
deviceFleetNamestringdevice_fleet_namestrdeviceFleetNameStringDeviceFleetNamestringDeviceFleetName*string required #
The name of the fleet the device belongs to.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs that contain metadata to help you categorize and organize your devices.

Each tag consists of a key and a value, both of which you define.