| 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.CreateConnection
Description
Creates a connection between two devices. The devices can be a physical or virtual appliance that connects to a third-party appliance in a VPC, or a physical appliance that connects to another physical appliance in an on-premises network.
Synopsis
- data CreateConnection = CreateConnection' {
- connectedLinkId :: Maybe Text
- description :: Maybe Text
- linkId :: Maybe Text
- tags :: Maybe [Tag]
- globalNetworkId :: Text
- deviceId :: Text
- connectedDeviceId :: Text
- newCreateConnection :: Text -> Text -> Text -> CreateConnection
- createConnection_connectedLinkId :: Lens' CreateConnection (Maybe Text)
- createConnection_description :: Lens' CreateConnection (Maybe Text)
- createConnection_linkId :: Lens' CreateConnection (Maybe Text)
- createConnection_tags :: Lens' CreateConnection (Maybe [Tag])
- createConnection_globalNetworkId :: Lens' CreateConnection Text
- createConnection_deviceId :: Lens' CreateConnection Text
- createConnection_connectedDeviceId :: Lens' CreateConnection Text
- data CreateConnectionResponse = CreateConnectionResponse' {}
- newCreateConnectionResponse :: Int -> CreateConnectionResponse
- createConnectionResponse_connection :: Lens' CreateConnectionResponse (Maybe Connection)
- createConnectionResponse_httpStatus :: Lens' CreateConnectionResponse Int
Creating a Request
data CreateConnection Source #
See: newCreateConnection smart constructor.
Constructors
| CreateConnection' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateConnection |
Create a value of CreateConnection 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:
CreateConnection, createConnection_connectedLinkId - The ID of the link for the second device.
CreateConnection, createConnection_description - A description of the connection.
Length Constraints: Maximum length of 256 characters.
CreateConnection, createConnection_linkId - The ID of the link for the first device.
CreateConnection, createConnection_tags - The tags to apply to the resource during creation.
CreateConnection, createConnection_globalNetworkId - The ID of the global network.
CreateConnection, createConnection_deviceId - The ID of the first device in the connection.
CreateConnection, createConnection_connectedDeviceId - The ID of the second device in the connection.
Request Lenses
createConnection_connectedLinkId :: Lens' CreateConnection (Maybe Text) Source #
The ID of the link for the second device.
createConnection_description :: Lens' CreateConnection (Maybe Text) Source #
A description of the connection.
Length Constraints: Maximum length of 256 characters.
createConnection_linkId :: Lens' CreateConnection (Maybe Text) Source #
The ID of the link for the first device.
createConnection_tags :: Lens' CreateConnection (Maybe [Tag]) Source #
The tags to apply to the resource during creation.
createConnection_globalNetworkId :: Lens' CreateConnection Text Source #
The ID of the global network.
createConnection_deviceId :: Lens' CreateConnection Text Source #
The ID of the first device in the connection.
createConnection_connectedDeviceId :: Lens' CreateConnection Text Source #
The ID of the second device in the connection.
Destructuring the Response
data CreateConnectionResponse Source #
See: newCreateConnectionResponse smart constructor.
Constructors
| CreateConnectionResponse' | |
Fields
| |
Instances
newCreateConnectionResponse Source #
Create a value of CreateConnectionResponse 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:connection:CreateConnectionResponse', createConnectionResponse_connection - Information about the connection.
$sel:httpStatus:CreateConnectionResponse', createConnectionResponse_httpStatus - The response's http status code.
Response Lenses
createConnectionResponse_connection :: Lens' CreateConnectionResponse (Maybe Connection) Source #
Information about the connection.
createConnectionResponse_httpStatus :: Lens' CreateConnectionResponse Int Source #
The response's http status code.