Interface PublicDnsNamespaceProps
- All Superinterfaces:
BaseNamespaceProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PublicDnsNamespaceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:30.386Z")
@Stability(Stable)
public interface PublicDnsNamespaceProps
extends software.amazon.jsii.JsiiSerializable, BaseNamespaceProps
Example:
import software.amazon.awscdk.*;
import software.amazon.awscdk.*;
App app = new App();
Stack stack = new Stack(app, "aws-servicediscovery-integ");
PublicDnsNamespace namespace = PublicDnsNamespace.Builder.create(stack, "Namespace")
.name("foobar.com")
.build();
Service service = namespace.createService("Service", DnsServiceProps.builder()
.name("foo")
.dnsRecordType(DnsRecordType.A)
.dnsTtl(Duration.seconds(30))
.healthCheck(HealthCheckConfig.builder()
.type(HealthCheckType.HTTPS)
.resourcePath("/healthcheck")
.failureThreshold(2)
.build())
.build());
service.registerIpInstance("IpInstance", IpInstanceBaseProps.builder()
.ipv4("54.239.25.192")
.port(443)
.build());
app.synth();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forPublicDnsNamespacePropsstatic final classAn implementation forPublicDnsNamespaceProps -
Method Summary
Static MethodsMethods inherited from interface software.amazon.awscdk.services.servicediscovery.BaseNamespaceProps
getDescription, getNameMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
builder
- Returns:
- a
PublicDnsNamespaceProps.BuilderofPublicDnsNamespaceProps
-