@@ -20,7 +20,7 @@ import NIOCore
20
20
21
21
/// Lambda runtime context.
22
22
/// The Lambda runtime generates and passes the `LambdaContext` to the Lambda handler as an argument.
23
- public struct NewLambdaContext : CustomDebugStringConvertible , Sendable {
23
+ package struct NewLambdaContext : CustomDebugStringConvertible , Sendable {
24
24
final class _Storage : Sendable {
25
25
let requestID : String
26
26
let traceID : String
@@ -52,39 +52,39 @@ public struct NewLambdaContext: CustomDebugStringConvertible, Sendable {
52
52
private var storage : _Storage
53
53
54
54
/// The request ID, which identifies the request that triggered the function invocation.
55
- public var requestID : String {
55
+ package var requestID : String {
56
56
self . storage. requestID
57
57
}
58
58
59
59
/// The AWS X-Ray tracing header.
60
- public var traceID : String {
60
+ package var traceID : String {
61
61
self . storage. traceID
62
62
}
63
63
64
64
/// The ARN of the Lambda function, version, or alias that's specified in the invocation.
65
- public var invokedFunctionARN : String {
65
+ package var invokedFunctionARN : String {
66
66
self . storage. invokedFunctionARN
67
67
}
68
68
69
69
/// The timestamp that the function times out.
70
- public var deadline : DispatchWallTime {
70
+ package var deadline : DispatchWallTime {
71
71
self . storage. deadline
72
72
}
73
73
74
74
/// For invocations from the AWS Mobile SDK, data about the Amazon Cognito identity provider.
75
- public var cognitoIdentity : String ? {
75
+ package var cognitoIdentity : String ? {
76
76
self . storage. cognitoIdentity
77
77
}
78
78
79
79
/// For invocations from the AWS Mobile SDK, data about the client application and device.
80
- public var clientContext : String ? {
80
+ package var clientContext : String ? {
81
81
self . storage. clientContext
82
82
}
83
83
84
84
/// `Logger` to log with.
85
85
///
86
86
/// - note: The `LogLevel` can be configured using the `LOG_LEVEL` environment variable.
87
- public var logger : Logger {
87
+ package var logger : Logger {
88
88
self . storage. logger
89
89
}
90
90
@@ -108,20 +108,20 @@ public struct NewLambdaContext: CustomDebugStringConvertible, Sendable {
108
108
)
109
109
}
110
110
111
- public func getRemainingTime( ) -> TimeAmount {
111
+ package func getRemainingTime( ) -> TimeAmount {
112
112
let deadline = self . deadline. millisSinceEpoch
113
113
let now = DispatchWallTime . now ( ) . millisSinceEpoch
114
114
115
115
let remaining = deadline - now
116
116
return . milliseconds( remaining)
117
117
}
118
118
119
- public var debugDescription : String {
119
+ package var debugDescription : String {
120
120
" \( Self . self) (requestID: \( self . requestID) , traceID: \( self . traceID) , invokedFunctionARN: \( self . invokedFunctionARN) , cognitoIdentity: \( self . cognitoIdentity ?? " nil " ) , clientContext: \( self . clientContext ?? " nil " ) , deadline: \( self . deadline) ) "
121
121
}
122
122
123
123
/// This interface is not part of the public API and must not be used by adopters. This API is not part of semver versioning.
124
- public static func __forTestsOnly(
124
+ package static func __forTestsOnly(
125
125
requestID: String ,
126
126
traceID: String ,
127
127
invokedFunctionARN: String ,
0 commit comments