Skip to content

Commit

Permalink
fix(esm): updating resource imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bassrock committed Jan 2, 2025
1 parent 2d5e4d9 commit afcfe81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
sqsQueue,
dataAwsSnsTopic,
} from '@cdktf/provider-aws';
import { Resource } from '@cdktf/provider-null/lib/resource';
import { resource } from '@cdktf/provider-null';

export class AccountDeleteMonitorEvents extends Construct {
public readonly sqs: dataAwsSqsQueue.DataAwsSqsQueue;
Expand Down Expand Up @@ -63,7 +63,7 @@ export class AccountDeleteMonitorEvents extends Construct {
`${config.prefix}-Dlq-Alarm`,
);

new Resource(this, 'null-resource', {
new resource.Resource(this, 'null-resource', {
dependsOn: [userMergeRule.getEventBridge().rule, this.UserMergeTopic],
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
dataAwsSnsTopic,
} from '@cdktf/provider-aws';

import { Resource } from '@cdktf/provider-null/lib/resource';
import { resource } from '@cdktf/provider-null';
import { eventConfig } from './eventConfig.ts';

export class AllEventsRule extends Construct {
Expand All @@ -38,7 +38,7 @@ export class AllEventsRule extends Construct {
//to prevent resource deletion in-addition to preventDestroy
//e.g removing any of the dependsOn resource and running npm build would
//throw error
new Resource(this, 'null-resource', {
new resource.Resource(this, 'null-resource', {
dependsOn: [allEvents.getEventBridge().rule, this.cloudwatchLogGroup],
});
}
Expand Down

0 comments on commit afcfe81

Please sign in to comment.