libZSservicesZSamazonka-iotwirelessZSamazonka-iotwireless
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoTWireless.CreateWirelessDevice

Description

Provisions a wireless device.

Synopsis

Creating a Request

data CreateWirelessDevice Source #

See: newCreateWirelessDevice smart constructor.

Constructors

CreateWirelessDevice' 

Fields

  • loRaWAN :: Maybe LoRaWANDevice

    The device configuration information to use to create the wireless device.

  • name :: Maybe Text

    The name of the new resource.

  • clientRequestToken :: Maybe Text

    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.

  • description :: Maybe Text

    The description of the new resource.

  • tags :: Maybe [Tag]

    The tags to attach to the new wireless device. Tags are metadata that you can use to manage a resource.

  • type' :: WirelessDeviceType

    The wireless device type.

  • destinationName :: Text

    The name of the destination to assign to the new wireless device.

Instances

Instances details
Eq CreateWirelessDevice Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

Read CreateWirelessDevice Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

Show CreateWirelessDevice Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

Generic CreateWirelessDevice Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

Associated Types

type Rep CreateWirelessDevice :: Type -> Type #

NFData CreateWirelessDevice Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

Methods

rnf :: CreateWirelessDevice -> () #

Hashable CreateWirelessDevice Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

ToJSON CreateWirelessDevice Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

AWSRequest CreateWirelessDevice Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

Associated Types

type AWSResponse CreateWirelessDevice #

ToHeaders CreateWirelessDevice Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

ToPath CreateWirelessDevice Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

ToQuery CreateWirelessDevice Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

type Rep CreateWirelessDevice Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

type Rep CreateWirelessDevice = D1 ('MetaData "CreateWirelessDevice" "Amazonka.IoTWireless.CreateWirelessDevice" "libZSservicesZSamazonka-iotwirelessZSamazonka-iotwireless" 'False) (C1 ('MetaCons "CreateWirelessDevice'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "loRaWAN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LoRaWANDevice)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 WirelessDeviceType) :*: S1 ('MetaSel ('Just "destinationName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateWirelessDevice Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

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_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_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_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.

Constructors

CreateWirelessDeviceResponse' 

Fields

Instances

Instances details
Eq CreateWirelessDeviceResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

Read CreateWirelessDeviceResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

Show CreateWirelessDeviceResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

Generic CreateWirelessDeviceResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

Associated Types

type Rep CreateWirelessDeviceResponse :: Type -> Type #

NFData CreateWirelessDeviceResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

type Rep CreateWirelessDeviceResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateWirelessDevice

type Rep CreateWirelessDeviceResponse = D1 ('MetaData "CreateWirelessDeviceResponse" "Amazonka.IoTWireless.CreateWirelessDevice" "libZSservicesZSamazonka-iotwirelessZSamazonka-iotwireless" 'False) (C1 ('MetaCons "CreateWirelessDeviceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.