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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package acmpca
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeCertificateMismatchException for service response error code
    12  	// "CertificateMismatchException".
    13  	//
    14  	// The certificate authority certificate you are importing does not comply with
    15  	// conditions specified in the certificate that signed it.
    16  	ErrCodeCertificateMismatchException = "CertificateMismatchException"
    17  
    18  	// ErrCodeConcurrentModificationException for service response error code
    19  	// "ConcurrentModificationException".
    20  	//
    21  	// A previous update to your private CA is still ongoing.
    22  	ErrCodeConcurrentModificationException = "ConcurrentModificationException"
    23  
    24  	// ErrCodeInvalidArgsException for service response error code
    25  	// "InvalidArgsException".
    26  	//
    27  	// One or more of the specified arguments was not valid.
    28  	ErrCodeInvalidArgsException = "InvalidArgsException"
    29  
    30  	// ErrCodeInvalidArnException for service response error code
    31  	// "InvalidArnException".
    32  	//
    33  	// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
    34  	ErrCodeInvalidArnException = "InvalidArnException"
    35  
    36  	// ErrCodeInvalidNextTokenException for service response error code
    37  	// "InvalidNextTokenException".
    38  	//
    39  	// The token specified in the NextToken argument is not valid. Use the token
    40  	// returned from your previous call to ListCertificateAuthorities (https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_ListCertificateAuthorities.html).
    41  	ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
    42  
    43  	// ErrCodeInvalidPolicyException for service response error code
    44  	// "InvalidPolicyException".
    45  	//
    46  	// The resource policy is invalid or is missing a required statement. For general
    47  	// information about IAM policy and statement structure, see Overview of JSON
    48  	// Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policies-json).
    49  	ErrCodeInvalidPolicyException = "InvalidPolicyException"
    50  
    51  	// ErrCodeInvalidRequestException for service response error code
    52  	// "InvalidRequestException".
    53  	//
    54  	// The request action cannot be performed or is prohibited.
    55  	ErrCodeInvalidRequestException = "InvalidRequestException"
    56  
    57  	// ErrCodeInvalidStateException for service response error code
    58  	// "InvalidStateException".
    59  	//
    60  	// The state of the private CA does not allow this action to occur.
    61  	ErrCodeInvalidStateException = "InvalidStateException"
    62  
    63  	// ErrCodeInvalidTagException for service response error code
    64  	// "InvalidTagException".
    65  	//
    66  	// The tag associated with the CA is not valid. The invalid argument is contained
    67  	// in the message field.
    68  	ErrCodeInvalidTagException = "InvalidTagException"
    69  
    70  	// ErrCodeLimitExceededException for service response error code
    71  	// "LimitExceededException".
    72  	//
    73  	// An ACM Private CA quota has been exceeded. See the exception message returned
    74  	// to determine the quota that was exceeded.
    75  	ErrCodeLimitExceededException = "LimitExceededException"
    76  
    77  	// ErrCodeLockoutPreventedException for service response error code
    78  	// "LockoutPreventedException".
    79  	//
    80  	// The current action was prevented because it would lock the caller out from
    81  	// performing subsequent actions. Verify that the specified parameters would
    82  	// not result in the caller being denied access to the resource.
    83  	ErrCodeLockoutPreventedException = "LockoutPreventedException"
    84  
    85  	// ErrCodeMalformedCSRException for service response error code
    86  	// "MalformedCSRException".
    87  	//
    88  	// The certificate signing request is invalid.
    89  	ErrCodeMalformedCSRException = "MalformedCSRException"
    90  
    91  	// ErrCodeMalformedCertificateException for service response error code
    92  	// "MalformedCertificateException".
    93  	//
    94  	// One or more fields in the certificate are invalid.
    95  	ErrCodeMalformedCertificateException = "MalformedCertificateException"
    96  
    97  	// ErrCodePermissionAlreadyExistsException for service response error code
    98  	// "PermissionAlreadyExistsException".
    99  	//
   100  	// The designated permission has already been given to the user.
   101  	ErrCodePermissionAlreadyExistsException = "PermissionAlreadyExistsException"
   102  
   103  	// ErrCodeRequestAlreadyProcessedException for service response error code
   104  	// "RequestAlreadyProcessedException".
   105  	//
   106  	// Your request has already been completed.
   107  	ErrCodeRequestAlreadyProcessedException = "RequestAlreadyProcessedException"
   108  
   109  	// ErrCodeRequestFailedException for service response error code
   110  	// "RequestFailedException".
   111  	//
   112  	// The request has failed for an unspecified reason.
   113  	ErrCodeRequestFailedException = "RequestFailedException"
   114  
   115  	// ErrCodeRequestInProgressException for service response error code
   116  	// "RequestInProgressException".
   117  	//
   118  	// Your request is already in progress.
   119  	ErrCodeRequestInProgressException = "RequestInProgressException"
   120  
   121  	// ErrCodeResourceNotFoundException for service response error code
   122  	// "ResourceNotFoundException".
   123  	//
   124  	// A resource such as a private CA, S3 bucket, certificate, audit report, or
   125  	// policy cannot be found.
   126  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
   127  
   128  	// ErrCodeTooManyTagsException for service response error code
   129  	// "TooManyTagsException".
   130  	//
   131  	// You can associate up to 50 tags with a private CA. Exception information
   132  	// is contained in the exception message field.
   133  	ErrCodeTooManyTagsException = "TooManyTagsException"
   134  )
   135  
   136  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   137  	"CertificateMismatchException":     newErrorCertificateMismatchException,
   138  	"ConcurrentModificationException":  newErrorConcurrentModificationException,
   139  	"InvalidArgsException":             newErrorInvalidArgsException,
   140  	"InvalidArnException":              newErrorInvalidArnException,
   141  	"InvalidNextTokenException":        newErrorInvalidNextTokenException,
   142  	"InvalidPolicyException":           newErrorInvalidPolicyException,
   143  	"InvalidRequestException":          newErrorInvalidRequestException,
   144  	"InvalidStateException":            newErrorInvalidStateException,
   145  	"InvalidTagException":              newErrorInvalidTagException,
   146  	"LimitExceededException":           newErrorLimitExceededException,
   147  	"LockoutPreventedException":        newErrorLockoutPreventedException,
   148  	"MalformedCSRException":            newErrorMalformedCSRException,
   149  	"MalformedCertificateException":    newErrorMalformedCertificateException,
   150  	"PermissionAlreadyExistsException": newErrorPermissionAlreadyExistsException,
   151  	"RequestAlreadyProcessedException": newErrorRequestAlreadyProcessedException,
   152  	"RequestFailedException":           newErrorRequestFailedException,
   153  	"RequestInProgressException":       newErrorRequestInProgressException,
   154  	"ResourceNotFoundException":        newErrorResourceNotFoundException,
   155  	"TooManyTagsException":             newErrorTooManyTagsException,
   156  }