Skip to main content

trunk_interface_associations

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

Overview

Nametrunk_interface_associations
TypeResource
Idaws.ec2.trunk_interface_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
association_idstringThe ID of the association.
branch_interface_idstringThe ID of the branch network interface.
gre_keyintegerThe application key when you use the GRE protocol.
interface_protocolstringThe interface protocol. Valid values are VLAN and GRE.
tagsstringThe tags for the trunk interface association.
trunk_interface_idstringThe ID of the trunk network interface.
vlan_idintegerThe ID of the VLAN when you use the VLAN protocol.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_trunk_interface_associationsselectregionAssociationId, DryRun, Filter, NextToken, MaxResultsDescribes one or more network interface trunk associations.

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
regionstringAWS region (default: us-east-1)
AssociationIdarrayThe IDs of the associations.
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.
FilterarrayOne or more filters. gre-key - The ID of a trunk interface association. interface-protocol - The interface protocol. Valid values are VLAN and GRE.
MaxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
NextTokenstringThe token for the next page of results.

SELECT examples

Describes one or more network interface trunk associations.

SELECT
association_id,
branch_interface_id,
gre_key,
interface_protocol,
tags,
trunk_interface_id,
vlan_id
FROM aws.ec2.trunk_interface_associations
WHERE region = '{{ region }}' -- required
AND AssociationId = '{{ AssociationId }}'
AND DryRun = '{{ DryRun }}'
AND Filter = '{{ Filter }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
;