aws_sdk_ec2/client/
create_local_gateway_virtual_interface.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateLocalGatewayVirtualInterface`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`local_gateway_virtual_interface_group_id(impl Into<String>)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::local_gateway_virtual_interface_group_id) / [`set_local_gateway_virtual_interface_group_id(Option<String>)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::set_local_gateway_virtual_interface_group_id):<br>required: **true**<br><p>The ID of the local gateway virtual interface group.</p><br>
7    ///   - [`outpost_lag_id(impl Into<String>)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::outpost_lag_id) / [`set_outpost_lag_id(Option<String>)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::set_outpost_lag_id):<br>required: **true**<br><p>References the Link Aggregation Group (LAG) that connects the Outpost to on-premises network devices.</p><br>
8    ///   - [`vlan(i32)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::vlan) / [`set_vlan(Option<i32>)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::set_vlan):<br>required: **true**<br><p>The virtual local area network (VLAN) used for the local gateway virtual interface.</p><br>
9    ///   - [`local_address(impl Into<String>)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::local_address) / [`set_local_address(Option<String>)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::set_local_address):<br>required: **true**<br><p>The IP address assigned to the local gateway virtual interface on the Outpost side. Only IPv4 is supported.</p><br>
10    ///   - [`peer_address(impl Into<String>)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::peer_address) / [`set_peer_address(Option<String>)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::set_peer_address):<br>required: **true**<br><p>The peer IP address for the local gateway virtual interface. Only IPv4 is supported.</p><br>
11    ///   - [`peer_bgp_asn(i32)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::peer_bgp_asn) / [`set_peer_bgp_asn(Option<i32>)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::set_peer_bgp_asn):<br>required: **false**<br><p>The Autonomous System Number (ASN) of the Border Gateway Protocol (BGP) peer.</p><br>
12    ///   - [`tag_specifications(TagSpecification)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::tag_specifications) / [`set_tag_specifications(Option<Vec::<TagSpecification>>)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::set_tag_specifications):<br>required: **false**<br><p>The tags to apply to a resource when the local gateway virtual interface is being created.</p><br>
13    ///   - [`dry_run(bool)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::set_dry_run):<br>required: **false**<br><p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
14    ///   - [`peer_bgp_asn_extended(i64)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::peer_bgp_asn_extended) / [`set_peer_bgp_asn_extended(Option<i64>)`](crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::set_peer_bgp_asn_extended):<br>required: **false**<br><p>The extended 32-bit ASN of the BGP peer for use with larger ASN values.</p><br>
15    /// - On success, responds with [`CreateLocalGatewayVirtualInterfaceOutput`](crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceOutput) with field(s):
16    ///   - [`local_gateway_virtual_interface(Option<LocalGatewayVirtualInterface>)`](crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceOutput::local_gateway_virtual_interface): <p>Information about the local gateway virtual interface.</p>
17    /// - On failure, responds with [`SdkError<CreateLocalGatewayVirtualInterfaceError>`](crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError)
18    pub fn create_local_gateway_virtual_interface(
19        &self,
20    ) -> crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder {
21        crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceFluentBuilder::new(self.handle.clone())
22    }
23}