prowler
prowler copied to clipboard
feat(aws): add custom exceptions class
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.