-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add another example and map additional resources #178
Conversation
Adds tests for additional resources and adds mappings for very common resources that do not yet have CCAPI support. - AWS::SQS::QueuePolicy - AWS::SNS::TopicPolicy ``` aws-native:sns:Subscription aws-native:sqs:Queue aws-native:sns:Topic aws-native:sns:Subscription aws-native:sqs:Queue aws-native:iam:Role aws-native:lambda:Function aws-native:events:EventBus aws-native:events:Rule aws-native:events:Rule aws-native:sns:Topic ```
let client: EventBridgeClient; | ||
|
||
export const handler = async function (event, context) { | ||
if (!client) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: hide this in getOrCreateClient()
?
import { | ||
aws_events, | ||
aws_events_targets, | ||
aws_lambda, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting that aws-cdk-lib uses this_not_so_native_typescript_casing.
rawMessageDelivery: true, | ||
}), | ||
); | ||
this.synth(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious do we have user code call synth() or does the framework call it? We imitate how CDK code is written here right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now no. The user has to explicitly call this.synth()
which is not imitating how CDK works. In #170 we will change this so the user won't have to.
This PR has been shipped in release v1.0.0. |
Adds tests for additional resources and adds mappings for very common
resources that do not yet have CCAPI support.