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

feat(dynamodb): expose stream features on ITable #6635

Merged
merged 4 commits into from
Mar 9, 2020

Conversation

RomainMuller
Copy link
Contributor

@RomainMuller RomainMuller commented Mar 9, 2020

Description

In order to make it possible to use the DynamoEventSource feature from
@aws-cdk/aws-lambda-event-sources with imported tables (ITables
obtained from Table.fromTableAttributes), the tableStreamArn
property must be visible on the ITable interface, and accepted as part
of the TableAttributes struct.

The necessary grant methods that target the table stream were also
modified so that they can be used on any ITable that was built with a
tableStreamArn.

As a bonus, added documentation text for a couple of previously
undocumented enum constants.

Commit Message

feat(dynamodb): expose stream features on ITable (#6635)

In order to make it possible to use the DynamoEventSource feature from
@aws-cdk/aws-lambda-event-sources with imported tables (ITables
obtained from Table.fromTableAttributes), the tableStreamArn
property must be visible on the ITable interface, and accepted as part
of the TableAttributes struct.

The necessary grant methods that target the table stream were also
modified so that they can be used on any ITable that was built with a
tableStreamArn.

As a bonus, added documentation text for a couple of previously
undocumented enum constants.

Fixes #6344

End Commit Message


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

In order to make it possible to use the `DynamoEventSource` feature from
`@aws-cdk/aws-lambda-event-sources` with imported tables (`ITable`s
obtained from `Table.fromTableAttributes`), the `tableStreamArn`
property must be visible on the `ITable` interface, and accepted as part
of the `TableAttributes` struct.

The necessary `grant` methods that target the table stream were also
modified so that they can be used on any `ITable` that was built with a
`tableStreamArn`.

As a bonus, added documentation text for a couple of previously
undocumented enum constants.

Fixes #6344
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Mar 9, 2020
@RomainMuller RomainMuller added effort/small Small work item – less than a day of effort @aws-cdk/aws-dynamodb Related to Amazon DynamoDB labels Mar 9, 2020
@RomainMuller RomainMuller requested a review from a team March 9, 2020 14:01
Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

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

PR description: no need to duplicate the text between the commit message section and the description.

packages/@aws-cdk/aws-dynamodb/lib/table.ts Show resolved Hide resolved
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 30d3dab
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify
Copy link
Contributor

mergify bot commented Mar 9, 2020

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
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: aa27e6b
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: fff3317
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify
Copy link
Contributor

mergify bot commented Mar 9, 2020

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).

@mergify mergify bot merged commit 52e8b95 into master Mar 9, 2020
@mergify mergify bot deleted the rmuller/allow-itable-event-source branch March 9, 2020 15:24
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: a42c4be
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

eladb pushed a commit that referenced this pull request Mar 9, 2020
In order to make it possible to use the `DynamoEventSource` feature from
`@aws-cdk/aws-lambda-event-sources` with imported tables (`ITable`s
obtained from `Table.fromTableAttributes`), the `tableStreamArn`
property must be visible on the `ITable` interface, and accepted as part
of the `TableAttributes` struct.

The necessary `grant` methods that target the table stream were also
modified so that they can be used on any `ITable` that was built with a
`tableStreamArn`.

As a bonus, added documentation text for a couple of previously
undocumented enum constants.

Fixes #6344
horsmand pushed a commit to horsmand/aws-cdk that referenced this pull request Mar 9, 2020
In order to make it possible to use the `DynamoEventSource` feature from
`@aws-cdk/aws-lambda-event-sources` with imported tables (`ITable`s
obtained from `Table.fromTableAttributes`), the `tableStreamArn`
property must be visible on the `ITable` interface, and accepted as part
of the `TableAttributes` struct.

The necessary `grant` methods that target the table stream were also
modified so that they can be used on any `ITable` that was built with a
`tableStreamArn`.

As a bonus, added documentation text for a couple of previously
undocumented enum constants.

Fixes aws#6344
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-dynamodb Related to Amazon DynamoDB contribution/core This is a PR that came from AWS. effort/small Small work item – less than a day of effort
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error using "DynamoEventSource" for a imported table on Python
3 participants