Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
flostadler committed Nov 15, 2024
1 parent de8771e commit 9c960bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/converters/app-converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,8 @@ export class StackConverter extends ArtifactConverter {
// If this resource has explicit attribute mappings, those mappings will use PascalCase, not camelCase.
const propertyName = mapping.attributes !== undefined ? attribute : attributePropertyName(attribute);

// CFN CustomResources have a `data` property that contains the attributes. It is part of the response
// of the Lambda Function backing the Custom Resource.
if (aws.cloudformation.CustomResourceEmulator.isInstance(mapping.resource)) {
return mapping.resource.data.apply((attrs) => {
const descs = Object.getOwnPropertyDescriptors(attrs);
Expand Down

0 comments on commit 9c960bb

Please sign in to comment.