Interface ServiceAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ServiceAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:30.387Z")
@Stability(Stable)
public interface ServiceAttributes
extends software.amazon.jsii.JsiiSerializable
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.*;
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forServiceAttributesstatic final classAn implementation forServiceAttributes -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceAttributes.Builderbuilder()default DiscoveryTypeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDnsRecordType
-
getNamespace
-
getRoutingPolicy
-
getServiceArn
-
getServiceId
-
getServiceName
-
getDiscoveryType
-
builder
- Returns:
- a
ServiceAttributes.BuilderofServiceAttributes
-