@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.173Z") @Stability(value=Stable) public interface ServiceAttributes extends software.amazon.jsii.JsiiSerializable
// 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.*;
INamespace namespace;
ServiceAttributes serviceAttributes = ServiceAttributes.builder()
.dnsRecordType(DnsRecordType.A)
.namespace(namespace)
.routingPolicy(RoutingPolicy.WEIGHTED)
.serviceArn("serviceArn")
.serviceId("serviceId")
.serviceName("serviceName")
// the properties below are optional
.discoveryType(DiscoveryType.API)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ServiceAttributes.Builder
A builder for
ServiceAttributes |
static class |
ServiceAttributes.Jsii$Proxy
An implementation for
ServiceAttributes |
| Modifier and Type | Method and Description |
|---|---|
static ServiceAttributes.Builder |
builder() |
default DiscoveryType |
getDiscoveryType() |
DnsRecordType |
getDnsRecordType() |
INamespace |
getNamespace() |
RoutingPolicy |
getRoutingPolicy() |
String |
getServiceArn() |
String |
getServiceId() |
String |
getServiceName() |
@Stability(value=Stable) @NotNull DnsRecordType getDnsRecordType()
@Stability(value=Stable) @NotNull INamespace getNamespace()
@Stability(value=Stable) @NotNull RoutingPolicy getRoutingPolicy()
@Stability(value=Stable) @NotNull String getServiceArn()
@Stability(value=Stable) @NotNull String getServiceId()
@Stability(value=Stable) @NotNull String getServiceName()
@Stability(value=Stable) @Nullable default DiscoveryType getDiscoveryType()
@Stability(value=Stable) static ServiceAttributes.Builder builder()
ServiceAttributes.Builder of ServiceAttributesCopyright © 2022. All rights reserved.