#[non_exhaustive]pub struct AwsEcsServiceDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsEcsServiceDetails
.
Implementations§
Source§impl AwsEcsServiceDetailsBuilder
impl AwsEcsServiceDetailsBuilder
Sourcepub fn capacity_provider_strategy(
self,
input: AwsEcsServiceCapacityProviderStrategyDetails,
) -> Self
pub fn capacity_provider_strategy( self, input: AwsEcsServiceCapacityProviderStrategyDetails, ) -> Self
Appends an item to capacity_provider_strategy
.
To override the contents of this collection use set_capacity_provider_strategy
.
The capacity provider strategy that the service uses.
Sourcepub fn set_capacity_provider_strategy(
self,
input: Option<Vec<AwsEcsServiceCapacityProviderStrategyDetails>>,
) -> Self
pub fn set_capacity_provider_strategy( self, input: Option<Vec<AwsEcsServiceCapacityProviderStrategyDetails>>, ) -> Self
The capacity provider strategy that the service uses.
Sourcepub fn get_capacity_provider_strategy(
&self,
) -> &Option<Vec<AwsEcsServiceCapacityProviderStrategyDetails>>
pub fn get_capacity_provider_strategy( &self, ) -> &Option<Vec<AwsEcsServiceCapacityProviderStrategyDetails>>
The capacity provider strategy that the service uses.
Sourcepub fn cluster(self, input: impl Into<String>) -> Self
pub fn cluster(self, input: impl Into<String>) -> Self
The ARN of the cluster that hosts the service.
Sourcepub fn set_cluster(self, input: Option<String>) -> Self
pub fn set_cluster(self, input: Option<String>) -> Self
The ARN of the cluster that hosts the service.
Sourcepub fn get_cluster(&self) -> &Option<String>
pub fn get_cluster(&self) -> &Option<String>
The ARN of the cluster that hosts the service.
Sourcepub fn deployment_configuration(
self,
input: AwsEcsServiceDeploymentConfigurationDetails,
) -> Self
pub fn deployment_configuration( self, input: AwsEcsServiceDeploymentConfigurationDetails, ) -> Self
Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
Sourcepub fn set_deployment_configuration(
self,
input: Option<AwsEcsServiceDeploymentConfigurationDetails>,
) -> Self
pub fn set_deployment_configuration( self, input: Option<AwsEcsServiceDeploymentConfigurationDetails>, ) -> Self
Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
Sourcepub fn get_deployment_configuration(
&self,
) -> &Option<AwsEcsServiceDeploymentConfigurationDetails>
pub fn get_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,
input: AwsEcsServiceDeploymentControllerDetails,
) -> Self
pub fn deployment_controller( self, input: AwsEcsServiceDeploymentControllerDetails, ) -> Self
Contains the deployment controller type that the service uses.
Sourcepub fn set_deployment_controller(
self,
input: Option<AwsEcsServiceDeploymentControllerDetails>,
) -> Self
pub fn set_deployment_controller( self, input: Option<AwsEcsServiceDeploymentControllerDetails>, ) -> Self
Contains the deployment controller type that the service uses.
Sourcepub fn get_deployment_controller(
&self,
) -> &Option<AwsEcsServiceDeploymentControllerDetails>
pub fn get_deployment_controller( &self, ) -> &Option<AwsEcsServiceDeploymentControllerDetails>
Contains the deployment controller type that the service uses.
Sourcepub fn desired_count(self, input: i32) -> Self
pub fn desired_count(self, input: i32) -> Self
The number of instantiations of the task definition to run on the service.
Sourcepub fn set_desired_count(self, input: Option<i32>) -> Self
pub fn set_desired_count(self, input: Option<i32>) -> Self
The number of instantiations of the task definition to run on the service.
Sourcepub fn get_desired_count(&self) -> &Option<i32>
pub fn get_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.
Whether to enable Amazon ECS managed tags for the tasks in the service.
Whether to enable Amazon ECS managed tags for the tasks in the service.
Sourcepub fn enable_execute_command(self, input: bool) -> Self
pub fn enable_execute_command(self, input: bool) -> Self
Whether the execute command functionality is enabled for the service.
Sourcepub fn set_enable_execute_command(self, input: Option<bool>) -> Self
pub fn set_enable_execute_command(self, input: Option<bool>) -> Self
Whether the execute command functionality is enabled for the service.
Sourcepub fn get_enable_execute_command(&self) -> &Option<bool>
pub fn get_enable_execute_command(&self) -> &Option<bool>
Whether the execute command functionality is enabled for the service.
Sourcepub fn health_check_grace_period_seconds(self, input: i32) -> Self
pub fn health_check_grace_period_seconds(self, input: i32) -> Self
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 set_health_check_grace_period_seconds(self, input: Option<i32>) -> Self
pub fn set_health_check_grace_period_seconds(self, input: Option<i32>) -> Self
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 get_health_check_grace_period_seconds(&self) -> &Option<i32>
pub fn get_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, input: impl Into<String>) -> Self
pub fn launch_type(self, input: impl Into<String>) -> Self
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
Sourcepub fn set_launch_type(self, input: Option<String>) -> Self
pub fn set_launch_type(self, input: Option<String>) -> Self
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
Sourcepub fn get_launch_type(&self) -> &Option<String>
pub fn get_launch_type(&self) -> &Option<String>
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
Sourcepub fn load_balancers(self, input: AwsEcsServiceLoadBalancersDetails) -> Self
pub fn load_balancers(self, input: AwsEcsServiceLoadBalancersDetails) -> Self
Appends an item to load_balancers
.
To override the contents of this collection use set_load_balancers
.
Information about the load balancers that the service uses.
Sourcepub fn set_load_balancers(
self,
input: Option<Vec<AwsEcsServiceLoadBalancersDetails>>,
) -> Self
pub fn set_load_balancers( self, input: Option<Vec<AwsEcsServiceLoadBalancersDetails>>, ) -> Self
Information about the load balancers that the service uses.
Sourcepub fn get_load_balancers(
&self,
) -> &Option<Vec<AwsEcsServiceLoadBalancersDetails>>
pub fn get_load_balancers( &self, ) -> &Option<Vec<AwsEcsServiceLoadBalancersDetails>>
Information about the load balancers that the service uses.
Sourcepub fn network_configuration(
self,
input: AwsEcsServiceNetworkConfigurationDetails,
) -> Self
pub fn network_configuration( self, input: AwsEcsServiceNetworkConfigurationDetails, ) -> Self
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
Sourcepub fn set_network_configuration(
self,
input: Option<AwsEcsServiceNetworkConfigurationDetails>,
) -> Self
pub fn set_network_configuration( self, input: Option<AwsEcsServiceNetworkConfigurationDetails>, ) -> Self
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
Sourcepub fn get_network_configuration(
&self,
) -> &Option<AwsEcsServiceNetworkConfigurationDetails>
pub fn get_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,
input: AwsEcsServicePlacementConstraintsDetails,
) -> Self
pub fn placement_constraints( self, input: AwsEcsServicePlacementConstraintsDetails, ) -> Self
Appends an item to placement_constraints
.
To override the contents of this collection use set_placement_constraints
.
The placement constraints for the tasks in the service.
Sourcepub fn set_placement_constraints(
self,
input: Option<Vec<AwsEcsServicePlacementConstraintsDetails>>,
) -> Self
pub fn set_placement_constraints( self, input: Option<Vec<AwsEcsServicePlacementConstraintsDetails>>, ) -> Self
The placement constraints for the tasks in the service.
Sourcepub fn get_placement_constraints(
&self,
) -> &Option<Vec<AwsEcsServicePlacementConstraintsDetails>>
pub fn get_placement_constraints( &self, ) -> &Option<Vec<AwsEcsServicePlacementConstraintsDetails>>
The placement constraints for the tasks in the service.
Sourcepub fn placement_strategies(
self,
input: AwsEcsServicePlacementStrategiesDetails,
) -> Self
pub fn placement_strategies( self, input: AwsEcsServicePlacementStrategiesDetails, ) -> Self
Appends an item to placement_strategies
.
To override the contents of this collection use set_placement_strategies
.
Information about how tasks for the service are placed.
Sourcepub fn set_placement_strategies(
self,
input: Option<Vec<AwsEcsServicePlacementStrategiesDetails>>,
) -> Self
pub fn set_placement_strategies( self, input: Option<Vec<AwsEcsServicePlacementStrategiesDetails>>, ) -> Self
Information about how tasks for the service are placed.
Sourcepub fn get_placement_strategies(
&self,
) -> &Option<Vec<AwsEcsServicePlacementStrategiesDetails>>
pub fn get_placement_strategies( &self, ) -> &Option<Vec<AwsEcsServicePlacementStrategiesDetails>>
Information about how tasks for the service are placed.
Sourcepub fn platform_version(self, input: impl Into<String>) -> Self
pub fn platform_version(self, input: impl Into<String>) -> Self
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.
Sourcepub fn set_platform_version(self, input: Option<String>) -> Self
pub fn set_platform_version(self, input: Option<String>) -> Self
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.
Sourcepub fn get_platform_version(&self) -> &Option<String>
pub fn get_platform_version(&self) -> &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
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
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, input: impl Into<String>) -> Self
pub fn role(self, input: impl Into<String>) -> Self
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 set_role(self, input: Option<String>) -> Self
pub fn set_role(self, input: Option<String>) -> Self
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 get_role(&self) -> &Option<String>
pub fn get_role(&self) -> &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.
Sourcepub fn scheduling_strategy(self, input: impl Into<String>) -> Self
pub fn scheduling_strategy(self, input: impl Into<String>) -> Self
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 set_scheduling_strategy(self, input: Option<String>) -> Self
pub fn set_scheduling_strategy(self, input: Option<String>) -> Self
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 get_scheduling_strategy(&self) -> &Option<String>
pub fn get_scheduling_strategy(&self) -> &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
Sourcepub fn service_arn(self, input: impl Into<String>) -> Self
pub fn service_arn(self, input: impl Into<String>) -> Self
The ARN of the service.
Sourcepub fn set_service_arn(self, input: Option<String>) -> Self
pub fn set_service_arn(self, input: Option<String>) -> Self
The ARN of the service.
Sourcepub fn get_service_arn(&self) -> &Option<String>
pub fn get_service_arn(&self) -> &Option<String>
The ARN of the service.
Sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
Sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
Sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
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,
input: AwsEcsServiceServiceRegistriesDetails,
) -> Self
pub fn service_registries( self, input: AwsEcsServiceServiceRegistriesDetails, ) -> Self
Appends an item to service_registries
.
To override the contents of this collection use set_service_registries
.
Information about the service discovery registries to assign to the service.
Sourcepub fn set_service_registries(
self,
input: Option<Vec<AwsEcsServiceServiceRegistriesDetails>>,
) -> Self
pub fn set_service_registries( self, input: Option<Vec<AwsEcsServiceServiceRegistriesDetails>>, ) -> Self
Information about the service discovery registries to assign to the service.
Sourcepub fn get_service_registries(
&self,
) -> &Option<Vec<AwsEcsServiceServiceRegistriesDetails>>
pub fn get_service_registries( &self, ) -> &Option<Vec<AwsEcsServiceServiceRegistriesDetails>>
Information about the service discovery registries to assign to the service.
Sourcepub fn task_definition(self, input: impl Into<String>) -> Self
pub fn task_definition(self, input: impl Into<String>) -> Self
The task definition to use for tasks in the service.
Sourcepub fn set_task_definition(self, input: Option<String>) -> Self
pub fn set_task_definition(self, input: Option<String>) -> Self
The task definition to use for tasks in the service.
Sourcepub fn get_task_definition(&self) -> &Option<String>
pub fn get_task_definition(&self) -> &Option<String>
The task definition to use for tasks in the service.
Sourcepub fn build(self) -> AwsEcsServiceDetails
pub fn build(self) -> AwsEcsServiceDetails
Consumes the builder and constructs a AwsEcsServiceDetails
.
Trait Implementations§
Source§impl Clone for AwsEcsServiceDetailsBuilder
impl Clone for AwsEcsServiceDetailsBuilder
Source§fn clone(&self) -> AwsEcsServiceDetailsBuilder
fn clone(&self) -> AwsEcsServiceDetailsBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AwsEcsServiceDetailsBuilder
impl Debug for AwsEcsServiceDetailsBuilder
Source§impl Default for AwsEcsServiceDetailsBuilder
impl Default for AwsEcsServiceDetailsBuilder
Source§fn default() -> AwsEcsServiceDetailsBuilder
fn default() -> AwsEcsServiceDetailsBuilder
impl StructuralPartialEq for AwsEcsServiceDetailsBuilder
Auto Trait Implementations§
impl Freeze for AwsEcsServiceDetailsBuilder
impl RefUnwindSafe for AwsEcsServiceDetailsBuilder
impl Send for AwsEcsServiceDetailsBuilder
impl Sync for AwsEcsServiceDetailsBuilder
impl Unpin for AwsEcsServiceDetailsBuilder
impl UnwindSafe for AwsEcsServiceDetailsBuilder
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);