Struct aws_sdk_ecs::model::ServiceRegistry
source · [−]#[non_exhaustive]pub struct ServiceRegistry {
pub registry_arn: Option<String>,
pub port: Option<i32>,
pub container_name: Option<String>,
pub container_port: Option<i32>,
}
Expand description
The details for the service registry.
Each service may be associated with one service registry. Multiple service registries for each service are not supported.
When you add, update, or remove the service registries configuration, Amazon ECS starts a new deployment. New tasks are registered and deregistered to the updated service registry configuration.
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.registry_arn: Option<String>
The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is Cloud Map. For more information, see CreateService.
port: Option<i32>
The port value used if your service discovery service specified an SRV record. This field might be used if both the awsvpc
network mode and SRV records are used.
container_name: Option<String>
The container name value to be used for your service discovery service. It's already specified in the task definition. If the task definition that your service task specifies uses the bridge
or host
network mode, you must specify a containerName
and containerPort
combination from the task definition. If the task definition that your service task specifies uses the awsvpc
network mode and a type SRV DNS record is used, you must specify either a containerName
and containerPort
combination or a port
value. However, you can't specify both.
container_port: Option<i32>
The port value to be used for your service discovery service. It's already specified in the task definition. If the task definition your service task specifies uses the bridge
or host
network mode, you must specify a containerName
and containerPort
combination from the task definition. If the task definition your service task specifies uses the awsvpc
network mode and a type SRV DNS record is used, you must specify either a containerName
and containerPort
combination or a port
value. However, you can't specify both.
Implementations
sourceimpl ServiceRegistry
impl ServiceRegistry
sourcepub fn registry_arn(&self) -> Option<&str>
pub fn registry_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is Cloud Map. For more information, see CreateService.
sourcepub fn port(&self) -> Option<i32>
pub fn port(&self) -> Option<i32>
The port value used if your service discovery service specified an SRV record. This field might be used if both the awsvpc
network mode and SRV records are used.
sourcepub fn container_name(&self) -> Option<&str>
pub fn container_name(&self) -> Option<&str>
The container name value to be used for your service discovery service. It's already specified in the task definition. If the task definition that your service task specifies uses the bridge
or host
network mode, you must specify a containerName
and containerPort
combination from the task definition. If the task definition that your service task specifies uses the awsvpc
network mode and a type SRV DNS record is used, you must specify either a containerName
and containerPort
combination or a port
value. However, you can't specify both.
sourcepub fn container_port(&self) -> Option<i32>
pub fn container_port(&self) -> Option<i32>
The port value to be used for your service discovery service. It's already specified in the task definition. If the task definition your service task specifies uses the bridge
or host
network mode, you must specify a containerName
and containerPort
combination from the task definition. If the task definition your service task specifies uses the awsvpc
network mode and a type SRV DNS record is used, you must specify either a containerName
and containerPort
combination or a port
value. However, you can't specify both.
sourceimpl ServiceRegistry
impl ServiceRegistry
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ServiceRegistry
Trait Implementations
sourceimpl Clone for ServiceRegistry
impl Clone for ServiceRegistry
sourcefn clone(&self) -> ServiceRegistry
fn clone(&self) -> ServiceRegistry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ServiceRegistry
impl Debug for ServiceRegistry
sourceimpl PartialEq<ServiceRegistry> for ServiceRegistry
impl PartialEq<ServiceRegistry> for ServiceRegistry
sourcefn eq(&self, other: &ServiceRegistry) -> bool
fn eq(&self, other: &ServiceRegistry) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ServiceRegistry) -> bool
fn ne(&self, other: &ServiceRegistry) -> bool
This method tests for !=
.
impl StructuralPartialEq for ServiceRegistry
Auto Trait Implementations
impl RefUnwindSafe for ServiceRegistry
impl Send for ServiceRegistry
impl Sync for ServiceRegistry
impl Unpin for ServiceRegistry
impl UnwindSafe for ServiceRegistry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more