amazonka-networkmanager-2.0: Amazon Network Manager 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.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

Creating a Request

data CreateDevice Source #

See: newCreateDevice smart constructor.

Constructors

CreateDevice' 

Fields

Instances

Instances details
ToJSON CreateDevice Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateDevice

ToHeaders CreateDevice Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateDevice

ToPath CreateDevice Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateDevice

ToQuery CreateDevice Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateDevice

AWSRequest CreateDevice Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateDevice

Associated Types

type AWSResponse CreateDevice #

Generic CreateDevice Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateDevice

Associated Types

type Rep CreateDevice :: Type -> Type #

Show CreateDevice Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateDevice

NFData CreateDevice Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateDevice

Methods

rnf :: CreateDevice -> () #

Eq CreateDevice Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateDevice

Hashable CreateDevice Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateDevice

type AWSResponse CreateDevice Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateDevice

type Rep CreateDevice Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateDevice

newCreateDevice Source #

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

Destructuring the Response

data CreateDeviceResponse Source #

See: newCreateDeviceResponse smart constructor.

Constructors

CreateDeviceResponse' 

Fields

newCreateDeviceResponse Source #

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