amazonka-iotwireless-2.0: Amazon IoT Wireless SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoTWireless.CreateDeviceProfile

Description

Creates a new device profile.

Synopsis

Creating a Request

data CreateDeviceProfile Source #

See: newCreateDeviceProfile smart constructor.

Constructors

CreateDeviceProfile' 

Fields

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

  • loRaWAN :: Maybe LoRaWANDeviceProfile

    The device profile information to use to create the device profile.

  • name :: Maybe Text

    The name of the new resource.

  • tags :: Maybe [Tag]

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

Instances

Instances details
ToJSON CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

ToHeaders CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

ToPath CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

ToQuery CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

AWSRequest CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Associated Types

type AWSResponse CreateDeviceProfile #

Generic CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Associated Types

type Rep CreateDeviceProfile :: Type -> Type #

Read CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Show CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

NFData CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Methods

rnf :: CreateDeviceProfile -> () #

Eq CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Hashable CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

type AWSResponse CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

type Rep CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

type Rep CreateDeviceProfile = D1 ('MetaData "CreateDeviceProfile" "Amazonka.IoTWireless.CreateDeviceProfile" "amazonka-iotwireless-2.0-Dzx6Wen5AK9DyNP5TQU7zN" 'False) (C1 ('MetaCons "CreateDeviceProfile'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "loRaWAN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LoRaWANDeviceProfile))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])))))

newCreateDeviceProfile :: CreateDeviceProfile Source #

Create a value of CreateDeviceProfile 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:clientRequestToken:CreateDeviceProfile', createDeviceProfile_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.

CreateDeviceProfile, createDeviceProfile_loRaWAN - The device profile information to use to create the device profile.

CreateDeviceProfile, createDeviceProfile_name - The name of the new resource.

$sel:tags:CreateDeviceProfile', createDeviceProfile_tags - The tags to attach to the new device profile. Tags are metadata that you can use to manage a resource.

Request Lenses

createDeviceProfile_clientRequestToken :: Lens' CreateDeviceProfile (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.

createDeviceProfile_loRaWAN :: Lens' CreateDeviceProfile (Maybe LoRaWANDeviceProfile) Source #

The device profile information to use to create the device profile.

createDeviceProfile_tags :: Lens' CreateDeviceProfile (Maybe [Tag]) Source #

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

Destructuring the Response

data CreateDeviceProfileResponse Source #

See: newCreateDeviceProfileResponse smart constructor.

Constructors

CreateDeviceProfileResponse' 

Fields

Instances

Instances details
Generic CreateDeviceProfileResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Associated Types

type Rep CreateDeviceProfileResponse :: Type -> Type #

Read CreateDeviceProfileResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Show CreateDeviceProfileResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

NFData CreateDeviceProfileResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Eq CreateDeviceProfileResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

type Rep CreateDeviceProfileResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

type Rep CreateDeviceProfileResponse = D1 ('MetaData "CreateDeviceProfileResponse" "Amazonka.IoTWireless.CreateDeviceProfile" "amazonka-iotwireless-2.0-Dzx6Wen5AK9DyNP5TQU7zN" 'False) (C1 ('MetaCons "CreateDeviceProfileResponse'" '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))))

newCreateDeviceProfileResponse Source #

Create a value of CreateDeviceProfileResponse 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:

CreateDeviceProfileResponse, createDeviceProfileResponse_arn - The Amazon Resource Name of the new resource.

CreateDeviceProfileResponse, createDeviceProfileResponse_id - The ID of the new device profile.

$sel:httpStatus:CreateDeviceProfileResponse', createDeviceProfileResponse_httpStatus - The response's http status code.

Response Lenses

createDeviceProfileResponse_arn :: Lens' CreateDeviceProfileResponse (Maybe Text) Source #

The Amazon Resource Name of the new resource.