@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.143Z") @Stability(value=Stable) public interface CnameInstanceBaseProps extends software.amazon.jsii.JsiiSerializable, BaseInstanceProps
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.CNAME)
.dnsTtl(Duration.seconds(30))
.build());
service.registerCnameInstance("CnameInstance", CnameInstanceBaseProps.builder()
.instanceCname("service.pizza")
.build());
app.synth();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CnameInstanceBaseProps.Builder
A builder for
CnameInstanceBaseProps |
static class |
CnameInstanceBaseProps.Jsii$Proxy
An implementation for
CnameInstanceBaseProps |
| Modifier and Type | Method and Description |
|---|---|
static CnameInstanceBaseProps.Builder |
builder() |
String |
getInstanceCname()
If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com.
|
getCustomAttributes, getInstanceId@Stability(value=Stable) @NotNull String getInstanceCname()
@Stability(value=Stable) static CnameInstanceBaseProps.Builder builder()
builder in interface BaseInstancePropsCnameInstanceBaseProps.Builder of CnameInstanceBasePropsCopyright © 2022. All rights reserved.