pub struct Service {Show 35 fields
pub service_name: String,
pub service_arn: String,
pub cluster_name: String,
pub cluster_arn: String,
pub task_definition_arn: String,
pub family: String,
pub revision: i32,
pub desired_count: i32,
pub running_count: i32,
pub pending_count: i32,
pub launch_type: String,
pub status: String,
pub scheduling_strategy: String,
pub deployment_controller: String,
pub minimum_healthy_percent: Option<i32>,
pub maximum_percent: Option<i32>,
pub circuit_breaker: Option<CircuitBreakerConfig>,
pub deployments: Vec<Deployment>,
pub load_balancers: Vec<Value>,
pub service_registries: Vec<Value>,
pub placement_constraints: Vec<Value>,
pub placement_strategy: Vec<Value>,
pub network_configuration: Option<Value>,
pub tags: Vec<TagEntry>,
pub created_at: DateTime<Utc>,
pub created_by: Option<String>,
pub role_arn: Option<String>,
pub platform_version: Option<String>,
pub health_check_grace_period_seconds: Option<i32>,
pub enable_execute_command: bool,
pub enable_ecs_managed_tags: bool,
pub propagate_tags: Option<String>,
pub capacity_provider_strategy: Vec<Value>,
pub availability_zone_rebalancing: Option<String>,
pub volume_configurations: Vec<Value>,
}Fields§
§service_name: String§service_arn: String§cluster_name: String§cluster_arn: String§task_definition_arn: String§family: String§revision: i32§desired_count: i32§running_count: i32§pending_count: i32§launch_type: String§status: String§scheduling_strategy: String§deployment_controller: String§minimum_healthy_percent: Option<i32>§maximum_percent: Option<i32>§circuit_breaker: Option<CircuitBreakerConfig>Deployment circuit breaker config (opt-in via deploymentConfiguration).
deployments: Vec<Deployment>§load_balancers: Vec<Value>§service_registries: Vec<Value>§placement_constraints: Vec<Value>§placement_strategy: Vec<Value>§network_configuration: Option<Value>§created_at: DateTime<Utc>§created_by: Option<String>§role_arn: Option<String>§platform_version: Option<String>Fargate platform version label (“LATEST”, “1.4.0”, etc). Echoed back on DescribeServices.
health_check_grace_period_seconds: Option<i32>Seconds an ECS service waits before failing a task on health check failures while a load balancer is still warming up.
enable_execute_command: boolWhether ECS Exec is enabled for tasks launched by this service.
When true, ECS automatically tags tasks/ENIs with cluster + service metadata. Off by default to match AWS.
Tag-propagation source: “TASK_DEFINITION”, “SERVICE”, or “NONE”. We model the AWS shape — None here means “NONE” was the effective value when the service was created.
capacity_provider_strategy: Vec<Value>Mixed capacity-provider weights that the service uses instead of
(or alongside) launch_type. Stored as raw JSON since the field
is a list of { capacityProvider, weight, base } records.
availability_zone_rebalancing: Option<String>AZ-rebalancing toggle for ALB-attached services. ENABLED | DISABLED (default). Surface field for AvailabilityZoneRebalancing.
volume_configurations: Vec<Value>Per-service volume configurations (EBS / FSx) inherited by tasks launched under this service. Stored as raw JSON.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Service
impl<'de> Deserialize<'de> for Service
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnsafeUnpin for Service
impl UnwindSafe for Service
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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