@cumulus/aws-client 19.0.0 → 19.2.0-alpha.0

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/Kinesis.d.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import pRetry from 'p-retry';
5
5
  import { DescribeStreamInput } from '@aws-sdk/client-kinesis';
6
+ export { LimitExceededException } from '@aws-sdk/client-kinesis';
6
7
  /**
7
8
  * Describe a Kinesis stream.
8
9
  *
package/Kinesis.js CHANGED
@@ -6,10 +6,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6
6
  return (mod && mod.__esModule) ? mod : { "default": mod };
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.describeStream = void 0;
9
+ exports.describeStream = exports.LimitExceededException = void 0;
10
10
  const p_retry_1 = __importDefault(require("p-retry"));
11
11
  const client_kinesis_1 = require("@aws-sdk/client-kinesis");
12
12
  const services_1 = require("./services");
13
+ var client_kinesis_2 = require("@aws-sdk/client-kinesis");
14
+ Object.defineProperty(exports, "LimitExceededException", { enumerable: true, get: function () { return client_kinesis_2.LimitExceededException; } });
13
15
  /**
14
16
  * Describe a Kinesis stream.
15
17
  *
package/S3.d.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  * @module S3
3
3
  */
4
4
  /// <reference types="node" />
5
+ /// <reference types="node" />
5
6
  import pRetry from 'p-retry';
6
7
  import { Readable, TransformOptions } from 'stream';
7
8
  import { CopyObjectCommandInput, DeleteObjectRequest, DeleteBucketCommandOutput, GetObjectCommandInput, GetObjectOutput, HeadObjectOutput, ListObjectsV2Request, ObjectCannedACL, PutObjectCommandInput, PutObjectRequest, S3, Tagging, ListObjectsCommandOutput } from '@aws-sdk/client-s3';
@@ -2,7 +2,7 @@
2
2
  * @module StepFunctions
3
3
  */
4
4
  import { DescribeExecutionInput, DescribeExecutionOutput, DescribeStateMachineInput, DescribeStateMachineOutput, GetExecutionHistoryInput, HistoryEvent, ListExecutionsCommandInput } from '@aws-sdk/client-sfn';
5
- export { HistoryEvent, DescribeExecutionOutput } from '@aws-sdk/client-sfn';
5
+ export { DescribeExecutionOutput, ExecutionDoesNotExist, ExecutionAlreadyExists, HistoryEvent, StateMachineDoesNotExist, } from '@aws-sdk/client-sfn';
6
6
  export declare const doesExecutionExist: (describeExecutionPromise: Promise<unknown>) => Promise<boolean>;
