Closed jeapostrophe closed 2 years ago
I looked in the source and found https://github.com/brendanhay/amazonka/blob/main/lib/amazonka/src/Amazonka/Send.hs#L76 but it is not on this page https://amazonka.brendanhay.nz/docs/libZSamazonkaZSamazonka/Amazonka.html
The answer to your question is indeed to use sendUnsigned
or sendUnsignedEither
; those functions definitely exist and the docs on amazonka.brendanhay.nz are not up to date.
If you packaged your Cognito request into a function whose type ended with EnvNoAuth -> m Env
, you could then pass it to newEnv
instead of newEnv discover
when initialising the amazonka environment you use to make real calls. This should be fairly ergonomic. I don't think I'd add such a function to amazonka proper, because that would make everyone depend on amazonka-cognito, but it could be a nice auxiliary library for someone to write eventually.
I'll close this issue now because there's no bug that I can see, but feel free to write back.
@brendanhay documentation generation for amazonka.brendanhay.nz has been broken for a long time now, do you have time to look at it? Last I remember it was credentials/auth related, so nothing I can fix.
Thank you!
send
requires anEnv
andnewEnv FromWebIdentity
requires a token file. But I am using AWS to do authentication with Cognito. At the command-line, you can run:I expect
amazonka
to allow me to do this withBut
x
is the wrong type. Am I missing something? Do I need to use a "normal" HTTP/JSON library and then start using Amazonka?