-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Route53 HostedZone id handling is a bit odd. #318
Comments
It's odd indeed - completely agreed! I'll look at how it could be transparently handled. Another example of custom types are in S3 for Bucket/Key etc: https://github.com/brendanhay/amazonka/blob/develop/amazonka-s3/src/Network/AWS/S3/Internal.hs A newtype for HostedZoneId could be introduced in the non-generated code of |
FYI I'm going to implement this in a manner similar to how the AWS CLI and See: boto/botocore#398 |
Unlike the |
Regenerating Route53 with ResourceId usage Fixes #318
Not sure if there is a sensible way to deal with it, but the ids that are returned from API calls, can't be used on subsequent API calls without warping, example:
createHostedZone
, extract out the ID, will be a string something like/hostedzone/ABC123
changeResourceRecordSets
using that ID results in signature error (presumably because of incorrect escaping around/
s). Stripping off the/hostedzone/
component and setting ID to justABC123
works.Would be good to be able to add a transformation that parses IDs correctly, or in lieu of that do something so the error isn't obscured by the auth failure. Are there any similar transformations done elsewhere? I could have a look at replicating for this, the main issue is it would break compat for anyone working around it at the moment.
The text was updated successfully, but these errors were encountered: