Skip to main content

trunk_interfaces

Creates, updates, deletes, gets or lists a trunk_interfaces resource.

Overview

Nametrunk_interfaces
TypeResource
Idaws.ec2.trunk_interfaces

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
associate_trunk_interfaceupdateBranchInterfaceId, TrunkInterfaceId, regionVlanId, GreKey, ClientToken, DryRunAssociates a branch network interface with a trunk network interface. Before you create the association, use CreateNetworkInterface 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.
disassociate_trunk_interfaceupdateAssociationId, regionClientToken, DryRunRemoves an association between a branch network interface with a trunk network interface.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
AssociationIdstringThe ID of the association
BranchInterfaceIdstringThe ID of the branch network interface.
TrunkInterfaceIdstringThe ID of the trunk network interface.
regionstringAWS region (default: us-east-1)
ClientTokenstringUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
DryRunbooleanChecks 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.
GreKeyintegerThe application key. This applies to the GRE protocol.
VlanIdintegerThe ID of the VLAN. This applies to the VLAN protocol.

UPDATE examples

Associates a branch network interface with a trunk network interface. Before you create the association, use CreateNetworkInterface 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.

UPDATE aws.ec2.trunk_interfaces
SET
-- No updatable properties
WHERE
BranchInterfaceId = '{{ BranchInterfaceId }}' --required
AND TrunkInterfaceId = '{{ TrunkInterfaceId }}' --required
AND region = '{{ region }}' --required
AND VlanId = '{{ VlanId}}'
AND GreKey = '{{ GreKey}}'
AND ClientToken = '{{ ClientToken}}'
AND DryRun = {{ DryRun}}
RETURNING
client_token,
interface_association;