#[non_exhaustive]pub struct PrimaryInstanceSettings {
pub id: String,
pub machine_config: Option<MachineConfig>,
pub database_flags: HashMap<String, String>,
pub labels: HashMap<String, String>,
pub private_ip: String,
/* private fields */
}Expand description
Settings for the cluster’s primary instance
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.id: StringRequired. The ID of the AlloyDB primary instance. The ID must satisfy the regex expression “[a-z0-9-]+”.
machine_config: Option<MachineConfig>Configuration for the machines that host the underlying database engine.
database_flags: HashMap<String, String>Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.
labels: HashMap<String, String>Labels for the AlloyDB primary instance created by DMS. An object containing a list of ‘key’, ‘value’ pairs.
private_ip: StringOutput only. The private IP address for the Instance. This is the connection endpoint for an end-user application.
Implementations§
Source§impl PrimaryInstanceSettings
impl PrimaryInstanceSettings
pub fn new() -> Self
Sourcepub fn set_machine_config<T>(self, v: T) -> Selfwhere
T: Into<MachineConfig>,
pub fn set_machine_config<T>(self, v: T) -> Selfwhere
T: Into<MachineConfig>,
Sets the value of machine_config.
Sourcepub fn set_or_clear_machine_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<MachineConfig>,
pub fn set_or_clear_machine_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<MachineConfig>,
Sets or clears the value of machine_config.
Sourcepub fn set_database_flags<T, K, V>(self, v: T) -> Self
pub fn set_database_flags<T, K, V>(self, v: T) -> Self
Sets the value of database_flags.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_private_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_private_ip<T: Into<String>>(self, v: T) -> Self
Sets the value of private_ip.
Trait Implementations§
Source§impl Clone for PrimaryInstanceSettings
impl Clone for PrimaryInstanceSettings
Source§fn clone(&self) -> PrimaryInstanceSettings
fn clone(&self) -> PrimaryInstanceSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more