Skip to content

Commit f4bd7b1

Browse files
committed
Replace public with package
1 parent 7957715 commit f4bd7b1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Sources/AWSLambdaRuntimeCore/NewLambdaContext.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import NIOCore
2020

2121
/// Lambda runtime context.
2222
/// 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 {
2424
final class _Storage: Sendable {
2525
let requestID: String
2626
let traceID: String
@@ -52,39 +52,39 @@ public struct NewLambdaContext: CustomDebugStringConvertible, Sendable {
5252
private var storage: _Storage
5353

5454
/// The request ID, which identifies the request that triggered the function invocation.
55-
public var requestID: String {
55+
package var requestID: String {
5656
self.storage.requestID
5757
}
5858

5959
/// The AWS X-Ray tracing header.
60-
public var traceID: String {
60+
package var traceID: String {
6161
self.storage.traceID
6262
}
6363

6464
/// 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 {
6666
self.storage.invokedFunctionARN
6767
}
6868

6969
/// The timestamp that the function times out.
70-
public var deadline: DispatchWallTime {
70+
package var deadline: DispatchWallTime {
7171
self.storage.deadline
7272
}
7373

7474
/// For invocations from the AWS Mobile SDK, data about the Amazon Cognito identity provider.
75-
public var cognitoIdentity: String? {
75+
package var cognitoIdentity: String? {
7676
self.storage.cognitoIdentity
7777
}
7878

7979
/// For invocations from the AWS Mobile SDK, data about the client application and device.
80-
public var clientContext: String? {
80+
package var clientContext: String? {
8181
self.storage.clientContext
8282
}
8383

8484
/// `Logger` to log with.
8585
///
8686
/// - note: The `LogLevel` can be configured using the `LOG_LEVEL` environment variable.
87-
public var logger: Logger {
87+
package var logger: Logger {
8888
self.storage.logger
8989
}
9090

@@ -108,20 +108,20 @@ public struct NewLambdaContext: CustomDebugStringConvertible, Sendable {
108108
)
109109
}
110110

111-
public func getRemainingTime() -> TimeAmount {
111+
package func getRemainingTime() -> TimeAmount {
112112
let deadline = self.deadline.millisSinceEpoch
113113
let now = DispatchWallTime.now().millisSinceEpoch
114114

115115
let remaining = deadline - now
116116
return .milliseconds(remaining)
117117
}
118118

119-
public var debugDescription: String {
119+
package var debugDescription: String {
120120
"\(Self.self)(requestID: \(self.requestID), traceID: \(self.traceID), invokedFunctionARN: \(self.invokedFunctionARN), cognitoIdentity: \(self.cognitoIdentity ?? "nil"), clientContext: \(self.clientContext ?? "nil"), deadline: \(self.deadline))"
121121
}
122122

123123
/// 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(
125125
requestID: String,
126126
traceID: String,
127127
invokedFunctionARN: String,

0 commit comments

Comments
 (0)