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 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
- linkId :: Maybe Text
- description :: Maybe Text
- tags :: Maybe [Tag]
- globalNetworkId :: Text
- deviceId :: Text
- connectedDeviceId :: Text
- newCreateConnection :: Text -> Text -> Text -> CreateConnection
- createConnection_connectedLinkId :: Lens' CreateConnection (Maybe Text)
- createConnection_linkId :: Lens' CreateConnection (Maybe Text)
- createConnection_description :: 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.
CreateConnection' | |
|
Instances
:: 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:
$sel:connectedLinkId:CreateConnection'
, createConnection_connectedLinkId
- The ID of the link for the second device.
$sel:linkId:CreateConnection'
, createConnection_linkId
- The ID of the link for the first device.
$sel:description:CreateConnection'
, createConnection_description
- A description of the connection.
Length Constraints: Maximum length of 256 characters.
$sel:tags:CreateConnection'
, createConnection_tags
- The tags to apply to the resource during creation.
$sel:globalNetworkId:CreateConnection'
, createConnection_globalNetworkId
- The ID of the global network.
$sel:deviceId:CreateConnection'
, createConnection_deviceId
- The ID of the first device in the connection.
$sel:connectedDeviceId: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_linkId :: Lens' CreateConnection (Maybe Text) Source #
The ID of the link for the first device.
createConnection_description :: Lens' CreateConnection (Maybe Text) Source #
A description of the connection.
Length Constraints: Maximum length of 256 characters.
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.
CreateConnectionResponse' | |
|
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.