Skip to content

Commit 2810053

Browse files
authored
Merge pull request #64 from dleavitt/codeconnections
Add codeconnections, codestar-connections
2 parents 213f960 + 709be04 commit 2810053

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

link2aws.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ class ARN {
293293
},
294294
"codecommit": { // Amazon CodeGuru Reviewer
295295
},
296+
"codeconnections": { // AWS CodeConnections
297+
"connection": () => `https://${this.region}.${this.console}/codesuite/settings/${this.account}/${this.region}/${this.service}/${this.resource_type}s/${this.resource}`,
298+
},
296299
"codedeploy": { // AWS CodeDeploy
297300
"application": null,
298301
"deploymentconfig": null,
@@ -315,7 +318,7 @@ class ARN {
315318
"project": null,
316319
},
317320
"codestar-connections": { // AWS CodeStar Connections
318-
"connection": null,
321+
"connection": () => `https://${this.region}.${this.console}/codesuite/settings/${this.account}/${this.region}/${this.service}/${this.resource_type}s/${this.resource}`,
319322
},
320323
"codestar-notifications": { // AWS CodeStar Notifications
321324
"notificationrule": null,

testcases/aws.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,9 @@
8383

8484
"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",
8585

86-
"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"
86+
"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",
87+
88+
"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",
89+
"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"
90+
8791
}

0 commit comments

Comments
 (0)