Struct aws_sdk_ecs::types::ServiceConnectService
source · #[non_exhaustive]pub struct ServiceConnectService {
pub port_name: String,
pub discovery_name: Option<String>,
pub client_aliases: Option<Vec<ServiceConnectClientAlias>>,
pub ingress_port_override: Option<i32>,
}Expand description
The Service Connect service object configuration. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.
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.port_name: StringThe portName must match the name of one of the portMappings from all the containers in the task definition of this Amazon ECS service.
discovery_name: Option<String>The discoveryName is the name of the new Cloud Map service that Amazon ECS creates for this Amazon ECS service. This must be unique within the Cloud Map namespace. The name can contain up to 64 characters. The name can include lowercase letters, numbers, underscores (_), and hyphens (-). The name can't start with a hyphen.
If the discoveryName isn't specified, the port mapping name from the task definition is used in portName.namespace.
client_aliases: Option<Vec<ServiceConnectClientAlias>>The list of client aliases for this Service Connect service. You use these to assign names that can be used by client applications. The maximum number of client aliases that you can have in this list is 1.
Each alias ("endpoint") is a fully-qualified name and port number that other Amazon ECS tasks ("clients") can use to connect to this service.
Each name and port mapping must be unique within the namespace.
For each ServiceConnectService, you must provide at least one clientAlias with one port.
ingress_port_override: Option<i32>The port number for the Service Connect proxy to listen on.
Use the value of this field to bypass the proxy for traffic on the port number specified in the named portMapping in the task definition of this application, and then use it in your VPC security groups to allow traffic into the proxy for this Amazon ECS service.
In awsvpc mode and Fargate, the default value is the container port number. The container port number is in the portMapping in the task definition. In bridge mode, the default value is the ephemeral port of the Service Connect proxy.
Implementations§
source§impl ServiceConnectService
impl ServiceConnectService
sourcepub fn port_name(&self) -> &str
pub fn port_name(&self) -> &str
The portName must match the name of one of the portMappings from all the containers in the task definition of this Amazon ECS service.
sourcepub fn discovery_name(&self) -> Option<&str>
pub fn discovery_name(&self) -> Option<&str>
The discoveryName is the name of the new Cloud Map service that Amazon ECS creates for this Amazon ECS service. This must be unique within the Cloud Map namespace. The name can contain up to 64 characters. The name can include lowercase letters, numbers, underscores (_), and hyphens (-). The name can't start with a hyphen.
If the discoveryName isn't specified, the port mapping name from the task definition is used in portName.namespace.
sourcepub fn client_aliases(&self) -> &[ServiceConnectClientAlias]
pub fn client_aliases(&self) -> &[ServiceConnectClientAlias]
The list of client aliases for this Service Connect service. You use these to assign names that can be used by client applications. The maximum number of client aliases that you can have in this list is 1.
Each alias ("endpoint") is a fully-qualified name and port number that other Amazon ECS tasks ("clients") can use to connect to this service.
Each name and port mapping must be unique within the namespace.
For each ServiceConnectService, you must provide at least one clientAlias with one port.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .client_aliases.is_none().
sourcepub fn ingress_port_override(&self) -> Option<i32>
pub fn ingress_port_override(&self) -> Option<i32>
The port number for the Service Connect proxy to listen on.
Use the value of this field to bypass the proxy for traffic on the port number specified in the named portMapping in the task definition of this application, and then use it in your VPC security groups to allow traffic into the proxy for this Amazon ECS service.
In awsvpc mode and Fargate, the default value is the container port number. The container port number is in the portMapping in the task definition. In bridge mode, the default value is the ephemeral port of the Service Connect proxy.
source§impl ServiceConnectService
impl ServiceConnectService
sourcepub fn builder() -> ServiceConnectServiceBuilder
pub fn builder() -> ServiceConnectServiceBuilder
Creates a new builder-style object to manufacture ServiceConnectService.
Trait Implementations§
source§impl Clone for ServiceConnectService
impl Clone for ServiceConnectService
source§fn clone(&self) -> ServiceConnectService
fn clone(&self) -> ServiceConnectService
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ServiceConnectService
impl Debug for ServiceConnectService
source§impl PartialEq for ServiceConnectService
impl PartialEq for ServiceConnectService
source§fn eq(&self, other: &ServiceConnectService) -> bool
fn eq(&self, other: &ServiceConnectService) -> bool
self and other values to be equal, and is used
by ==.