pub struct Builder { /* private fields */ }
Expand description

A builder for CreateRouteInput.

Implementations§

The IPv4 CIDR address block used for the destination match. Routing decisions are based on the most specific match. We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.

Examples found in repository?
src/client.rs (line 20597)
20596
20597
20598
20599
        pub fn destination_cidr_block(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.destination_cidr_block(input.into());
            self
        }

The IPv4 CIDR address block used for the destination match. Routing decisions are based on the most specific match. We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.

Examples found in repository?
src/client.rs (line 20605)
20601
20602
20603
20604
20605
20606
20607
        pub fn set_destination_cidr_block(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_destination_cidr_block(input);
            self
        }

The IPv6 CIDR block used for the destination match. Routing decisions are based on the most specific match.

Examples found in repository?
src/client.rs (line 20613)
20609
20610
20611
20612
20613
20614
20615
        pub fn destination_ipv6_cidr_block(
            mut self,
            input: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.destination_ipv6_cidr_block(input.into());
            self
        }

The IPv6 CIDR block used for the destination match. Routing decisions are based on the most specific match.

Examples found in repository?
src/client.rs (line 20621)
20617
20618
20619
20620
20621
20622
20623
        pub fn set_destination_ipv6_cidr_block(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_destination_ipv6_cidr_block(input);
            self
        }

The ID of a prefix list used for the destination match.

Examples found in repository?
src/client.rs (line 20626)
20625
20626
20627
20628
        pub fn destination_prefix_list_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.destination_prefix_list_id(input.into());
            self
        }

The ID of a prefix list used for the destination match.

Examples found in repository?
src/client.rs (line 20634)
20630
20631
20632
20633
20634
20635
20636
        pub fn set_destination_prefix_list_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_destination_prefix_list_id(input);
            self
        }

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 is UnauthorizedOperation.

Examples found in repository?
src/client.rs (line 20639)
20638
20639
20640
20641
        pub fn dry_run(mut self, input: bool) -> Self {
            self.inner = self.inner.dry_run(input);
            self
        }

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 is UnauthorizedOperation.

Examples found in repository?
src/client.rs (line 20644)
20643
20644
20645
20646
        pub fn set_dry_run(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_dry_run(input);
            self
        }

The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints only.

Examples found in repository?
src/client.rs (line 20649)
20648
20649
20650
20651
        pub fn vpc_endpoint_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.vpc_endpoint_id(input.into());
            self
        }

The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints only.

Examples found in repository?
src/client.rs (line 20657)
20653
20654
20655
20656
20657
20658
20659
        pub fn set_vpc_endpoint_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_vpc_endpoint_id(input);
            self
        }

[IPv6 traffic only] The ID of an egress-only internet gateway.

Examples found in repository?
src/client.rs (line 20665)
20661
20662
20663
20664
20665
20666
20667
        pub fn egress_only_internet_gateway_id(
            mut self,
            input: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.egress_only_internet_gateway_id(input.into());
            self
        }

[IPv6 traffic only] The ID of an egress-only internet gateway.

Examples found in repository?
src/client.rs (line 20673)
20669
20670
20671
20672
20673
20674
20675
        pub fn set_egress_only_internet_gateway_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_egress_only_internet_gateway_id(input);
            self
        }

The ID of an internet gateway or virtual private gateway attached to your VPC.

Examples found in repository?
src/client.rs (line 20678)
20677
20678
20679
20680
        pub fn gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.gateway_id(input.into());
            self
        }

The ID of an internet gateway or virtual private gateway attached to your VPC.

Examples found in repository?
src/client.rs (line 20683)
20682
20683
20684
20685
        pub fn set_gateway_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_gateway_id(input);
            self
        }

The ID of a NAT instance in your VPC. The operation fails if you specify an instance ID unless exactly one network interface is attached.

Examples found in repository?
src/client.rs (line 20688)
20687
20688
20689
20690
        pub fn instance_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.instance_id(input.into());
            self
        }

The ID of a NAT instance in your VPC. The operation fails if you specify an instance ID unless exactly one network interface is attached.

