Skip to main content

Service

Struct Service 

Source
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>§tags: Vec<TagEntry>§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: bool

Whether ECS Exec is enabled for tasks launched by this service.

§enable_ecs_managed_tags: bool

When true, ECS automatically tags tasks/ENIs with cluster + service metadata. Off by default to match AWS.

§propagate_tags: Option<String>

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 Clone for Service

Source§

fn clone(&self) -> Service

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Service

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Service

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Service

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more