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

Description

Creates a new device profile.

Synopsis

Creating a Request

data CreateDeviceProfile Source #

See: newCreateDeviceProfile smart constructor.

Constructors

CreateDeviceProfile' 

Fields

  • loRaWAN :: Maybe LoRaWANDeviceProfile

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

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

  • 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
Eq CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Read CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Show CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Generic CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Associated Types

type Rep CreateDeviceProfile :: Type -> Type #

NFData CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Methods

rnf :: CreateDeviceProfile -> () #

Hashable CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

ToJSON CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

AWSRequest CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Associated Types

type AWSResponse 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

type Rep CreateDeviceProfile Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

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

Defined in Amazonka.IoTWireless.CreateDeviceProfile

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:loRaWAN:CreateDeviceProfile', createDeviceProfile_loRaWAN - The device profile information to use to create the device profile.

$sel:name:CreateDeviceProfile', createDeviceProfile_name - The name of the new resource.

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

$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_loRaWAN :: Lens' CreateDeviceProfile (Maybe LoRaWANDeviceProfile) Source #

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

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_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
Eq CreateDeviceProfileResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Read CreateDeviceProfileResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Show CreateDeviceProfileResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Generic CreateDeviceProfileResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.CreateDeviceProfile

Associated Types

type Rep CreateDeviceProfileResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-iotwirelessZSamazonka-iotwireless" '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:

$sel:arn:CreateDeviceProfileResponse', createDeviceProfileResponse_arn - The Amazon Resource Name of the new resource.

$sel:id: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.