CloudResource
Bases: DuploResource
Retrieve all AWS cloud resources for a tenant.
Provides access to the unified GetCloudResources endpoint which returns all resource types (ECR, Kafka, S3, etc.) in a single list. Individual resource types load this resource and filter by ResourceType rather than calling this endpoint directly.
Commands
find
Find a cloud resource by name.
Optionally restrict the search to a specific resource type.
Returns:
| Name | Type | Description |
|---|---|---|
resource |
dict
|
The cloud resource object. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the resource could not be found. |
Parameters:
name
positional
The resource name
--resource_type, --type
Filter by cloud resource type number (e.g. 17 for ECR)
list
List all cloud resources for the tenant.
Optionally filter by resource type number.
Returns:
| Name | Type | Description |
|---|---|---|
list |
list
|
Cloud resources, optionally filtered by type. |
Parameters:
--resource_type, --type
Filter by cloud resource type number (e.g. 17 for ECR)
Methods
name_from_body
Extract resource name from body.