Hi, trying this example i see that the dynamodb updateItem (i've tryed also putItem) doesn't work.
The response to the request.send is this:
2020-03-13T23:48:43.174Z 27d6c4a5-4927-19ec-7050-361fd4053906 INFO Response {
request: Request {
domain: null,
service: Service {
config: [Config],
isGlobalEndpoint: false,
endpoint: [Endpoint],
_events: [Object],
MONITOR_EVENTS_BUBBLE: [Function: EVENTS_BUBBLE],
CALL_EVENTS_BUBBLE: [Function: CALL_EVENTS_BUBBLE],
_clientId: 1
},
operation: 'updateItem',
params: {
TableName: 'SampleSmartHome',
Key: [Object],
AttributeUpdates: [Object],
ReturnValues: 'UPDATED_NEW'
},
httpRequest: HttpRequest {
method: 'POST',
path: '/',
headers: [Object],
body: '{"TableName":"SampleSmartHome","Key":{"ItemId":{"S":"sample-switch-04"}},"AttributeUpdates":{"powerStateValue":{"Action":"PUT","Value":{"S":"ON"}}},"ReturnValues":"UPDATED_NEW"}',
endpoint: [Endpoint],
region: 'eu-west-1',
_userAgent: 'aws-sdk-nodejs/2.585.0 linux/v12.15.0 exec-env/AWS_Lambda_nodejs12.x',
stream: [ClientRequest]
},
startTime: 2020-03-13T23:48:43.097Z,
response: [Circular],
_asm: AcceptorStateMachine { currentState: 'send', states: [Object] },
_haltHandlersOnError: false,
_events: {
validate: [Array],
afterBuild: [Array],
restart: [Array],
sign: [Array],
validateResponse: [Array],
send: [Array],
httpHeaders: [Array],
httpData: [Array],
httpDone: [Array],
retry: [Array],
afterRetry: [Array],
build: [Array],
extractData: [Array],
extractError: [Array],
httpError: [Array],
success: [Array],
complete: [Array]
},
emit: [Function: emit],
API_CALL_ATTEMPT: [Function: API_CALL_ATTEMPT],
API_CALL_ATTEMPT_RETRY: [Function: API_CALL_ATTEMPT_RETRY],
API_CALL: [Function: API_CALL],
signedAt: 2020-03-13T23:48:43.108Z
},
data: null,
error: null,
retryCount: 0,
redirectCount: 0,
httpResponse: HttpResponse {
statusCode: undefined,
headers: {},
body: undefined,
streaming: false,
stream: null,
_abortCallback: [Function: callNextListener]
},
maxRetries: 10,
maxRedirects: 10
}