func DeactiveForceFailure(client dynamodbiface.DynamoDBAPI) {
	fakeClient, ok := client.(*Client)
	if !ok {
		panic("DeactiveForceFailure: invalid client type")
	}
	fakeClient.setFailureCondition(FailureConditionNone)
}
DeactiveForceFailure deactive force operation to fail
package minidyn
import (
	"errors"
	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/service/dynamodb"
	"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface"
)
type FailureCondition string
const (
	FailureConditionNone FailureCondition = "none"
	FailureConditionInternalServerError FailureCondition = "internal_server"
	FailureConditionDeprecated FailureCondition = "deprecated"
)
var (
	emulatedInternalServeError = awserr.New(dynamodb.ErrCodeInternalServerError, "emulated error", nil)
	ErrForcedFailure = errors.New("forced failure response")
	emulatingErrors = map[FailureCondition]error{
		FailureConditionNone:                nil,
		FailureConditionInternalServerError: emulatedInternalServeError,
		FailureConditionDeprecated:          ErrForcedFailure,
	}
)
func EmulateFailure(client dynamodbiface.DynamoDBAPI, condition FailureCondition) {
	fakeClient, ok := client.(*Client)
	if !ok {
		panic("EmulateFailure: invalid client type")
	}
	fakeClient.setFailureCondition(condition)
}
func ActiveForceFailure(client dynamodbiface.DynamoDBAPI) {
	fakeClient, ok := client.(*Client)
	if !ok {
		panic("ActiveForceFailure: invalid client type")
	}
	fakeClient.setFailureCondition(FailureConditionDeprecated)
}