Skip to content

Commit

Permalink
fix null check
Browse files Browse the repository at this point in the history
  • Loading branch information
phuhung273 committed Feb 11, 2025
1 parent 3b4c72b commit d45ffff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export class ConfigurationSetEventDestination extends Resource implements IConfi
resourceName: 'default',
})
) {
throw new Error(`Only the default bus can be used as an event destination. Got ${props.destination.bus.eventBusArn}`);
throw new Error(`Only the default bus can be used as an event destination. Got ${props.destination.bus?.eventBusArn}`);
}

let firehoseDeliveryStreamIamRoleArn = '';
Expand Down

0 comments on commit d45ffff

Please sign in to comment.