Skip to content

Commit

Permalink
fix(rules): add AWS Translate
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 18, 2023
1 parent 156d182 commit 82175ba
Show file tree
Hide file tree
Showing 8 changed files with 49 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 @@ -56,6 +56,7 @@ exports[`all > should match everything 1`] = `
"aws.sns",
"aws.sqs",
"aws.timestream",
"aws.translate",
"azure",
"azure.ci",
"betterstack",
Expand Down
17 changes: 17 additions & 0 deletions src/rules/api/aws.translate.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { register } from '../../register.js';

register({
tech: 'aws.translate',
name: 'AWS Translate',
type: 'db',
dependencies: [
{ type: 'npm', name: '@aws-sdk/client-translate' },
{ type: 'npm', name: '@aws-cdk/aws-translate' },
{ type: 'rust', name: 'aws-sdk-translate' },
{ type: 'ruby', name: 'aws-sdk-translate' },
{
type: 'golang',
name: 'github.com/aws/aws-sdk-go-v2/service/translate',
},
],
});
1 change: 1 addition & 0 deletions src/rules/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import './aws.kinesis.js';
import './aws.polly.js';
import './aws.rekognition.js';
import './aws.sagemaker.js';
import './aws.translate.js';
import './gcp.aiplatform.js';
import './gcp.dialogflow.js';
import './gcp.kms.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 @@ -33,6 +33,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"aws.sns",
"aws.sqs",
"aws.timestream",
"aws.translate",
"azure",
"brevo",
"clickhouse",
Expand Down Expand Up @@ -385,6 +386,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/aws/aws-sdk-go-v2/service/timestream",
"v1.0.0",
],
[
"golang",
"github.com/aws/aws-sdk-go-v2/service/translate",
"v1.0.0",
],
[
"golang",
"github.com/elastic/go-elasticsearch",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ exports[`npm > should match everything 1`] = `
"aws.sns",
"aws.sqs",
"aws.timestream",
"aws.translate",
"betterstack",
"bootstrap",
"brevo",
Expand Down Expand Up @@ -366,6 +367,11 @@ exports[`npm > should match everything 2`] = `
"@aws-cdk/aws-timestream",
"0.0.0",
],
[
"npm",
"@aws-cdk/aws-translate",
"0.0.0",
],
[
"npm",
"@aws-sdk/aws-redshift",
Expand Down Expand Up @@ -526,6 +532,11 @@ exports[`npm > should match everything 2`] = `
"@aws-sdk/client-timestream",
"0.0.0",
],
[
"npm",
"@aws-sdk/client-translate",
"0.0.0",
],
[
"npm",
"@aws-sdk/middleware-sdk-rds",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ exports[`ruby (component) > should match everything 1`] = `
"aws.sns",
"aws.sqs",
"aws.timestream",
"aws.translate",
"azure",
"betterstack",
"brevo",
Expand Down Expand Up @@ -312,6 +313,11 @@ exports[`ruby (component) > should match everything 2`] = `
"aws-sdk-timestream",
"1.0.0",
],
[
"ruby",
"aws-sdk-translate",
"1.0.0",
],
[
"ruby",
"azure-armrest",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/rust/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ exports[`rust (component) > should match everything 1`] = `
"aws.sns",
"aws.sqs",
"aws.timestream",
"aws.translate",
"azure",
"cloudflare",
"couchbase",
Expand Down Expand Up @@ -256,6 +257,11 @@ exports[`rust (component) > should match everything 2`] = `
"aws-sdk-timestream",
"1.0.0",
],
[
"rust",
"aws-sdk-translate",
"1.0.0",
],
[
"rust",
"azure_core",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export type AllowedKeys =
| 'aws.sns'
| 'aws.sqs'
| 'aws.timestream'
| 'aws.translate'
| 'aws'
| 'azure.ci'
| 'azure'
Expand Down

0 comments on commit 82175ba

Please sign in to comment.