aws_sdk_databasemigration/client/
create_data_provider.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateDataProvider`](crate::operation::create_data_provider::builders::CreateDataProviderFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`data_provider_name(impl Into<String>)`](crate::operation::create_data_provider::builders::CreateDataProviderFluentBuilder::data_provider_name) / [`set_data_provider_name(Option<String>)`](crate::operation::create_data_provider::builders::CreateDataProviderFluentBuilder::set_data_provider_name):<br>required: **false**<br><p>A user-friendly name for the data provider.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_data_provider::builders::CreateDataProviderFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_data_provider::builders::CreateDataProviderFluentBuilder::set_description):<br>required: **false**<br><p>A user-friendly description of the data provider.</p><br>
    ///   - [`engine(impl Into<String>)`](crate::operation::create_data_provider::builders::CreateDataProviderFluentBuilder::engine) / [`set_engine(Option<String>)`](crate::operation::create_data_provider::builders::CreateDataProviderFluentBuilder::set_engine):<br>required: **true**<br><p>The type of database engine for the data provider. Valid values include <code>"aurora"</code>, <code>"aurora-postgresql"</code>, <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>, <code>"sqlserver"</code>, <code>redshift</code>, <code>mariadb</code>, <code>mongodb</code>, and <code>docdb</code>. A value of <code>"aurora"</code> represents Amazon Aurora MySQL-Compatible Edition.</p><br>
    ///   - [`settings(DataProviderSettings)`](crate::operation::create_data_provider::builders::CreateDataProviderFluentBuilder::settings) / [`set_settings(Option<DataProviderSettings>)`](crate::operation::create_data_provider::builders::CreateDataProviderFluentBuilder::set_settings):<br>required: **true**<br><p>The settings in JSON format for a data provider.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_data_provider::builders::CreateDataProviderFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_data_provider::builders::CreateDataProviderFluentBuilder::set_tags):<br>required: **false**<br><p>One or more tags to be assigned to the data provider.</p><br>
    /// - On success, responds with [`CreateDataProviderOutput`](crate::operation::create_data_provider::CreateDataProviderOutput) with field(s):
    ///   - [`data_provider(Option<DataProvider>)`](crate::operation::create_data_provider::CreateDataProviderOutput::data_provider): <p>The data provider that was created.</p>
    /// - On failure, responds with [`SdkError<CreateDataProviderError>`](crate::operation::create_data_provider::CreateDataProviderError)
    pub fn create_data_provider(&self) -> crate::operation::create_data_provider::builders::CreateDataProviderFluentBuilder {
        crate::operation::create_data_provider::builders::CreateDataProviderFluentBuilder::new(self.handle.clone())
    }
}