# LoRaWANDeviceProperty

LoRaWAN object for create functions.

- Source: Generated at build time
- Type last changed: v2.159.0 · 19 Sep 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotwireless as iotwireless } from 'aws-cdk-lib';
const loRaWANDeviceProperty: iotwireless.CfnWirelessDevice.LoRaWANDeviceProperty = {
  abpV10X: {
    devAddr: 'devAddr',
    sessionKeys: {
      appSKey: 'appSKey',
      nwkSKey: 'nwkSKey',
    },
  },
  abpV11: {
    devAddr: 'devAddr',
    sessionKeys: {
      appSKey: 'appSKey',
      fNwkSIntKey: 'fNwkSIntKey',
      nwkSEncKey: 'nwkSEncKey',
      sNwkSIntKey: 'sNwkSIntKey',
    },
  },
  devEui: 'devEui',
  deviceProfileId: 'deviceProfileId',
  fPorts: {
    applications: [{
      destinationName: 'destinationName',
      fPort: 123,
      type: 'type',
    }],
  },
  otaaV10X: {
    appEui: 'appEui',
    appKey: 'appKey',
  },
  otaaV11: {
    appKey: 'appKey',
    joinEui: 'joinEui',
    nwkKey: 'nwkKey',
  },
  serviceProfileId: 'serviceProfileId',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iotwireless as iotwireless

lo_ra_wan_device_property = iotwireless.CfnWirelessDevice.LoRaWANDeviceProperty(
    abp_v10_x=iotwireless.CfnWirelessDevice.AbpV10xProperty(
        dev_addr="devAddr",
        session_keys=iotwireless.CfnWirelessDevice.SessionKeysAbpV10xProperty(
            app_s_key="appSKey",
            nwk_s_key="nwkSKey"
        )
    ),
    abp_v11=iotwireless.CfnWirelessDevice.AbpV11Property(
        dev_addr="devAddr",
        session_keys=iotwireless.CfnWirelessDevice.SessionKeysAbpV11Property(
            app_s_key="appSKey",
            f_nwk_s_int_key="fNwkSIntKey",
            nwk_s_enc_key="nwkSEncKey",
            s_nwk_s_int_key="sNwkSIntKey"
        )
    ),
    dev_eui="devEui",
    device_profile_id="deviceProfileId",
    f_ports=iotwireless.CfnWirelessDevice.FPortsProperty(
        applications=[iotwireless.CfnWirelessDevice.ApplicationProperty(
            destination_name="destinationName",
            f_port=123,
            type="type"
        )]
    ),
    otaa_v10_x=iotwireless.CfnWirelessDevice.OtaaV10xProperty(
        app_eui="appEui",
        app_key="appKey"
    ),
    otaa_v11=iotwireless.CfnWirelessDevice.OtaaV11Property(
        app_key="appKey",
        join_eui="joinEui",
        nwk_key="nwkKey"
    ),
    service_profile_id="serviceProfileId"
)
```

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.iotwireless.*;

LoRaWANDeviceProperty loRaWANDeviceProperty = LoRaWANDeviceProperty.builder()
        .abpV10X(AbpV10xProperty.builder()
                .devAddr("devAddr")
                .sessionKeys(SessionKeysAbpV10xProperty.builder()
                        .appSKey("appSKey")
                        .nwkSKey("nwkSKey")
                        .build())
                .build())
        .abpV11(AbpV11Property.builder()
                .devAddr("devAddr")
                .sessionKeys(SessionKeysAbpV11Property.builder()
                        .appSKey("appSKey")
                        .fNwkSIntKey("fNwkSIntKey")
                        .nwkSEncKey("nwkSEncKey")
                        .sNwkSIntKey("sNwkSIntKey")
                        .build())
                .build())
        .devEui("devEui")
        .deviceProfileId("deviceProfileId")
        .fPorts(FPortsProperty.builder()
                .applications(List.of(ApplicationProperty.builder()
                        .destinationName("destinationName")
                        .fPort(123)
                        .type("type")
                        .build()))
                .build())
        .otaaV10X(OtaaV10xProperty.builder()
                .appEui("appEui")
                .appKey("appKey")
                .build())
        .otaaV11(OtaaV11Property.builder()
                .appKey("appKey")
                .joinEui("joinEui")
                .nwkKey("nwkKey")
                .build())
        .serviceProfileId("serviceProfileId")
        .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.IoTWireless;

var loRaWANDeviceProperty = new LoRaWANDeviceProperty {
    AbpV10X = new AbpV10xProperty {
        DevAddr = "devAddr",
        SessionKeys = new SessionKeysAbpV10xProperty {
            AppSKey = "appSKey",
            NwkSKey = "nwkSKey"
        }
    },
    AbpV11 = new AbpV11Property {
        DevAddr = "devAddr",
        SessionKeys = new SessionKeysAbpV11Property {
            AppSKey = "appSKey",
            FNwkSIntKey = "fNwkSIntKey",
            NwkSEncKey = "nwkSEncKey",
            SNwkSIntKey = "sNwkSIntKey"
        }
    },
    DevEui = "devEui",
    DeviceProfileId = "deviceProfileId",
    FPorts = new FPortsProperty {
        Applications = new [] { new ApplicationProperty {
            DestinationName = "destinationName",
            FPort = 123,
            Type = "type"
        } }
    },
    OtaaV10X = new OtaaV10xProperty {
        AppEui = "appEui",
        AppKey = "appKey"
    },
    OtaaV11 = new OtaaV11Property {
        AppKey = "appKey",
        JoinEui = "joinEui",
        NwkKey = "nwkKey"
    },
    ServiceProfileId = "serviceProfileId"
};
```

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"

loRaWANDeviceProperty := &LoRaWANDeviceProperty{
	AbpV10X: &AbpV10xProperty{
		DevAddr: jsii.String("devAddr"),
		SessionKeys: &SessionKeysAbpV10xProperty{
			AppSKey: jsii.String("appSKey"),
			NwkSKey: jsii.String("nwkSKey"),
		},
	},
	AbpV11: &AbpV11Property{
		DevAddr: jsii.String("devAddr"),
		SessionKeys: &SessionKeysAbpV11Property{
			AppSKey: jsii.String("appSKey"),
			FNwkSIntKey: jsii.String("fNwkSIntKey"),
			NwkSEncKey: jsii.String("nwkSEncKey"),
			SNwkSIntKey: jsii.String("sNwkSIntKey"),
		},
	},
	DevEui: jsii.String("devEui"),
	DeviceProfileId: jsii.String("deviceProfileId"),
	FPorts: &FPortsProperty{
		Applications: []interface{}{
			&ApplicationProperty{
				DestinationName: jsii.String("destinationName"),
				FPort: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
	OtaaV10X: &OtaaV10xProperty{
		AppEui: jsii.String("appEui"),
		AppKey: jsii.String("appKey"),
	},
	OtaaV11: &OtaaV11Property{
		AppKey: jsii.String("appKey"),
		JoinEui: jsii.String("joinEui"),
		NwkKey: jsii.String("nwkKey"),
	},
	ServiceProfileId: jsii.String("serviceProfileId"),
}
```

## Properties

- `abpV10X`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWirelessDevice.AbpV10xProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotwireless.CfnWirelessDevice.AbpV10xProperty.html) — ABP device object for LoRaWAN specification v1.0.x.

- `abpV11`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWirelessDevice.AbpV11Property](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotwireless.CfnWirelessDevice.AbpV11Property.html) — ABP device object for create APIs for v1.1.

- `devEui`: string — The DevEUI value.

- `deviceProfileId`: string — The ID of the device profile for the new wireless device.

- `fPorts`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWirelessDevice.FPortsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotwireless.CfnWirelessDevice.FPortsProperty.html) — List of FPort assigned for different LoRaWAN application packages to use.

- `otaaV10X`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWirelessDevice.OtaaV10xProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotwireless.CfnWirelessDevice.OtaaV10xProperty.html) — OTAA device object for create APIs for v1.0.x.

- `otaaV11`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWirelessDevice.OtaaV11Property](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotwireless.CfnWirelessDevice.OtaaV11Property.html) — OTAA device object for v1.1 for create APIs.

- `serviceProfileId`: string — The ID of the service profile.
