aws_sdk_rds/client/
create_db_proxy_endpoint.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateDBProxyEndpoint`](crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`db_proxy_name(impl Into<String>)`](crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder::db_proxy_name) / [`set_db_proxy_name(Option<String>)`](crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder::set_db_proxy_name):<br>required: **true**<br><p>The name of the DB proxy associated with the DB proxy endpoint that you create.</p><br>
    ///   - [`db_proxy_endpoint_name(impl Into<String>)`](crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder::db_proxy_endpoint_name) / [`set_db_proxy_endpoint_name(Option<String>)`](crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder::set_db_proxy_endpoint_name):<br>required: **true**<br><p>The name of the DB proxy endpoint to create.</p><br>
    ///   - [`vpc_subnet_ids(impl Into<String>)`](crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder::vpc_subnet_ids) / [`set_vpc_subnet_ids(Option<Vec::<String>>)`](crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder::set_vpc_subnet_ids):<br>required: **true**<br><p>The VPC subnet IDs for the DB proxy endpoint that you create. You can specify a different set of subnet IDs than for the original DB proxy.</p><br>
    ///   - [`vpc_security_group_ids(impl Into<String>)`](crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder::vpc_security_group_ids) / [`set_vpc_security_group_ids(Option<Vec::<String>>)`](crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder::set_vpc_security_group_ids):<br>required: **false**<br><p>The VPC security group IDs for the DB proxy endpoint that you create. You can specify a different set of security group IDs than for the original DB proxy. The default is the default security group for the VPC.</p><br>
    ///   - [`target_role(DbProxyEndpointTargetRole)`](crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder::target_role) / [`set_target_role(Option<DbProxyEndpointTargetRole>)`](crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder::set_target_role):<br>required: **false**<br><p>The role of the DB proxy endpoint. The role determines whether the endpoint can be used for read/write or only read operations. The default is <code>READ_WRITE</code>. The only role that proxies for RDS for Microsoft SQL Server support is <code>READ_WRITE</code>.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder::set_tags):<br>required: **false**<br><p>A list of tags.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS resources</a> in the <i>Amazon RDS User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html">Tagging Amazon Aurora and Amazon RDS resources</a> in the <i>Amazon Aurora User Guide</i>.</p><br>
    /// - On success, responds with [`CreateDbProxyEndpointOutput`](crate::operation::create_db_proxy_endpoint::CreateDbProxyEndpointOutput) with field(s):
    ///   - [`db_proxy_endpoint(Option<DbProxyEndpoint>)`](crate::operation::create_db_proxy_endpoint::CreateDbProxyEndpointOutput::db_proxy_endpoint): <p>The <code>DBProxyEndpoint</code> object that is created by the API operation. The DB proxy endpoint that you create might provide capabilities such as read/write or read-only operations, or using a different VPC than the proxy's default VPC.</p>
    /// - On failure, responds with [`SdkError<CreateDBProxyEndpointError>`](crate::operation::create_db_proxy_endpoint::CreateDBProxyEndpointError)
    pub fn create_db_proxy_endpoint(&self) -> crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder {
        crate::operation::create_db_proxy_endpoint::builders::CreateDBProxyEndpointFluentBuilder::new(self.handle.clone())
    }
}