@ndlib/ndlib-cdk2 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.
package/README.md
CHANGED
|
@@ -385,17 +385,18 @@ Note that this replaces the ManualApprovalAction in a code pipeline.
|
|
|
385
385
|
Example usage:
|
|
386
386
|
|
|
387
387
|
```typescript
|
|
388
|
-
import {
|
|
388
|
+
import { SlackIntegratedManualApproval } from 'aws-cdk-lib/aws-ec2'
|
|
389
389
|
import { Topic } from 'aws-cdk-lib/aws-sns'
|
|
390
390
|
|
|
391
391
|
...
|
|
392
392
|
// Create a Topic
|
|
393
|
-
const
|
|
393
|
+
const importedSlackNotifyTopicArn = Fn.importValue(props.slackNotifyTopicOutput)
|
|
394
|
+
const approvalTopic = Topic.fromTopicArn(this, 'SlackTopicFromArn', importedSlackNotifyTopicArn)
|
|
394
395
|
|
|
395
396
|
// Call the SlackIntegratedManualApproval
|
|
396
397
|
const approveTestStackAction = new SlackIntegratedManualApproval({
|
|
397
398
|
actionName: 'ApproveTestStack',
|
|
398
|
-
notificationTopic:
|
|
399
|
+
notificationTopic: approvalTopic,
|
|
399
400
|
runOrder: 99,
|
|
400
401
|
customData: {
|
|
401
402
|
approveButtonText: 'Approve',
|
|
@@ -407,14 +408,6 @@ const testStackApprovalTopic = new Topic(this, 'TestStackApprovalTopic', { displ
|
|
|
407
408
|
successfulTarget: 'https://testUrl.somewhere.edu',
|
|
408
409
|
},
|
|
409
410
|
})
|
|
410
|
-
|
|
411
|
-
// Subscribe to the topic
|
|
412
|
-
if (props.slackNotifyStackName) {
|
|
413
|
-
new SlackSubscription(this, 'SlackSubscription', {
|
|
414
|
-
approvalTopic: testStackApprovalTopic,
|
|
415
|
-
notifyStackName: props.slackNotifyStackName,
|
|
416
|
-
})
|
|
417
|
-
|
|
418
411
|
...
|
|
419
412
|
```
|
|
420
413
|
|
|
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./slack-integrated-manual-approval"), exports);
|
|
18
|
-
__exportStar(require("./slack-subscription"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndlib/ndlib-cdk2",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Reusable CDK2 modules used within Hesburgh Libraries of Notre Dame",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/
|
|
23
|
+
"url": "git+https://github.com/ndlibrary/ndlib-cdk2.git"
|
|
24
24
|
},
|
|
25
25
|
"keywords": [
|
|
26
26
|
"aws",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"bugs": {
|
|
36
|
-
"url": "https://github.com/
|
|
36
|
+
"url": "https://github.com/ndlibrary/ndlib-cdk2/issues"
|
|
37
37
|
},
|
|
38
|
-
"homepage": "https://github.com/
|
|
38
|
+
"homepage": "https://github.com/ndlibrary/ndlib-cdk2#readme",
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"aws-cdk-lib": "^2.
|
|
40
|
+
"aws-cdk-lib": "^2.78.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/jest": "^29.5.0",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"lib/**/*"
|
|
67
67
|
],
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"aws-cdk-lib": "^2.
|
|
70
|
-
"constructs": "^10.
|
|
69
|
+
"aws-cdk-lib": "^2.78.0",
|
|
70
|
+
"constructs": "^10.2.16",
|
|
71
71
|
"node-fetch": "^3.3.1"
|
|
72
72
|
},
|
|
73
73
|
"subPackages": [
|