

# ServiceConnectService
<a name="API_ServiceConnectService"></a>

The Service Connect service object configuration. For more information, see [Service Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) in the *Amazon Elastic Container Service Developer Guide*.

## Contents
<a name="API_ServiceConnectService_Contents"></a>

 ** portName **   <a name="ECS-Type-ServiceConnectService-portName"></a>
The `portName` must match the name of one of the `portMappings` from all the containers in the task definition of this Amazon ECS service.  
Type: String  
Required: Yes

 ** clientAliases **   <a name="ECS-Type-ServiceConnectService-clientAliases"></a>
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`.  
Type: Array of [ServiceConnectClientAlias](API_ServiceConnectClientAlias.md) objects  
Required: No

 ** discoveryName **   <a name="ECS-Type-ServiceConnectService-discoveryName"></a>
The `discoveryName` is the name of the new AWS Cloud Map service that Amazon ECS creates for this Amazon ECS service. This must be unique within the AWS Cloud Map namespace. The name can contain up to 64 characters. The name can include lowercase letters, numbers, underscores (\$1), 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`.  
Type: String  
Required: No

 ** ingressPortOverride **   <a name="ECS-Type-ServiceConnectService-ingressPortOverride"></a>
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.  
Type: Integer  
Valid Range: Minimum value of 0. Maximum value of 65535.  
Required: No

 ** timeout **   <a name="ECS-Type-ServiceConnectService-timeout"></a>
A reference to an object that represents the configured timeouts for Service Connect.  
Type: [TimeoutConfiguration](API_TimeoutConfiguration.md) object  
Required: No

 ** tls **   <a name="ECS-Type-ServiceConnectService-tls"></a>
A reference to an object that represents a Transport Layer Security (TLS) configuration.  
Type: [ServiceConnectTlsConfiguration](API_ServiceConnectTlsConfiguration.md) object  
Required: No

## See Also
<a name="API_ServiceConnectService_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/ecs-2014-11-13/ServiceConnectService) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/ecs-2014-11-13/ServiceConnectService) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/ecs-2014-11-13/ServiceConnectService) 