Interface IServiceConnectProps
Interface for Service Connect configuration.
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IServiceConnectProps
Syntax (vb)
Public Interface IServiceConnectProps
Remarks
ExampleMetadata: infused
Examples
Cluster cluster;
TaskDefinition taskDefinition;
var customService = new FargateService(this, "CustomizedService", new FargateServiceProps {
Cluster = cluster,
TaskDefinition = taskDefinition,
ServiceConnectConfiguration = new ServiceConnectProps {
LogDriver = LogDrivers.AwsLogs(new AwsLogDriverProps {
StreamPrefix = "sc-traffic"
}),
Services = new [] { new ServiceConnectService {
PortMappingName = "api",
DnsName = "customized-api",
Port = 80,
IngressPortOverride = 20040,
DiscoveryName = "custom"
} }
}
});
Synopsis
Properties
LogDriver | The log driver configuration to use for the Service Connect agent logs. |
Namespace | The cloudmap namespace to register this service into. |
Services | The list of Services, including a port mapping, terse client alias, and optional intermediate DNS name. |
Properties
LogDriver
The log driver configuration to use for the Service Connect agent logs.
virtual LogDriver LogDriver { get; }
Property Value
Remarks
Default: - none
Namespace
The cloudmap namespace to register this service into.
virtual string Namespace { get; }
Property Value
System.String
Remarks
Default: the cloudmap namespace specified on the cluster.
Services
The list of Services, including a port mapping, terse client alias, and optional intermediate DNS name.
virtual IServiceConnectService[] Services { get; }
Property Value
Remarks
This property may be left blank if the current ECS service does not need to advertise any ports via Service Connect.
Default: none