Skip to main content

entity_identity

Function entity_identity 

Source
pub fn entity_identity(path: &str) -> Option<(EntityType, &str)>
Expand description

Splits a section-absolute, slash-separated template path (such as Parameters/MyParam/Type or Outputs/MyOutput/Value) into the entity type of the section’s children and the logical ID of the entity it addresses. Returns None for paths that are not rooted at a documented top-level section - resource-relative dotted paths like Properties.BucketName - or that name a section with no child segment.