Skip to content

Commit fb37df3

Browse files
authored
Allow updating a service with endpoint rules and tests. (#3496)
1 parent d2c54bb commit fb37df3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

release-scripts/src/main/java/software/amazon/awssdk/release/UpdateServiceMain.java

+9-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ private UpdateServiceMain() {
4848
requiredOption("maven-project-root", "The root directory for the maven project."),
4949
requiredOption("service-json", "The service-2.json file for the service."),
5050
optionalOption("paginators-json", "The paginators-1.json file for the service."),
51-
optionalOption("waiters-json", "The waiters-2.json file for the service."));
51+
optionalOption("waiters-json", "The waiters-2.json file for the service."),
52+
optionalOption("endpoint-rule-set-json", "The endpoint-rule-set.json file for the service."),
53+
optionalOption("endpoint-tests-json", "The endpoint-tests.json file for the service."));
5254
}
5355

5456
public static void main(String[] args) {
@@ -67,6 +69,8 @@ private static class ServiceUpdater {
6769
private final Path serviceJson;
6870
private final Path paginatorsJson;
6971
private final Path waitersJson;
72+
private final Path endpointRuleSetJson;
73+
private final Path endpointTestsJson;
7074

7175
private ServiceUpdater(CommandLine commandLine) {
7276
this.mavenProjectRoot = Paths.get(commandLine.getOptionValue("maven-project-root").trim());
@@ -75,6 +79,8 @@ private ServiceUpdater(CommandLine commandLine) {
7579
this.serviceJson = Paths.get(commandLine.getOptionValue("service-json").trim());
7680
this.paginatorsJson = optionalPath(commandLine.getOptionValue("paginators-json"));
7781
this.waitersJson = optionalPath(commandLine.getOptionValue("waiters-json"));
82+
this.endpointRuleSetJson = optionalPath(commandLine.getOptionValue("endpoint-rule-set-json"));
83+
this.endpointTestsJson = optionalPath(commandLine.getOptionValue("endpoint-tests-json"));
7884
}
7985

8086
private Path optionalPath(String path) {
@@ -93,6 +99,8 @@ public void run() throws Exception {
9399
copyFile(serviceJson, codegenFileLocation.resolve("service-2.json"));
94100
copyFile(paginatorsJson, codegenFileLocation.resolve("paginators-1.json"));
95101
copyFile(waitersJson, codegenFileLocation.resolve("waiters-2.json"));
102+
copyFile(endpointRuleSetJson, codegenFileLocation.resolve("endpoint-rule-set.json"));
103+
copyFile(endpointTestsJson, codegenFileLocation.resolve("endpoint-tests.json"));
96104
}
97105

98106
private Path codegenFileLocation(String serviceModuleName, String serviceId) {

0 commit comments

Comments
 (0)