Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Provisions a wireless device.
Synopsis
- data CreateWirelessDevice = CreateWirelessDevice' {
- loRaWAN :: Maybe LoRaWANDevice
- name :: Maybe Text
- clientRequestToken :: Maybe Text
- description :: Maybe Text
- tags :: Maybe [Tag]
- type' :: WirelessDeviceType
- destinationName :: Text
- newCreateWirelessDevice :: WirelessDeviceType -> Text -> CreateWirelessDevice
- createWirelessDevice_loRaWAN :: Lens' CreateWirelessDevice (Maybe LoRaWANDevice)
- createWirelessDevice_name :: Lens' CreateWirelessDevice (Maybe Text)
- createWirelessDevice_clientRequestToken :: Lens' CreateWirelessDevice (Maybe Text)
- createWirelessDevice_description :: Lens' CreateWirelessDevice (Maybe Text)
- createWirelessDevice_tags :: Lens' CreateWirelessDevice (Maybe [Tag])
- createWirelessDevice_type :: Lens' CreateWirelessDevice WirelessDeviceType
- createWirelessDevice_destinationName :: Lens' CreateWirelessDevice Text
- data CreateWirelessDeviceResponse = CreateWirelessDeviceResponse' {}
- newCreateWirelessDeviceResponse :: Int -> CreateWirelessDeviceResponse
- createWirelessDeviceResponse_arn :: Lens' CreateWirelessDeviceResponse (Maybe Text)
- createWirelessDeviceResponse_id :: Lens' CreateWirelessDeviceResponse (Maybe Text)
- createWirelessDeviceResponse_httpStatus :: Lens' CreateWirelessDeviceResponse Int
Creating a Request
data CreateWirelessDevice Source #
See: newCreateWirelessDevice
smart constructor.
CreateWirelessDevice' | |
|
Instances
newCreateWirelessDevice Source #
Create a value of CreateWirelessDevice
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:loRaWAN:CreateWirelessDevice'
, createWirelessDevice_loRaWAN
- The device configuration information to use to create the wireless
device.
$sel:name:CreateWirelessDevice'
, createWirelessDevice_name
- The name of the new resource.
$sel:clientRequestToken:CreateWirelessDevice'
, createWirelessDevice_clientRequestToken
- Each resource must have a unique client request token. If you try to
create a new resource with the same token as a resource that already
exists, an exception occurs. If you omit this value, AWS SDKs will
automatically generate a unique client request.
$sel:description:CreateWirelessDevice'
, createWirelessDevice_description
- The description of the new resource.
$sel:tags:CreateWirelessDevice'
, createWirelessDevice_tags
- The tags to attach to the new wireless device. Tags are metadata that
you can use to manage a resource.
$sel:type':CreateWirelessDevice'
, createWirelessDevice_type
- The wireless device type.
$sel:destinationName:CreateWirelessDevice'
, createWirelessDevice_destinationName
- The name of the destination to assign to the new wireless device.
Request Lenses
createWirelessDevice_loRaWAN :: Lens' CreateWirelessDevice (Maybe LoRaWANDevice) Source #
The device configuration information to use to create the wireless device.
createWirelessDevice_name :: Lens' CreateWirelessDevice (Maybe Text) Source #
The name of the new resource.
createWirelessDevice_clientRequestToken :: Lens' CreateWirelessDevice (Maybe Text) Source #
Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
createWirelessDevice_description :: Lens' CreateWirelessDevice (Maybe Text) Source #
The description of the new resource.
createWirelessDevice_tags :: Lens' CreateWirelessDevice (Maybe [Tag]) Source #
The tags to attach to the new wireless device. Tags are metadata that you can use to manage a resource.
createWirelessDevice_type :: Lens' CreateWirelessDevice WirelessDeviceType Source #
The wireless device type.
createWirelessDevice_destinationName :: Lens' CreateWirelessDevice Text Source #
The name of the destination to assign to the new wireless device.
Destructuring the Response
data CreateWirelessDeviceResponse Source #
See: newCreateWirelessDeviceResponse
smart constructor.
Instances
newCreateWirelessDeviceResponse Source #
Create a value of CreateWirelessDeviceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:arn:CreateWirelessDeviceResponse'
, createWirelessDeviceResponse_arn
- The Amazon Resource Name of the new resource.
$sel:id:CreateWirelessDeviceResponse'
, createWirelessDeviceResponse_id
- The ID of the new wireless device.
$sel:httpStatus:CreateWirelessDeviceResponse'
, createWirelessDeviceResponse_httpStatus
- The response's http status code.
Response Lenses
createWirelessDeviceResponse_arn :: Lens' CreateWirelessDeviceResponse (Maybe Text) Source #
The Amazon Resource Name of the new resource.
createWirelessDeviceResponse_id :: Lens' CreateWirelessDeviceResponse (Maybe Text) Source #
The ID of the new wireless device.
createWirelessDeviceResponse_httpStatus :: Lens' CreateWirelessDeviceResponse Int Source #
The response's http status code.