I'm trying to connect to the AWS API to create a tool that manages my account, with this API I want to manage S3, EC2, RDS and more.

But it is giving authentication error when I try to access.

Can anyone help me with this error?

Seems that the API does not allow for basic authorisation types. You need to read a little more into the documentation and which kind of auth is required