aws-core-utils
Advanced tools
Changelog
6.0.6
aws-core-test-utils
test dependency to 2.0.2Changelog
6.0.5
aws-core-test-utils
test dependency to 2.0.1Changelog
6.0.4
dynamodb-doc-client-utils
moduletype-defs
module (to sync with get
method of DynamoDB.DocumentClient rather than getItem
method):
DynamoDBGetItemOpts
to DynamoDBGetOpts
type definitionDynamoDBGetItemResult
to DynamoDBGetResult
type definitionChangelog
6.0.3
regions
module:
getRegion
function to treat "undefined" or "null" regions as undefinedsetRegion
functionsetRegionIfNotSet
function to use setRegion
setRegionIfNotSet
functionconfigureRegion
function to fallback to using console.log
if context.info
is not configured yetstages
module:
configureStageAndAwsContext
convenience function to configure resolved stage and AWS context on the given contextconfigureRegionStageAndAwsContext
convenience functioncontexts
module:
configureStandardContext
function to invoke regions.configureRegion
as early in the function as possible
& to invoke stages.configureStageAndAwsContext
instead of stages.configureRegionStageAndAwsContext
type-defs
module:
StageAndAWSContextAware
type definitionDynamoDBGetItemOpts
, DynamoDBGetItemResult
, DynamoDBQueryOpts
, DynamoDBQueryResult
& ConsumedCapacity
type definitionsChangelog
6.0.2
core-functions
dependency to version 3.0.4logging-utils
dependency to version 4.0.3aws-sdk
dev dependency to version 2.45.0dynamodb-doc-client-cache
module:
setDynamoDBDocClient
to create & cache each new DynamoDB.DocumentClient instance with a COPY of the options
while still caching the ORIGINAL options to avoid subsequent cache comparison failures related to AWS SDK 2.45.0
mutating the options passed to the constructor, e.g. by adding "attrValue" with value "S8"Changelog
6.0.1
core-functions
dependency to version 3.0.2logging-utils
dependency to version 4.0.1test/samples.js
:
sampleAwsContext
functionaws-errors
module:
isResourceNotFoundException
functiondynamodb-utils
module:
simplifyKeysNewImageAndOldImage
functionChangelog
6.0.0
core-functions
dependency to version 3.0.0logging-utils
dependency to version 4.0.0api-lambdas.js
module:
log
function (replaced use with new log
function & log
method in logging-utils
)arns.js
module:
ArnResources
typedef to type-defs.js
aws-errors.js
module:
isItemCollectionSizeLimitExceededException
functionisLimitExceeded
functionisThrottled
function (not backward-compatible)SlowDown
case to isThrottled
functionisLimitExceeded
& err.retryable
checks to isRetryable
functiondynamodb-utils.js
module:
toNumber
function (replaced use with new toNumberOrIntegerLike
function in core-functions/numbers.js
)toStorableObject
functiondefaults
static property with emptyStringReplacement
propertystages.js
module:
settingNames
object property that holds all the standard stage handling settings names (e.g. settingNames.customToStage)extractNameAndStageFromStreamName
& extractNameAndStageFromResourceName
settingsextractNameAndStageFromQualifiedStreamName
& extractNameAndStageFromQualifiedResourceName
functionsextractNameAndStageFromSuffixedStreamName
& extractNameAndStageFromSuffixedResourceName
functions_extractNameAndStageFromQualifiedName
& _extractNameAndStageFromSuffixedName
functionsextractStageFromQualifiedStreamName
to attempt fallback with _extractNameAndStageFromQualifiedName
extractStageFromQualifiedResourceName
to attempt fallback with _extractNameAndStageFromQualifiedName
stream-events.js
module:
MAX_PARTITION_KEY_SIZE
constantDynamoDBEventName
enumgetEventID
, getEventName
, getEventSource
& getEventSourceARN
functionsgetKinesisShardId
, getKinesisShardIdFromEventID
, getKinesisShardIdAndEventNoFromEventID
& getKinesisSequenceNumber
functionsgetDynamoDBSequenceNumber
functionvalidateStreamEventRecord
, validateKinesisStreamEventRecord
& validateDynamoDBStreamEventRecord
functionstype-defs.js