#[non_exhaustive]pub struct ConnectNetworkConfig {
pub primary_subnet: String,
pub additional_subnets: Vec<String>,
pub dns_domain_names: Vec<String>,
/* private fields */
}Expand description
The configuration of a Virtual Private Cloud (VPC) network that can access the Kafka Connect 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.primary_subnet: StringRequired. VPC subnet to make available to the Kafka Connect cluster. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id}
It is used to create a Private Service Connect (PSC) interface for the Kafka Connect workers. It must be located in the same region as the Kafka Connect cluster.
The CIDR range of the subnet must be within the IPv4 address ranges for private networks, as specified in RFC 1918. The primary subnet CIDR range must have a minimum size of /22 (1024 addresses).
additional_subnets: Vec<String>Optional. Additional subnets may be specified. They may be in another region, but must be in the same VPC network. The Connect workers can communicate with network endpoints in either the primary or additional subnets.
dns_domain_names: Vec<String>Optional. Additional DNS domain names from the subnet’s network to be made visible to the Connect Cluster. When using MirrorMaker2, it’s necessary to add the bootstrap address’s dns domain name of the target cluster to make it visible to the connector. For example: my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog
Implementations§
Source§impl ConnectNetworkConfig
impl ConnectNetworkConfig
pub fn new() -> Self
Sourcepub fn set_primary_subnet<T: Into<String>>(self, v: T) -> Self
pub fn set_primary_subnet<T: Into<String>>(self, v: T) -> Self
Sets the value of primary_subnet.
Sourcepub fn set_additional_subnets<T, V>(self, v: T) -> Self
pub fn set_additional_subnets<T, V>(self, v: T) -> Self
Sets the value of additional_subnets.
Sourcepub fn set_dns_domain_names<T, V>(self, v: T) -> Self
pub fn set_dns_domain_names<T, V>(self, v: T) -> Self
Sets the value of dns_domain_names.
Trait Implementations§
Source§impl Clone for ConnectNetworkConfig
impl Clone for ConnectNetworkConfig
Source§fn clone(&self) -> ConnectNetworkConfig
fn clone(&self) -> ConnectNetworkConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more