Error: 'ResourceExplorer' object has no attribute 'list_resources' #4430
Labels
bug
This issue is a confirmed bug.
p3
This is a minor priority issue
resource-explorer-2
response-requested
Waiting on additional information or feedback.
Describe the bug
I'm trying to retrieve resources via the new resource-explorer-2 but none of the methods working. Tried search and list_resources, both have issues with them.
I've an AWSAdministratorAccess role, yet the search gives me unauthorized access error.
While, the list_resources isn't available as well.
I've tried adding below roles to my IAM user and yet the same error.
AWSResourceExplorerFullAccess
AWSResourceExplorerOrganizationsAccess
AWSResourceExplorerReadOnlyAccess
Please let me know how I can get all the resources of any AWS account. I want this to be Global, without specifying the service.
The code:
Regression Issue
Expected Behavior
The list_resources method should return a list of all the resources available.
Current Behavior
Getting invalid authorization error and module not available.
Reproduction Steps
client = session.client('resource-explorer-2')
query_response = client.list_resources(Filters={'FilterString': '*'},)
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.28.26
Environment details (OS name and version, etc.)
Windows 11
The text was updated successfully, but these errors were encountered: