Skip to content

Commit

Permalink
add getResourceNames() to CfnInclude
Browse files Browse the repository at this point in the history
  • Loading branch information
StNekroman committed Sep 28, 2024
1 parent 5e08c98 commit 6f4cf0f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ export class CfnInclude extends core.CfnElement {
return ret;
}

/**
* @returns Array of all known logicalIds, associated with each low-level CfnResource from the template.
*/
public getResourceNames() : string[] {
return Object.keys(this.resources);
}

/**
* Returns the CfnCondition object from the 'Conditions'
* section of the CloudFormation template with the given name.
Expand Down

0 comments on commit 6f4cf0f

Please sign in to comment.