Interface ServiceProps
- All Superinterfaces:
BaseServiceProps
,DnsServiceProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ServiceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:23.833Z")
@Stability(Stable)
public interface ServiceProps
extends software.amazon.jsii.JsiiSerializable, DnsServiceProps
Example:
// 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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forServiceProps
static final class
An implementation forServiceProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceProps.Builder
builder()
The namespace that you want to use for DNS configuration.Methods inherited from interface software.amazon.awscdk.services.servicediscovery.BaseServiceProps
getCustomHealthCheck, getDescription, getHealthCheck, getName
Methods inherited from interface software.amazon.awscdk.services.servicediscovery.DnsServiceProps
getDiscoveryType, getDnsRecordType, getDnsTtl, getLoadBalancer, getRoutingPolicy
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNamespace
The namespace that you want to use for DNS configuration. -
builder
- Returns:
- a
ServiceProps.Builder
ofServiceProps
-