# CfnDeviceProps

Properties for defining a `CfnDevice`.

Used as props by: [CfnDevice](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnDevice.html)

- Source: Generated at build time

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `device`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDevice.DeviceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnDevice.DeviceProperty.html) — Edge device you want to create.

- `deviceFleetName`: string (required) — The name of the fleet the device belongs to.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — 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.
