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 ==
.