-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cost-explorer): AnomalyMonitor and AnomalySubscription type #39
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #39 +/- ##
=======================================
Coverage 82.71% 82.71%
=======================================
Files 12 12
Lines 972 972
Branches 141 141
=======================================
Hits 804 804
Misses 168 168
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
await service.deleteAnomalyMonitor({ MonitorArn: model.arn }).promise(); | ||
|
||
return Promise.resolve(null); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a read handler
model.arn = response.MonitorArn; | ||
return Promise.resolve(model); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why there is no update handler?
@@ -0,0 +1,18 @@ | |||
# Distribution / packaging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gitignore can be removed
@@ -0,0 +1,18 @@ | |||
# Distribution / packaging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gitignore can be removed
"cfn-rpdk": "npm:@org-formation/cfn-rpdk@^0.4.0", | ||
"class-transformer": "^0.3.1", | ||
"uuid": "^7.0.3", | ||
"aws-sdk": "2.775.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws sdk should be moved to optional dependencies, because the minimum lambda version now is 2.771.0
"devDependencies": { | ||
"@types/node": "^12.0.0", | ||
"@types/uuid": "^7.0.3", | ||
"typescript": "^3.8.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be "typescript": "^4.1.2"
to make sure we use the hoisted version across the whole repository
}, | ||
"dependencies": { | ||
"aws-resource-providers-common": "^0.2.0", | ||
"cfn-rpdk": "npm:@org-formation/cfn-rpdk@^0.4.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update to 0.5.0
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"dependencies": { | ||
"aws-resource-providers-common": "^0.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update to 0.3.0
"devDependencies": { | ||
"@types/node": "^12.0.0", | ||
"@types/uuid": "^7.0.3", | ||
"typescript": "^3.8.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be "typescript": "^4.1.2"
"cfn-rpdk": "npm:@org-formation/cfn-rpdk@^0.4.0", | ||
"class-transformer": "^0.3.1", | ||
"uuid": "^7.0.3", | ||
"aws-sdk": "2.775.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to optional
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"dependencies": { | ||
"aws-resource-providers-common": "^0.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update
}, | ||
"dependencies": { | ||
"aws-resource-providers-common": "^0.2.0", | ||
"cfn-rpdk": "npm:@org-formation/cfn-rpdk@^0.4.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update
@OlafConijn i think AWS has a CFN resource for this now? https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalymonitor.html |
9d87809
to
cec8fd2
Compare
Issue #, if available: #36
Description of changes: