Struct k8s_cluster_api::v1beta1::infrastructure::aws::AWSLoadBalancerSpec
source · [−]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
sourceimpl Clone for AWSLoadBalancerSpec
impl Clone for AWSLoadBalancerSpec
sourcefn clone(&self) -> AWSLoadBalancerSpec
fn clone(&self) -> AWSLoadBalancerSpec
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AWSLoadBalancerSpec
impl Debug for AWSLoadBalancerSpec
sourceimpl<'de> Deserialize<'de> for AWSLoadBalancerSpec
impl<'de> Deserialize<'de> for AWSLoadBalancerSpec
sourcefn 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
sourceimpl PartialEq<AWSLoadBalancerSpec> for AWSLoadBalancerSpec
impl PartialEq<AWSLoadBalancerSpec> for AWSLoadBalancerSpec
sourcefn eq(&self, other: &AWSLoadBalancerSpec) -> bool
fn eq(&self, other: &AWSLoadBalancerSpec) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AWSLoadBalancerSpec) -> bool
fn ne(&self, other: &AWSLoadBalancerSpec) -> bool
This method tests for !=
.
sourceimpl Serialize for AWSLoadBalancerSpec
impl Serialize for AWSLoadBalancerSpec
impl StructuralPartialEq for AWSLoadBalancerSpec
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more