From 709be0440286783a7b1481290f3e30ba7f23e264 Mon Sep 17 00:00:00 2001 From: Daniel Leavitt Date: Tue, 30 Jul 2024 14:09:59 -0700 Subject: [PATCH] Add codeconnections, codestar-connections Fixes #63 --- link2aws.js | 5 ++++- testcases/aws.json | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/link2aws.js b/link2aws.js index 6832253..13ba1a6 100644 --- a/link2aws.js +++ b/link2aws.js @@ -293,6 +293,9 @@ class ARN { }, "codecommit": { // Amazon CodeGuru Reviewer }, + "codeconnections": { // AWS CodeConnections + "connection": () => `https://${this.region}.${this.console}/codesuite/settings/${this.account}/${this.region}/${this.service}/${this.resource_type}s/${this.resource}`, + }, "codedeploy": { // AWS CodeDeploy "application": null, "deploymentconfig": null, @@ -315,7 +318,7 @@ class ARN { "project": null, }, "codestar-connections": { // AWS CodeStar Connections - "connection": null, + "connection": () => `https://${this.region}.${this.console}/codesuite/settings/${this.account}/${this.region}/${this.service}/${this.resource_type}s/${this.resource}`, }, "codestar-notifications": { // AWS CodeStar Notifications "notificationrule": null, diff --git a/testcases/aws.json b/testcases/aws.json index 247ffda..368f019 100644 --- a/testcases/aws.json +++ b/testcases/aws.json @@ -83,5 +83,9 @@ "arn:aws:backup:us-east-1:123456789012:backup-vault:backups-primary": "https://console.aws.amazon.com/backup/home?region=us-east-1#/backupvaults/details/backups-primary", - "arn:aws:firehose:us-east-1:123456789012:deliverystream/test-stream": "https://console.aws.amazon.com/firehose/home?region=us-east-1#/details/test-stream/monitoring" + "arn:aws:firehose:us-east-1:123456789012:deliverystream/test-stream": "https://console.aws.amazon.com/firehose/home?region=us-east-1#/details/test-stream/monitoring", + + "arn:aws:codeconnections:us-west-2:384862141196:connection/f8234ecc-8990-4e63-b25a-ec36764b7701": "https://us-west-2.console.aws.amazon.com/codesuite/settings/384862141196/us-west-2/codeconnections/connections/f8234ecc-8990-4e63-b25a-ec36764b7701", + "arn:aws:codestar-connections:us-west-2:384862141196:connection/f8234ecc-8990-4e63-b25a-ec36764b7701": "https://us-west-2.console.aws.amazon.com/codesuite/settings/384862141196/us-west-2/codestar-connections/connections/f8234ecc-8990-4e63-b25a-ec36764b7701" + } \ No newline at end of file