github.com/aavshr/aws-sdk-go@v1.41.3/service/route53domains/errors.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package route53domains
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeDomainLimitExceeded for service response error code
    12  	// "DomainLimitExceeded".
    13  	//
    14  	// The number of domains has exceeded the allowed threshold for the account.
    15  	ErrCodeDomainLimitExceeded = "DomainLimitExceeded"
    16  
    17  	// ErrCodeDuplicateRequest for service response error code
    18  	// "DuplicateRequest".
    19  	//
    20  	// The request is already in progress for the domain.
    21  	ErrCodeDuplicateRequest = "DuplicateRequest"
    22  
    23  	// ErrCodeInvalidInput for service response error code
    24  	// "InvalidInput".
    25  	//
    26  	// The requested item is not acceptable. For example, for APIs that accept a
    27  	// domain name, the request might specify a domain name that doesn't belong
    28  	// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
    29  	// the password might be invalid.
    30  	ErrCodeInvalidInput = "InvalidInput"
    31  
    32  	// ErrCodeOperationLimitExceeded for service response error code
    33  	// "OperationLimitExceeded".
    34  	//
    35  	// The number of operations or jobs running exceeded the allowed threshold for
    36  	// the account.
    37  	ErrCodeOperationLimitExceeded = "OperationLimitExceeded"
    38  
    39  	// ErrCodeTLDRulesViolation for service response error code
    40  	// "TLDRulesViolation".
    41  	//
    42  	// The top-level domain does not support this operation.
    43  	ErrCodeTLDRulesViolation = "TLDRulesViolation"
    44  
    45  	// ErrCodeUnsupportedTLD for service response error code
    46  	// "UnsupportedTLD".
    47  	//
    48  	// Amazon Route 53 does not support this top-level domain (TLD).
    49  	ErrCodeUnsupportedTLD = "UnsupportedTLD"
    50  )
    51  
    52  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    53  	"DomainLimitExceeded":    newErrorDomainLimitExceeded,
    54  	"DuplicateRequest":       newErrorDuplicateRequest,
    55  	"InvalidInput":           newErrorInvalidInput,
    56  	"OperationLimitExceeded": newErrorOperationLimitExceeded,
    57  	"TLDRulesViolation":      newErrorTLDRulesViolation,
    58  	"UnsupportedTLD":         newErrorUnsupportedTLD,
    59  }