func NewInvalidARNError(resource arn.Resource, err error) InvalidARNError {
	return InvalidARNError{
		message:  "invalid ARN",
		origErr:  err,
		resource: resource,
	}
}
NewInvalidARNError denotes invalid arn error
package s3shared
import (
	"fmt"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/internal/s3shared/arn"
)
const (
	invalidARNErrorErrCode    = "InvalidARNError"
	configurationErrorErrCode = "ConfigurationError"
)
type InvalidARNError struct {
	message  string
	resource arn.Resource
	origErr  error
}
func (e InvalidARNError) Error() string {
	var extra string
	if e.resource != nil {
		extra = "ARN: " + e.resource.String()
	}
	return awserr.SprintError(e.Code(), e.Message(), extra, e.origErr)
}
func (e InvalidARNError) Code() string {
	return invalidARNErrorErrCode
}
func (e InvalidARNError) Message() string {
	return e.message
}
func (e InvalidARNError) OrigErr() error {
	return e.origErr
}