-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(scheduler-targets-alpha): SnsPublish
scheduler target
#27838
Conversation
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.
Thanks 👍
Looks good, just a note on unit tests for imported topics.
I missed that you were working on this as well so I opened a duplicate PR.
I will close mine, your integration test is cleaner 😄
packages/@aws-cdk/aws-scheduler-targets-alpha/test/sns-publish.test.ts
Outdated
Show resolved
Hide resolved
@lpizzinidev |
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.
Thanks for the changes and the extra unit test for coverage 👍
Just two minor adjustments and it will be good to go for me.
@@ -1,4 +1,5 @@ | |||
export * from './target'; |
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.
Can you please sort these alphabetically?
export class SnsPublish extends ScheduleTargetBase implements IScheduleTarget { | ||
constructor( | ||
private readonly topic: sns.ITopic, | ||
private readonly props: ScheduleTargetBaseProps, |
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.
private readonly props: ScheduleTargetBaseProps, | |
private readonly props: ScheduleTargetBaseProps = {}, |
Let's add a default value to simplify initialization when no props are needed.
Can you please then update all the SnsPublish(topic, {})
to SnsPublish(topic)
in this PR?
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.
Thanks for your advice! I've updated them.
…s-cdk into scheduler-targets-snspublish
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.
Thanks 👍
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Pull request has been modified.
I update the branch and re-run the CI since |
@sumupitchayan [Container] 2023/11/19 13:31:00.960051 Running command npm config set unsafe-perm true
npm ERR! `unsafe-perm` is not a valid npm option Do you have any ideas to fix this error? It seems to be happening in other Pull Requests too. |
@ymhiroki |
Thanks for the briefing! I wait for it. |
This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state. |
SnsPublish
scheduler target
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.
Hey @ymhiroki , apologies for the delay. Really appreciate you adding this contribution to cdk.
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Closes aws#27459 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Closes #27459
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license