dynamodb

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package dynamodb maps information from dynamo itself, such as error tables and formats. This is an internal package to allow fast iteration on the abstraction without having to commit to the interface.

Index

Constants

This section is empty.

Variables

View Source
var MappedErrors = []ErrorConfig{
	{"ConditionalCheckFailedException", 400, codes.ErrorConditionFailed},
	{"InternalFailure", 500, codes.ErrorInternalFailure},
	{"InternalServerError", 500, codes.ErrorInternalFailure},
	{"IncompleteSignature", 400, codes.ErrorAuth},
	{"IncompleteSignatureException", 400, codes.ErrorAuth},
	{"InvalidParameterCombination", 400, codes.ErrorInvalidParameter},
	{"InvalidParameterValue", 400, codes.ErrorInvalidParameter},
	{"InvalidQueryParameter", 400, codes.ErrorInvalidParameter},
	{"InvalidSignatureException", 400, codes.ErrorAuth},
	{"ItemCollectionSizeLimitExceededException", 400, codes.ErrorCollectionSizeExceeded},
	{"MalformedQueryString", 404, codes.ErrorInvalidParameter},
	{"MissingAction", 400, codes.ErrorInvalidParameter},
	{"MissingAuthenticationToken", 403, codes.ErrorAuth},
	{"MissingParameter", 400, codes.ErrorInvalidParameter},
	{"OptInRequired", 403, codes.ErrorAuth},
	{"ProvisionedThroughputExceededException", 400, codes.ErrorThroughputExceeded},
	{"RequestExpired", 400, codes.ErrorAuth},
	{"ResourceInUseException", 400, codes.ErrorResourceInUse},
	{"ResourceNotFoundException", 400, codes.ErrorNotFound},
	{"ServiceUnavailable", 503, codes.ErrorServiceUnavailable},
	{"ServiceUnavailableException", 503, codes.ErrorServiceUnavailable},
	{"ThrottlingException", 400, codes.ErrorThrottling},
	{"UnrecognizedClientException", 400, codes.ErrorAuth},
	{"ValidationError", 400, codes.ErrorInvalidParameter},
	{"ValidationException", 400, codes.ErrorInvalidParameter},

	{"ExpiredIteratorException", 400, codes.ErrorExpiredIterator},
	{"LimitExceededException", 400, codes.ErrorThrottling},
	{"TrimmedDataAccessException", 400, codes.ErrorTrimmedData},
}

This variable is mostly exposed so that we can document how errors are mapped

Functions

This section is empty.

Types

type ErrorConfig added in v1.2.1

type ErrorConfig struct {
	AmazonCode     string
	ExpectedStatus int
	MappedError    codes.ErrorCode
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL