Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

OlafConijn
Copy link
Member

Issue #, if available: #36

Description of changes:

  • created json schema for Anomaly Monitor and Anomaly Subscription
  • created create and delete handlers

@codecov
Copy link

codecov bot commented Nov 2, 2020

Codecov Report

Merging #39 (feee083) into master (267da8d) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #39   +/-   ##
=======================================
  Coverage   82.71%   82.71%           
=======================================
  Files          12       12           
  Lines         972      972           
  Branches      141      141           
=======================================
  Hits          804      804           
  Misses        168      168           
Flag Coverage Δ
unittests 82.71% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 267da8d...63ba022. Read the comment docs.

@OlafConijn OlafConijn marked this pull request as ready for review November 12, 2020 11:09
@OlafConijn OlafConijn changed the title feat(cost-explorer): WIP imported schemas for cost explorer feat(cost-explorer): AnomalyMonitor and AnomalySubscription types Nov 12, 2020
@OlafConijn OlafConijn changed the title feat(cost-explorer): AnomalyMonitor and AnomalySubscription types feat(cost-explorer): AnomalyMonitor and AnomalySubscription type Nov 12, 2020
await service.deleteAnomalyMonitor({ MonitorArn: model.arn }).promise();

return Promise.resolve(null);
}
Copy link
Member

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);
}

Copy link
Member

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
Copy link
Member

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
Copy link
Member

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"
Copy link
Member

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"
Copy link
Member

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",
Copy link
Member

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",
Copy link
Member

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"
Copy link
Member

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"
Copy link
Member

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",
Copy link
Member

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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update

@zaro0508
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants