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 |
Creates a connection between a customer network and a specific Direct Connect location.
A connection links your internal network to an Direct Connect location over a standard Ethernet fiber-optic cable. One end of the cable is connected to your router, the other to an Direct Connect router.
To find the locations for your Region, use DescribeLocations.
You can automatically add the new connection to a link aggregation group (LAG) by specifying a LAG ID in the request. This ensures that the new connection is allocated on the same Direct Connect endpoint that hosts the specified LAG. If there are no available ports on the endpoint, the request fails and no connection is created.
Synopsis
- data CreateConnection = CreateConnection' {}
- newCreateConnection :: Text -> Text -> Text -> CreateConnection
- createConnection_lagId :: Lens' CreateConnection (Maybe Text)
- createConnection_providerName :: Lens' CreateConnection (Maybe Text)
- createConnection_requestMACSec :: Lens' CreateConnection (Maybe Bool)
- createConnection_tags :: Lens' CreateConnection (Maybe (NonEmpty Tag))
- createConnection_location :: Lens' CreateConnection Text
- createConnection_bandwidth :: Lens' CreateConnection Text
- createConnection_connectionName :: Lens' CreateConnection Text
- data Connection = Connection' {
- awsDevice :: Maybe Text
- awsDeviceV2 :: Maybe Text
- awsLogicalDeviceId :: Maybe Text
- bandwidth :: Maybe Text
- connectionId :: Maybe Text
- connectionName :: Maybe Text
- connectionState :: Maybe ConnectionState
- encryptionMode :: Maybe Text
- hasLogicalRedundancy :: Maybe HasLogicalRedundancy
- jumboFrameCapable :: Maybe Bool
- lagId :: Maybe Text
- loaIssueTime :: Maybe POSIX
- location :: Maybe Text
- macSecCapable :: Maybe Bool
- macSecKeys :: Maybe [MacSecKey]
- ownerAccount :: Maybe Text
- partnerName :: Maybe Text
- portEncryptionStatus :: Maybe Text
- providerName :: Maybe Text
- region :: Maybe Text
- tags :: Maybe (NonEmpty Tag)
- vlan :: Maybe Int
- newConnection :: Connection
- connection_awsDevice :: Lens' Connection (Maybe Text)
- connection_awsDeviceV2 :: Lens' Connection (Maybe Text)
- connection_awsLogicalDeviceId :: Lens' Connection (Maybe Text)
- connection_bandwidth :: Lens' Connection (Maybe Text)
- connection_connectionId :: Lens' Connection (Maybe Text)
- connection_connectionName :: Lens' Connection (Maybe Text)
- connection_connectionState :: Lens' Connection (Maybe ConnectionState)
- connection_encryptionMode :: Lens' Connection (Maybe Text)
- connection_hasLogicalRedundancy :: Lens' Connection (Maybe HasLogicalRedundancy)
- connection_jumboFrameCapable :: Lens' Connection (Maybe Bool)
- connection_lagId :: Lens' Connection (Maybe Text)
- connection_loaIssueTime :: Lens' Connection (Maybe UTCTime)
- connection_location :: Lens' Connection (Maybe Text)
- connection_macSecCapable :: Lens' Connection (Maybe Bool)
- connection_macSecKeys :: Lens' Connection (Maybe [MacSecKey])
- connection_ownerAccount :: Lens' Connection (Maybe Text)
- connection_partnerName :: Lens' Connection (Maybe Text)
- connection_portEncryptionStatus :: Lens' Connection (Maybe Text)
- connection_providerName :: Lens' Connection (Maybe Text)
- connection_region :: Lens' Connection (Maybe Text)
- connection_tags :: Lens' Connection (Maybe (NonEmpty Tag))
- connection_vlan :: Lens' Connection (Maybe Int)
Creating a Request
data CreateConnection Source #
See: newCreateConnection
smart constructor.
CreateConnection' | |
|
Instances
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_lagId
- The ID of the LAG.
CreateConnection
, createConnection_providerName
- The name of the service provider associated with the requested
connection.
$sel:requestMACSec:CreateConnection'
, createConnection_requestMACSec
- Indicates whether you want the connection to support MAC Security
(MACsec).
MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security (MACsec) prerequisties, see MACsec prerequisties in the Direct Connect User Guide.
CreateConnection
, createConnection_tags
- The tags to associate with the lag.
CreateConnection
, createConnection_location
- The location of the connection.
CreateConnection
, createConnection_bandwidth
- The bandwidth of the connection.
CreateConnection
, createConnection_connectionName
- The name of the connection.
Request Lenses
createConnection_lagId :: Lens' CreateConnection (Maybe Text) Source #
The ID of the LAG.
createConnection_providerName :: Lens' CreateConnection (Maybe Text) Source #
The name of the service provider associated with the requested connection.
createConnection_requestMACSec :: Lens' CreateConnection (Maybe Bool) Source #
Indicates whether you want the connection to support MAC Security (MACsec).
MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security (MACsec) prerequisties, see MACsec prerequisties in the Direct Connect User Guide.
createConnection_tags :: Lens' CreateConnection (Maybe (NonEmpty Tag)) Source #
The tags to associate with the lag.
createConnection_location :: Lens' CreateConnection Text Source #
The location of the connection.
createConnection_bandwidth :: Lens' CreateConnection Text Source #
The bandwidth of the connection.
createConnection_connectionName :: Lens' CreateConnection Text Source #
The name of the connection.
Destructuring the Response
data Connection Source #
Information about an Direct Connect connection.
See: newConnection
smart constructor.
Connection' | |
|
Instances
newConnection :: Connection Source #
Create a value of Connection
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:awsDevice:Connection'
, connection_awsDevice
- The Direct Connect endpoint on which the physical connection terminates.
$sel:awsDeviceV2:Connection'
, connection_awsDeviceV2
- The Direct Connect endpoint that terminates the physical connection.
$sel:awsLogicalDeviceId:Connection'
, connection_awsLogicalDeviceId
- The Direct Connect endpoint that terminates the logical connection. This
device might be different than the device that terminates the physical
connection.
$sel:bandwidth:Connection'
, connection_bandwidth
- The bandwidth of the connection.
$sel:connectionId:Connection'
, connection_connectionId
- The ID of the connection.
$sel:connectionName:Connection'
, connection_connectionName
- The name of the connection.
$sel:connectionState:Connection'
, connection_connectionState
- The state of the connection. The following are the possible values:
ordering
: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.requested
: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.pending
: The connection has been approved and is being initialized.available
: The network link is up and the connection is ready for use.down
: The network link is down.deleting
: The connection is being deleted.deleted
: The connection has been deleted.rejected
: A hosted connection in theordering
state enters therejected
state if it is deleted by the customer.unknown
: The state of the connection is not available.
$sel:encryptionMode:Connection'
, connection_encryptionMode
- The MAC Security (MACsec) connection encryption mode.
The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
$sel:hasLogicalRedundancy:Connection'
, connection_hasLogicalRedundancy
- Indicates whether the connection supports a secondary BGP peer in the
same address family (IPv4/IPv6).
$sel:jumboFrameCapable:Connection'
, connection_jumboFrameCapable
- Indicates whether jumbo frames (9001 MTU) are supported.
$sel:lagId:Connection'
, connection_lagId
- The ID of the LAG.
$sel:loaIssueTime:Connection'
, connection_loaIssueTime
- The time of the most recent call to DescribeLoa for this connection.
$sel:location:Connection'
, connection_location
- The location of the connection.
$sel:macSecCapable:Connection'
, connection_macSecCapable
- Indicates whether the connection supports MAC Security (MACsec).
$sel:macSecKeys:Connection'
, connection_macSecKeys
- The MAC Security (MACsec) security keys associated with the connection.
$sel:ownerAccount:Connection'
, connection_ownerAccount
- The ID of the Amazon Web Services account that owns the connection.
$sel:partnerName:Connection'
, connection_partnerName
- The name of the Direct Connect service provider associated with the
connection.
$sel:portEncryptionStatus:Connection'
, connection_portEncryptionStatus
- The MAC Security (MACsec) port link status of the connection.
The valid values are Encryption Up
, which means that there is an
active Connection Key Name, or Encryption Down
.
$sel:providerName:Connection'
, connection_providerName
- The name of the service provider associated with the connection.
$sel:region:Connection'
, connection_region
- The Amazon Web Services Region where the connection is located.
$sel:tags:Connection'
, connection_tags
- The tags associated with the connection.
$sel:vlan:Connection'
, connection_vlan
- The ID of the VLAN.
Response Lenses
connection_awsDevice :: Lens' Connection (Maybe Text) Source #
The Direct Connect endpoint on which the physical connection terminates.
connection_awsDeviceV2 :: Lens' Connection (Maybe Text) Source #
The Direct Connect endpoint that terminates the physical connection.
connection_awsLogicalDeviceId :: Lens' Connection (Maybe Text) Source #
The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
connection_bandwidth :: Lens' Connection (Maybe Text) Source #
The bandwidth of the connection.
connection_connectionId :: Lens' Connection (Maybe Text) Source #
The ID of the connection.
connection_connectionName :: Lens' Connection (Maybe Text) Source #
The name of the connection.
connection_connectionState :: Lens' Connection (Maybe ConnectionState) Source #
The state of the connection. The following are the possible values:
ordering
: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.requested
: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.pending
: The connection has been approved and is being initialized.available
: The network link is up and the connection is ready for use.down
: The network link is down.deleting
: The connection is being deleted.deleted
: The connection has been deleted.rejected
: A hosted connection in theordering
state enters therejected
state if it is deleted by the customer.unknown
: The state of the connection is not available.
connection_encryptionMode :: Lens' Connection (Maybe Text) Source #
The MAC Security (MACsec) connection encryption mode.
The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
connection_hasLogicalRedundancy :: Lens' Connection (Maybe HasLogicalRedundancy) Source #
Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).
connection_jumboFrameCapable :: Lens' Connection (Maybe Bool) Source #
Indicates whether jumbo frames (9001 MTU) are supported.
connection_lagId :: Lens' Connection (Maybe Text) Source #
The ID of the LAG.
connection_loaIssueTime :: Lens' Connection (Maybe UTCTime) Source #
The time of the most recent call to DescribeLoa for this connection.
connection_location :: Lens' Connection (Maybe Text) Source #
The location of the connection.
connection_macSecCapable :: Lens' Connection (Maybe Bool) Source #
Indicates whether the connection supports MAC Security (MACsec).
connection_macSecKeys :: Lens' Connection (Maybe [MacSecKey]) Source #
The MAC Security (MACsec) security keys associated with the connection.
connection_ownerAccount :: Lens' Connection (Maybe Text) Source #
The ID of the Amazon Web Services account that owns the connection.
connection_partnerName :: Lens' Connection (Maybe Text) Source #
The name of the Direct Connect service provider associated with the connection.
connection_portEncryptionStatus :: Lens' Connection (Maybe Text) Source #
The MAC Security (MACsec) port link status of the connection.
The valid values are Encryption Up
, which means that there is an
active Connection Key Name, or Encryption Down
.
connection_providerName :: Lens' Connection (Maybe Text) Source #
The name of the service provider associated with the connection.
connection_region :: Lens' Connection (Maybe Text) Source #
The Amazon Web Services Region where the connection is located.
connection_tags :: Lens' Connection (Maybe (NonEmpty Tag)) Source #
The tags associated with the connection.
connection_vlan :: Lens' Connection (Maybe Int) Source #
The ID of the VLAN.