@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.174Z") @Stability(value=Stable) public interface ServiceProps extends software.amazon.jsii.JsiiSerializable, DnsServiceProps
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.servicediscovery.*;
INamespace namespace;
ServiceProps serviceProps = ServiceProps.builder()
.namespace(namespace)
// the properties below are optional
.customHealthCheck(HealthCheckCustomConfig.builder()
.failureThreshold(123)
.build())
.description("description")
.discoveryType(DiscoveryType.API)
.dnsRecordType(DnsRecordType.A)
.dnsTtl(Duration.minutes(30))
.healthCheck(HealthCheckConfig.builder()
.failureThreshold(123)
.resourcePath("resourcePath")
.type(HealthCheckType.HTTP)
.build())
.loadBalancer(false)
.name("name")
.routingPolicy(RoutingPolicy.WEIGHTED)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ServiceProps.Builder
A builder for
ServiceProps |
static class |
ServiceProps.Jsii$Proxy
An implementation for
ServiceProps |
| Modifier and Type | Method and Description |
|---|---|
static ServiceProps.Builder |
builder() |
INamespace |
getNamespace()
The namespace that you want to use for DNS configuration.
|
getDiscoveryType, getDnsRecordType, getDnsTtl, getLoadBalancer, getRoutingPolicygetCustomHealthCheck, getDescription, getHealthCheck, getName@Stability(value=Stable) @NotNull INamespace getNamespace()
@Stability(value=Stable) static ServiceProps.Builder builder()
builder in interface BaseServicePropsbuilder in interface DnsServicePropsServiceProps.Builder of ServicePropsCopyright © 2022. All rights reserved.