@@ -21,13 +21,13 @@ extension Lambda {
2121 /// The Lambda runtime generates and passes the `Context` to the Lambda handler as an argument.
2222 public final class Context : CustomDebugStringConvertible {
2323 /// The request ID, which identifies the request that triggered the function invocation.
24- public let requestId : String
24+ public let requestID : String
2525
2626 /// The AWS X-Ray tracing header.
27- public let traceId : String
27+ public let traceID : String
2828
2929 /// The ARN of the Lambda function, version, or alias that's specified in the invocation.
30- public let invokedFunctionArn : String
30+ public let invokedFunctionARN : String
3131
3232 /// The timestamp that the function times out
3333 public let deadline : DispatchWallTime
@@ -54,17 +54,17 @@ extension Lambda {
5454 /// This is useful when implementing `EventLoopLambdaHandler`
5555 public let allocator : ByteBufferAllocator
5656
57- internal init ( requestId : String ,
58- traceId : String ,
59- invokedFunctionArn : String ,
57+ internal init ( requestID : String ,
58+ traceID : String ,
59+ invokedFunctionARN : String ,
6060 deadline: DispatchWallTime ,
6161 cognitoIdentity: String ? = nil ,
6262 clientContext: String ? = nil ,
6363 logger: Logger ,
6464 eventLoop: EventLoop ) {
65- self . requestId = requestId
66- self . traceId = traceId
67- self . invokedFunctionArn = invokedFunctionArn
65+ self . requestID = requestID
66+ self . traceID = traceID
67+ self . invokedFunctionARN = invokedFunctionARN
6868 self . cognitoIdentity = cognitoIdentity
6969 self . clientContext = clientContext
7070 self . deadline = deadline
@@ -73,8 +73,8 @@ extension Lambda {
7373 self . allocator = ByteBufferAllocator ( )
7474 // mutate logger with context
7575 var logger = logger
76- logger [ metadataKey: " awsRequestId " ] = . string( requestId )
77- logger [ metadataKey: " awsTraceId " ] = . string( traceId )
76+ logger [ metadataKey: " awsRequestID " ] = . string( requestID )
77+ logger [ metadataKey: " awsTraceID " ] = . string( traceID )
7878 self . logger = logger
7979 }
8080
@@ -87,7 +87,7 @@ extension Lambda {
8787 }
8888
8989 public var debugDescription : String {
90- " \( Self . self) (requestId : \( self . requestId ) , traceId : \( self . traceId ) , invokedFunctionArn : \( self . invokedFunctionArn ) , cognitoIdentity: \( self . cognitoIdentity ?? " nil " ) , clientContext: \( self . clientContext ?? " nil " ) , deadline: \( self . deadline) ) "
90+ " \( Self . self) (requestID : \( self . requestID ) , traceID : \( self . traceID ) , invokedFunctionARN : \( self . invokedFunctionARN ) , cognitoIdentity: \( self . cognitoIdentity ?? " nil " ) , clientContext: \( self . clientContext ?? " nil " ) , deadline: \( self . deadline) ) "
9191 }
9292 }
9393}
0 commit comments