aboutsummaryrefslogtreecommitdiffstats
path: root/config-model-api
diff options
context:
space:
mode:
authorjonmv <venstad@gmail.com>2022-11-24 17:07:06 +0100
committerjonmv <venstad@gmail.com>2022-11-24 17:12:33 +0100
commit357315bba6debc9cd32a0eca6dee1b079f661e17 (patch)
tree65cb0451f8f4847e90e6e9759fa94b070d872c5a /config-model-api
parentbc488eb212f168bfa0992a00d4524d2d349b988e (diff)
Set private DNS for existing VPC endpoints services
Diffstat (limited to 'config-model-api')
-rw-r--r--config-model-api/src/main/java/com/yahoo/config/application/api/Endpoint.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/config-model-api/src/main/java/com/yahoo/config/application/api/Endpoint.java b/config-model-api/src/main/java/com/yahoo/config/application/api/Endpoint.java
index 83106e75627..fd355d427a3 100644
--- a/config-model-api/src/main/java/com/yahoo/config/application/api/Endpoint.java
+++ b/config-model-api/src/main/java/com/yahoo/config/application/api/Endpoint.java
@@ -11,9 +11,10 @@ import java.util.stream.Collectors;
/**
* Represents an application- or instance-level endpoint in deployments.xml.
- *
- * - An instance-level endpoint is global and can span multiple regions within a single instance.
- * - An application-level endpoint points can span multiple instances within a single region.
+ * <p>
+ * - An instance-level endpoint is global and may span multiple regions within a single instance.
+ * - An application-level endpoint may span multiple instances within a single region, or
+ * even multiple instances across multiple regions, depending on the name service used for the cloud.
*
* @author ogronnesby
* @author mpolden
@@ -44,7 +45,8 @@ public class Endpoint {
this.level = Objects.requireNonNull(level, "level must be non-null");
this.targets = List.copyOf(Objects.requireNonNull(targets, "targets must be non-null"));
if (endpointId().length() > endpointMaxLength || !endpointPattern.matcher(endpointId()).matches()) {
- throw new IllegalArgumentException("Invalid endpoint ID: '" + endpointId() + "'");
+ throw new IllegalArgumentException("Endpoint ID must be all lowercase, alphanumeric, with no consecutive dashes, " +
+ "of length 1 to 12, and begin with a character; but got '" + endpointId() + "'");
}
if (targets.isEmpty()) throw new IllegalArgumentException("targets must be non-empty");
for (int i = 0; i < targets.size(); i++) {
@@ -66,7 +68,7 @@ public class Endpoint {
}
}
- /** The unique identifer of this */
+ /** The unique identifier of this */
public String endpointId() {
return endpointId;
}