-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for smithy-modeled endpoint resolution. (#441)
- Loading branch information
1 parent
7f8b3b9
commit fc41a89
Showing
35 changed files
with
3,304 additions
and
75 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"id": "f0db0775-153a-40d3-8e77-0b582eaef5b5", | ||
"type": "feature", | ||
"collapse": true, | ||
"description": "Adds support for smithy-modeled endpoint resolution.", | ||
"modules": [ | ||
"." | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
...gen/src/main/java/software/amazon/smithy/go/codegen/endpoints/EndpointBuiltInHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
package software.amazon.smithy.go.codegen.endpoints; | ||
|
||
import software.amazon.smithy.go.codegen.GoWriter; | ||
import software.amazon.smithy.rulesengine.language.syntax.parameters.Parameters; | ||
|
||
/** | ||
* Used by integrations to provide BuiltIn value resolution | ||
* functionality during endpoint resolution. | ||
* | ||
*/ | ||
public interface EndpointBuiltInHandler { | ||
|
||
/** | ||
* Used by integrations to set a member on the endpoints resolution | ||
* middleware object. | ||
* | ||
* @param writer Settings used to generate. | ||
*/ | ||
default void renderEndpointBuiltInField(GoWriter writer) { | ||
// pass | ||
} | ||
|
||
/** | ||
* Used by integrations to set invoke BuiltIn resolution during Endpoint | ||
* resolution. | ||
* | ||
* @param writer Settings used to generate. | ||
*/ | ||
default void renderEndpointBuiltInInvocation(GoWriter writer) { | ||
// pass | ||
} | ||
|
||
|
||
/** | ||
* Used by integrations to set initialize BuiltIn values on the Endpoint | ||
* resolution object. | ||
* | ||
* @param writer Settings used to generate. | ||
*/ | ||
default void renderEndpointBuiltInInitialization(GoWriter writer, Parameters parameters) { | ||
// pass | ||
} | ||
} |
Oops, something went wrong.