Associate Trunk Interface
| ec2_associate_trunk_interface | R Documentation |
Associates a branch network interface with a trunk network interface¶
Description¶
Associates a branch network interface with a trunk network interface.
Before you create the association, use create_network_interface
command and set the 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.
Usage¶
ec2_associate_trunk_interface(BranchInterfaceId, TrunkInterfaceId,
VlanId, GreKey, ClientToken, DryRun)
Arguments¶
BranchInterfaceId[required] The ID of the branch network interface.
TrunkInterfaceId[required] The ID of the trunk network interface.
VlanIdThe ID of the VLAN. This applies to the VLAN protocol.
GreKeyThe application key. This applies to the GRE protocol.
ClientTokenUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
DryRunChecks 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 isUnauthorizedOperation.
Value¶
A list with the following syntax:
list(
InterfaceAssociation = list(
AssociationId = "string",
BranchInterfaceId = "string",
TrunkInterfaceId = "string",
InterfaceProtocol = "VLAN"|"GRE",
VlanId = 123,
GreKey = 123,
Tags = list(
list(
Key = "string",
Value = "string"
)
)
),
ClientToken = "string"
)