Struct aws_sdk_ecs::types::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§
source§impl 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.
source§impl ServiceRegistry
impl ServiceRegistry
sourcepub fn builder() -> ServiceRegistryBuilder
pub fn builder() -> ServiceRegistryBuilder
Creates a new builder-style object to manufacture ServiceRegistry
.
Trait Implementations§
source§impl Clone for ServiceRegistry
impl Clone for ServiceRegistry
source§fn clone(&self) -> ServiceRegistry
fn clone(&self) -> ServiceRegistry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServiceRegistry
impl Debug for ServiceRegistry
source§impl PartialEq for ServiceRegistry
impl PartialEq for ServiceRegistry
source§fn eq(&self, other: &ServiceRegistry) -> bool
fn eq(&self, other: &ServiceRegistry) -> bool
self
and other
values to be equal, and is used
by ==
.