Interface IServiceProps
Inherited Members
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IServiceProps : IDnsServiceProps, IBaseServiceProps
Syntax (vb)
Public Interface IServiceProps
Inherits IDnsServiceProps, IBaseServiceProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.ServiceDiscovery;
INamespace namespace;
var serviceProps = new ServiceProps {
Namespace = namespace,
// the properties below are optional
CustomHealthCheck = new HealthCheckCustomConfig {
FailureThreshold = 123
},
Description = "description",
DiscoveryType = DiscoveryType.API,
DnsRecordType = DnsRecordType.A,
DnsTtl = Duration.Minutes(30),
HealthCheck = new HealthCheckConfig {
FailureThreshold = 123,
ResourcePath = "resourcePath",
Type = HealthCheckType.HTTP
},
LoadBalancer = false,
Name = "name",
RoutingPolicy = RoutingPolicy.WEIGHTED
};
Synopsis
Properties
Namespace | The namespace that you want to use for DNS configuration. |
Properties
Namespace
The namespace that you want to use for DNS configuration.
INamespace Namespace { get; }
Property Value