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 |
Creates a new device profile.
Synopsis
- data CreateDeviceProfile = CreateDeviceProfile' {}
- newCreateDeviceProfile :: CreateDeviceProfile
- createDeviceProfile_loRaWAN :: Lens' CreateDeviceProfile (Maybe LoRaWANDeviceProfile)
- createDeviceProfile_name :: Lens' CreateDeviceProfile (Maybe Text)
- createDeviceProfile_clientRequestToken :: Lens' CreateDeviceProfile (Maybe Text)
- createDeviceProfile_tags :: Lens' CreateDeviceProfile (Maybe [Tag])
- data CreateDeviceProfileResponse = CreateDeviceProfileResponse' {}
- newCreateDeviceProfileResponse :: Int -> CreateDeviceProfileResponse
- createDeviceProfileResponse_arn :: Lens' CreateDeviceProfileResponse (Maybe Text)
- createDeviceProfileResponse_id :: Lens' CreateDeviceProfileResponse (Maybe Text)
- createDeviceProfileResponse_httpStatus :: Lens' CreateDeviceProfileResponse Int
Creating a Request
data CreateDeviceProfile Source #
See: newCreateDeviceProfile
smart constructor.
CreateDeviceProfile' | |
|
Instances
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_name :: Lens' CreateDeviceProfile (Maybe Text) Source #
The name of the new resource.
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.
Instances
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.
createDeviceProfileResponse_id :: Lens' CreateDeviceProfileResponse (Maybe Text) Source #
The ID of the new device profile.
createDeviceProfileResponse_httpStatus :: Lens' CreateDeviceProfileResponse Int Source #
The response's http status code.