#[non_exhaustive]pub struct AlloyDbSettings {
pub initial_user: Option<UserPassword>,
pub vpc_network: String,
pub labels: HashMap<String, String>,
pub primary_instance_settings: Option<PrimaryInstanceSettings>,
pub encryption_config: Option<EncryptionConfig>,
/* private fields */
}Expand description
Settings for creating an AlloyDB cluster.
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.initial_user: Option<UserPassword>Required. Input only. Initial user to setup during cluster creation. Required.
vpc_network: StringRequired. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: “projects/{project_number}/global/networks/{network_id}”. This is required to create a cluster.
labels: HashMap<String, String>Labels for the AlloyDB cluster created by DMS. An object containing a list of ‘key’, ‘value’ pairs.
primary_instance_settings: Option<PrimaryInstanceSettings>§encryption_config: Option<EncryptionConfig>Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.
Implementations§
Source§impl AlloyDbSettings
impl AlloyDbSettings
pub fn new() -> Self
Sourcepub fn set_initial_user<T>(self, v: T) -> Selfwhere
T: Into<UserPassword>,
pub fn set_initial_user<T>(self, v: T) -> Selfwhere
T: Into<UserPassword>,
Sets the value of initial_user.
Sourcepub fn set_or_clear_initial_user<T>(self, v: Option<T>) -> Selfwhere
T: Into<UserPassword>,
pub fn set_or_clear_initial_user<T>(self, v: Option<T>) -> Selfwhere
T: Into<UserPassword>,
Sets or clears the value of initial_user.
Sourcepub fn set_vpc_network<T: Into<String>>(self, v: T) -> Self
pub fn set_vpc_network<T: Into<String>>(self, v: T) -> Self
Sets the value of vpc_network.
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_primary_instance_settings<T>(self, v: T) -> Selfwhere
T: Into<PrimaryInstanceSettings>,
pub fn set_primary_instance_settings<T>(self, v: T) -> Selfwhere
T: Into<PrimaryInstanceSettings>,
Sets the value of primary_instance_settings.
Sourcepub fn set_or_clear_primary_instance_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<PrimaryInstanceSettings>,
pub fn set_or_clear_primary_instance_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<PrimaryInstanceSettings>,
Sets or clears the value of primary_instance_settings.
Sourcepub fn set_encryption_config<T>(self, v: T) -> Selfwhere
T: Into<EncryptionConfig>,
pub fn set_encryption_config<T>(self, v: T) -> Selfwhere
T: Into<EncryptionConfig>,
Sets the value of encryption_config.
Sourcepub fn set_or_clear_encryption_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionConfig>,
pub fn set_or_clear_encryption_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionConfig>,
Sets or clears the value of encryption_config.
Trait Implementations§
Source§impl Clone for AlloyDbSettings
impl Clone for AlloyDbSettings
Source§fn clone(&self) -> AlloyDbSettings
fn clone(&self) -> AlloyDbSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more