#[non_exhaustive]pub struct CreateGlobalClusterInput {
pub global_cluster_identifier: Option<String>,
pub source_db_cluster_identifier: Option<String>,
pub engine: Option<String>,
pub engine_version: Option<String>,
pub engine_lifecycle_support: Option<String>,
pub deletion_protection: Option<bool>,
pub database_name: Option<String>,
pub storage_encrypted: Option<bool>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.global_cluster_identifier: Option<String>The cluster identifier for this global database cluster. This parameter is stored as a lowercase string.
source_db_cluster_identifier: Option<String>The Amazon Resource Name (ARN) to use as the primary cluster of the global database.
If you provide a value for this parameter, don't specify values for the following settings because Amazon Aurora uses the values from the specified source DB cluster:
-
DatabaseName -
Engine -
EngineVersion -
StorageEncrypted
engine: Option<String>The database engine to use for this global database cluster.
Valid Values: aurora-mysql | aurora-postgresql
Constraints:
-
Can't be specified if
SourceDBClusterIdentifieris specified. In this case, Amazon Aurora uses the engine of the source DB cluster.
engine_version: Option<String>The engine version to use for this global database cluster.
Constraints:
-
Can't be specified if
SourceDBClusterIdentifieris specified. In this case, Amazon Aurora uses the engine version of the source DB cluster.
engine_lifecycle_support: Option<String>The life cycle type for this global database cluster.
By default, this value is set to open-source-rds-extended-support, which enrolls your global cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled. In this case, creating the global cluster will fail if the DB major version is past its end of standard support date.
This setting only applies to Aurora PostgreSQL-based global databases.
You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your global cluster past the end of standard support for that engine version. For more information, see Using Amazon RDS Extended Support in the Amazon Aurora User Guide.
Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled
Default: open-source-rds-extended-support
deletion_protection: Option<bool>Specifies whether to enable deletion protection for the new global database cluster. The global database can't be deleted when deletion protection is enabled.
database_name: Option<String>The name for your database of up to 64 alphanumeric characters. If you don't specify a name, Amazon Aurora doesn't create a database in the global database cluster.
Constraints:
-
Can't be specified if
SourceDBClusterIdentifieris specified. In this case, Amazon Aurora uses the database name from the source DB cluster.
storage_encrypted: Option<bool>Specifies whether to enable storage encryption for the new global database cluster.
Constraints:
-
Can't be specified if
SourceDBClusterIdentifieris specified. In this case, Amazon Aurora uses the setting from the source DB cluster.
Implementations§
source§impl CreateGlobalClusterInput
impl CreateGlobalClusterInput
sourcepub fn global_cluster_identifier(&self) -> Option<&str>
pub fn global_cluster_identifier(&self) -> Option<&str>
The cluster identifier for this global database cluster. This parameter is stored as a lowercase string.
sourcepub fn source_db_cluster_identifier(&self) -> Option<&str>
pub fn source_db_cluster_identifier(&self) -> Option<&str>
The Amazon Resource Name (ARN) to use as the primary cluster of the global database.
If you provide a value for this parameter, don't specify values for the following settings because Amazon Aurora uses the values from the specified source DB cluster:
-
DatabaseName -
Engine -
EngineVersion -
StorageEncrypted
sourcepub fn engine(&self) -> Option<&str>
pub fn engine(&self) -> Option<&str>
The database engine to use for this global database cluster.
Valid Values: aurora-mysql | aurora-postgresql
Constraints:
-
Can't be specified if
SourceDBClusterIdentifieris specified. In this case, Amazon Aurora uses the engine of the source DB cluster.
sourcepub fn engine_version(&self) -> Option<&str>
pub fn engine_version(&self) -> Option<&str>
The engine version to use for this global database cluster.
Constraints:
-
Can't be specified if
SourceDBClusterIdentifieris specified. In this case, Amazon Aurora uses the engine version of the source DB cluster.
sourcepub fn engine_lifecycle_support(&self) -> Option<&str>
pub fn engine_lifecycle_support(&self) -> Option<&str>
The life cycle type for this global database cluster.
By default, this value is set to open-source-rds-extended-support, which enrolls your global cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled. In this case, creating the global cluster will fail if the DB major version is past its end of standard support date.
This setting only applies to Aurora PostgreSQL-based global databases.
You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your global cluster past the end of standard support for that engine version. For more information, see Using Amazon RDS Extended Support in the Amazon Aurora User Guide.
Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled
Default: open-source-rds-extended-support
sourcepub fn deletion_protection(&self) -> Option<bool>
pub fn deletion_protection(&self) -> Option<bool>
Specifies whether to enable deletion protection for the new global database cluster. The global database can't be deleted when deletion protection is enabled.
sourcepub fn database_name(&self) -> Option<&str>
pub fn database_name(&self) -> Option<&str>
The name for your database of up to 64 alphanumeric characters. If you don't specify a name, Amazon Aurora doesn't create a database in the global database cluster.
Constraints:
-
Can't be specified if
SourceDBClusterIdentifieris specified. In this case, Amazon Aurora uses the database name from the source DB cluster.
sourcepub fn storage_encrypted(&self) -> Option<bool>
pub fn storage_encrypted(&self) -> Option<bool>
Specifies whether to enable storage encryption for the new global database cluster.
Constraints:
-
Can't be specified if
SourceDBClusterIdentifieris specified. In this case, Amazon Aurora uses the setting from the source DB cluster.
source§impl CreateGlobalClusterInput
impl CreateGlobalClusterInput
sourcepub fn builder() -> CreateGlobalClusterInputBuilder
pub fn builder() -> CreateGlobalClusterInputBuilder
Creates a new builder-style object to manufacture CreateGlobalClusterInput.
Trait Implementations§
source§impl Clone for CreateGlobalClusterInput
impl Clone for CreateGlobalClusterInput
source§fn clone(&self) -> CreateGlobalClusterInput
fn clone(&self) -> CreateGlobalClusterInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateGlobalClusterInput
impl Debug for CreateGlobalClusterInput
source§impl PartialEq for CreateGlobalClusterInput
impl PartialEq for CreateGlobalClusterInput
source§fn eq(&self, other: &CreateGlobalClusterInput) -> bool
fn eq(&self, other: &CreateGlobalClusterInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateGlobalClusterInput
Auto Trait Implementations§
impl Freeze for CreateGlobalClusterInput
impl RefUnwindSafe for CreateGlobalClusterInput
impl Send for CreateGlobalClusterInput
impl Sync for CreateGlobalClusterInput
impl Unpin for CreateGlobalClusterInput
impl UnwindSafe for CreateGlobalClusterInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more