-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
@aws-cdk/aws-eventsRelated to CloudWatch EventsRelated to CloudWatch EventsbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdp1
Description
Describe the bug
Archive construct has defaultChild as undefined instead of an instance of CfnArchive
Expected Behavior
I expect archive.node.defaultChild to return instance of CfnArchive, but it is currently undefined
Current Behavior
archive.node.defaultChild returns undefined
Reproduction Steps
const app = new App();
const stack = new Stack(app);
const eventBus = new EventBus(stack, 'eventbus', {
eventBusName: 'EventBus',
});
const archive = new Archive(eventBus, 'archive', {
sourceEventBus: eventBus,
eventPattern: {
source: ['test'],
},
});
const cfnArchive = archive.node.defaultChild as CfnArchive; // This failsPossible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.20.0
Framework Version
No response
Node.js Version
14.19.1
OS
Ubuntu 18
Language
Typescript
Language Version
4.4.4
Other information
No response
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-eventsRelated to CloudWatch EventsRelated to CloudWatch EventsbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdp1