backup.describeBackupVault fails with permission error if backup vault does not exist. #2625
Labels
closing-soon
This issue will automatically close in 4 days unless further comments are made.
guidance
Question that needs advice or information.
service-api
This issue is due to a problem in a service API, not the SDK implementation.
When running a basic ___ command the command fails with an AccessDenied, it seems like this should fail with a different exception. Looks like it may be an API problem, but I am not sure.
`var backup = new AWS.Backup();
var params = {
BackupVaultName: 'fakename'
};
backup.describeBackupVault(params, function(err, data) {
if (err) console.log(err, err.stack); // If the vault does not exsist it fails with a 403 exception
else console.log(data); // if the name does exsist then it succeeds.
});`
AccessDeniedException: Insufficient privileges to perform this action.
Also the backup.describeBackupVault.promise function fails with this.makeRequest is not a function exception. I am unsure if they are related issues.
The text was updated successfully, but these errors were encountered: