link2aws 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/link2aws.js +11 -1
  2. package/package.json +1 -1
package/link2aws.js CHANGED
@@ -126,7 +126,16 @@ class ARN {
126
126
  "certificate-authority": null,
127
127
  },
128
128
  "amplify": { // AWS Amplify
129
- "apps": null,
129
+ "apps": () => {
130
+ if(this.resource.includes('/jobs/')) {
131
+ const resourceSplit = this.resource.split('/');
132
+ const appID = resourceSplit[0];
133
+ const branch = resourceSplit[2];
134
+ const job = resourceSplit[resourceSplit.length - 1].replace(/^0+/, '');
135
+ return `https://${this.region}.${this.console}/amplify/home?region=${this.region}#/${appID}/${branch}/${job}`;
136
+ }
137
+ return null;
138
+ },
130
139
  },
131
140
  "apigateway": { // Manage Amazon API Gateway
132
141
  "": null,
@@ -251,6 +260,7 @@ class ARN {
251
260
  "association": null,
252
261
  },
253
262
  "codepipeline": { // AWS CodePipeline
263
+ "": () => `https://${this.region}.${this.console}/codesuite/codepipeline/pipelines/${this.resource}/view?region=${this.region}`,
254
264
  "actiontype": null,
255
265
  "webhook": null,
256
266
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "link2aws",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Convert ARN (Amazon Resource Name) to AWS Console link",
5
5
  "main": "link2aws.js",
6
6
  "directories": {