pulumi_wasm_providers_aws_mini::ec2::route

Struct RouteArgsBuilder

source
pub struct RouteArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> RouteArgsBuilder<S>

source

pub fn build_struct(self) -> RouteArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn carrier_gateway_id( self, value: impl Into<Output<Option<String>>>, ) -> RouteArgsBuilder<SetCarrierGatewayId<S>>
where S::CarrierGatewayId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of a carrier gateway. This attribute can only be used when the VPC contains a subnet which is associated with a Wavelength Zone.

source

pub fn maybe_carrier_gateway_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouteArgsBuilder<SetCarrierGatewayId<S>>
where S::CarrierGatewayId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of a carrier gateway. This attribute can only be used when the VPC contains a subnet which is associated with a Wavelength Zone.

source

pub fn core_network_arn( self, value: impl Into<Output<Option<String>>>, ) -> RouteArgsBuilder<SetCoreNetworkArn<S>>
where S::CoreNetworkArn: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The Amazon Resource Name (ARN) of a core network.

source

pub fn maybe_core_network_arn( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouteArgsBuilder<SetCoreNetworkArn<S>>
where S::CoreNetworkArn: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The Amazon Resource Name (ARN) of a core network.

source

pub fn destination_cidr_block( self, value: impl Into<Output<Option<String>>>, ) -> RouteArgsBuilder<SetDestinationCidrBlock<S>>
where S::DestinationCidrBlock: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The destination CIDR block.

source

pub fn maybe_destination_cidr_block( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouteArgsBuilder<SetDestinationCidrBlock<S>>
where S::DestinationCidrBlock: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The destination CIDR block.

source

pub fn destination_ipv6_cidr_block( self, value: impl Into<Output<Option<String>>>, ) -> RouteArgsBuilder<SetDestinationIpv6CidrBlock<S>>
where S::DestinationIpv6CidrBlock: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The destination IPv6 CIDR block.

source

pub fn maybe_destination_ipv6_cidr_block( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouteArgsBuilder<SetDestinationIpv6CidrBlock<S>>
where S::DestinationIpv6CidrBlock: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The destination IPv6 CIDR block.

source

pub fn destination_prefix_list_id( self, value: impl Into<Output<Option<String>>>, ) -> RouteArgsBuilder<SetDestinationPrefixListId<S>>
where S::DestinationPrefixListId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ID of a managed prefix list destination.

One of the following target arguments must be supplied:

source

pub fn maybe_destination_prefix_list_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouteArgsBuilder<SetDestinationPrefixListId<S>>
where S::DestinationPrefixListId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ID of a managed prefix list destination.

One of the following target arguments must be supplied:

source

pub fn egress_only_gateway_id( self, value: impl Into<Output<Option<String>>>, ) -> RouteArgsBuilder<SetEgressOnlyGatewayId<S>>
where S::EgressOnlyGatewayId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of a VPC Egress Only Internet Gateway.

source

pub fn maybe_egress_only_gateway_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouteArgsBuilder<SetEgressOnlyGatewayId<S>>
where S::EgressOnlyGatewayId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of a VPC Egress Only Internet Gateway.

source

pub fn gateway_id( self, value: impl Into<Output<Option<String>>>, ) -> RouteArgsBuilder<SetGatewayId<S>>
where S::GatewayId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of a VPC internet gateway or a virtual private gateway. Specify local when updating a previously imported local route.

source

pub fn maybe_gateway_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouteArgsBuilder<SetGatewayId<S>>
where S::GatewayId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of a VPC internet gateway or a virtual private gateway. Specify local when updating a previously imported local route.

source

pub fn local_gateway_id( self, value: impl Into<Output<Option<String>>>, ) -> RouteArgsBuilder<SetLocalGatewayId<S>>
where S::LocalGatewayId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of a Outpost local gateway.

source

pub fn maybe_local_gateway_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouteArgsBuilder<SetLocalGatewayId<S>>
where S::LocalGatewayId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of a Outpost local gateway.

source

pub fn nat_gateway_id( self, value: impl Into<Output<Option<String>>>, ) -> RouteArgsBuilder<SetNatGatewayId<S>>
where S::NatGatewayId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of a VPC NAT gateway.

source

pub fn maybe_nat_gateway_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouteArgsBuilder<SetNatGatewayId<S>>
where S::NatGatewayId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of a VPC NAT gateway.

source

pub fn network_interface_id( self, value: impl Into<Output<Option<String>>>, ) -> RouteArgsBuilder<SetNetworkInterfaceId<S>>
where S::NetworkInterfaceId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of an EC2 network interface.

source

pub fn maybe_network_interface_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouteArgsBuilder<SetNetworkInterfaceId<S>>
where S::NetworkInterfaceId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of an EC2 network interface.

source

pub fn route_table_id( self, value: impl Into<Output<String>>, ) -> RouteArgsBuilder<SetRouteTableId<S>>
where S::RouteTableId: IsUnset,

Required.

The ID of the routing table.

One of the following destination arguments must be supplied:

source

pub fn transit_gateway_id( self, value: impl Into<Output<Option<String>>>, ) -> RouteArgsBuilder<SetTransitGatewayId<S>>
where S::TransitGatewayId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of an EC2 Transit Gateway.

source

pub fn maybe_transit_gateway_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouteArgsBuilder<SetTransitGatewayId<S>>
where S::TransitGatewayId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of an EC2 Transit Gateway.

source

pub fn vpc_endpoint_id( self, value: impl Into<Output<Option<String>>>, ) -> RouteArgsBuilder<SetVpcEndpointId<S>>
where S::VpcEndpointId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of a VPC Endpoint.

source

pub fn maybe_vpc_endpoint_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouteArgsBuilder<SetVpcEndpointId<S>>
where S::VpcEndpointId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of a VPC Endpoint.

source

pub fn vpc_peering_connection_id( self, value: impl Into<Output<Option<String>>>, ) -> RouteArgsBuilder<SetVpcPeeringConnectionId<S>>
where S::VpcPeeringConnectionId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of a VPC peering connection.

Note that the default route, mapping the VPC’s CIDR block to “local”, is created implicitly and cannot be specified.

source

pub fn maybe_vpc_peering_connection_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouteArgsBuilder<SetVpcPeeringConnectionId<S>>
where S::VpcPeeringConnectionId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Identifier of a VPC peering connection.

Note that the default route, mapping the VPC’s CIDR block to “local”, is created implicitly and cannot be specified.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.