@cumulus/aws-client 18.2.2 → 18.3.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/StepFunctions.js CHANGED
@@ -11,9 +11,9 @@ const test_utils_1 = require("./test-utils");
11
11
  const doesExecutionExist = (describeExecutionPromise) => describeExecutionPromise
12
12
  .then(() => true)
13
13
  .catch((error) => {
14
- if (error.code === 'ExecutionDoesNotExist')
14
+ if (error.name === 'ExecutionDoesNotExist')
15
15
  return false;
16
- if ((0, test_utils_1.inTestMode)() && error.code === 'InvalidName')
16
+ if ((0, test_utils_1.inTestMode)() && error.name === 'InvalidName')
17
17
  return false;
18
18
  throw error;
19
19
  });
@@ -28,12 +28,12 @@ exports.doesExecutionExist = doesExecutionExist;
28
28
  * If a ThrottlingException is received, this function will retry using an
29
29
  * exponential backoff.
30
30
  *
31
- * @param {Object} params
32
- * @returns {Promise<Object>}
31
+ * @param {DescribeExecutionInput} params
32
+ * @returns {Promise<DescribeExecutionOutput>}
33
33
  *
34
34
  * @kind function
35
35
  */
36
- exports.describeExecution = (0, utils_1.improveStackTrace)((0, utils_1.retryOnThrottlingException)((params) => (0, services_1.sfn)().describeExecution(params).promise()));
36
+ exports.describeExecution = (0, utils_1.retryOnThrottlingException)((params) => (0, services_1.sfn)().describeExecution(params));
37
37
  /**
38
38
  * Call StepFunctions DescribeStateMachine
39
39
  *
@@ -43,12 +43,12 @@ exports.describeExecution = (0, utils_1.improveStackTrace)((0, utils_1.retryOnTh
43
43
  * If a ThrottlingException is received, this function will retry using an
44
44
  * exponential backoff.
45
45
  *
46
- * @param {Object} params
47
- * @returns {Promise<Object>}
46
+ * @param {DescribeStateMachineInput} params
47
+ * @returns {Promise<DescribeStateMachineOutput>}
48
48
  *
49
49
  * @kind function
50
50
  */
51
- exports.describeStateMachine = (0, utils_1.improveStackTrace)((0, utils_1.retryOnThrottlingException)((params) => (0, services_1.sfn)().describeStateMachine(params).promise()));
51
+ exports.describeStateMachine = (0, utils_1.retryOnThrottlingException)((params) => (0, services_1.sfn)().describeStateMachine(params));
52
52
  /**
53
53
  * Check if a Step Function Execution exists
54
54
  *
@@ -72,15 +72,16 @@ exports.executionExists = executionExists;
72
72
  * If a ThrottlingException is received, this function will retry using an
73
73
  * exponential backoff.
74
74
  *
75
- * @param {Object} params
76
- * @returns {Promise<Object>}
75
+ * @param {GetExecutionHistoryInput} params
76
+ * @returns {Promise<GetExecutionHistoryOutput>}
77
77
  *
78
78
  * @kind function
79
79
  */
