AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The Service Connect service object configuration. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

Inheritance Hierarchy

System.Object
  Amazon.ECS.Model.ServiceConnectService

Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z

Syntax

C#
public class ServiceConnectService

The ServiceConnectService type exposes the following members

Constructors

NameDescription
Public Method ServiceConnectService()

Properties

NameTypeDescription
Public Property ClientAliases System.Collections.Generic.List<Amazon.ECS.Model.ServiceConnectClientAlias>

Gets and sets the property ClientAliases.

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.

Public Property DiscoveryName System.String

Gets and sets the property DiscoveryName.

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.

Public Property IngressPortOverride System.Int32

Gets and sets the property IngressPortOverride.

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.

Public Property PortName System.String

Gets and sets the property PortName.

The portName must match the name of one of the portMappings from all the containers in the task definition of this Amazon ECS service.

Public Property Timeout Amazon.ECS.Model.TimeoutConfiguration

Gets and sets the property Timeout.

A reference to an object that represents the configured timeouts for Service Connect.

Public Property Tls Amazon.ECS.Model.ServiceConnectTlsConfiguration

Gets and sets the property Tls.

A reference to an object that represents a Transport Layer Security (TLS) configuration.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5