Struct aws_sdk_securityhub::types::AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
source · #[non_exhaustive]pub struct AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails {
pub command: Option<Vec<String>>,
pub interval: Option<i32>,
pub retries: Option<i32>,
pub start_period: Option<i32>,
pub timeout: Option<i32>,
}
Expand description
The container health check command and associated configuration parameters for the container.
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.command: Option<Vec<String>>
The command that the container runs to determine whether it is healthy.
interval: Option<i32>
The time period in seconds between each health check execution. The default value is 30 seconds.
retries: Option<i32>
The number of times to retry a failed health check before the container is considered unhealthy. The default value is 3.
start_period: Option<i32>
The optional grace period in seconds that allows containers time to bootstrap before failed health checks count towards the maximum number of retries.
timeout: Option<i32>
The time period in seconds to wait for a health check to succeed before it is considered a failure. The default value is 5.
Implementations§
source§impl AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
impl AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
sourcepub fn command(&self) -> &[String]
pub fn command(&self) -> &[String]
The command that the container runs to determine whether it is healthy.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .command.is_none()
.
sourcepub fn interval(&self) -> Option<i32>
pub fn interval(&self) -> Option<i32>
The time period in seconds between each health check execution. The default value is 30 seconds.
sourcepub fn retries(&self) -> Option<i32>
pub fn retries(&self) -> Option<i32>
The number of times to retry a failed health check before the container is considered unhealthy. The default value is 3.
sourcepub fn start_period(&self) -> Option<i32>
pub fn start_period(&self) -> Option<i32>
The optional grace period in seconds that allows containers time to bootstrap before failed health checks count towards the maximum number of retries.
source§impl AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
impl AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
sourcepub fn builder(
) -> AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
pub fn builder( ) -> AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
Creates a new builder-style object to manufacture AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
.
Trait Implementations§
source§impl Clone for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
impl Clone for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
source§fn clone(&self) -> AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
fn clone(&self) -> AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
impl PartialEq for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
source§fn eq(
&self,
other: &AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
) -> bool
fn eq( &self, other: &AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails ) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
Auto Trait Implementations§
impl Freeze for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
impl RefUnwindSafe for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
impl Send for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
impl Sync for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
impl Unpin for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
impl UnwindSafe for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
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