Examples found in repository?
src/client.rs (line 20693)
20692
20693
20694
20695
        pub fn set_instance_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_instance_id(input);
            self
        }

[IPv4 traffic only] The ID of a NAT gateway.

Examples found in repository?
src/client.rs (line 20698)
20697
20698
20699
20700
        pub fn nat_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.nat_gateway_id(input.into());
            self
        }

[IPv4 traffic only] The ID of a NAT gateway.

Examples found in repository?
src/client.rs (line 20706)
20702
20703
20704
20705
20706
20707
20708
        pub fn set_nat_gateway_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_nat_gateway_id(input);
            self
        }

The ID of a transit gateway.

Examples found in repository?
src/client.rs (line 20711)
20710
20711
20712
20713
        pub fn transit_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.transit_gateway_id(input.into());
            self
        }

The ID of a transit gateway.

Examples found in repository?
src/client.rs (line 20719)
20715
20716
20717
20718
20719
20720
20721
        pub fn set_transit_gateway_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_transit_gateway_id(input);
            self
        }

The ID of the local gateway.

Examples found in repository?
src/client.rs (line 20724)
20723
20724
20725
20726
        pub fn local_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.local_gateway_id(input.into());
            self
        }

The ID of the local gateway.

Examples found in repository?
src/client.rs (line 20732)
20728
20729
20730
20731
20732
20733
20734
        pub fn set_local_gateway_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_local_gateway_id(input);
            self
        }

The ID of the carrier gateway.

You can only use this option when the VPC contains a subnet which is associated with a Wavelength Zone.

Examples found in repository?
src/client.rs (line 20738)
20737
20738
20739
20740
        pub fn carrier_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.carrier_gateway_id(input.into());
            self
        }

The ID of the carrier gateway.

You can only use this option when the VPC contains a subnet which is associated with a Wavelength Zone.

Examples found in repository?
src/client.rs (line 20747)
20743
20744
20745
20746
20747
20748
20749
        pub fn set_carrier_gateway_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_carrier_gateway_id(input);
            self
        }

The ID of a network interface.

Examples found in repository?
src/client.rs (line 20752)
20751
20752
20753
20754
        pub fn network_interface_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.network_interface_id(input.into());
            self
        }

The ID of a network interface.

Examples found in repository?
src/client.rs (line 20760)
20756
20757
20758
20759
20760
20761
20762
        pub fn set_network_interface_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_network_interface_id(input);
            self
        }

The ID of the route table for the route.

Examples found in repository?
src/client.rs (line 20765)
20764
20765
20766
20767
        pub fn route_table_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.route_table_id(input.into());
            self
        }

The ID of the route table for the route.

Examples found in repository?
src/client.rs (line 20773)
20769
20770
20771
20772
20773
20774
20775
        pub fn set_route_table_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_route_table_id(input);
            self
        }

The ID of a VPC peering connection.

Examples found in repository?
src/client.rs (line 20778)
20777
20778
20779
20780
        pub fn vpc_peering_connection_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.vpc_peering_connection_id(input.into());
            self
        }

The ID of a VPC peering connection.

Examples found in repository?
src/client.rs (line 20786)
20782
20783
20784
20785
20786
20787
20788
        pub fn set_vpc_peering_connection_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_vpc_peering_connection_id(input);
            self
        }

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

Examples found in repository?
src/client.rs (line 20791)
20790
20791
20792
20793
        pub fn core_network_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.core_network_arn(input.into());
            self
        }

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

Examples found in repository?
src/client.rs (line 20799)
20795
20796
20797
20798
20799
20800
20801
        pub fn set_core_network_arn(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_core_network_arn(input);
            self
        }

Consumes the builder and constructs a CreateRouteInput.

Examples found in repository?
src/client.rs (line 20564)
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateRoute,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateRouteError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// Sends the request and returns the response.
        ///
        /// If an error occurs, an `SdkError` will be returned with additional details that
        /// can be matched against.
        ///
        /// By default, any retryable failures will be retried twice. Retry behavior
        /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::CreateRouteOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateRouteError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more