Interface ServiceProps
- All Superinterfaces:
BaseServiceProps,DnsServiceProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ServiceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.668Z")
@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.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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forServicePropsstatic final classAn implementation forServiceProps -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceProps.Builderbuilder()The namespace that you want to use for DNS configuration.Methods inherited from interface software.amazon.awscdk.services.servicediscovery.BaseServiceProps
getCustomHealthCheck, getDescription, getHealthCheck, getNameMethods inherited from interface software.amazon.awscdk.services.servicediscovery.DnsServiceProps
getDnsRecordType, getDnsTtl, getLoadBalancer, getRoutingPolicyMethods 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.BuilderofServiceProps
-