Struct aws_sdk_ecs::types::builders::ServiceRegistryBuilder
source · #[non_exhaustive]pub struct ServiceRegistryBuilder { /* private fields */ }
Expand description
A builder for ServiceRegistry
.
Implementations§
source§impl ServiceRegistryBuilder
impl ServiceRegistryBuilder
sourcepub fn registry_arn(self, input: impl Into<String>) -> Self
pub fn registry_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is Cloud Map. For more information, see CreateService.
sourcepub fn set_registry_arn(self, input: Option<String>) -> Self
pub fn set_registry_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is Cloud Map. For more information, see CreateService.
sourcepub fn get_registry_arn(&self) -> &Option<String>
pub fn get_registry_arn(&self) -> &Option<String>
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, input: i32) -> Self
pub fn port(self, input: i32) -> Self
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 set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
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 get_port(&self) -> &Option<i32>
pub fn get_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, input: impl Into<String>) -> Self
pub fn container_name(self, input: impl Into<String>) -> Self
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 set_container_name(self, input: Option<String>) -> Self
pub fn set_container_name(self, input: Option<String>) -> Self
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 get_container_name(&self) -> &Option<String>
pub fn get_container_name(&self) -> &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.
sourcepub fn container_port(self, input: i32) -> Self
pub fn container_port(self, input: i32) -> Self
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.
sourcepub fn set_container_port(self, input: Option<i32>) -> Self
pub fn set_container_port(self, input: Option<i32>) -> Self
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.
sourcepub fn get_container_port(&self) -> &Option<i32>
pub fn get_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.
sourcepub fn build(self) -> ServiceRegistry
pub fn build(self) -> ServiceRegistry
Consumes the builder and constructs a ServiceRegistry
.
Trait Implementations§
source§impl Clone for ServiceRegistryBuilder
impl Clone for ServiceRegistryBuilder
source§fn clone(&self) -> ServiceRegistryBuilder
fn clone(&self) -> ServiceRegistryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServiceRegistryBuilder
impl Debug for ServiceRegistryBuilder
source§impl Default for ServiceRegistryBuilder
impl Default for ServiceRegistryBuilder
source§fn default() -> ServiceRegistryBuilder
fn default() -> ServiceRegistryBuilder
source§impl PartialEq for ServiceRegistryBuilder
impl PartialEq for ServiceRegistryBuilder
source§fn eq(&self, other: &ServiceRegistryBuilder) -> bool
fn eq(&self, other: &ServiceRegistryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.