Skip to content

Commit 1dea37e

Browse files
committed
Make context properties public
1 parent e1ecc13 commit 1dea37e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Sources/AWSLambdaEvents/APIGateway+WebSockets.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@ public struct APIGatewayWebSocketRequest: Codable {
1818
/// `Context` contains information to identify the AWS account and resources invoking the Lambda function.
1919
public struct Context: Codable {
2020
public struct Identity: Codable {
21-
let sourceIp: String
21+
public let sourceIp: String
2222
}
2323

24-
let routeKey: String
25-
let eventType: String
26-
let extendedRequestId: String
24+
public let routeKey: String
25+
public let eventType: String
26+
public let extendedRequestId: String
2727
/// The request time in format: 23/Apr/2020:11:08:18 +0000
28-
let requestTime: String
29-
let messageDirection: String
30-
let stage: String
31-
let connectedAt: UInt64
32-
let requestTimeEpoch: UInt64
33-
let identity: Identity
34-
let requestId: String
35-
let domainName: String
36-
let connectionId: String
37-
let apiId: String
28+
public let requestTime: String
29+
public let messageDirection: String
30+
public let stage: String
31+
public let connectedAt: UInt64
32+
public let requestTimeEpoch: UInt64
33+
public let identity: Identity
34+
public let requestId: String
35+
public let domainName: String
36+
public let connectionId: String
37+
public let apiId: String
3838
}
3939

4040
public let headers: HTTPHeaders?

0 commit comments

Comments
 (0)