Skip to content

feat(ses): event destinations for configuration sets#24745

Merged
mergify[bot] merged 8 commits intoaws:mainfrom
jogold:ses-event-destinations
Apr 6, 2023
Merged

feat(ses): event destinations for configuration sets#24745
mergify[bot] merged 8 commits intoaws:mainfrom
jogold:ses-event-destinations

Conversation

@jogold
Copy link
Copy Markdown
Contributor

@jogold jogold commented Mar 22, 2023

Add a L2 for ConfigurationSetEventDestination.

Only Amazon SNS and Amazon CloudWatch have been implemented.

By default, the destination is enabled and all events are published.

Also add a addEventDestination() convenience method to ConfigurationSet.


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

Add a L2 for `ConfigurationSetEventDestination`.
@aws-cdk-automation aws-cdk-automation requested a review from a team March 22, 2023 15:40
@github-actions github-actions Bot added the p2 label Mar 22, 2023
@github-actions github-actions Bot added the distinguished-contributor [Pilot] contributed 50+ PRs to the CDK label Mar 22, 2023
Copy link
Copy Markdown
Contributor

@TheRealAmazonKendra TheRealAmazonKendra left a comment

Choose a reason for hiding this comment

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

Overall this is fantastic. Just a few small comments/questions inline.

*
* @default true
*/
readonly enabled?: boolean;
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.

Is there a use case for adding the destination and not enabling it? This seems unnecessary but maybe I'm missing something.

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.

Can be used in staging/dev/test environments where it can be "manually" enabled for testing purposes (so you don't pay for 100% of the time enabled in those environments).

Comment thread packages/@aws-cdk/aws-ses/lib/configuration-set-event-destination.ts Outdated
/**
* Use an existing configuration set
*/
public static fromConfigurationSetEventDestinationId(
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.

Is there a case to also have a fromConfigurationSetEventDestinationName?

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.

The id is the name I think but the doc is not really clear...

image

Anyway I don't think this resource will be referenced by another CF resource, even the fromConfigurationSetEventDestinationId() will not be used I think... (but makes the linter happy)

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

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.

@mergify mergify Bot dismissed TheRealAmazonKendra’s stale review April 1, 2023 08:38

Pull request has been modified.

Comment thread packages/aws-cdk-lib/aws-ses/lib/configuration-set-event-destination.ts Outdated
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 6, 2023

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-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: aad1b31
  • 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 3be43eb into aws:main Apr 6, 2023
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 6, 2023

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

@jogold jogold deleted the ses-event-destinations branch April 6, 2023 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

distinguished-contributor [Pilot] contributed 50+ PRs to the CDK p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants