Skip to content

Commit 9cf0cb6

Browse files
skyrpexvalerena
authored andcommitted
remove unnecessary value type from userAgent
1 parent 4058df5 commit 9cf0cb6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/core/src/lambda/remoteDebugging/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type { UserAgent } from '@aws-sdk/types'
1111

1212
const customUserAgentBase: [string, string] = ['LAMBDA-DEBUG', '1.0.0']
1313

14-
export function getLambdaClientWithAgent(region: string, customUserAgent?: string | UserAgent): DefaultLambdaClient {
14+
export function getLambdaClientWithAgent(region: string, customUserAgent?: UserAgent): DefaultLambdaClient {
1515
if (!customUserAgent) {
1616
customUserAgent = getLambdaUserAgentPairs()
1717
}

packages/core/src/shared/awsClientBuilderV3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export interface AwsCommand<InputType extends object, OutputType extends object>
7171
export interface AwsClientOptions {
7272
credentials: AwsCredentialIdentityProvider
7373
region: string | Provider<string>
74-
customUserAgent: string | UserAgent
74+
customUserAgent: UserAgent
7575
requestHandler: {
7676
metadata?: RequestHandlerMetadata
7777
handle: (req: any, options?: any) => Promise<RequestHandlerOutput<any>>

packages/core/src/shared/clients/lambdaClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class DefaultLambdaClient {
5050

5151
public constructor(
5252
public readonly regionCode: string,
53-
public readonly userAgent: string | UserAgent | undefined = undefined
53+
public readonly userAgent: UserAgent | undefined = undefined
5454
) {
5555
this.defaultTimeoutInMs = 5 * 60 * 1000 // 5 minutes (SDK default is 2 minutes)
5656
}

0 commit comments

Comments
 (0)