| 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 |
Amazonka.NetworkManager.CreateDevice
Description
Creates a new device in a global network. If you specify both a site ID and a location, the location of the site is used for visualization in the Network Manager console.
Synopsis
- data CreateDevice = CreateDevice' {}
- newCreateDevice :: Text -> CreateDevice
- createDevice_vendor :: Lens' CreateDevice (Maybe Text)
- createDevice_location :: Lens' CreateDevice (Maybe Location)
- createDevice_aWSLocation :: Lens' CreateDevice (Maybe AWSLocation)
- createDevice_model :: Lens' CreateDevice (Maybe Text)
- createDevice_type :: Lens' CreateDevice (Maybe Text)
- createDevice_serialNumber :: Lens' CreateDevice (Maybe Text)
- createDevice_siteId :: Lens' CreateDevice (Maybe Text)
- createDevice_description :: Lens' CreateDevice (Maybe Text)
- createDevice_tags :: Lens' CreateDevice (Maybe [Tag])
- createDevice_globalNetworkId :: Lens' CreateDevice Text
- data CreateDeviceResponse = CreateDeviceResponse' {
- device :: Maybe Device
- httpStatus :: Int
- newCreateDeviceResponse :: Int -> CreateDeviceResponse
- createDeviceResponse_device :: Lens' CreateDeviceResponse (Maybe Device)
- createDeviceResponse_httpStatus :: Lens' CreateDeviceResponse Int
Creating a Request
data CreateDevice Source #
See: newCreateDevice smart constructor.
Constructors
| CreateDevice' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CreateDevice |
Create a value of CreateDevice 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:vendor:CreateDevice', createDevice_vendor - The vendor of the device.
Length Constraints: Maximum length of 128 characters.
$sel:location:CreateDevice', createDevice_location - The location of the device.
$sel:aWSLocation:CreateDevice', createDevice_aWSLocation - The AWS location of the device.
$sel:model:CreateDevice', createDevice_model - The model of the device.
Length Constraints: Maximum length of 128 characters.
$sel:type':CreateDevice', createDevice_type - The type of the device.
$sel:serialNumber:CreateDevice', createDevice_serialNumber - The serial number of the device.
Length Constraints: Maximum length of 128 characters.
$sel:siteId:CreateDevice', createDevice_siteId - The ID of the site.
$sel:description:CreateDevice', createDevice_description - A description of the device.
Length Constraints: Maximum length of 256 characters.
$sel:tags:CreateDevice', createDevice_tags - The tags to apply to the resource during creation.
$sel:globalNetworkId:CreateDevice', createDevice_globalNetworkId - The ID of the global network.
Request Lenses
createDevice_vendor :: Lens' CreateDevice (Maybe Text) Source #
The vendor of the device.
Length Constraints: Maximum length of 128 characters.
createDevice_location :: Lens' CreateDevice (Maybe Location) Source #
The location of the device.
createDevice_aWSLocation :: Lens' CreateDevice (Maybe AWSLocation) Source #
The AWS location of the device.
createDevice_model :: Lens' CreateDevice (Maybe Text) Source #
The model of the device.
Length Constraints: Maximum length of 128 characters.
createDevice_type :: Lens' CreateDevice (Maybe Text) Source #
The type of the device.
createDevice_serialNumber :: Lens' CreateDevice (Maybe Text) Source #
The serial number of the device.
Length Constraints: Maximum length of 128 characters.
createDevice_siteId :: Lens' CreateDevice (Maybe Text) Source #
The ID of the site.
createDevice_description :: Lens' CreateDevice (Maybe Text) Source #
A description of the device.
Length Constraints: Maximum length of 256 characters.
createDevice_tags :: Lens' CreateDevice (Maybe [Tag]) Source #
The tags to apply to the resource during creation.
createDevice_globalNetworkId :: Lens' CreateDevice Text Source #
The ID of the global network.
Destructuring the Response
data CreateDeviceResponse Source #
See: newCreateDeviceResponse smart constructor.
Constructors
| CreateDeviceResponse' | |
Fields
| |
Instances
newCreateDeviceResponse Source #
Arguments
| :: Int | |
| -> CreateDeviceResponse |
Create a value of CreateDeviceResponse 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:device:CreateDeviceResponse', createDeviceResponse_device - Information about the device.
$sel:httpStatus:CreateDeviceResponse', createDeviceResponse_httpStatus - The response's http status code.
Response Lenses
createDeviceResponse_device :: Lens' CreateDeviceResponse (Maybe Device) Source #
Information about the device.
createDeviceResponse_httpStatus :: Lens' CreateDeviceResponse Int Source #
The response's http status code.