Skip to content

feat: extend AWS policy#187

Merged
VisualBean merged 9 commits into
LEGO:mainfrom
Gadam8:extend-aws-policy
Aug 15, 2024
Merged

feat: extend AWS policy#187
VisualBean merged 9 commits into
LEGO:mainfrom
Gadam8:extend-aws-policy

Conversation

@Gadam8

@Gadam8 Gadam8 commented Jul 1, 2024

Copy link
Copy Markdown
Contributor

About the PR

The current AWS policy binding configuration doesn't match what is offered by AWS when configuring IAM policies. Condition and Resource are missing and Principal isn't fully fleshed out. e.g. https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html#Condition-multiple-conditions & https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html. This PR addresses this by extending the binding configuration for SNS and SQS.

See related JSON bindings PR here - asyncapi/spec-json-schemas#553

Changelog

  • Add: Resource property to AWS Statement class for both SNS and SQS
  • Add: Condition property to AWS Statement class for both SNS and SQS
  • Amend: Changed type for Principal property in AWS Statement to allow for full implementation

Related Issues

N/A

@VisualBean

Copy link
Copy Markdown
Contributor

Great work on the spec side so far! Let me know if you need help on the implementation side 👍

@Gadam8

Gadam8 commented Jul 23, 2024

Copy link
Copy Markdown
Contributor Author

Great work on the spec side so far! Let me know if you need help on the implementation side 👍

Thank you! I've just pushed some changes to align with the recent spec changes. Would appreciate a review and any feedback 🙏

Comment thread src/LEGO.AsyncAPI.Bindings/Sns/Principal.cs Outdated
Comment thread src/LEGO.AsyncAPI.Bindings/Sqs/IPrincipalValue.cs Outdated
Comment thread src/LEGO.AsyncAPI.Bindings/Sqs/Principal.cs Outdated
@VisualBean

Copy link
Copy Markdown
Contributor

Only have a few minor things, otherwise its looking great!

Comment thread test/LEGO.AsyncAPI.Tests/Bindings/Sns/SnsBindings_Should.cs Outdated
Comment thread src/LEGO.AsyncAPI.Bindings/Sqs/Principal.cs Outdated
@VisualBean

Copy link
Copy Markdown
Contributor

@Gadam8 looks great in its current iteration.
What do you think?

@Gadam8

Gadam8 commented Aug 15, 2024

Copy link
Copy Markdown
Contributor Author

@Gadam8 looks great in its current iteration. What do you think?

Thank you! Yeah I'm happy with how these changes look 👍 Happy to proceed

@VisualBean VisualBean merged commit 9cc759f into LEGO:main Aug 15, 2024
@Gadam8 Gadam8 deleted the extend-aws-policy branch August 16, 2024 08:13
@Gadam8

Gadam8 commented Aug 16, 2024

Copy link
Copy Markdown
Contributor Author

Thanks for the merge @VisualBean! What's the process for releasing a new version? Is it possible to get a beta release now? Thanks 👍

@VisualBean

VisualBean commented Aug 16, 2024

Copy link
Copy Markdown
Contributor

@Gadam8 looks great in its current iteration. What do you think?

Thank you! Yeah I'm happy with how these changes look 👍 Happy to proceed

Yeah ill rebase it to the vnext branch and release a new beta nuget (probably before end of day today).

Edit: Ive pushed a beta release with the new binding changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants