@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-07-01T09:58:40.880Z") public interface ServiceProps extends DnsServiceProps
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.servicediscovery.*; import software.amazon.awscdk.core.*; INamespace namespace; ServiceProps serviceProps = ServiceProps.builder() .namespace(namespace) // the properties below are optional .customHealthCheck(HealthCheckCustomConfig.builder() .failureThreshold(123) .build()) .description("description") .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.
|
getDnsRecordType, getDnsTtl, getLoadBalancer, getRoutingPolicy
getCustomHealthCheck, getDescription, getHealthCheck, getName
INamespace getNamespace()
static ServiceProps.Builder builder()
builder
in interface BaseServiceProps
builder
in interface DnsServiceProps
ServiceProps.Builder
of ServiceProps