Struct k8s_cluster_api::v1beta1::infrastructure::aws::AWSLoadBalancerSpec [−][src]
pub struct AWSLoadBalancerSpec {
pub name: Option<String>,
pub scheme: Option<ClassicELBScheme>,
pub cross_zone_load_balancing: Option<bool>,
pub subnets: Option<Vec<String>>,
pub additional_security_groups: Option<Vec<String>>,
}
Expand description
AWSLoadBalancerSpec defines the desired state of an AWS load balancer.
Fields
name: Option<String>
Name sets the name of the classic ELB load balancer. As per AWS, the name must be unique
within your set of load balancers for the region, must have a maximum of 32 characters, must
contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen. Once
set, the value cannot be changed.
+kubebuilder:validation:MaxLength:=32
+kubebuilder:validation:Pattern=^[A-Za-z0-9]([A-Za-z0-9]{0,31}|[-A-Za-z0-9]{0,30}[A-Za-z0-9])$
scheme: Option<ClassicELBScheme>
Scheme sets the scheme of the load balancer (defaults to internet-facing) +kubebuilder:default=internet-facing +kubebuilder:validation:Enum=internet-facing;internal
cross_zone_load_balancing: Option<bool>
CrossZoneLoadBalancing enables the classic ELB cross availability zone balancing.
With cross-zone load balancing, each load balancer node for your Classic Load Balancer distributes requests evenly across the registered instances in all enabled Availability Zones. If cross-zone load balancing is disabled, each load balancer node distributes requests evenly across the registered instances in its Availability Zone only.
Defaults to false.
subnets: Option<Vec<String>>
Subnets sets the subnets that should be applied to the control plane load balancer (defaults to discovered subnets for managed VPCs or an empty set for unmanaged VPCs)
additional_security_groups: Option<Vec<String>>
AdditionalSecurityGroups sets the security groups used by the load balancer. Expected to be security group IDs This is optional - if not provided new security groups will be created for the load balancer
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AWSLoadBalancerSpec
impl Send for AWSLoadBalancerSpec
impl Sync for AWSLoadBalancerSpec
impl Unpin for AWSLoadBalancerSpec
impl UnwindSafe for AWSLoadBalancerSpec
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more