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 |
This API action is currently in limited preview only. If you are interested in using this feature, contact your account manager.
Associates a branch network interface with a trunk network interface.
Before you create the association, run the
create-network-interface
command and set --interface-type
to trunk
. You must also create a
network interface for each branch network interface that you want to
associate with the trunk network interface.
Synopsis
- data AssociateTrunkInterface = AssociateTrunkInterface' {}
- newAssociateTrunkInterface :: Text -> Text -> AssociateTrunkInterface
- associateTrunkInterface_clientToken :: Lens' AssociateTrunkInterface (Maybe Text)
- associateTrunkInterface_dryRun :: Lens' AssociateTrunkInterface (Maybe Bool)
- associateTrunkInterface_greKey :: Lens' AssociateTrunkInterface (Maybe Int)
- associateTrunkInterface_vlanId :: Lens' AssociateTrunkInterface (Maybe Int)
- associateTrunkInterface_branchInterfaceId :: Lens' AssociateTrunkInterface Text
- associateTrunkInterface_trunkInterfaceId :: Lens' AssociateTrunkInterface Text
- data AssociateTrunkInterfaceResponse = AssociateTrunkInterfaceResponse' {}
- newAssociateTrunkInterfaceResponse :: Int -> AssociateTrunkInterfaceResponse
- associateTrunkInterfaceResponse_clientToken :: Lens' AssociateTrunkInterfaceResponse (Maybe Text)
- associateTrunkInterfaceResponse_interfaceAssociation :: Lens' AssociateTrunkInterfaceResponse (Maybe TrunkInterfaceAssociation)
- associateTrunkInterfaceResponse_httpStatus :: Lens' AssociateTrunkInterfaceResponse Int
Creating a Request
data AssociateTrunkInterface Source #
See: newAssociateTrunkInterface
smart constructor.
AssociateTrunkInterface' | |
|
Instances
newAssociateTrunkInterface Source #
Create a value of AssociateTrunkInterface
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:
AssociateTrunkInterface
, associateTrunkInterface_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request. For more information, see
How to Ensure Idempotency.
$sel:dryRun:AssociateTrunkInterface'
, associateTrunkInterface_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
AssociateTrunkInterface
, associateTrunkInterface_greKey
- The application key. This applies to the GRE protocol.
AssociateTrunkInterface
, associateTrunkInterface_vlanId
- The ID of the VLAN. This applies to the VLAN protocol.
AssociateTrunkInterface
, associateTrunkInterface_branchInterfaceId
- The ID of the branch network interface.
AssociateTrunkInterface
, associateTrunkInterface_trunkInterfaceId
- The ID of the trunk network interface.
Request Lenses
associateTrunkInterface_clientToken :: Lens' AssociateTrunkInterface (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
associateTrunkInterface_dryRun :: Lens' AssociateTrunkInterface (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
associateTrunkInterface_greKey :: Lens' AssociateTrunkInterface (Maybe Int) Source #
The application key. This applies to the GRE protocol.
associateTrunkInterface_vlanId :: Lens' AssociateTrunkInterface (Maybe Int) Source #
The ID of the VLAN. This applies to the VLAN protocol.
associateTrunkInterface_branchInterfaceId :: Lens' AssociateTrunkInterface Text Source #
The ID of the branch network interface.
associateTrunkInterface_trunkInterfaceId :: Lens' AssociateTrunkInterface Text Source #
The ID of the trunk network interface.
Destructuring the Response
data AssociateTrunkInterfaceResponse Source #
See: newAssociateTrunkInterfaceResponse
smart constructor.
AssociateTrunkInterfaceResponse' | |
|
Instances
newAssociateTrunkInterfaceResponse Source #
Create a value of AssociateTrunkInterfaceResponse
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:
AssociateTrunkInterface
, associateTrunkInterfaceResponse_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request. For more information, see
How to Ensure Idempotency.
$sel:interfaceAssociation:AssociateTrunkInterfaceResponse'
, associateTrunkInterfaceResponse_interfaceAssociation
- Information about the association between the trunk network interface
and branch network interface.
$sel:httpStatus:AssociateTrunkInterfaceResponse'
, associateTrunkInterfaceResponse_httpStatus
- The response's http status code.
Response Lenses
associateTrunkInterfaceResponse_clientToken :: Lens' AssociateTrunkInterfaceResponse (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
associateTrunkInterfaceResponse_interfaceAssociation :: Lens' AssociateTrunkInterfaceResponse (Maybe TrunkInterfaceAssociation) Source #
Information about the association between the trunk network interface and branch network interface.
associateTrunkInterfaceResponse_httpStatus :: Lens' AssociateTrunkInterfaceResponse Int Source #
The response's http status code.