Skip to content

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.

VlanId

The ID of the VLAN. This applies to the VLAN protocol.

GreKey

The application key. This applies to the GRE protocol.

ClientToken

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.

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.

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"
)

Request syntax

svc$associate_trunk_interface(
  BranchInterfaceId = "string",
  TrunkInterfaceId = "string",
  VlanId = 123,
  GreKey = 123,
  ClientToken = "string",
  DryRun = TRUE|FALSE
)