| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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_aWSLocation :: Lens' CreateDevice (Maybe AWSLocation)
- createDevice_description :: Lens' CreateDevice (Maybe Text)
- createDevice_location :: Lens' CreateDevice (Maybe Location)
- createDevice_model :: Lens' CreateDevice (Maybe Text)
- createDevice_serialNumber :: Lens' CreateDevice (Maybe Text)
- createDevice_siteId :: Lens' CreateDevice (Maybe Text)
- createDevice_tags :: Lens' CreateDevice (Maybe [Tag])
- createDevice_type :: Lens' CreateDevice (Maybe Text)
- createDevice_vendor :: Lens' CreateDevice (Maybe Text)
- 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:
CreateDevice, createDevice_aWSLocation - The Amazon Web Services location of the device, if applicable. For an
on-premises device, you can omit this parameter.
CreateDevice, createDevice_description - A description of the device.
Constraints: Maximum length of 256 characters.
CreateDevice, createDevice_location - The location of the device.
CreateDevice, createDevice_model - The model of the device.
Constraints: Maximum length of 128 characters.
CreateDevice, createDevice_serialNumber - The serial number of the device.
Constraints: Maximum length of 128 characters.
CreateDevice, createDevice_siteId - The ID of the site.
CreateDevice, createDevice_tags - The tags to apply to the resource during creation.
CreateDevice, createDevice_type - The type of the device.
CreateDevice, createDevice_vendor - The vendor of the device.
Constraints: Maximum length of 128 characters.
CreateDevice, createDevice_globalNetworkId - The ID of the global network.
Request Lenses
createDevice_aWSLocation :: Lens' CreateDevice (Maybe AWSLocation) Source #
The Amazon Web Services location of the device, if applicable. For an on-premises device, you can omit this parameter.
createDevice_description :: Lens' CreateDevice (Maybe Text) Source #
A description of the device.
Constraints: Maximum length of 256 characters.
createDevice_location :: Lens' CreateDevice (Maybe Location) Source #
The location of the device.
createDevice_model :: Lens' CreateDevice (Maybe Text) Source #
The model of the device.
Constraints: Maximum length of 128 characters.
createDevice_serialNumber :: Lens' CreateDevice (Maybe Text) Source #
The serial number of the device.
Constraints: Maximum length of 128 characters.
createDevice_siteId :: Lens' CreateDevice (Maybe Text) Source #
The ID of the site.
createDevice_tags :: Lens' CreateDevice (Maybe [Tag]) Source #
The tags to apply to the resource during creation.
createDevice_type :: Lens' CreateDevice (Maybe Text) Source #
The type of the device.
createDevice_vendor :: Lens' CreateDevice (Maybe Text) Source #
The vendor of the device.
Constraints: Maximum length of 128 characters.
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.