func (e InvalidARNError) Code() string {
	return invalidARNErrorErrCode
}
Code returns the invalid ARN error code
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)
}