prowler icon indicating copy to clipboard operation
prowler copied to clipboard

feat(aws): add custom exceptions class

Open pedrooot opened this issue 6 months ago • 3 comments

Description

This PR adds custom exceptions for AWS:

  • AWSClientError
  • AWSProfileNotFoundError
  • AWSNoCredentialsError
  • AWSArgumentTypeValidationError
  • AWSSetUpSessionError
  • AWSIAMRoleARNRegionNotEmtpy
  • AWSIAMRoleARNPartitionEmpty
  • AWSIAMRoleARNMissingFields
  • AWSIAMRoleARNServiceNotIAMnorSTS
  • AWSIAMRoleARNInvalidAccountID
  • AWSIAMRoleARNInvalidResourceType
  • AWSIAMRoleARNEmptyResource

Checklist

  • Are there new checks included in this PR? Yes / No
    • If so, do we need to update permissions for the provider? Please review this carefully.
  • [ ] Review if the code is being covered by tests.
  • [ ] Review if code is being documented following this specification https://github.com/google/styleguide/blob/gh-pages/pyguide.md#38-comments-and-docstrings

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

pedrooot avatar Aug 23 '24 08:08 pedrooot