associate_trunk_interface
async
¶
associate_trunk_interface(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
branch_interface_id: Optional[NetworkInterfaceId] = None,
trunk_interface_id: Optional[NetworkInterfaceId] = None,
vlan_id: Optional[Integer] = None,
gre_key: Optional[Integer] = None,
client_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
) -> AssociateTrunkInterfaceResult
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.
Parameters:
-
branch_interface_id(Optional[NetworkInterfaceId], default:None) –The ID of the branch network interface.
-
trunk_interface_id(Optional[NetworkInterfaceId], default:None) –The ID of the trunk network interface.
-
vlan_id(Optional[Integer], default:None) –The ID of the VLAN. This applies to the VLAN protocol.
-
gre_key(Optional[Integer], default:None) –The application key. This applies to the GRE protocol.
-
client_token(Optional[String], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
-
dry_run(Optional[Boolean], default:None) –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 isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 | |