Skip to content

Commit 26ec7d7

Browse files
committed
test: remove clients from api-input-output-type/service-import-deep
1 parent 7d6b3ec commit 26ec7d7

File tree

2 files changed

+12
-27
lines changed

2 files changed

+12
-27
lines changed
Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
1-
import DynamoDB, { ListTablesInput, ListTablesOutput } from "aws-sdk/clients/dynamodb";
2-
import Lambda, { InvocationRequest, InvocationResponse } from "aws-sdk/clients/lambda";
3-
import STS, { GetCallerIdentityRequest, GetCallerIdentityResponse } from "aws-sdk/clients/sts";
1+
import { ListTablesInput, ListTablesOutput } from "aws-sdk/clients/dynamodb";
2+
import { InvocationRequest, InvocationResponse } from "aws-sdk/clients/lambda";
3+
import { GetCallerIdentityRequest, GetCallerIdentityResponse } from "aws-sdk/clients/sts";
44

5-
const ddbClient = new DynamoDB();
65
const listTablesInput: ListTablesInput = { Limit: 10 };
7-
const listTablesOutput: ListTablesOutput = await ddbClient
8-
.listTables(listTablesInput)
9-
.promise();
6+
const listTablesOutput: ListTablesOutput = {};
107

11-
const stsClient = new STS();
128
const getCallerIdentityInput: GetCallerIdentityRequest = {};
13-
const getCallerIdentityOutput: GetCallerIdentityResponse = await stsClient
14-
.getCallerIdentity(getCallerIdentityInput)
15-
.promise();
9+
const getCallerIdentityOutput: GetCallerIdentityResponse = {};
1610

17-
const lambdaClient = new Lambda();
1811
const invokeInput: InvocationRequest = { FunctionName: "my-function" };
19-
const invokeOutput: InvocationResponse = await lambdaClient
20-
.invoke(invokeInput)
21-
.promise();
12+
const invokeOutput: InvocationResponse = {};
Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
import { DynamoDB, ListTablesCommandInput, ListTablesCommandOutput } from "@aws-sdk/client-dynamodb";
2-
import { InvokeCommandInput, InvokeCommandOutput, Lambda } from "@aws-sdk/client-lambda";
3-
import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput, STS } from "@aws-sdk/client-sts";
1+
import { ListTablesCommandInput, ListTablesCommandOutput } from "@aws-sdk/client-dynamodb";
2+
import { InvokeCommandInput, InvokeCommandOutput } from "@aws-sdk/client-lambda";
3+
import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "@aws-sdk/client-sts";
44

5-
const ddbClient = new DynamoDB();
65
const listTablesInput: ListTablesCommandInput = { Limit: 10 };
7-
const listTablesOutput: ListTablesCommandOutput = await ddbClient
8-
.listTables(listTablesInput);
6+
const listTablesOutput: ListTablesCommandOutput = {};
97

10-
const stsClient = new STS();
118
const getCallerIdentityInput: GetCallerIdentityCommandInput = {};
12-
const getCallerIdentityOutput: GetCallerIdentityCommandOutput = await stsClient
13-
.getCallerIdentity(getCallerIdentityInput);
9+
const getCallerIdentityOutput: GetCallerIdentityCommandOutput = {};
1410

15-
const lambdaClient = new Lambda();
1611
const invokeInput: InvokeCommandInput = { FunctionName: "my-function" };
17-
const invokeOutput: InvokeCommandOutput = await lambdaClient
18-
.invoke(invokeInput);
12+
const invokeOutput: InvokeCommandOutput = {};

0 commit comments

Comments
 (0)