aws_sdk_rds/client/
create_db_parameter_group.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 [`CreateDBParameterGroup`](crate::operation::create_db_parameter_group::builders::CreateDBParameterGroupFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`db_parameter_group_name(impl Into<String>)`](crate::operation::create_db_parameter_group::builders::CreateDBParameterGroupFluentBuilder::db_parameter_group_name) / [`set_db_parameter_group_name(Option<String>)`](crate::operation::create_db_parameter_group::builders::CreateDBParameterGroupFluentBuilder::set_db_parameter_group_name):<br>required: **true**<br><p>The name of the DB parameter group.</p> <p>Constraints:</p> <ul>  <li>   <p>Must be 1 to 255 letters, numbers, or hyphens.</p></li>  <li>   <p>First character must be a letter</p></li>  <li>   <p>Can't end with a hyphen or contain two consecutive hyphens</p></li> </ul><note>  <p>This value is stored as a lowercase string.</p> </note><br>
7    ///   - [`db_parameter_group_family(impl Into<String>)`](crate::operation::create_db_parameter_group::builders::CreateDBParameterGroupFluentBuilder::db_parameter_group_family) / [`set_db_parameter_group_family(Option<String>)`](crate::operation::create_db_parameter_group::builders::CreateDBParameterGroupFluentBuilder::set_db_parameter_group_family):<br>required: **true**<br><p>The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be applied only to a DB instance running a database engine and engine version compatible with that DB parameter group family.</p> <p>To list all of the available parameter group families for a DB engine, use the following command:</p> <p><code>aws rds describe-db-engine-versions --query "DBEngineVersions\[\].DBParameterGroupFamily" --engine</code></p> <p>For example, to list all of the available parameter group families for the MySQL DB engine, use the following command:</p> <p><code>aws rds describe-db-engine-versions --query "DBEngineVersions\[\].DBParameterGroupFamily" --engine mysql</code></p><note>  <p>The output contains duplicates.</p> </note> <p>The following are the valid DB engine values:</p> <ul>  <li>   <p><code>aurora-mysql</code></p></li>  <li>   <p><code>aurora-postgresql</code></p></li>  <li>   <p><code>db2-ae</code></p></li>  <li>   <p><code>db2-se</code></p></li>  <li>   <p><code>mysql</code></p></li>  <li>   <p><code>oracle-ee</code></p></li>  <li>   <p><code>oracle-ee-cdb</code></p></li>  <li>   <p><code>oracle-se2</code></p></li>  <li>   <p><code>oracle-se2-cdb</code></p></li>  <li>   <p><code>postgres</code></p></li>  <li>   <p><code>sqlserver-ee</code></p></li>  <li>   <p><code>sqlserver-se</code></p></li>  <li>   <p><code>sqlserver-ex</code></p></li>  <li>   <p><code>sqlserver-web</code></p></li> </ul><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::create_db_parameter_group::builders::CreateDBParameterGroupFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_db_parameter_group::builders::CreateDBParameterGroupFluentBuilder::set_description):<br>required: **true**<br><p>The description for the DB parameter group.</p><br>
9    ///   - [`tags(Tag)`](crate::operation::create_db_parameter_group::builders::CreateDBParameterGroupFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_db_parameter_group::builders::CreateDBParameterGroupFluentBuilder::set_tags):<br>required: **false**<br><p>Tags to assign to the DB parameter group.</p><br>
10    /// - On success, responds with [`CreateDbParameterGroupOutput`](crate::operation::create_db_parameter_group::CreateDbParameterGroupOutput) with field(s):
11    ///   - [`db_parameter_group(Option<DbParameterGroup>)`](crate::operation::create_db_parameter_group::CreateDbParameterGroupOutput::db_parameter_group): <p>Contains the details of an Amazon RDS DB parameter group.</p> <p>This data type is used as a response element in the <code>DescribeDBParameterGroups</code> action.</p>
12    /// - On failure, responds with [`SdkError<CreateDBParameterGroupError>`](crate::operation::create_db_parameter_group::CreateDBParameterGroupError)
13    pub fn create_db_parameter_group(&self) -> crate::operation::create_db_parameter_group::builders::CreateDBParameterGroupFluentBuilder {
14        crate::operation::create_db_parameter_group::builders::CreateDBParameterGroupFluentBuilder::new(self.handle.clone())
15    }
16}