aws_sdk_ec2/client/associate_route_server.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 [`AssociateRouteServer`](crate::operation::associate_route_server::builders::AssociateRouteServerFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`route_server_id(impl Into<String>)`](crate::operation::associate_route_server::builders::AssociateRouteServerFluentBuilder::route_server_id) / [`set_route_server_id(Option<String>)`](crate::operation::associate_route_server::builders::AssociateRouteServerFluentBuilder::set_route_server_id):<br>required: **true**<br><p>The unique identifier for the route server to be associated.</p><br>
7 /// - [`vpc_id(impl Into<String>)`](crate::operation::associate_route_server::builders::AssociateRouteServerFluentBuilder::vpc_id) / [`set_vpc_id(Option<String>)`](crate::operation::associate_route_server::builders::AssociateRouteServerFluentBuilder::set_vpc_id):<br>required: **true**<br><p>The ID of the VPC to associate with the route server.</p><br>
8 /// - [`dry_run(bool)`](crate::operation::associate_route_server::builders::AssociateRouteServerFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::associate_route_server::builders::AssociateRouteServerFluentBuilder::set_dry_run):<br>required: **false**<br><p>A check for 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>
9 /// - On success, responds with [`AssociateRouteServerOutput`](crate::operation::associate_route_server::AssociateRouteServerOutput) with field(s):
10 /// - [`route_server_association(Option<RouteServerAssociation>)`](crate::operation::associate_route_server::AssociateRouteServerOutput::route_server_association): <p>Information about the association between the route server and the VPC.</p>
11 /// - On failure, responds with [`SdkError<AssociateRouteServerError>`](crate::operation::associate_route_server::AssociateRouteServerError)
12 pub fn associate_route_server(&self) -> crate::operation::associate_route_server::builders::AssociateRouteServerFluentBuilder {
13 crate::operation::associate_route_server::builders::AssociateRouteServerFluentBuilder::new(self.handle.clone())
14 }
15}