#[non_exhaustive]pub struct UpdateClusterConfigInput {
pub name: Option<String>,
pub resources_vpc_config: Option<VpcConfigRequest>,
pub logging: Option<Logging>,
pub client_request_token: Option<String>,
pub access_config: Option<UpdateAccessConfigRequest>,
pub upgrade_policy: Option<UpgradePolicyRequest>,
pub zonal_shift_config: Option<ZonalShiftConfigRequest>,
pub compute_config: Option<ComputeConfigRequest>,
pub kubernetes_network_config: Option<KubernetesNetworkConfigRequest>,
pub storage_config: Option<StorageConfigRequest>,
pub remote_network_config: Option<RemoteNetworkConfigRequest>,
pub deletion_protection: Option<bool>,
}
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.name: Option<String>
The name of the Amazon EKS cluster to update.
resources_vpc_config: Option<VpcConfigRequest>
An object representing the VPC configuration to use for an Amazon EKS cluster.
logging: Option<Logging>
Enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs . By default, cluster control plane logs aren't exported to CloudWatch Logs . For more information, see Amazon EKS cluster control plane logs in the Amazon EKS User Guide .
CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see CloudWatch Pricing.
client_request_token: Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
access_config: Option<UpdateAccessConfigRequest>
The access configuration for the cluster.
upgrade_policy: Option<UpgradePolicyRequest>
You can enable or disable extended support for clusters currently on standard support. You cannot disable extended support once it starts. You must enable extended support before your cluster exits standard support.
zonal_shift_config: Option<ZonalShiftConfigRequest>
Enable or disable ARC zonal shift for the cluster. If zonal shift is enabled, Amazon Web Services configures zonal autoshift for the cluster.
Zonal shift is a feature of Amazon Application Recovery Controller (ARC). ARC zonal shift is designed to be a temporary measure that allows you to move traffic for a resource away from an impaired AZ until the zonal shift expires or you cancel it. You can extend the zonal shift if necessary.
You can start a zonal shift for an EKS cluster, or you can allow Amazon Web Services to do it for you by enabling zonal autoshift. This shift updates the flow of east-to-west network traffic in your cluster to only consider network endpoints for Pods running on worker nodes in healthy AZs. Additionally, any ALB or NLB handling ingress traffic for applications in your EKS cluster will automatically route traffic to targets in the healthy AZs. For more information about zonal shift in EKS, see Learn about Amazon Application Recovery Controller (ARC) Zonal Shift in Amazon EKS in the Amazon EKS User Guide .
compute_config: Option<ComputeConfigRequest>
Update the configuration of the compute capability of your EKS Auto Mode cluster. For example, enable the capability.
kubernetes_network_config: Option<KubernetesNetworkConfigRequest>
The Kubernetes network configuration for the cluster.
storage_config: Option<StorageConfigRequest>
Update the configuration of the block storage capability of your EKS Auto Mode cluster. For example, enable the capability.
remote_network_config: Option<RemoteNetworkConfigRequest>
The configuration in the cluster for EKS Hybrid Nodes. You can add, change, or remove this configuration after the cluster is created.
deletion_protection: Option<bool>
Specifies whether to enable or disable deletion protection for the cluster. When enabled (true
), the cluster cannot be deleted until deletion protection is explicitly disabled. When disabled (false
), the cluster can be deleted normally.
Implementations§
Source§impl UpdateClusterConfigInput
impl UpdateClusterConfigInput
Sourcepub fn resources_vpc_config(&self) -> Option<&VpcConfigRequest>
pub fn resources_vpc_config(&self) -> Option<&VpcConfigRequest>
An object representing the VPC configuration to use for an Amazon EKS cluster.
Sourcepub fn logging(&self) -> Option<&Logging>
pub fn logging(&self) -> Option<&Logging>
Enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs . By default, cluster control plane logs aren't exported to CloudWatch Logs . For more information, see Amazon EKS cluster control plane logs in the Amazon EKS User Guide .
CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see CloudWatch Pricing.
Sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Sourcepub fn access_config(&self) -> Option<&UpdateAccessConfigRequest>
pub fn access_config(&self) -> Option<&UpdateAccessConfigRequest>
The access configuration for the cluster.
Sourcepub fn upgrade_policy(&self) -> Option<&UpgradePolicyRequest>
pub fn upgrade_policy(&self) -> Option<&UpgradePolicyRequest>
You can enable or disable extended support for clusters currently on standard support. You cannot disable extended support once it starts. You must enable extended support before your cluster exits standard support.
Sourcepub fn zonal_shift_config(&self) -> Option<&ZonalShiftConfigRequest>
pub fn zonal_shift_config(&self) -> Option<&ZonalShiftConfigRequest>
Enable or disable ARC zonal shift for the cluster. If zonal shift is enabled, Amazon Web Services configures zonal autoshift for the cluster.
Zonal shift is a feature of Amazon Application Recovery Controller (ARC). ARC zonal shift is designed to be a temporary measure that allows you to move traffic for a resource away from an impaired AZ until the zonal shift expires or you cancel it. You can extend the zonal shift if necessary.
You can start a zonal shift for an EKS cluster, or you can allow Amazon Web Services to do it for you by enabling zonal autoshift. This shift updates the flow of east-to-west network traffic in your cluster to only consider network endpoints for Pods running on worker nodes in healthy AZs. Additionally, any ALB or NLB handling ingress traffic for applications in your EKS cluster will automatically route traffic to targets in the healthy AZs. For more information about zonal shift in EKS, see Learn about Amazon Application Recovery Controller (ARC) Zonal Shift in Amazon EKS in the Amazon EKS User Guide .
Sourcepub fn compute_config(&self) -> Option<&ComputeConfigRequest>
pub fn compute_config(&self) -> Option<&ComputeConfigRequest>
Update the configuration of the compute capability of your EKS Auto Mode cluster. For example, enable the capability.
Sourcepub fn kubernetes_network_config(
&self,
) -> Option<&KubernetesNetworkConfigRequest>
pub fn kubernetes_network_config( &self, ) -> Option<&KubernetesNetworkConfigRequest>
The Kubernetes network configuration for the cluster.
Sourcepub fn storage_config(&self) -> Option<&StorageConfigRequest>
pub fn storage_config(&self) -> Option<&StorageConfigRequest>
Update the configuration of the block storage capability of your EKS Auto Mode cluster. For example, enable the capability.
Sourcepub fn remote_network_config(&self) -> Option<&RemoteNetworkConfigRequest>
pub fn remote_network_config(&self) -> Option<&RemoteNetworkConfigRequest>
The configuration in the cluster for EKS Hybrid Nodes. You can add, change, or remove this configuration after the cluster is created.
Sourcepub fn deletion_protection(&self) -> Option<bool>
pub fn deletion_protection(&self) -> Option<bool>
Specifies whether to enable or disable deletion protection for the cluster. When enabled (true
), the cluster cannot be deleted until deletion protection is explicitly disabled. When disabled (false
), the cluster can be deleted normally.
Source§impl UpdateClusterConfigInput
impl UpdateClusterConfigInput
Sourcepub fn builder() -> UpdateClusterConfigInputBuilder
pub fn builder() -> UpdateClusterConfigInputBuilder
Creates a new builder-style object to manufacture UpdateClusterConfigInput
.
Trait Implementations§
Source§impl Clone for UpdateClusterConfigInput
impl Clone for UpdateClusterConfigInput
Source§fn clone(&self) -> UpdateClusterConfigInput
fn clone(&self) -> UpdateClusterConfigInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UpdateClusterConfigInput
impl Debug for UpdateClusterConfigInput
Source§impl PartialEq for UpdateClusterConfigInput
impl PartialEq for UpdateClusterConfigInput
impl StructuralPartialEq for UpdateClusterConfigInput
Auto Trait Implementations§
impl Freeze for UpdateClusterConfigInput
impl RefUnwindSafe for UpdateClusterConfigInput
impl Send for UpdateClusterConfigInput
impl Sync for UpdateClusterConfigInput
impl Unpin for UpdateClusterConfigInput
impl UnwindSafe for UpdateClusterConfigInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);