Skip to content

Commit a991301

Browse files
Fixed some context object's properties names
Fixed some context object's properties names in the example to make it work. Tested with both Node.js 6.10 and 8.10 and seems to be working fine.
1 parent 974ed4b commit a991301

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc_source/nodejs-prog-model-context.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ exports.handler = function(event, context, callback) {
2424
console.log('value3 =', event.key3);
2525
console.log('remaining time =', context.getRemainingTimeInMillis());
2626
console.log('functionName =', context.functionName);
27-
console.log('AWSrequestID =', context.awsRequestId);
28-
console.log('logGroupName =', context.log_group_name);
29-
console.log('logStreamName =', context.log_stream_name);
27+
console.log('awsRequestId =', context.awsRequestId);
28+
console.log('logGroupName =', context.logGroupName);
29+
console.log('logStreamName =', context.logStreamName);
3030
console.log('clientContext =', context.clientContext);
3131
if (typeof context.identity !== 'undefined') {
3232
console.log('Cognito
@@ -116,4 +116,4 @@ Information about the client application and device when invoked through the AWS
116116
+ **clientContext\.env\.model**
117117
+ **clientContext\.env\.locale**
118118

119-
For more information about the exact values for a specific mobile platform, see [Client Context](http://docs.aws.amazon.com/mobile/sdkforios/developerguide/lambda.html#clientcontext) in the *AWS Mobile SDK for iOS Developer Guide*, and [Client Context](http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/lambda.html#client-context) in the *AWS Mobile SDK for Android Developer Guide*\.
119+
For more information about the exact values for a specific mobile platform, see [Client Context](http://docs.aws.amazon.com/mobile/sdkforios/developerguide/lambda.html#clientcontext) in the *AWS Mobile SDK for iOS Developer Guide*, and [Client Context](http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/lambda.html#client-context) in the *AWS Mobile SDK for Android Developer Guide*\.

0 commit comments

Comments
 (0)