Skip to content

Commit

Permalink
fix(rules): add AWS SES
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Nov 8, 2023
1 parent d1832dc commit dcb6ed0
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ exports[`all > should match everything 1`] = `
"aws.s3",
"aws.sagemaker",
"aws.secretsmanager",
"aws.ses",
"aws.sfn",
"aws.sns",
"aws.sqs",
Expand Down
24 changes: 24 additions & 0 deletions src/rules/messaging/aws.ses.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { register } from '../../register.js';

register({
tech: 'aws.ses',
name: 'AWS Simple Email Service',
type: 'messaging',
dependencies: [
{ type: 'npm', name: '@aws-cdk/aws-ses' },
{ type: 'npm', name: 'aws-ses-v2-local' },
{ type: 'npm', name: 'nodemailer-ses-transport' },
{ type: 'npm', name: '@aws-sdk/client-ses' },
{ type: 'rust', name: 'aws-sdk-ses' },
{ type: 'rust', name: 'aws-sdk-sesv2' },
{ type: 'ruby', name: 'aws-ses' },
{ type: 'ruby', name: 'aws-sdk-ses' },
{ type: 'golang', name: 'github.com/aws/aws-sdk-go-v2/service/ses' },
{
type: 'terraform.resource',
name: /^aws_ses/,
example: 'aws_ses_queue',
},
{ type: 'php', name: 'async-aws/ses' },
],
});
1 change: 1 addition & 0 deletions src/rules/messaging/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import './apache_kafka.js';
import './aws.kafka.js';
import './aws.mq.js';
import './aws.ses.js';
import './aws.sns.js';
import './aws.sqs.js';
import './celery.js';
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/golang/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"aws.s3",
"aws.sagemaker",
"aws.secretsmanager",
"aws.ses",
"aws.sfn",
"aws.sns",
"aws.sqs",
Expand Down Expand Up @@ -485,6 +486,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/aws/aws-sdk-go-v2/service/secretsmanager",
"v1.0.0",
],
[
"golang",
"github.com/aws/aws-sdk-go-v2/service/ses",
"v1.0.0",
],
[
"golang",
"github.com/aws/aws-sdk-go-v2/service/sfn",
Expand Down
21 changes: 21 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ exports[`npm > should match everything 1`] = `
"aws.s3",
"aws.sagemaker",
"aws.secretsmanager",
"aws.ses",
"aws.sfn",
"aws.sns",
"aws.sqs",
Expand Down Expand Up @@ -499,6 +500,11 @@ exports[`npm > should match everything 2`] = `
"@aws-cdk/aws-secretsmanager",
"0.0.0",
],
[
"npm",
"@aws-cdk/aws-ses",
"0.0.0",
],
[
"npm",
"@aws-cdk/aws-sfn",
Expand Down Expand Up @@ -699,6 +705,11 @@ exports[`npm > should match everything 2`] = `
"@aws-sdk/client-secrets-manager",
"0.0.0",
],
[
"npm",
"@aws-sdk/client-ses",
"0.0.0",
],
[
"npm",
"@aws-sdk/client-sfn",
Expand Down Expand Up @@ -1859,6 +1870,11 @@ exports[`npm > should match everything 2`] = `
"aws-sdk",
"0.0.0",
],
[
"npm",
"aws-ses-v2-local",
"0.0.0",
],
[
"npm",
"aws4fetch",
Expand Down Expand Up @@ -2429,6 +2445,11 @@ exports[`npm > should match everything 2`] = `
"nodemailer-sendgrid-transport",
"0.0.0",
],
[
"npm",
"nodemailer-ses-transport",
"0.0.0",
],
[
"npm",
"nuxt",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/php/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ exports[`php > should match everything 1`] = `
"aws.lambda",
"aws.rds",
"aws.s3",
"aws.ses",
"aws.sns",
"aws.sqs",
"azure",
Expand Down Expand Up @@ -227,6 +228,11 @@ exports[`php > should match everything 2`] = `
"async-aws/s3",
"0.0.0",
],
[
"php",
"async-aws/ses",
"0.0.0",
],
[
"php",
"async-aws/simple-s3",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ exports[`ruby (component) > should match everything 1`] = `
"aws.s3",
"aws.sagemaker",
"aws.secretsmanager",
"aws.ses",
"aws.sfn",
"aws.sns",
"aws.sqs",
Expand Down Expand Up @@ -385,6 +386,11 @@ exports[`ruby (component) > should match everything 2`] = `
"aws-sdk-secretsmanager",
"1.0.0",
],
[
"ruby",
"aws-sdk-ses",
"1.0.0",
],
[
"ruby",
"aws-sdk-sfn",
Expand All @@ -410,6 +416,11 @@ exports[`ruby (component) > should match everything 2`] = `
"aws-sdk-translate",
"1.0.0",
],
[
"ruby",
"aws-ses",
"1.0.0",
],
[
"ruby",
"azure-armrest",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/spec/rust/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ exports[`rust (component) > should match everything 1`] = `
"aws.s3",
"aws.sagemaker",
"aws.secretsmanager",
"aws.ses",
"aws.sfn",
"aws.sns",
"aws.sqs",
Expand Down Expand Up @@ -288,6 +289,16 @@ exports[`rust (component) > should match everything 2`] = `
"aws-sdk-secretsmanager",
"1.0.0",
],
[
"rust",
"aws-sdk-ses",
"1.0.0",
],
[
"rust",
"aws-sdk-sesv2",
"1.0.0",
],
[
"rust",
"aws-sdk-sfn",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ exports[`terraform (resource) > should match everything 1`] = `
"aws.s3",
"aws.sagemaker",
"aws.secretsmanager",
"aws.ses",
"aws.sfn",
"aws.sns",
"aws.sqs",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export type AllowedKeys =
| 'aws.s3'
| 'aws.sagemaker'
| 'aws.secretsmanager'
| 'aws.ses'
| 'aws.sfn'
| 'aws.sns'
| 'aws.sqs'
Expand Down

0 comments on commit dcb6ed0

Please sign in to comment.