80
- exports.getExecutionHistory = (0, utils_1.improveStackTrace)((0, utils_1.retryOnThrottlingException)(async (params, previousResponse = {
80
+ exports.getExecutionHistory = (0, utils_1.retryOnThrottlingException)(async (params, previousResponse = {
81
81
  events: [],
82
82
  }) => {
83
- const response = await (0, services_1.sfn)().getExecutionHistory(params).promise();
83
+ const response = await (0, services_1.sfn)().getExecutionHistory(params);
84
+ response.events = response.events || [];
84
85
  const events = [
85
86
  ...previousResponse.events,
86
87
  ...response.events,
@@ -98,7 +99,7 @@ exports.getExecutionHistory = (0, utils_1.improveStackTrace)((0, utils_1.retryOn
98
99
  return {
99
100
  events,
100
101
  };
101
- }));
102
+ });
102
103
  const getExecutionStatus = async (executionArn) => {
103
104
  const [execution, executionHistory] = await Promise.all([
104
105
  (0, exports.describeExecution)({ executionArn }),
@@ -124,5 +125,5 @@ exports.getExecutionStatus = getExecutionStatus;
124
125
  *
125
126
  * @kind function
126
127
  */
127
- exports.listExecutions = (0, utils_1.improveStackTrace)((0, utils_1.retryOnThrottlingException)((params) => (0, services_1.sfn)().listExecutions(params).promise()));
128
+ exports.listExecutions = (0, utils_1.retryOnThrottlingException)((params) => (0, services_1.sfn)().listExecutions(params));
128
129
  //# sourceMappingURL=StepFunctions.js.map
package/client.d.ts CHANGED
@@ -5,13 +5,11 @@ import { AWSClientTypes } from './types';
5
5
  * Note: The returned service objects are cached, so there will only be one
6
6
  * instance of each service object per process.
7
7
  *
8
- * @param {AWS.Service} Service - an AWS service object constructor function
8
+ * @param {AWSClientTypes} Service - an AWS service object constructor function
9
9
  * @param {string} [version] - the API version to use
10
10
  * @param {string} [serviceOptions] - additional options to pass to the service
11
- *
12
11
  * @returns {Function} a function which, when called, will return an instance of an AWS service
13
12
  * object
14
- *
15
13
  * @private
16
14
  */
17
15
  declare const awsClient: <T extends AWSClientTypes>(Service: new (params: object) => T, version?: string, serviceOptions?: object) => (params?: object) => T;
package/client.js CHANGED
@@ -2,12 +2,10 @@
2
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
- const aws_sdk_1 = __importDefault(require("aws-sdk"));
6
5
  const mem_1 = __importDefault(require("mem"));
7
6
  const test_utils_1 = require("./test-utils");
8
7
  const utils_1 = require("./utils");
9
8
  const getRegion = () => process.env.AWS_DEFAULT_REGION || process.env.AWS_REGION || 'us-east-1';
10
- aws_sdk_1.default.config.setPromisesDependency(Promise);
11
9
  const buildServiceClient = (Service, options) => {
12
10
  if ((0, test_utils_1.inTestMode)()) {
13
11
  return new Service((0, test_utils_1.getLocalstackAwsClientOptions)(Service, options));
@@ -24,13 +22,11 @@ const getServiceClient = (Service, options = {}) => (overrides) => getMemoizedCl
24
22
  * Note: The returned service objects are cached, so there will only be one
25
23
  * instance of each service object per process.
26
24
  *
27
- * @param {AWS.Service} Service - an AWS service object constructor function
25
+ * @param {AWSClientTypes} Service - an AWS service object constructor function
28
26
  * @param {string} [version] - the API version to use
29
27
  * @param {string} [serviceOptions] - additional options to pass to the service
30
- *
31
28
  * @returns {Function} a function which, when called, will return an instance of an AWS service
32
29
  * object
33
- *
34
30
  * @private
35
31
  */
36
32
  const awsClient = (Service, version, serviceOptions) => {
@@ -40,13 +36,6 @@ const awsClient = (Service, version, serviceOptions) => {
40
36
  };
41
37
  if (version)
42
38
  options.apiVersion = version;
43
- if ((0, test_utils_1.inTestMode)()) {
44
- // @ts-ignore - serviceIdentifier is not part of the public API and may break at any time
45
- if (aws_sdk_1.default.DynamoDB.DocumentClient.serviceIdentifier === undefined) {
46
- // @ts-ignore - serviceIdentifier is not part of the public API and may break at any time
47
- aws_sdk_1.default.DynamoDB.DocumentClient.serviceIdentifier = 'dynamodbclient';
48
- }
49
- }
50
39
  return getServiceClient(Service, options);
51
40
  };
52
41
  module.exports = awsClient;
@@ -1,5 +1,5 @@
1
- import { AbortMultipartUploadRequest, CompleteMultipartUploadRequest, CreateMultipartUploadRequest, UploadPartCopyRequest } from '@aws-sdk/client-s3';
2
- export interface CompleteMultipartUploadOutput extends AWS.S3.CompleteMultipartUploadOutput {
1
+ import { AbortMultipartUploadRequest, CompleteMultipartUploadRequest, CompleteMultipartUploadOutput, CreateMultipartUploadRequest, UploadPartCopyRequest } from '@aws-sdk/client-s3';
2
+ export interface S3CompleteMultipartUploadOutput extends CompleteMultipartUploadOutput {
3
3
  ETag: string;
4
4
  }
5
5
  declare type Chunk = {
@@ -25,7 +25,7 @@ declare type Chunk = {
25
25
  */
26
26
  export declare const createMultipartChunks: (objectSize: number, chunkSize?: number) => Chunk[];
27
27
  export declare const createMultipartUpload: (params: CreateMultipartUploadRequest) => Promise<import("@aws-sdk/client-s3").CreateMultipartUploadCommandOutput>;
28
- export declare const completeMultipartUpload: (params: CompleteMultipartUploadRequest) => Promise<CompleteMultipartUploadOutput>;
28
+ export declare const completeMultipartUpload: (params: CompleteMultipartUploadRequest) => Promise<S3CompleteMultipartUploadOutput>;
29
29
  export declare const abortMultipartUpload: (params: AbortMultipartUploadRequest) => Promise<import("@aws-sdk/client-s3").AbortMultipartUploadCommandOutput>;
30
30
  export declare const uploadPartCopy: (params: UploadPartCopyRequest) => Promise<import("@aws-sdk/client-s3").UploadPartCopyCommandOutput>;
31
31
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cumulus/aws-client",
3
- "version": "18.2.2",
3
+ "version": "18.3.0",
4
4
  "description": "Utilities for working with AWS",
5
5
  "keywords": [
6
6
  "GIBS",
@@ -8,7 +8,7 @@
8
8
  "NASA"
9
9
  ],
10
10
  "engines": {
11
- "node": ">=16.19.0"
11
+ "node": ">=20.12.2"
12
12
  },
13
13
  "files": [
14
14
  "*.js",
@@ -28,6 +28,7 @@
28
28
  "build-docs": "npm run tsc && ../../node_modules/.bin/jsdoc2md -t templates/README.hbs *.js > README.md",
29
29
  "clean": "git clean -d -x -e node_modules -f",
30
30
  "test": "../../node_modules/.bin/ava",
31
+ "test:ci": "../../scripts/run_package_ci_unit.sh",
31
32
  "test:coverage": "../../node_modules/.bin/nyc npm test",
32
33
  "prepare": "npm run tsc",
33
34
  "tsc": "../../node_modules/.bin/tsc",
@@ -39,7 +40,8 @@
39
40
  "files": [
40
41
  "tests/**/*.js"
41
42
  ],
42
- "verbose": true
43
+ "verbose": true,
44
+ "failFast": true
43
45
  },
44
46
  "author": "Cumulus Authors",
45
47
  "license": "Apache-2.0",
@@ -49,21 +51,27 @@
49
51
  "@aws-sdk/client-cloudwatch-events": "^3.447.0",
50
52
  "@aws-sdk/client-dynamodb": "^3.447.0",
51
53
  "@aws-sdk/client-dynamodb-streams": "^3.447.0",
54
+ "@aws-sdk/client-ec2": "^3.447.0",
55
+ "@aws-sdk/client-ecs": "^3.447.0",
56
+ "@aws-sdk/client-elasticsearch-service": "^3.529.1",
52
57
  "@aws-sdk/client-kinesis": "^3.447.0",
53
58
  "@aws-sdk/client-kms": "^3.447.0",
54
- "@aws-sdk/client-lambda": "^3.447.0",
59
+ "@aws-sdk/client-lambda": "^3.529.1",
55
60
  "@aws-sdk/client-s3": "^3.447.0",
61
+ "@aws-sdk/client-secrets-manager": "^3.447.0",
62
+ "@aws-sdk/client-sfn": "^3.447.0",
56
63
  "@aws-sdk/client-sns": "^3.447.0",
57
64
  "@aws-sdk/client-sqs": "^3.447.0",
65
+ "@aws-sdk/client-sts": "^3.447.0",
58
66
  "@aws-sdk/lib-dynamodb": "^3.447.0",
59
67
  "@aws-sdk/lib-storage": "^3.447.0",
60
68
  "@aws-sdk/s3-request-presigner": "^3.447.0",
61
69
  "@aws-sdk/signature-v4-crt": "^3.447.0",
62
70
  "@aws-sdk/types": "^3.447.0",
63
- "@cumulus/checksum": "18.2.2",
64
- "@cumulus/errors": "18.2.2",
65
- "@cumulus/logger": "18.2.2",
66
- "aws-sdk": "^2.1492.0",
71
+ "@cumulus/checksum": "18.3.0",
72
+ "@cumulus/errors": "18.3.0",
73
+ "@cumulus/logger": "18.3.0",
74
+ "@cumulus/types": "18.3.0",
67
75
  "jsonpath-plus": "^1.1.0",
68
76
  "lodash": "~4.17.21",
69
77
  "mem": "^8.0.2",
@@ -78,5 +86,5 @@
78
86
  "@cumulus/test-data": "18.0.0",
79
87
  "@types/uuid": "^8.0.0"
80
88
  },
81
- "gitHead": "d2f030f1d77b6d3072cb20f84261b10a7b160620"
89
+ "gitHead": "e8731c150ac49c1bab058183a7a5d91464e1701c"
82
90
  }
package/services.d.ts CHANGED
@@ -1,35 +1,37 @@
1
1
  import { APIGatewayClient } from '@aws-sdk/client-api-gateway';
2
2
  import { CloudFormation } from '@aws-sdk/client-cloudformation';
3
3
  import { DynamoDB } from '@aws-sdk/client-dynamodb';
4
+ import { DynamoDBDocument, TranslateConfig } from '@aws-sdk/lib-dynamodb';
4
5
  import { DynamoDBStreamsClient } from '@aws-sdk/client-dynamodb-streams';
5
6
  import { Kinesis } from '@aws-sdk/client-kinesis';
6
7
  import { KMS } from '@aws-sdk/client-kms';
7
8
  import { Lambda } from '@aws-sdk/client-lambda';
8
9
  import { CloudWatchEvents } from '@aws-sdk/client-cloudwatch-events';
9
10
  import { S3 } from '@aws-sdk/client-s3';
11
+ import { SecretsManager } from '@aws-sdk/client-secrets-manager';
12
+ import { SFN } from '@aws-sdk/client-sfn';
10
13
  import { SQS } from '@aws-sdk/client-sqs';
11
- import { DynamoDBDocument, TranslateConfig } from '@aws-sdk/lib-dynamodb';
12
14
  import { SNS } from '@aws-sdk/client-sns';
13
- import * as AWS from 'aws-sdk';
15
+ import { STS } from '@aws-sdk/client-sts';
16
+ import { ECS } from '@aws-sdk/client-ecs';
17
+ import { EC2 } from '@aws-sdk/client-ec2';
18
+ import { ElasticsearchService } from '@aws-sdk/client-elasticsearch-service';
14
19
  export declare const apigateway: (params?: object | undefined) => APIGatewayClient;
15
- export declare const ecs: (params?: object | undefined) => AWS.ECS;
16
- export declare const ec2: (params?: object | undefined) => AWS.EC2;
17
- export declare const s3: (params?: object | undefined) => S3;
18
- export declare const kinesis: (params?: object | undefined) => Kinesis;
19
- export declare const lambda: (params?: object | undefined) => Lambda;
20
+ export declare const ecs: (params?: object | undefined) => ECS;
21
+ export declare const ec2: (params?: object | undefined) => EC2;
20
22
  export declare const cloudwatchevents: (params?: object | undefined) => CloudWatchEvents;
21
- export declare const sqs: (params?: object | undefined) => SQS;
22
- export declare const cloudwatchlogs: (params?: object | undefined) => AWS.CloudWatchLogs;
23
- export declare const cloudwatch: (params?: object | undefined) => AWS.CloudWatch;
24
23
  export declare const dynamodb: (params?: object | undefined) => DynamoDB;
25
24
  export declare const dynamodbstreams: (params?: object | undefined) => DynamoDBStreamsClient;
26
25
  export declare const dynamodbDocClient: (docClientOptions?: TranslateConfig, dynamoOptions?: object) => DynamoDBDocument;
27
- export declare const sfn: (params?: object | undefined) => AWS.StepFunctions;
28
26
  export declare const cf: (params?: object | undefined) => CloudFormation;
29
- export declare const sns: (params?: object | undefined) => SNS;
30
- export declare const secretsManager: (params?: object | undefined) => AWS.SecretsManager;
31
- export declare const systemsManager: (params?: object | undefined) => AWS.SSM;
27
+ export declare const es: (params?: object | undefined) => ElasticsearchService;
28
+ export declare const kinesis: (params?: object | undefined) => Kinesis;
32
29
  export declare const kms: (params?: object | undefined) => KMS;
33
- export declare const es: (params?: object | undefined) => AWS.ES;
34
- export declare const sts: (params?: object | undefined) => AWS.STS;
30
+ export declare const lambda: (params?: object | undefined) => Lambda;
31
+ export declare const s3: (params?: object | undefined) => S3;
32
+ export declare const secretsManager: (params?: object | undefined) => SecretsManager;
33
+ export declare const sfn: (params?: object | undefined) => SFN;
34
+ export declare const sns: (params?: object | undefined) => SNS;
35
+ export declare const sqs: (params?: object | undefined) => SQS;
36
+ export declare const sts: (params?: object | undefined) => STS;
35
37
  //# sourceMappingURL=services.d.ts.map
package/services.js CHANGED
@@ -1,66 +1,45 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
4
  };
28
5
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.sts = exports.es = exports.kms = exports.systemsManager = exports.secretsManager = exports.sns = exports.cf = exports.sfn = exports.dynamodbDocClient = exports.dynamodbstreams = exports.dynamodb = exports.cloudwatch = exports.cloudwatchlogs = exports.sqs = exports.cloudwatchevents = exports.lambda = exports.kinesis = exports.s3 = exports.ec2 = exports.ecs = exports.apigateway = void 0;
6
+ exports.sts = exports.sqs = exports.sns = exports.sfn = exports.secretsManager = exports.s3 = exports.lambda = exports.kms = exports.kinesis = exports.es = exports.cf = exports.dynamodbDocClient = exports.dynamodbstreams = exports.dynamodb = exports.cloudwatchevents = exports.ec2 = exports.ecs = exports.apigateway = void 0;
30
7
  const client_api_gateway_1 = require("@aws-sdk/client-api-gateway");
31
8
  const client_cloudformation_1 = require("@aws-sdk/client-cloudformation");
32
9
  const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
10
+ const lib_dynamodb_1 = require("@aws-sdk/lib-dynamodb");
33
11
  const client_dynamodb_streams_1 = require("@aws-sdk/client-dynamodb-streams");
34
12
  const client_kinesis_1 = require("@aws-sdk/client-kinesis");
35
13
  const client_kms_1 = require("@aws-sdk/client-kms");
36
14
  const client_lambda_1 = require("@aws-sdk/client-lambda");
37
15
  const client_cloudwatch_events_1 = require("@aws-sdk/client-cloudwatch-events");
38
16
  const client_s3_1 = require("@aws-sdk/client-s3");
17
+ const client_secrets_manager_1 = require("@aws-sdk/client-secrets-manager");
18
+ const client_sfn_1 = require("@aws-sdk/client-sfn");
39
19
  const client_sqs_1 = require("@aws-sdk/client-sqs");
40
- const lib_dynamodb_1 = require("@aws-sdk/lib-dynamodb");
41
20
  const client_sns_1 = require("@aws-sdk/client-sns");
42
- const AWS = __importStar(require("aws-sdk"));
21
+ const client_sts_1 = require("@aws-sdk/client-sts");
22
+ const client_ecs_1 = require("@aws-sdk/client-ecs");
23
+ const client_ec2_1 = require("@aws-sdk/client-ec2");
24
+ const client_elasticsearch_service_1 = require("@aws-sdk/client-elasticsearch-service");
43
25
  const client_1 = __importDefault(require("./client"));
44
26
  exports.apigateway = (0, client_1.default)(client_api_gateway_1.APIGatewayClient, '2015-07-09');
45
- exports.ecs = (0, client_1.default)(AWS.ECS, '2014-11-13');
46
- exports.ec2 = (0, client_1.default)(AWS.EC2, '2016-11-15');
47
- exports.s3 = (0, client_1.default)(client_s3_1.S3, '2006-03-01');
48
- exports.kinesis = (0, client_1.default)(client_kinesis_1.Kinesis, '2013-12-02');
49
- exports.lambda = (0, client_1.default)(client_lambda_1.Lambda, '2015-03-31');
27
+ exports.ecs = (0, client_1.default)(client_ecs_1.ECS, '2014-11-13');
28
+ exports.ec2 = (0, client_1.default)(client_ec2_1.EC2, '2016-11-15');
50
29
  exports.cloudwatchevents = (0, client_1.default)(client_cloudwatch_events_1.CloudWatchEvents, '2015-10-07');
51
- exports.sqs = (0, client_1.default)(client_sqs_1.SQS, '2012-11-05');
52
- exports.cloudwatchlogs = (0, client_1.default)(AWS.CloudWatchLogs, '2014-03-28');
53
- exports.cloudwatch = (0, client_1.default)(AWS.CloudWatch, '2010-08-01');
54
30
  exports.dynamodb = (0, client_1.default)(client_dynamodb_1.DynamoDB, '2012-08-10');
55
31
  exports.dynamodbstreams = (0, client_1.default)(client_dynamodb_streams_1.DynamoDBStreamsClient, '2012-08-10');
56
32
  const dynamodbDocClient = (docClientOptions, dynamoOptions) => lib_dynamodb_1.DynamoDBDocument.from((0, client_1.default)(client_dynamodb_1.DynamoDB, '2012-08-10')(dynamoOptions), docClientOptions);
57
33
  exports.dynamodbDocClient = dynamodbDocClient;
58
- exports.sfn = (0, client_1.default)(AWS.StepFunctions, '2016-11-23');
59
34
  exports.cf = (0, client_1.default)(client_cloudformation_1.CloudFormation, '2010-05-15');
60
- exports.sns = (0, client_1.default)(client_sns_1.SNS, '2010-03-31');
61
- exports.secretsManager = (0, client_1.default)(AWS.SecretsManager, '2017-10-17');
62
- exports.systemsManager = (0, client_1.default)(AWS.SSM, '2017-10-17');
35
+ exports.es = (0, client_1.default)(client_elasticsearch_service_1.ElasticsearchService, '2015-01-01');
36
+ exports.kinesis = (0, client_1.default)(client_kinesis_1.Kinesis, '2013-12-02');
63
37
  exports.kms = (0, client_1.default)(client_kms_1.KMS, '2014-11-01');
64
- exports.es = (0, client_1.default)(AWS.ES, '2015-01-01');
65
- exports.sts = (0, client_1.default)(AWS.STS, '2011-06-15');
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');
40
+ exports.secretsManager = (0, client_1.default)(client_secrets_manager_1.SecretsManager, '2017-10-17');
41
+ exports.sfn = (0, client_1.default)(client_sfn_1.SFN, '2016-11-23');
42
+ exports.sns = (0, client_1.default)(client_sns_1.SNS, '2010-03-31');
43
+ exports.sqs = (0, client_1.default)(client_sqs_1.SQS, '2012-11-05');
44
+ exports.sts = (0, client_1.default)(client_sts_1.STS, '2011-06-15');
66
45
  //# sourceMappingURL=services.js.map
package/test-utils.d.ts CHANGED
@@ -2,18 +2,15 @@ import { Readable } from 'stream';
2
2
  import { AWSClientTypes } from './types';
3
3
  export declare const inTestMode: () => boolean;
4
4
  declare const localStackPorts: {
5
- stepfunctions: number;
6
5
  APIGatewayClient: number;
7
6
  CloudFormation: number;
8
- cloudwatch: number;
9
7
  CloudWatchEvents: number;
10
- cloudwatchlogs: number;
11
8
  DynamoDB: number;
12
9
  DynamoDBClient: number;
13
10
  DynamoDBStreamsClient: number;
14
- ec2: number;
15
- ecs: number;
16
- es: number;
11
+ EC2: number;
12
+ ECS: number;
13
+ ElasticsearchService: number;
17
14
  firehose: number;
18
15
  iam: number;
19
16
  Kinesis: number;
@@ -22,12 +19,13 @@ declare const localStackPorts: {
22
19
  redshift: number;
23
20
  route53: number;
24
21
  S3: number;
25
- secretsmanager: number;
22
+ SecretsManager: number;
26
23
  ses: number;
24
+ SFN: number;
27
25
  SNS: number;
28
26
  SQS: number;
29
27
  ssm: number;
30
- sts: number;
28
+ STS: number;
31
29
  };
32
30
  /**
33
31
  * Returns the proper endpoint for a given aws service
package/test-utils.js CHANGED
@@ -7,18 +7,15 @@ const inTestMode = () => process.env.NODE_ENV === 'test';
7
7
  exports.inTestMode = inTestMode;
8
8
  // From https://github.com/localstack/localstack/blob/master/README.md
9
9
  const localStackPorts = {
10
- stepfunctions: 4566,
11
10
  APIGatewayClient: 4566,
12
11
  CloudFormation: 4566,
13
- cloudwatch: 4566,
14
12
  CloudWatchEvents: 4566,
15
- cloudwatchlogs: 4566,
16
13
  DynamoDB: 4566,
17
14
  DynamoDBClient: 4566,
18
15
  DynamoDBStreamsClient: 4566,
19
- ec2: 4566,
20
- ecs: 4566,
21
- es: 4566,
16
+ EC2: 4566,
17
+ ECS: 4566,
18
+ ElasticsearchService: 4566,
22
19
  firehose: 4566,
23
20
  iam: 4566,
24
21
  Kinesis: 4566,
@@ -27,12 +24,13 @@ const localStackPorts = {
27
24
  redshift: 4566,
28
25
  route53: 4566,
29
26
  S3: 4566,
30
- secretsmanager: 4566,
27
+ SecretsManager: 4566,
31
28
  ses: 4566,
29
+ SFN: 4566,
32
30
  SNS: 4566,
33
31
  SQS: 4566,
34
32
  ssm: 4566,
35
- sts: 4566,
33
+ STS: 4566,
36
34
  };
37
35
  /**
38
36
  * Test if a given AWS service is supported by LocalStack.
package/types.d.ts CHANGED
@@ -1,14 +1,19 @@
1
- import * as AWS from 'aws-sdk';
2
1
  import { APIGatewayClient } from '@aws-sdk/client-api-gateway';
3
2
  import { CloudWatchEvents } from '@aws-sdk/client-cloudwatch-events';
4
3
  import { CloudFormation } from '@aws-sdk/client-cloudformation';
5
4
  import { DynamoDBStreamsClient } from '@aws-sdk/client-dynamodb-streams';
6
5
  import { DynamoDB, DynamoDBClient } from '@aws-sdk/client-dynamodb';
6
+ import { EC2 } from '@aws-sdk/client-ec2';
7
+ import { ECS } from '@aws-sdk/client-ecs';
8
+ import { ElasticsearchService } from '@aws-sdk/client-elasticsearch-service';
7
9
  import { Kinesis } from '@aws-sdk/client-kinesis';
8
10
  import { KMS } from '@aws-sdk/client-kms';
9
11
  import { Lambda } from '@aws-sdk/client-lambda';
10
12
  import { S3 } from '@aws-sdk/client-s3';
13
+ import { SecretsManager } from '@aws-sdk/client-secrets-manager';
14
+ import { SFN } from '@aws-sdk/client-sfn';
11
15
  import { SNS } from '@aws-sdk/client-sns';
12
16
  import { SQS } from '@aws-sdk/client-sqs';
13
- export declare type AWSClientTypes = APIGatewayClient | CloudFormation | CloudWatchEvents | DynamoDB | DynamoDBClient | DynamoDBStreamsClient | KMS | Kinesis | Lambda | S3 | SNS | SQS | AWS.Service | AWS.DynamoDB.DocumentClient;
17
+ import { STS } from '@aws-sdk/client-sts';
18
+ export declare type AWSClientTypes = APIGatewayClient | DynamoDB | DynamoDBClient | DynamoDBStreamsClient | Lambda | ECS | EC2 | ElasticsearchService | S3 | SecretsManager | SFN | SNS | SQS | STS | CloudWatchEvents | CloudFormation | Kinesis | KMS;
14
19
  //# sourceMappingURL=types.d.ts.map