Skip to content

feat(iotevents): add grant method to Input class - #18617

Merged
mergify[bot] merged 18 commits into
aws:masterfrom
yamatatsu:iotevents-input-grant
Feb 3, 2022
Merged

mergify[bot] merged 18 commits into
aws:masterfrom
yamatatsu:iotevents-input-grant

Conversation

@yamatatsu

Copy link
Copy Markdown
Contributor

This PR add grant method to Input class.
Next of this PR, I aim to create PR that add IoT Event Action to IoT Core Rule.


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

@gitpod-io

gitpod-io Bot commented Jan 23, 2022

Copy link
Copy Markdown

@github-actions github-actions Bot added the @aws-cdk/aws-iotevents Related to AWS IoT Events label Jan 23, 2022

@skinny85 skinny85 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great @yamatatsu! As always 🙂. Minor notes related mostly to docs.

@mergify
mergify Bot dismissed skinny85’s stale review January 25, 2022 12:24

Pull request has been modified.

@yamatatsu
yamatatsu requested a review from skinny85 January 25, 2022 13:12

@skinny85 skinny85 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Apologies I missed this @yamatatsu! A couple of minor notes/questions.

readonly inputName: string;

/**
* The ARN of the input

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
* The ARN of the input
* The ARN of the input.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've fix all same case in aws-iotevents 👍🏻

grantee,
actions,
resourceArns: [this.inputArn],
scope: this,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmm. Why are we passing this argument here? I don't think it's required?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh. I copied from DynamoDB Table grant. I removed and confirm the test is passed.

*
* @param grantee the principal
*/
grantPutMessage(grantee: iam.IGrantable): iam.Grant

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What do you actually think of renaming this to grantWrite()? Maybe that's a better name, and will allow us to expand the set of granted permissions here as needed in the future?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sound's good!

will allow us to expand the set of granted permissions here as needed in the future?

That's reasonable!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So... why is this grantPushMessage() still? 😛

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops..

@mergify
mergify Bot dismissed skinny85’s stale review February 2, 2022 02:59

Pull request has been modified.

@yamatatsu
yamatatsu requested a review from skinny85 February 2, 2022 09:43

@skinny85 skinny85 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think there are some merge conflicts with master that you need to solve @yamatatsu!

*
* @param grantee the principal
*/
grantPutMessage(grantee: iam.IGrantable): iam.Grant

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So... why is this grantPushMessage() still? 😛

@mergify
mergify Bot dismissed skinny85’s stale review February 3, 2022 01:27

Pull request has been modified.

@skinny85 skinny85 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great @yamatatsu, thanks for the contribution!

@mergify

mergify Bot commented Feb 3, 2022

Copy link
Copy Markdown
Contributor

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation

Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: b9bc5a7
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
mergify Bot merged commit e89688e into aws:master Feb 3, 2022
@mergify

mergify Bot commented Feb 3, 2022

Copy link
Copy Markdown
Contributor

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

kornicameister added a commit to kornicameister/aws-cdk that referenced this pull request Feb 6, 2022
* origin/master: (27 commits)
  chore(eks): deprecate older versions of EKS (aws#18842)
  fix(tooling): update vscode devcontainer image (aws#18455)
  chore: npm-check-updates && yarn upgrade (aws#18832)
  chore(docs): Fix broken md links (aws#18384)
  chore(lambda-layer-awscli): install awscli with pip and requirements.txt (aws#18800)
  fix(aws-appsync): Strip unsupported characters from Lambda DataSource (aws#18765)
  feat(cfnspec): cloudformation spec v55.0.0 (aws#18827)
  docs(cfnspec): update CloudFormation documentation (aws#18826)
  chore(cxapi): plugin context provider limited by cx schema (aws#18709)
  feat(iotevents): add grant method to Input class (aws#18617)
  chore(cx-api): break circular dependencies (aws#18767)
  docs(core): clarify that `addOverride` does not change property casing (aws#18687)
  feat(s3-deployment): deploy data with deploy-time values (aws#18659)
  docs(cfnspec): update CloudFormation documentation (aws#18808)
  feat(cli): `cdk diff` works for Nested Stacks (aws#18207)
  docs(cfnspec): update CloudFormation documentation (aws#18783)
  chore(lambda-layer-awscli): add update mechanism for AWS CLI (aws#18780)
  chore(release): 1.143.0
  feat(fsx): add support for FSx Lustre Persistent_2 deployment type (aws#18626)
  feat(amplify): support performance mode in Branch (aws#18598)
  ...
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
This PR add `grant` method to `Input` class.
Next of this PR, I aim to create PR that add IoT Event Action to IoT Core Rule.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@yamatatsu
yamatatsu deleted the iotevents-input-grant branch April 6, 2022 15:17
ali-n4i pushed a commit to ali-n4i/aws-cdk that referenced this pull request Jul 29, 2026
This PR add `grant` method to `Input` class.
Next of this PR, I aim to create PR that add IoT Event Action to IoT Core Rule.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@aws-cdk/aws-iotevents Related to AWS IoT Events

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants