Replies: 8 comments
-
This isn't a defect - service-specific entries in this table are only needed for specifying non-standard endpoint schemes for the partition. The Imagebuilder endpoint scheme is the default, therefore it has no entries. Note this endpoints.json resource is also no longer used by default - EndpointResolverV2 uses a separate rules "syntax" that lives in each service's API model (though the underlying dataset is related). |
Beta Was this translation helpful? Give feedback.
-
This issue is now closed. Comments on closed issues are hard for our team to see. |
Beta Was this translation helpful? Give feedback.
-
I have few questions , it would be really great if you are able to answer these questions.
|
Beta Was this translation helpful? Give feedback.
-
Broadly speaking, I would ask why you're looking into this. It shouldn't matter for you in terms of actually using the SDKs. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot @lucix-aws for the detailed explanation. I need a few more details from you, please go through the below para and let me know your thoughts. We would like to have this information for the following reasons. The system that we are building reads a template file, The template file has details related to the AWS service name and operation [api] name. We load smithy specs and endpoints.json file and we dynamically form HTTP Requests for AWS services based on service name and operation name and details from smithy specs and endpoints.json. If the endpoints.json is not correctly maintained in this repo, we won't be able to form the correct endpoint for all the AWS services and hence the system won't work as expected. What will be your suggestion to load the correct endpoints of all AWS services from smithy models? |
Beta Was this translation helpful? Give feedback.
-
My suggestion to you is frankly that your approach is a complete nonstarter. Abandon any notion of what you're trying to do here, because it's more than likely doomed to fail and is in no way supported.
We can't guarantee that these resources will even exist in this repository long-term, or that the formats and data therein are stable whatsoever.
You're going about this the wrong way. I can't solve this problem for you, but I understand the "dynamic" nature of what you're trying to do with this template. Loading service models and mapping them to requests is just not the right way to do it, at all. It sounds like you'd need to map these requests to actual concrete calls to service clients in the V2 SDK. That's going to be incredibly verbose, but if those are the business requirements, it's the only thing I can direct you to do. If you proceed with your current approach, you do so entirely at your own risk (but seriously, don't). |
Beta Was this translation helpful? Give feedback.
-
Thanks @lucix-aws for your detailed response and suggestions. Does AWS have any OpenAPI specs alternative to achieve this requirement instead of relying on smithy specs? |
Beta Was this translation helpful? Give feedback.
-
No. There are no public representations of the data you're trying to work off of whatsoever. |
Beta Was this translation helpful? Give feedback.
-
Acknowledgements
go get -u github.com/aws/aws-sdk-go-v2/...
)Describe the bug
"imagebuilder" service endpoints are missing from endpoints.json in the specs file.
https://github.com/aws/aws-sdk-go-v2/blob/main/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json
Expected Behavior
"imagebuilder" service endpoints should be present in endpoints.json.
https://github.com/aws/aws-sdk-go-v2/blob/main/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json
Current Behavior
"imagebuilder" service endpoints are missing from endpoints.json in the specs file.
https://github.com/aws/aws-sdk-go-v2/blob/main/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json
Reproduction Steps
"imagebuilder" service endpoints are missing from endpoints.json in the specs file
https://github.com/aws/aws-sdk-go-v2/blob/main/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json
Possible Solution
add "imagebuilder" service endpoints to endpoints.json
https://github.com/aws/aws-sdk-go-v2/blob/main/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
go version go1.22.3 darwin/arm64
Compiler and Version used
go version go1.22.3 darwin/arm64
Operating System and version
MacOS , Sonoma 14.5
Beta Was this translation helpful? Give feedback.
All reactions