Skip to content

Commit dadd326

Browse files
authored
Merge pull request #46 from denovo/feat/add-medialive-channel-support
feat: Add support for medialive channel links
2 parents 7217fc9 + afadd65 commit dadd326

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

link2aws.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ class ARN {
728728
"queues": null,
729729
},
730730
"medialive": { // AWS Elemental MediaLive
731-
"channel": null,
731+
"channel": () => `https://${this.region}.${this.console}/medialive/home?region=${this.region}#/channels/${this.resource}`,
732732
"input": null,
733733
"inputDevice": null,
734734
"inputSecurityGroup": null,

testcases/aws.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"arn:aws:logs:us-east-2:123456789012:log-group:/aws/lambda/dev-hello:*": "https://us-east-2.console.aws.amazon.com/cloudwatch/home?region=us-east-2#logsV2:log-groups/log-group/$252Faws$252Flambda$252Fdev-hello",
3434
"arn:aws:logs:us-east-2:123456789012:log-group:test00_11-22/33.44#55:*": "https://us-east-2.console.aws.amazon.com/cloudwatch/home?region=us-east-2#logsV2:log-groups/log-group/test00_11-22$252F33.44$252355",
3535

36+
"arn:aws:medialive:eu-west-1:123456789012:channel:5317689": "https://eu-west-1.console.aws.amazon.com/medialive/home?region=eu-west-1#/channels/5317689",
37+
3638
"arn:aws:route53:::healthcheck/b48b0df4-79df-4e41-b69b-9a48b8ebef04": "https://console.aws.amazon.com/route53/healthchecks/home",
3739
"arn:aws:route53:::hostedzone/12345ABCDEFGHI": "https://console.aws.amazon.com/route53/home?#resource-record-sets:12345ABCDEFGHI",
3840
"arn:aws:route53:::trafficpolicy/4869e13a-1e77-457f-a15e-d0bed0584175": "https://console.aws.amazon.com/route53/trafficflow/home#/policy/4869e13a-1e77-457f-a15e-d0bed0584175",

0 commit comments

Comments
 (0)