Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
213 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,6 @@ typings/ | |
|
||
# next.js build output | ||
.next | ||
|
||
# VSCode | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use strict'; | ||
|
||
const { STS, Firehose } = require('aws-sdk'); | ||
|
||
class FirehoseWrapper { | ||
|
||
constructor(config) { | ||
this._firehose = new Firehose(config); | ||
} | ||
|
||
/* istanbul ignore next */ | ||
// AWS generates the Firehose class on the fly, the putRecord method do not exists before creating the insance | ||
putRecord(record) { | ||
return this._firehose.putRecord(record).promise(); | ||
} | ||
} | ||
|
||
class StsWrapper { | ||
|
||
constructor(config) { | ||
this._sts = new STS(config); | ||
} | ||
|
||
/* istanbul ignore next */ | ||
// AWS generates the STS class on the fly, the assumeRole method do not exists before creating the insance | ||
assumeRole(params) { | ||
return this._sts.assumeRole(params).promise(); | ||
} | ||
} | ||
|
||
module.exports = { | ||
Firehose: FirehoseWrapper, | ||
STS: StsWrapper | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.