Skip to content

Commit bba711b

Browse files
authored
remove mentions of LambdaRuntImeCore (#495)
Cleanup code from mentions of `LambdaRuntimeCore`
1 parent bf02bce commit bba711b

15 files changed

+7
-19
lines changed

Examples/HelloWorld/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ It will compile your code and start the local server. You know the local server
2828
Building for debugging...
2929
[1/1] Write swift-version--644A47CB88185983.txt
3030
Build of product 'MyLambda' complete! (0.31s)
31-
2025-01-29T12:44:48+0100 info LocalServer : host="127.0.0.1" port=7000 [AWSLambdaRuntimeCore] Server started and listening
31+
2025-01-29T12:44:48+0100 info LocalServer : host="127.0.0.1" port=7000 [AWSLambdaRuntime] Server started and listening
3232
```
3333

3434
Then, from another Terminal, send your payload with `curl`. Note that the payload must be a valid JSON string. In the case of this function that accepts a simple String, it means the String must be wrapped in between double quotes.

Examples/Testing/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ You must pass an event to the Lambda function. You can use the `event.json` file
160160
sam local invoke -e Tests/event.json
161161

162162
START RequestId: 3270171f-46d3-45f9-9bb6-3c2e5e9dc625 Version: $LATEST
163-
2024-12-21T16:49:31+0000 debug LambdaRuntime : [AWSLambdaRuntimeCore] LambdaRuntime initialized
164-
2024-12-21T16:49:31+0000 trace LambdaRuntime : lambda_ip=127.0.0.1 lambda_port=9001 [AWSLambdaRuntimeCore] Connection to control plane created
163+
2024-12-21T16:49:31+0000 debug LambdaRuntime : [AWSLambdaRuntime] LambdaRuntime initialized
164+
2024-12-21T16:49:31+0000 trace LambdaRuntime : lambda_ip=127.0.0.1 lambda_port=9001 [AWSLambdaRuntime] Connection to control plane created
165165
2024-12-21T16:49:31+0000 debug LambdaRuntime : [APIGatewayLambda] HTTP API Message received
166166
2024-12-21T16:49:31+0000 trace LambdaRuntime : [APIGatewayLambda] Event: APIGatewayV2Request(version: "2.0", routeKey: "$default", rawPath: "/", rawQueryString: "", cookies: [], headers: ["x-forwarded-proto": "https", "host": "a5q74es3k2.execute-api.us-east-1.amazonaws.com", "content-length": "0", "x-forwarded-for": "81.0.0.43", "accept": "*/*", "x-amzn-trace-id": "Root=1-66fb03de-07533930192eaf5f540db0cb", "x-forwarded-port": "443", "user-agent": "curl/8.7.1"], queryStringParameters: [:], pathParameters: [:], context: AWSLambdaEvents.APIGatewayV2Request.Context(accountId: "012345678901", apiId: "a5q74es3k2", domainName: "a5q74es3k2.execute-api.us-east-1.amazonaws.com", domainPrefix: "a5q74es3k2", stage: "$default", requestId: "e72KxgsRoAMEMSA=", http: AWSLambdaEvents.APIGatewayV2Request.Context.HTTP(method: GET, path: "/", protocol: "HTTP/1.1", sourceIp: "81.0.0.43", userAgent: "curl/8.7.1"), authorizer: nil, authentication: nil, time: "30/Sep/2024:20:02:38 +0000", timeEpoch: 1727726558220), stageVariables: [:], body: Optional("aGVsbG8gd29ybGQgb2YgU1dJRlQgTEFNQkRBIQ=="), isBase64Encoded: false)
167167
END RequestId: 5b71587a-39da-445e-855d-27a700e57efd

Examples/Testing/Tests/HandlerTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Logging
1818
import Testing
1919

2020
@testable import APIGatewayLambda // to access the business code
21-
@testable import AWSLambdaRuntimeCore // to access the LambdaContext
21+
@testable import AWSLambdaRuntime // to access the LambdaContext
2222

2323
#if canImport(FoundationEssentials)
2424
import FoundationEssentials

Package.swift

+1-7
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,13 @@ let package = Package(
6464
)
6565
),
6666
.testTarget(
67-
name: "AWSLambdaRuntimeCoreTests",
67+
name: "AWSLambdaRuntimeTests",
6868
dependencies: [
6969
.byName(name: "AWSLambdaRuntime"),
7070
.product(name: "NIOTestUtils", package: "swift-nio"),
7171
.product(name: "NIOFoundationCompat", package: "swift-nio"),
7272
]
7373
),
74-
.testTarget(
75-
name: "AWSLambdaRuntimeTests",
76-
dependencies: [
77-
.byName(name: "AWSLambdaRuntime")
78-
]
79-
),
8074
// testing helper
8175
.target(
8276
name: "AWSLambdaTesting",

[email protected]

+1-7
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,13 @@ let package = Package(
5353
)
5454
),
5555
.testTarget(
56-
name: "AWSLambdaRuntimeCoreTests",
56+
name: "AWSLambdaRuntimeTests",
5757
dependencies: [
5858
.byName(name: "AWSLambdaRuntime"),
5959
.product(name: "NIOTestUtils", package: "swift-nio"),
6060
.product(name: "NIOFoundationCompat", package: "swift-nio"),
6161
]
6262
),
63-
.testTarget(
64-
name: "AWSLambdaRuntimeTests",
65-
dependencies: [
66-
.byName(name: "AWSLambdaRuntime")
67-
]
68-
),
6963
// testing helper
7064
.target(
7165
name: "AWSLambdaTesting",

Sources/AWSLambdaRuntime/Docs.docc/Proposals/0001-v2-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ initialized services:
8080
struct MyLambda: LambdaHandler {
8181
let pgClient: PostgresClient
8282

83-
init(context: AWSLambdaRuntimeCore.LambdaInitializationContext) async throws {
83+
init(context: AWSLambdaRuntime.LambdaInitializationContext) async throws {
8484
/// Instantiate service
8585
let client = PostgresClient(configuration: ...)
8686

0 commit comments

Comments
 (0)