1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ModifyGlobalCluster`](crate::operation::modify_global_cluster::builders::ModifyGlobalClusterFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`global_cluster_identifier(impl Into<String>)`](crate::operation::modify_global_cluster::builders::ModifyGlobalClusterFluentBuilder::global_cluster_identifier) / [`set_global_cluster_identifier(Option<String>)`](crate::operation::modify_global_cluster::builders::ModifyGlobalClusterFluentBuilder::set_global_cluster_identifier): <p>The DB cluster identifier for the global cluster being modified. This parameter isn't case-sensitive.</p>  <p>Constraints:</p>  <ul>   <li> <p>Must match the identifier of an existing global database cluster.</p> </li>  </ul>
    ///   - [`new_global_cluster_identifier(impl Into<String>)`](crate::operation::modify_global_cluster::builders::ModifyGlobalClusterFluentBuilder::new_global_cluster_identifier) / [`set_new_global_cluster_identifier(Option<String>)`](crate::operation::modify_global_cluster::builders::ModifyGlobalClusterFluentBuilder::set_new_global_cluster_identifier): <p>The new cluster identifier for the global database cluster when modifying a global database cluster. This value is stored as a lowercase string.</p>  <p>Constraints:</p>  <ul>   <li> <p>Must contain from 1 to 63 letters, numbers, or hyphens</p> </li>   <li> <p>The first character must be a letter</p> </li>   <li> <p>Can't end with a hyphen or contain two consecutive hyphens</p> </li>  </ul>  <p>Example: <code>my-cluster2</code> </p>
    ///   - [`deletion_protection(bool)`](crate::operation::modify_global_cluster::builders::ModifyGlobalClusterFluentBuilder::deletion_protection) / [`set_deletion_protection(Option<bool>)`](crate::operation::modify_global_cluster::builders::ModifyGlobalClusterFluentBuilder::set_deletion_protection): <p>Indicates if the global database cluster has deletion protection enabled. The global database cluster can't be deleted when deletion protection is enabled.</p>
    ///   - [`engine_version(impl Into<String>)`](crate::operation::modify_global_cluster::builders::ModifyGlobalClusterFluentBuilder::engine_version) / [`set_engine_version(Option<String>)`](crate::operation::modify_global_cluster::builders::ModifyGlobalClusterFluentBuilder::set_engine_version): <p>The version number of the database engine to which you want to upgrade. Changing this parameter results in an outage. The change is applied during the next maintenance window unless <code>ApplyImmediately</code> is enabled.</p>  <p>To list all of the available engine versions for <code>aurora</code> (for MySQL 5.6-compatible Aurora), use the following command:</p>  <p> <code>aws rds describe-db-engine-versions --engine aurora --query '*[]|[?SupportsGlobalDatabases == `true`].[EngineVersion]'</code> </p>  <p>To list all of the available engine versions for <code>aurora-mysql</code> (for MySQL 5.7-compatible and MySQL 8.0-compatible Aurora), use the following command:</p>  <p> <code>aws rds describe-db-engine-versions --engine aurora-mysql --query '*[]|[?SupportsGlobalDatabases == `true`].[EngineVersion]'</code> </p>  <p>To list all of the available engine versions for <code>aurora-postgresql</code>, use the following command:</p>  <p> <code>aws rds describe-db-engine-versions --engine aurora-postgresql --query '*[]|[?SupportsGlobalDatabases == `true`].[EngineVersion]'</code> </p>
    ///   - [`allow_major_version_upgrade(bool)`](crate::operation::modify_global_cluster::builders::ModifyGlobalClusterFluentBuilder::allow_major_version_upgrade) / [`set_allow_major_version_upgrade(Option<bool>)`](crate::operation::modify_global_cluster::builders::ModifyGlobalClusterFluentBuilder::set_allow_major_version_upgrade): <p>A value that indicates whether major version upgrades are allowed.</p>  <p>Constraints: You must allow major version upgrades when specifying a value for the <code>EngineVersion</code> parameter that is a different major version than the DB cluster's current version.</p>  <p>If you upgrade the major version of a global database, the cluster and DB instance parameter groups are set to the default parameter groups for the new version. Apply any custom parameter groups after completing the upgrade.</p>
    /// - On success, responds with [`ModifyGlobalClusterOutput`](crate::operation::modify_global_cluster::ModifyGlobalClusterOutput) with field(s):
    ///   - [`global_cluster(Option<GlobalCluster>)`](crate::operation::modify_global_cluster::ModifyGlobalClusterOutput::global_cluster): <p>A data type representing an Aurora global database.</p>
    /// - On failure, responds with [`SdkError<ModifyGlobalClusterError>`](crate::operation::modify_global_cluster::ModifyGlobalClusterError)
    pub fn modify_global_cluster(
        &self,
    ) -> crate::operation::modify_global_cluster::builders::ModifyGlobalClusterFluentBuilder {
        crate::operation::modify_global_cluster::builders::ModifyGlobalClusterFluentBuilder::new(
            self.handle.clone(),
        )
    }
}