#[non_exhaustive]pub struct AwsEcsServiceDetails {Show 22 fields
pub capacity_provider_strategy: Option<Vec<AwsEcsServiceCapacityProviderStrategyDetails>>,
pub cluster: Option<String>,
pub deployment_configuration: Option<AwsEcsServiceDeploymentConfigurationDetails>,
pub deployment_controller: Option<AwsEcsServiceDeploymentControllerDetails>,
pub desired_count: Option<i32>,
pub enable_ecs_managed_tags: Option<bool>,
pub enable_execute_command: Option<bool>,
pub health_check_grace_period_seconds: Option<i32>,
pub launch_type: Option<String>,
pub load_balancers: Option<Vec<AwsEcsServiceLoadBalancersDetails>>,
pub name: Option<String>,
pub network_configuration: Option<AwsEcsServiceNetworkConfigurationDetails>,
pub placement_constraints: Option<Vec<AwsEcsServicePlacementConstraintsDetails>>,
pub placement_strategies: Option<Vec<AwsEcsServicePlacementStrategiesDetails>>,
pub platform_version: Option<String>,
pub propagate_tags: Option<String>,
pub role: Option<String>,
pub scheduling_strategy: Option<String>,
pub service_arn: Option<String>,
pub service_name: Option<String>,
pub service_registries: Option<Vec<AwsEcsServiceServiceRegistriesDetails>>,
pub task_definition: Option<String>,
}
Expand description
Provides details about a service within an 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.capacity_provider_strategy: Option<Vec<AwsEcsServiceCapacityProviderStrategyDetails>>
The capacity provider strategy that the service uses.
cluster: Option<String>
The ARN of the cluster that hosts the service.
deployment_configuration: Option<AwsEcsServiceDeploymentConfigurationDetails>
Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
deployment_controller: Option<AwsEcsServiceDeploymentControllerDetails>
Contains the deployment controller type that the service uses.
desired_count: Option<i32>
The number of instantiations of the task definition to run on the service.
Whether to enable Amazon ECS managed tags for the tasks in the service.
enable_execute_command: Option<bool>
Whether the execute command functionality is enabled for the service.
health_check_grace_period_seconds: Option<i32>
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.
launch_type: Option<String>
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
load_balancers: Option<Vec<AwsEcsServiceLoadBalancersDetails>>
Information about the load balancers that the service uses.
name: Option<String>
The name of the service.
network_configuration: Option<AwsEcsServiceNetworkConfigurationDetails>
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
placement_constraints: Option<Vec<AwsEcsServicePlacementConstraintsDetails>>
The placement constraints for the tasks in the service.
placement_strategies: Option<Vec<AwsEcsServicePlacementStrategiesDetails>>
Information about how tasks for the service are placed.
platform_version: Option<String>
The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If a platform version is not specified, the LATEST
platform version is used by default.
Indicates whether to propagate the tags from the task definition to the task or from the service to the task. If no value is provided, then tags are not propagated.
Valid values: TASK_DEFINITION
| SERVICE
role: Option<String>
The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.
scheduling_strategy: Option<String>
The scheduling strategy to use for the service.
The REPLICA
scheduling strategy places and maintains the desired number of tasks across the cluster. By default, the service scheduler spreads tasks across Availability Zones. Task placement strategies and constraints are used to customize task placement decisions.
The DAEMON
scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that are specified in the cluster. The service scheduler also evaluates the task placement constraints for running tasks and stops tasks that don't meet the placement constraints.
Valid values: REPLICA
| DAEMON
service_arn: Option<String>
The ARN of the service.
service_name: Option<String>
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
service_registries: Option<Vec<AwsEcsServiceServiceRegistriesDetails>>
Information about the service discovery registries to assign to the service.
task_definition: Option<String>
The task definition to use for tasks in the service.
Implementations§
Source§impl AwsEcsServiceDetails
impl AwsEcsServiceDetails
Sourcepub fn capacity_provider_strategy(
&self,
) -> &[AwsEcsServiceCapacityProviderStrategyDetails]
pub fn capacity_provider_strategy( &self, ) -> &[AwsEcsServiceCapacityProviderStrategyDetails]
The capacity provider strategy that the service uses.
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_provider_strategy.is_none()
.
Sourcepub fn deployment_configuration(
&self,
) -> Option<&AwsEcsServiceDeploymentConfigurationDetails>
pub fn deployment_configuration( &self, ) -> Option<&AwsEcsServiceDeploymentConfigurationDetails>
Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
Sourcepub fn deployment_controller(
&self,
) -> Option<&AwsEcsServiceDeploymentControllerDetails>
pub fn deployment_controller( &self, ) -> Option<&AwsEcsServiceDeploymentControllerDetails>
Contains the deployment controller type that the service uses.
Sourcepub fn desired_count(&self) -> Option<i32>
pub fn desired_count(&self) -> Option<i32>
The number of instantiations of the task definition to run on the service.
Whether to enable Amazon ECS managed tags for the tasks in the service.
Sourcepub fn enable_execute_command(&self) -> Option<bool>
pub fn enable_execute_command(&self) -> Option<bool>
Whether the execute command functionality is enabled for the service.
Sourcepub fn health_check_grace_period_seconds(&self) -> Option<i32>
pub fn health_check_grace_period_seconds(&self) -> Option<i32>
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.
Sourcepub fn launch_type(&self) -> Option<&str>
pub fn launch_type(&self) -> Option<&str>
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
Sourcepub fn load_balancers(&self) -> &[AwsEcsServiceLoadBalancersDetails]
pub fn load_balancers(&self) -> &[AwsEcsServiceLoadBalancersDetails]
Information about the load balancers that the service uses.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .load_balancers.is_none()
.
Sourcepub fn network_configuration(
&self,
) -> Option<&AwsEcsServiceNetworkConfigurationDetails>
pub fn network_configuration( &self, ) -> Option<&AwsEcsServiceNetworkConfigurationDetails>
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
Sourcepub fn placement_constraints(
&self,
) -> &[AwsEcsServicePlacementConstraintsDetails]
pub fn placement_constraints( &self, ) -> &[AwsEcsServicePlacementConstraintsDetails]
The placement constraints for the tasks in the service.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .placement_constraints.is_none()
.
Sourcepub fn placement_strategies(&self) -> &[AwsEcsServicePlacementStrategiesDetails]
pub fn placement_strategies(&self) -> &[AwsEcsServicePlacementStrategiesDetails]
Information about how tasks for the service are placed.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .placement_strategies.is_none()
.
Sourcepub fn platform_version(&self) -> Option<&str>
pub fn platform_version(&self) -> Option<&str>
The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If a platform version is not specified, the LATEST
platform version is used by default.
Indicates whether to propagate the tags from the task definition to the task or from the service to the task. If no value is provided, then tags are not propagated.
Valid values: TASK_DEFINITION
| SERVICE
Sourcepub fn role(&self) -> Option<&str>
pub fn role(&self) -> Option<&str>
The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.
Sourcepub fn scheduling_strategy(&self) -> Option<&str>
pub fn scheduling_strategy(&self) -> Option<&str>
The scheduling strategy to use for the service.
The REPLICA
scheduling strategy places and maintains the desired number of tasks across the cluster. By default, the service scheduler spreads tasks across Availability Zones. Task placement strategies and constraints are used to customize task placement decisions.
The DAEMON
scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that are specified in the cluster. The service scheduler also evaluates the task placement constraints for running tasks and stops tasks that don't meet the placement constraints.
Valid values: REPLICA
| DAEMON
Sourcepub fn service_arn(&self) -> Option<&str>
pub fn service_arn(&self) -> Option<&str>
The ARN of the service.
Sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
Sourcepub fn service_registries(&self) -> &[AwsEcsServiceServiceRegistriesDetails]
pub fn service_registries(&self) -> &[AwsEcsServiceServiceRegistriesDetails]
Information about the service discovery registries to assign to the service.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .service_registries.is_none()
.
Sourcepub fn task_definition(&self) -> Option<&str>
pub fn task_definition(&self) -> Option<&str>
The task definition to use for tasks in the service.
Source§impl AwsEcsServiceDetails
impl AwsEcsServiceDetails
Sourcepub fn builder() -> AwsEcsServiceDetailsBuilder
pub fn builder() -> AwsEcsServiceDetailsBuilder
Creates a new builder-style object to manufacture AwsEcsServiceDetails
.
Trait Implementations§
Source§impl Clone for AwsEcsServiceDetails
impl Clone for AwsEcsServiceDetails
Source§fn clone(&self) -> AwsEcsServiceDetails
fn clone(&self) -> AwsEcsServiceDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AwsEcsServiceDetails
impl Debug for AwsEcsServiceDetails
Source§impl PartialEq for AwsEcsServiceDetails
impl PartialEq for AwsEcsServiceDetails
impl StructuralPartialEq for AwsEcsServiceDetails
Auto Trait Implementations§
impl Freeze for AwsEcsServiceDetails
impl RefUnwindSafe for AwsEcsServiceDetails
impl Send for AwsEcsServiceDetails
impl Sync for AwsEcsServiceDetails
impl Unpin for AwsEcsServiceDetails
impl UnwindSafe for AwsEcsServiceDetails
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);