@8ms/helpers 1.0.8 → 1.0.9

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.
@@ -9,7 +9,13 @@ var getClient = function (_a) {
9
9
  var GlueLib = _a.GlueLib, config = _a.config;
10
10
  if (!global.awsGlueClient) {
11
11
  var GlueClient = GlueLib.GlueClient;
12
- global.awsGlueClient = new GlueClient(config);
12
+ global.awsGlueClient = new GlueClient({
13
+ credentials: {
14
+ accessKeyId: config.accessKeyId,
15
+ secretAccessKey: config.secretAccessKey,
16
+ },
17
+ region: config.region,
18
+ });
13
19
  }
14
20
  glueClient = global.awsGlueClient;
15
21
  return glueClient;
@@ -9,7 +9,13 @@ var getClient = function (_a) {
9
9
  var LambdaLib = _a.LambdaLib, config = _a.config;
10
10
  if (!global.awsLambdaClient) {
11
11
  var LambdaClient = LambdaLib.LambdaClient;
12
- global.awsLambdaClient = new LambdaClient(config);
12
+ global.awsLambdaClient = new LambdaClient({
13
+ credentials: {
14
+ accessKeyId: config.accessKeyId,
15
+ secretAccessKey: config.secretAccessKey,
16
+ },
17
+ region: config.region,
18
+ });
13
19
  }
14
20
  lambdaClient = global.awsLambdaClient;
15
21
  return lambdaClient;
@@ -9,7 +9,13 @@ var getClient = function (_a) {
9
9
  var S3Lib = _a.S3Lib, config = _a.config;
10
10
  if (!global.awsS3Client) {
11
11
  var S3Client = S3Lib.S3Client;
12
- global.awsS3Client = new S3Client(config);
12
+ global.awsS3Client = new S3Client({
13
+ credentials: {
14
+ accessKeyId: config.accessKeyId,
15
+ secretAccessKey: config.secretAccessKey,
16
+ },
17
+ region: config.region,
18
+ });
13
19
  }
14
20
  s3Client = global.awsS3Client;
15
21
  return s3Client;
@@ -9,7 +9,13 @@ var getClient = function (_a) {
9
9
  var SesLib = _a.SesLib, config = _a.config;
10
10
  if (!global.awsSesClient) {
11
11
  var SESClient = SesLib.SESClient;
12
- global.sesClient = new SESClient(config);
12
+ global.sesClient = new SESClient({
13
+ credentials: {
14
+ accessKeyId: config.accessKeyId,
15
+ secretAccessKey: config.secretAccessKey,
16
+ },
17
+ region: config.region,
18
+ });
13
19
  }
14
20
  sesClient = global.awsSesClient;
15
21
  return sesClient;
@@ -9,7 +9,13 @@ var getClient = function (_a) {
9
9
  var SsmLib = _a.SsmLib, config = _a.config;
10
10
  if (!global.awsSsmClient) {
11
11
  var SSMClient = SsmLib.SSMClient;
12
- global.awsSsmClient = new SSMClient(config);
12
+ global.awsSsmClient = new SSMClient({
13
+ credentials: {
14
+ accessKeyId: config.accessKeyId,
15
+ secretAccessKey: config.secretAccessKey,
16
+ },
17
+ region: config.region,
18
+ });
13
19
  }
14
20
  ssmClient = global.awsSsmClient;
15
21
  return ssmClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@8ms/helpers",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"