#[non_exhaustive]pub struct Cluster {Show 26 fields
pub name: Option<String>,
pub arn: Option<String>,
pub created_at: Option<DateTime>,
pub version: Option<String>,
pub endpoint: Option<String>,
pub role_arn: Option<String>,
pub resources_vpc_config: Option<VpcConfigResponse>,
pub kubernetes_network_config: Option<KubernetesNetworkConfigResponse>,
pub logging: Option<Logging>,
pub identity: Option<Identity>,
pub status: Option<ClusterStatus>,
pub certificate_authority: Option<Certificate>,
pub client_request_token: Option<String>,
pub platform_version: Option<String>,
pub tags: Option<HashMap<String, String>>,
pub encryption_config: Option<Vec<EncryptionConfig>>,
pub connector_config: Option<ConnectorConfigResponse>,
pub id: Option<String>,
pub health: Option<ClusterHealth>,
pub outpost_config: Option<OutpostConfigResponse>,
pub access_config: Option<AccessConfigResponse>,
pub upgrade_policy: Option<UpgradePolicyResponse>,
pub zonal_shift_config: Option<ZonalShiftConfigResponse>,
pub remote_network_config: Option<RemoteNetworkConfigResponse>,
pub compute_config: Option<ComputeConfigResponse>,
pub storage_config: Option<StorageConfigResponse>,
}
Expand description
An object representing an Amazon EKS 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.name: Option<String>
The name of your cluster.
arn: Option<String>
The Amazon Resource Name (ARN) of the cluster.
created_at: Option<DateTime>
The Unix epoch timestamp at object creation.
version: Option<String>
The Kubernetes server version for the cluster.
endpoint: Option<String>
The endpoint for your Kubernetes API server.
role_arn: Option<String>
The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to Amazon Web Services API operations on your behalf.
resources_vpc_config: Option<VpcConfigResponse>
The VPC configuration used by the cluster control plane. Amazon EKS VPC resources have specific requirements to work properly with Kubernetes. For more information, see Cluster VPC considerations and Cluster security group considerations in the Amazon EKS User Guide.
kubernetes_network_config: Option<KubernetesNetworkConfigResponse>
The Kubernetes network configuration for the cluster.
logging: Option<Logging>
The logging configuration for your cluster.
identity: Option<Identity>
The identity provider information for the cluster.
status: Option<ClusterStatus>
The current status of the cluster.
The certificate-authority-data
for your cluster.
client_request_token: Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
platform_version: Option<String>
The platform version of your Amazon EKS cluster. For more information about clusters deployed on the Amazon Web Services Cloud, see Platform versions in the Amazon EKS User Guide . For more information about local clusters deployed on an Outpost, see Amazon EKS local cluster platform versions in the Amazon EKS User Guide .
Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.
encryption_config: Option<Vec<EncryptionConfig>>
The encryption configuration for the cluster.
connector_config: Option<ConnectorConfigResponse>
The configuration used to connect to a cluster for registration.
id: Option<String>
The ID of your local Amazon EKS cluster on an Amazon Web Services Outpost. This property isn't available for an Amazon EKS cluster on the Amazon Web Services cloud.
health: Option<ClusterHealth>
An object representing the health of your Amazon EKS cluster.
outpost_config: Option<OutpostConfigResponse>
An object representing the configuration of your local Amazon EKS cluster on an Amazon Web Services Outpost. This object isn't available for clusters on the Amazon Web Services cloud.
access_config: Option<AccessConfigResponse>
The access configuration for the cluster.
upgrade_policy: Option<UpgradePolicyResponse>
This value indicates if extended support is enabled or disabled for the cluster.
Learn more about EKS Extended Support in the Amazon EKS User Guide.
zonal_shift_config: Option<ZonalShiftConfigResponse>
The configuration for zonal shift for the cluster.
remote_network_config: Option<RemoteNetworkConfigResponse>
The configuration in the cluster for EKS Hybrid Nodes. You can add, change, or remove this configuration after the cluster is created.
compute_config: Option<ComputeConfigResponse>
Indicates the current configuration of the compute capability on your EKS Auto Mode cluster. For example, if the capability is enabled or disabled. If the compute capability is enabled, EKS Auto Mode will create and delete EC2 Managed Instances in your Amazon Web Services account. For more information, see EKS Auto Mode compute capability in the Amazon EKS User Guide.
storage_config: Option<StorageConfigResponse>
Indicates the current configuration of the block storage capability on your EKS Auto Mode cluster. For example, if the capability is enabled or disabled. If the block storage capability is enabled, EKS Auto Mode will create and delete EBS volumes in your Amazon Web Services account. For more information, see EKS Auto Mode block storage capability in the Amazon EKS User Guide.
Implementations§
Source§impl Cluster
impl Cluster
Sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The Unix epoch timestamp at object creation.
Sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to Amazon Web Services API operations on your behalf.
Sourcepub fn resources_vpc_config(&self) -> Option<&VpcConfigResponse>
pub fn resources_vpc_config(&self) -> Option<&VpcConfigResponse>
The VPC configuration used by the cluster control plane. Amazon EKS VPC resources have specific requirements to work properly with Kubernetes. For more information, see Cluster VPC considerations and Cluster security group considerations in the Amazon EKS User Guide.
Sourcepub fn kubernetes_network_config(
&self,
) -> Option<&KubernetesNetworkConfigResponse>
pub fn kubernetes_network_config( &self, ) -> Option<&KubernetesNetworkConfigResponse>
The Kubernetes network configuration for the cluster.
Sourcepub fn status(&self) -> Option<&ClusterStatus>
pub fn status(&self) -> Option<&ClusterStatus>
The current status of the cluster.
The certificate-authority-data
for your cluster.
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 platform_version(&self) -> Option<&str>
pub fn platform_version(&self) -> Option<&str>
The platform version of your Amazon EKS cluster. For more information about clusters deployed on the Amazon Web Services Cloud, see Platform versions in the Amazon EKS User Guide . For more information about local clusters deployed on an Outpost, see Amazon EKS local cluster platform versions in the Amazon EKS User Guide .
Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.
Sourcepub fn encryption_config(&self) -> &[EncryptionConfig]
pub fn encryption_config(&self) -> &[EncryptionConfig]
The encryption configuration for the cluster.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .encryption_config.is_none()
.
Sourcepub fn connector_config(&self) -> Option<&ConnectorConfigResponse>
pub fn connector_config(&self) -> Option<&ConnectorConfigResponse>
The configuration used to connect to a cluster for registration.
Sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
The ID of your local Amazon EKS cluster on an Amazon Web Services Outpost. This property isn't available for an Amazon EKS cluster on the Amazon Web Services cloud.
Sourcepub fn health(&self) -> Option<&ClusterHealth>
pub fn health(&self) -> Option<&ClusterHealth>
An object representing the health of your Amazon EKS cluster.
Sourcepub fn outpost_config(&self) -> Option<&OutpostConfigResponse>
pub fn outpost_config(&self) -> Option<&OutpostConfigResponse>
An object representing the configuration of your local Amazon EKS cluster on an Amazon Web Services Outpost. This object isn't available for clusters on the Amazon Web Services cloud.
Sourcepub fn access_config(&self) -> Option<&AccessConfigResponse>
pub fn access_config(&self) -> Option<&AccessConfigResponse>
The access configuration for the cluster.
Sourcepub fn upgrade_policy(&self) -> Option<&UpgradePolicyResponse>
pub fn upgrade_policy(&self) -> Option<&UpgradePolicyResponse>
This value indicates if extended support is enabled or disabled for the cluster.
Learn more about EKS Extended Support in the Amazon EKS User Guide.
Sourcepub fn zonal_shift_config(&self) -> Option<&ZonalShiftConfigResponse>
pub fn zonal_shift_config(&self) -> Option<&ZonalShiftConfigResponse>
The configuration for zonal shift for the cluster.
Sourcepub fn remote_network_config(&self) -> Option<&RemoteNetworkConfigResponse>
pub fn remote_network_config(&self) -> Option<&RemoteNetworkConfigResponse>
The configuration in the cluster for EKS Hybrid Nodes. You can add, change, or remove this configuration after the cluster is created.
Sourcepub fn compute_config(&self) -> Option<&ComputeConfigResponse>
pub fn compute_config(&self) -> Option<&ComputeConfigResponse>
Indicates the current configuration of the compute capability on your EKS Auto Mode cluster. For example, if the capability is enabled or disabled. If the compute capability is enabled, EKS Auto Mode will create and delete EC2 Managed Instances in your Amazon Web Services account. For more information, see EKS Auto Mode compute capability in the Amazon EKS User Guide.
Sourcepub fn storage_config(&self) -> Option<&StorageConfigResponse>
pub fn storage_config(&self) -> Option<&StorageConfigResponse>
Indicates the current configuration of the block storage capability on your EKS Auto Mode cluster. For example, if the capability is enabled or disabled. If the block storage capability is enabled, EKS Auto Mode will create and delete EBS volumes in your Amazon Web Services account. For more information, see EKS Auto Mode block storage capability in the Amazon EKS User Guide.
Trait Implementations§
impl StructuralPartialEq for Cluster
Auto Trait Implementations§
impl Freeze for Cluster
impl RefUnwindSafe for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl UnwindSafe for Cluster
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);