Struct aws_sdk_securityhub::types::AwsEcsClusterDetails
source · #[non_exhaustive]pub struct AwsEcsClusterDetails {
pub cluster_arn: Option<String>,
pub active_services_count: Option<i32>,
pub capacity_providers: Option<Vec<String>>,
pub cluster_settings: Option<Vec<AwsEcsClusterClusterSettingsDetails>>,
pub configuration: Option<AwsEcsClusterConfigurationDetails>,
pub default_capacity_provider_strategy: Option<Vec<AwsEcsClusterDefaultCapacityProviderStrategyDetails>>,
pub cluster_name: Option<String>,
pub registered_container_instances_count: Option<i32>,
pub running_tasks_count: Option<i32>,
pub status: Option<String>,
}
Expand description
Provides details about an Amazon ECS 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.cluster_arn: Option<String>
The Amazon Resource Name (ARN) that identifies the cluster.
active_services_count: Option<i32>
The number of services that are running on the cluster in an ACTIVE
state. You can view these services with the Amazon ECS ListServices
API operation.
capacity_providers: Option<Vec<String>>
The short name of one or more capacity providers to associate with the cluster.
cluster_settings: Option<Vec<AwsEcsClusterClusterSettingsDetails>>
The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights for the cluster.
configuration: Option<AwsEcsClusterConfigurationDetails>
The run command configuration for the cluster.
default_capacity_provider_strategy: Option<Vec<AwsEcsClusterDefaultCapacityProviderStrategyDetails>>
The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.
cluster_name: Option<String>
A name that you use to identify your cluster.
registered_container_instances_count: Option<i32>
The number of container instances registered into the cluster. This includes container instances in both ACTIVE
and DRAINING
status.
running_tasks_count: Option<i32>
The number of tasks in the cluster that are in the RUNNING
state.
status: Option<String>
The status of the cluster.
Implementations§
source§impl AwsEcsClusterDetails
impl AwsEcsClusterDetails
sourcepub fn cluster_arn(&self) -> Option<&str>
pub fn cluster_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) that identifies the cluster.
sourcepub fn active_services_count(&self) -> Option<i32>
pub fn active_services_count(&self) -> Option<i32>
The number of services that are running on the cluster in an ACTIVE
state. You can view these services with the Amazon ECS ListServices
API operation.
sourcepub fn capacity_providers(&self) -> &[String]
pub fn capacity_providers(&self) -> &[String]
The short name of one or more capacity providers to associate with 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 .capacity_providers.is_none()
.
sourcepub fn cluster_settings(&self) -> &[AwsEcsClusterClusterSettingsDetails]
pub fn cluster_settings(&self) -> &[AwsEcsClusterClusterSettingsDetails]
The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights 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 .cluster_settings.is_none()
.
sourcepub fn configuration(&self) -> Option<&AwsEcsClusterConfigurationDetails>
pub fn configuration(&self) -> Option<&AwsEcsClusterConfigurationDetails>
The run command configuration for the cluster.
sourcepub fn default_capacity_provider_strategy(
&self
) -> &[AwsEcsClusterDefaultCapacityProviderStrategyDetails]
pub fn default_capacity_provider_strategy( &self ) -> &[AwsEcsClusterDefaultCapacityProviderStrategyDetails]
The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .default_capacity_provider_strategy.is_none()
.
sourcepub fn cluster_name(&self) -> Option<&str>
pub fn cluster_name(&self) -> Option<&str>
A name that you use to identify your cluster.
sourcepub fn registered_container_instances_count(&self) -> Option<i32>
pub fn registered_container_instances_count(&self) -> Option<i32>
The number of container instances registered into the cluster. This includes container instances in both ACTIVE
and DRAINING
status.
sourcepub fn running_tasks_count(&self) -> Option<i32>
pub fn running_tasks_count(&self) -> Option<i32>
The number of tasks in the cluster that are in the RUNNING
state.
source§impl AwsEcsClusterDetails
impl AwsEcsClusterDetails
sourcepub fn builder() -> AwsEcsClusterDetailsBuilder
pub fn builder() -> AwsEcsClusterDetailsBuilder
Creates a new builder-style object to manufacture AwsEcsClusterDetails
.
Trait Implementations§
source§impl Clone for AwsEcsClusterDetails
impl Clone for AwsEcsClusterDetails
source§fn clone(&self) -> AwsEcsClusterDetails
fn clone(&self) -> AwsEcsClusterDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsEcsClusterDetails
impl Debug for AwsEcsClusterDetails
source§impl PartialEq for AwsEcsClusterDetails
impl PartialEq for AwsEcsClusterDetails
source§fn eq(&self, other: &AwsEcsClusterDetails) -> bool
fn eq(&self, other: &AwsEcsClusterDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsEcsClusterDetails
Auto Trait Implementations§
impl Freeze for AwsEcsClusterDetails
impl RefUnwindSafe for AwsEcsClusterDetails
impl Send for AwsEcsClusterDetails
impl Sync for AwsEcsClusterDetails
impl Unpin for AwsEcsClusterDetails
impl UnwindSafe for AwsEcsClusterDetails
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> 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 more