Skip to content
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

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

corymhall
Copy link
Contributor

@corymhall corymhall commented Oct 24, 2024

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:iam:Role
aws-native:lambda:Function
aws-native:events:EventBus
aws-native:events:Rule
aws-native:sns:Topic

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
```
@corymhall corymhall requested review from t0yv0 and flostadler October 24, 2024 18:37
let client: EventBridgeClient;

export const handler = async function (event, context) {
if (!client) {
Copy link
Member

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,
Copy link
Member

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();
Copy link
Member

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?

Copy link
Contributor Author

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.

@corymhall corymhall merged commit 1df8353 into main Oct 25, 2024
8 checks passed
@corymhall corymhall deleted the corymhall/more-tests-2 branch October 25, 2024 15:08
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v1.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants