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

chore(sqs): use ICfnQueue wherever possible #28232

Merged
merged 8 commits into from
Dec 15, 2023

Conversation

kaizencc
Copy link
Contributor

@kaizencc kaizencc commented Dec 1, 2023

Migrate inputs of IQueue to ICfnQueue wherever possible.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@kaizencc kaizencc changed the title chore(sqs): use ICfnQueue chore(sqs): use ICfnQueue whereever possible Dec 1, 2023
@aws-cdk-automation aws-cdk-automation requested a review from a team December 1, 2023 21:57
@github-actions github-actions bot added the p2 label Dec 1, 2023
@kaizencc kaizencc changed the title chore(sqs): use ICfnQueue whereever possible chore(sqs): use ICfnQueue wherever possible Dec 1, 2023
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Dec 1, 2023
*/
public static fromCfnQueue(cfnQueue: ICfnQueue): IQueue {
// if cfnQueue is already an IQueue, just return itself
if ((<IQueue>cfnQueue).grant !== undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should make a function for this:

function isIQueue(x: any): x is IQueue {
  return /* ... */
}

@kaizencc kaizencc merged commit 6b70f1f into conroy/generate Dec 15, 2023
5 checks passed
@kaizencc kaizencc deleted the conroy/generate-sqs branch December 15, 2023 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants