@cumulus/aws-client 11.1.1 → 13.0.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.
@@ -11,7 +11,7 @@
11
11
  * @param {string} [role] - a Role ARN
12
12
  * @returns {Promise<CloudWatchEvents.PutRuleResponse>}
13
13
  */
14
- export declare const putEvent: (name: string, schedule: string, state: string, description?: string | undefined, role?: string | undefined) => Promise<import("aws-sdk/lib/request").PromiseResult<import("aws-sdk/clients/cloudwatchevents").PutRuleResponse, import("aws-sdk").AWSError>>;
14
+ export declare const putEvent: (name: string, schedule: string, state: string, description?: string, role?: string) => Promise<import("aws-sdk/lib/request").PromiseResult<import("aws-sdk/clients/cloudwatchevents").PutRuleResponse, import("aws-sdk").AWSError>>;
15
15
  export declare const deleteEvent: (name: string) => Promise<{
16
16
  $response: import("aws-sdk").Response<{}, import("aws-sdk").AWSError>;
17
17
  }>;
package/DynamoDb.d.ts CHANGED
@@ -23,9 +23,7 @@ export declare const get: (params: {
23
23
  item: GetCommandInput['Key'];
24
24
  client: DynamoDBDocument;
25
25
  getParams?: object;
26
- }) => Promise<{
27
- [key: string]: any;
28
- }>;
26
+ }) => Promise<Record<string, any>>;
29
27
  /**
30
28
  * Call DynamoDb client scan
31
29
  *
package/S3.d.ts CHANGED
@@ -135,7 +135,7 @@ export declare const promiseS3Upload: (params: Omit<UploadOptions, 'client'>) =>
135
135
  * @param {Object} uploadParams
136
136
  * @returns {Promise}
137
137
  */
138
- export declare const streamS3Upload: (uploadStream: Readable, uploadParams: UploadOptions) => Promise<import("@aws-sdk/client-s3").ServiceOutputTypes>;
138
+ export declare const streamS3Upload: (uploadStream: Readable, uploadParams: UploadOptions) => Promise<import("@aws-sdk/client-s3").CompleteMultipartUploadCommandOutput | import("@aws-sdk/client-s3").AbortMultipartUploadCommandOutput>;
139
139
  /**
140
140
  * Get a readable stream for an S3 object
141
141
  *
@@ -316,7 +316,7 @@ export declare const uploadS3FileStream: (fileStream: Readable, bucket: string,
316
316
  * object is represented as a JS object with the following attributes: `Key`,
317
317
  * `ETag`, `LastModified`, `Owner`, `Size`, `StorageClass`.
318
318
  */
319
- export declare const listS3Objects: (bucket: string, prefix?: string | undefined, skipFolders?: boolean) => Promise<import("@aws-sdk/client-s3")._Object[]>;
319
+ export declare const listS3Objects: (bucket: string, prefix?: string, skipFolders?: boolean) => Promise<import("@aws-sdk/client-s3")._Object[]>;
320
320
  /**
321
321
  * Fetch complete list of S3 objects
322
322
  *
package/client.d.ts CHANGED
@@ -14,6 +14,6 @@ import { AWSClientTypes } from './types';
14
14
  *
15
15
  * @private
16
16
  */
17
- declare const awsClient: <T extends AWSClientTypes>(Service: new (params: object) => T, version?: string | undefined, serviceOptions?: object | undefined) => (params?: object | undefined) => T;
17
+ declare const awsClient: <T extends AWSClientTypes>(Service: new (params: object) => T, version?: string, serviceOptions?: object) => (params?: object) => T;
18
18
  export = awsClient;
19
19
  //# sourceMappingURL=client.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cumulus/aws-client",
3
- "version": "11.1.1",
3
+ "version": "13.0.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": ">=12.18.0"
11
+ "node": ">=14.19.1"
12
12
  },
13
13
  "files": [
14
14
  "*.js",
@@ -43,17 +43,18 @@
43
43
  "author": "Cumulus Authors",
44
44
  "license": "Apache-2.0",
45
45
  "dependencies": {
46
- "@aws-sdk/client-dynamodb": "^3.53.0",
47
- "@aws-sdk/client-dynamodb-streams": "^3.53.0",
48
- "@aws-sdk/client-s3": "^3.53.0",
49
- "@aws-sdk/lib-dynamodb": "^3.53.0",
50
- "@aws-sdk/lib-storage": "^3.53.0",
51
- "@aws-sdk/s3-request-presigner": "^3.53.0",
52
- "@aws-sdk/signature-v4-crt": "^3.53.0",
53
- "@aws-sdk/types": "^3.53.0",
54
- "@cumulus/checksum": "11.1.1",
55
- "@cumulus/errors": "11.1.1",
56
- "@cumulus/logger": "11.1.1",
46
+ "@aws-sdk/client-api-gateway": "^3.58.0",
47
+ "@aws-sdk/client-dynamodb": "^3.58.0",
48
+ "@aws-sdk/client-dynamodb-streams": "^3.58.0",
49
+ "@aws-sdk/client-s3": "^3.58.0",
50
+ "@aws-sdk/lib-dynamodb": "^3.58.0",
51
+ "@aws-sdk/lib-storage": "^3.58.0",
52
+ "@aws-sdk/s3-request-presigner": "^3.58.0",
53
+ "@aws-sdk/signature-v4-crt": "^3.58.0",
54
+ "@aws-sdk/types": "^3.58.0",
55
+ "@cumulus/checksum": "13.0.0",
56
+ "@cumulus/errors": "13.0.0",
57
+ "@cumulus/logger": "13.0.0",
57
58
  "aws-sdk": "^2.585.0",
58
59
  "jsonpath-plus": "^1.1.0",
59
60
  "lodash": "~4.17.21",
@@ -68,5 +69,5 @@
68
69
  "devDependencies": {
69
70
  "@types/uuid": "^8.0.0"
70
71
  },
71
- "gitHead": "07fe682da23821434372759fb1948b081da429b5"
72
+ "gitHead": "ba43ea3bfdfcacfff052770ed2fd357eb9dadb58"
72
73
  }
package/services.d.ts CHANGED
@@ -1,9 +1,10 @@
1
+ import { APIGatewayClient } from '@aws-sdk/client-api-gateway';
1
2
  import { DynamoDB } from '@aws-sdk/client-dynamodb';
2
3
  import { DynamoDBStreamsClient } from '@aws-sdk/client-dynamodb-streams';
3
4
  import { S3 } from '@aws-sdk/client-s3';
4
5
  import { DynamoDBDocument, TranslateConfig } from '@aws-sdk/lib-dynamodb';
5
6
  import * as AWS from 'aws-sdk';
6
- export declare const apigateway: (params?: object | undefined) => AWS.APIGateway;
7
+ export declare const apigateway: (params?: object | undefined) => APIGatewayClient;
7
8
  export declare const ecs: (params?: object | undefined) => AWS.ECS;
8
9
  export declare const ec2: (params?: object | undefined) => AWS.EC2;
9
10
  export declare const s3: (params?: object | undefined) => S3;
@@ -15,7 +16,7 @@ export declare const cloudwatchlogs: (params?: object | undefined) => AWS.CloudW
15
16
  export declare const cloudwatch: (params?: object | undefined) => AWS.CloudWatch;
16
17
  export declare const dynamodb: (params?: object | undefined) => DynamoDB;
17
18
  export declare const dynamodbstreams: (params?: object | undefined) => DynamoDBStreamsClient;
18
- export declare const dynamodbDocClient: (docClientOptions?: TranslateConfig | undefined, dynamoOptions?: object | undefined) => DynamoDBDocument;
19
+ export declare const dynamodbDocClient: (docClientOptions?: TranslateConfig, dynamoOptions?: object) => DynamoDBDocument;
19
20
  export declare const sfn: (params?: object | undefined) => AWS.StepFunctions;
20
21
  export declare const cf: (params?: object | undefined) => AWS.CloudFormation;
21
22
  export declare const sns: (params?: object | undefined) => AWS.SNS;
package/services.js CHANGED
@@ -27,13 +27,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
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.cloudwatchevents = exports.sqs = exports.lambda = exports.kinesis = exports.s3 = exports.ec2 = exports.ecs = exports.apigateway = void 0;
30
+ const client_api_gateway_1 = require("@aws-sdk/client-api-gateway");
30
31
  const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
31
32
  const client_dynamodb_streams_1 = require("@aws-sdk/client-dynamodb-streams");
32
33
  const client_s3_1 = require("@aws-sdk/client-s3");
33
34
  const lib_dynamodb_1 = require("@aws-sdk/lib-dynamodb");
34
35
  const AWS = __importStar(require("aws-sdk"));
35
36
  const client_1 = __importDefault(require("./client"));
36
- exports.apigateway = (0, client_1.default)(AWS.APIGateway, '2015-07-09');
37
+ exports.apigateway = (0, client_1.default)(client_api_gateway_1.APIGatewayClient, '2015-07-09');
37
38
  exports.ecs = (0, client_1.default)(AWS.ECS, '2014-11-13');
38
39
  exports.ec2 = (0, client_1.default)(AWS.EC2, '2016-11-15');
39
40
  exports.s3 = (0, client_1.default)(client_s3_1.S3, '2006-03-01');
package/test-utils.d.ts CHANGED
@@ -2,7 +2,7 @@ import { AWSClientTypes } from './types';
2
2
  export declare const inTestMode: () => boolean;
3
3
  declare const localStackPorts: {
4
4
  stepfunctions: number;
5
- apigateway: number;
5
+ APIGatewayClient: number;
6
6
  cloudformation: number;
7
7
  cloudwatch: number;
8
8
  cloudwatchevents: number;
package/test-utils.js CHANGED
@@ -8,7 +8,7 @@ exports.inTestMode = inTestMode;
8
8
  // From https://github.com/localstack/localstack/blob/master/README.md
9
9
  const localStackPorts = {
10
10
  stepfunctions: 4566,
11
- apigateway: 4566,
11
+ APIGatewayClient: 4566,
12
12
  cloudformation: 4566,
13
13
  cloudwatch: 4566,
14
14
  cloudwatchevents: 4566,
package/types.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as AWS from 'aws-sdk';
2
+ import { APIGatewayClient } from '@aws-sdk/client-api-gateway';
2
3
  import { DynamoDBStreamsClient } from '@aws-sdk/client-dynamodb-streams';
3
4
  import { DynamoDB, DynamoDBClient } from '@aws-sdk/client-dynamodb';
4
5
  import { S3 } from '@aws-sdk/client-s3';
5
- export declare type AWSClientTypes = DynamoDB | DynamoDBClient | DynamoDBStreamsClient | S3 | AWS.Service | AWS.DynamoDB.DocumentClient;
6
+ export declare type AWSClientTypes = APIGatewayClient | DynamoDB | DynamoDBClient | DynamoDBStreamsClient | S3 | AWS.Service | AWS.DynamoDB.DocumentClient;
6
7
  //# sourceMappingURL=types.d.ts.map