7
7
  /**
8
8
  * Call StepFunctions DescribeExecution
package/StepFunctions.js CHANGED
@@ -3,15 +3,20 @@
3
3
  * @module StepFunctions
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.listExecutions = exports.getExecutionStatus = exports.getExecutionHistory = exports.executionExists = exports.describeStateMachine = exports.describeExecution = exports.doesExecutionExist = void 0;
6
+ exports.listExecutions = exports.getExecutionStatus = exports.getExecutionHistory = exports.executionExists = exports.describeStateMachine = exports.describeExecution = exports.doesExecutionExist = exports.StateMachineDoesNotExist = exports.ExecutionAlreadyExists = exports.ExecutionDoesNotExist = void 0;
7
+ const client_sfn_1 = require("@aws-sdk/client-sfn");
7
8
  const services_1 = require("./services");
8
9
  const utils_1 = require("./utils");
9
10
  const test_utils_1 = require("./test-utils");
11
+ var client_sfn_2 = require("@aws-sdk/client-sfn");
12
+ Object.defineProperty(exports, "ExecutionDoesNotExist", { enumerable: true, get: function () { return client_sfn_2.ExecutionDoesNotExist; } });
13
+ Object.defineProperty(exports, "ExecutionAlreadyExists", { enumerable: true, get: function () { return client_sfn_2.ExecutionAlreadyExists; } });
14
+ Object.defineProperty(exports, "StateMachineDoesNotExist", { enumerable: true, get: function () { return client_sfn_2.StateMachineDoesNotExist; } });
10
15
  // Utility functions
11
16
  const doesExecutionExist = (describeExecutionPromise) => describeExecutionPromise
12
17
  .then(() => true)
13
18
  .catch((error) => {
14
- if (error.name === 'ExecutionDoesNotExist')
19
+ if (error instanceof client_sfn_1.ExecutionDoesNotExist)
15
20
  return false;
16
21
  if ((0, test_utils_1.inTestMode)() && error.name === 'InvalidName')
17
22
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cumulus/aws-client",
3
- "version": "19.0.0",
3
+ "version": "19.2.0-alpha.0",
4
4
  "description": "Utilities for working with AWS",
5
5
  "keywords": [
6
6
  "GIBS",
@@ -68,11 +68,10 @@
68
68
  "@aws-sdk/s3-request-presigner": "^3.621.0",
69
69
  "@aws-sdk/signature-v4-crt": "^3.621.0",
70
70
  "@aws-sdk/types": "^3.609.0",
71
- "@cumulus/checksum": "19.0.0",
72
- "@cumulus/errors": "19.0.0",
73
- "@cumulus/logger": "19.0.0",
74
- "@cumulus/types": "19.0.0",
75
- "jsonpath-plus": "^1.1.0",
71
+ "@cumulus/checksum": "19.2.0-alpha.0",
72
+ "@cumulus/errors": "19.2.0-alpha.0",
73
+ "@cumulus/logger": "19.2.0-alpha.0",
74
+ "@cumulus/types": "19.2.0-alpha.0",
76
75
  "lodash": "~4.17.21",
77
76
  "mem": "^8.0.2",
78
77
  "p-map": "^1.2.0",
@@ -83,8 +82,8 @@
83
82
  "uuid": "^8.2.0"
84
83
  },
85
84
  "devDependencies": {
86
- "@cumulus/test-data": "18.0.0",
85
+ "@cumulus/test-data": "19.0.0",
87
86
  "@types/uuid": "^8.0.0"
88
87
  },
89
- "gitHead": "3a619db6e6fa20846eb75802e89d5a065fd62fcc"
88
+ "gitHead": "533280b62564b6ce89fabcde5cbe653afb964205"
90
89
  }
package/services.d.ts CHANGED
@@ -7,7 +7,7 @@ import { Kinesis } from '@aws-sdk/client-kinesis';
7
7
  import { KMS } from '@aws-sdk/client-kms';
8
8
  import { Lambda } from '@aws-sdk/client-lambda';
9
9
  import { CloudWatchEvents } from '@aws-sdk/client-cloudwatch-events';
10
- import { S3 } from '@aws-sdk/client-s3';
10
+ import { S3, S3ClientConfig } from '@aws-sdk/client-s3';
11
11
  import { SecretsManager } from '@aws-sdk/client-secrets-manager';
12
12
  import { SFN } from '@aws-sdk/client-sfn';
13
13
  import { SQS } from '@aws-sdk/client-sqs';
@@ -28,7 +28,7 @@ export declare const es: (params?: object | undefined) => ElasticsearchService;
28
28
  export declare const kinesis: (params?: object | undefined) => Kinesis;
29
29
  export declare const kms: (params?: object | undefined) => KMS;
30
30
  export declare const lambda: (params?: object | undefined) => Lambda;
31
- export declare const s3: (params?: object | undefined) => S3;
31
+ export declare const s3: (serviceOptions?: S3ClientConfig) => S3;
32
32
  export declare const secretsManager: (params?: object | undefined) => SecretsManager;
33
33
  export declare const sfn: (params?: object | undefined) => SFN;
34
34
  export declare const sns: (params?: object | undefined) => SNS;
package/services.js CHANGED
@@ -36,7 +36,8 @@ exports.es = (0, client_1.default)(client_elasticsearch_service_1.ElasticsearchS
36
36
  exports.kinesis = (0, client_1.default)(client_kinesis_1.Kinesis, '2013-12-02');
37
37
  exports.kms = (0, client_1.default)(client_kms_1.KMS, '2014-11-01');
38
38
  exports.lambda = (0, client_1.default)(client_lambda_1.Lambda, '2015-03-31');
39
- exports.s3 = (0, client_1.default)(client_s3_1.S3, '2006-03-01');
39
+ const s3 = (serviceOptions) => (0, client_1.default)(client_s3_1.S3, '2006-03-01', serviceOptions)();
40
+ exports.s3 = s3;
40
41
  exports.secretsManager = (0, client_1.default)(client_secrets_manager_1.SecretsManager, '2017-10-17');
41
42
  exports.sfn = (0, client_1.default)(client_sfn_1.SFN, '2016-11-23');
42
43
  exports.sns = (0, client_1.default)(client_sns_1.SNS, '2010-03-31');