Context
In the Multi-Profile/Multi-Region update, the internal Resource.GetID() implementation was changed to return a composite ID:
profile:region:resource-id
This ensures uniqueness in the UI list when displaying resources from multiple sources.
Requirement
When implementing a 'Copy ID to Clipboard' feature in the future:
- The action MUST NOT copy the raw
GetID() value (which includes profile/region prefixes).
- The action MUST unwrap the resource or parse the string to extract the actual AWS Resource ID.
- Use the helper
dao.UnwrapResource(res) or check interfaces RegionalResource / ProfiledResource to get the underlying ID.
Reference
Current implementation in internal/dao/dao.go:
func UnwrapResource(res Resource) Resource {
if pr, ok := res.(*ProfiledResource); ok {
return pr.Resource
}
if rr, ok := res.(*RegionalResource); ok {
return rr.Resource
}
return res
}
Context
In the Multi-Profile/Multi-Region update, the internal
Resource.GetID()implementation was changed to return a composite ID:profile:region:resource-idThis ensures uniqueness in the UI list when displaying resources from multiple sources.
Requirement
When implementing a 'Copy ID to Clipboard' feature in the future:
GetID()value (which includes profile/region prefixes).dao.UnwrapResource(res)or check interfacesRegionalResource/ProfiledResourceto get the underlying ID.Reference
Current implementation in
internal/dao/dao.go: