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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package directoryservice
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAccessDeniedException for service response error code
    12  	// "AccessDeniedException".
    13  	//
    14  	// Client authentication is not available in this region at this time.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeAuthenticationFailedException for service response error code
    18  	// "AuthenticationFailedException".
    19  	//
    20  	// An authentication error occurred.
    21  	ErrCodeAuthenticationFailedException = "AuthenticationFailedException"
    22  
    23  	// ErrCodeCertificateAlreadyExistsException for service response error code
    24  	// "CertificateAlreadyExistsException".
    25  	//
    26  	// The certificate has already been registered into the system.
    27  	ErrCodeCertificateAlreadyExistsException = "CertificateAlreadyExistsException"
    28  
    29  	// ErrCodeCertificateDoesNotExistException for service response error code
    30  	// "CertificateDoesNotExistException".
    31  	//
    32  	// The certificate is not present in the system for describe or deregister activities.
    33  	ErrCodeCertificateDoesNotExistException = "CertificateDoesNotExistException"
    34  
    35  	// ErrCodeCertificateInUseException for service response error code
    36  	// "CertificateInUseException".
    37  	//
    38  	// The certificate is being used for the LDAP security connection and cannot
    39  	// be removed without disabling LDAP security.
    40  	ErrCodeCertificateInUseException = "CertificateInUseException"
    41  
    42  	// ErrCodeCertificateLimitExceededException for service response error code
    43  	// "CertificateLimitExceededException".
    44  	//
    45  	// The certificate could not be added because the certificate limit has been
    46  	// reached.
    47  	ErrCodeCertificateLimitExceededException = "CertificateLimitExceededException"
    48  
    49  	// ErrCodeClientException for service response error code
    50  	// "ClientException".
    51  	//
    52  	// A client exception has occurred.
    53  	ErrCodeClientException = "ClientException"
    54  
    55  	// ErrCodeDirectoryAlreadyInRegionException for service response error code
    56  	// "DirectoryAlreadyInRegionException".
    57  	//
    58  	// The Region you specified is the same Region where the Managed Microsoft AD
    59  	// directory was created. Specify a different Region and try again.
    60  	ErrCodeDirectoryAlreadyInRegionException = "DirectoryAlreadyInRegionException"
    61  
    62  	// ErrCodeDirectoryAlreadySharedException for service response error code
    63  	// "DirectoryAlreadySharedException".
    64  	//
    65  	// The specified directory has already been shared with this Amazon Web Services
    66  	// account.
    67  	ErrCodeDirectoryAlreadySharedException = "DirectoryAlreadySharedException"
    68  
    69  	// ErrCodeDirectoryDoesNotExistException for service response error code
    70  	// "DirectoryDoesNotExistException".
    71  	//
    72  	// The specified directory does not exist in the system.
    73  	ErrCodeDirectoryDoesNotExistException = "DirectoryDoesNotExistException"
    74  
    75  	// ErrCodeDirectoryLimitExceededException for service response error code
    76  	// "DirectoryLimitExceededException".
    77  	//
    78  	// The maximum number of directories in the region has been reached. You can
    79  	// use the GetDirectoryLimits operation to determine your directory limits in
    80  	// the region.
    81  	ErrCodeDirectoryLimitExceededException = "DirectoryLimitExceededException"
    82  
    83  	// ErrCodeDirectoryNotSharedException for service response error code
    84  	// "DirectoryNotSharedException".
    85  	//
    86  	// The specified directory has not been shared with this Amazon Web Services
    87  	// account.
    88  	ErrCodeDirectoryNotSharedException = "DirectoryNotSharedException"
    89  
    90  	// ErrCodeDirectoryUnavailableException for service response error code
    91  	// "DirectoryUnavailableException".
    92  	//
    93  	// The specified directory is unavailable or could not be found.
    94  	ErrCodeDirectoryUnavailableException = "DirectoryUnavailableException"
    95  
    96  	// ErrCodeDomainControllerLimitExceededException for service response error code
    97  	// "DomainControllerLimitExceededException".
    98  	//
    99  	// The maximum allowed number of domain controllers per directory was exceeded.
   100  	// The default limit per directory is 20 domain controllers.
   101  	ErrCodeDomainControllerLimitExceededException = "DomainControllerLimitExceededException"
   102  
   103  	// ErrCodeEntityAlreadyExistsException for service response error code
   104  	// "EntityAlreadyExistsException".
   105  	//
   106  	// The specified entity already exists.
   107  	ErrCodeEntityAlreadyExistsException = "EntityAlreadyExistsException"
   108  
   109  	// ErrCodeEntityDoesNotExistException for service response error code
   110  	// "EntityDoesNotExistException".
   111  	//
   112  	// The specified entity could not be found.
   113  	ErrCodeEntityDoesNotExistException = "EntityDoesNotExistException"
   114  
   115  	// ErrCodeInsufficientPermissionsException for service response error code
   116  	// "InsufficientPermissionsException".
   117  	//
   118  	// The account does not have sufficient permission to perform the operation.
   119  	ErrCodeInsufficientPermissionsException = "InsufficientPermissionsException"
   120  
   121  	// ErrCodeInvalidCertificateException for service response error code
   122  	// "InvalidCertificateException".
   123  	//
   124  	// The certificate PEM that was provided has incorrect encoding.
   125  	ErrCodeInvalidCertificateException = "InvalidCertificateException"
   126  
   127  	// ErrCodeInvalidClientAuthStatusException for service response error code
   128  	// "InvalidClientAuthStatusException".
   129  	//
   130  	// Client authentication is already enabled.
   131  	ErrCodeInvalidClientAuthStatusException = "InvalidClientAuthStatusException"
   132  
   133  	// ErrCodeInvalidLDAPSStatusException for service response error code
   134  	// "InvalidLDAPSStatusException".
   135  	//
   136  	// The LDAP activities could not be performed because they are limited by the
   137  	// LDAPS status.
   138  	ErrCodeInvalidLDAPSStatusException = "InvalidLDAPSStatusException"
   139  
   140  	// ErrCodeInvalidNextTokenException for service response error code
   141  	// "InvalidNextTokenException".
   142  	//
   143  	// The NextToken value is not valid.
   144  	ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
   145  
   146  	// ErrCodeInvalidParameterException for service response error code
   147  	// "InvalidParameterException".
   148  	//
   149  	// One or more parameters are not valid.
   150  	ErrCodeInvalidParameterException = "InvalidParameterException"
   151  
   152  	// ErrCodeInvalidPasswordException for service response error code
   153  	// "InvalidPasswordException".
   154  	//
   155  	// The new password provided by the user does not meet the password complexity
   156  	// requirements defined in your directory.
   157  	ErrCodeInvalidPasswordException = "InvalidPasswordException"
   158  
   159  	// ErrCodeInvalidTargetException for service response error code
   160  	// "InvalidTargetException".
   161  	//
   162  	// The specified shared target is not valid.
   163  	ErrCodeInvalidTargetException = "InvalidTargetException"
   164  
   165  	// ErrCodeIpRouteLimitExceededException for service response error code
   166  	// "IpRouteLimitExceededException".
   167  	//
   168  	// The maximum allowed number of IP addresses was exceeded. The default limit
   169  	// is 100 IP address blocks.
   170  	ErrCodeIpRouteLimitExceededException = "IpRouteLimitExceededException"
   171  
   172  	// ErrCodeNoAvailableCertificateException for service response error code
   173  	// "NoAvailableCertificateException".
   174  	//
   175  	// Client authentication setup could not be completed because at least one valid
   176  	// certificate must be registered in the system.
   177  	ErrCodeNoAvailableCertificateException = "NoAvailableCertificateException"
   178  
   179  	// ErrCodeOrganizationsException for service response error code
   180  	// "OrganizationsException".
   181  	//
   182  	// Exception encountered while trying to access your Amazon Web Services organization.
   183  	ErrCodeOrganizationsException = "OrganizationsException"
   184  
   185  	// ErrCodeRegionLimitExceededException for service response error code
   186  	// "RegionLimitExceededException".
   187  	//
   188  	// You have reached the limit for maximum number of simultaneous Region replications
   189  	// per directory.
   190  	ErrCodeRegionLimitExceededException = "RegionLimitExceededException"
   191  
   192  	// ErrCodeServiceException for service response error code
   193  	// "ServiceException".
   194  	//
   195  	// An exception has occurred in Directory Service.
   196  	ErrCodeServiceException = "ServiceException"
   197  
   198  	// ErrCodeShareLimitExceededException for service response error code
   199  	// "ShareLimitExceededException".
   200  	//
   201  	// The maximum number of Amazon Web Services accounts that you can share with
   202  	// this directory has been reached.
   203  	ErrCodeShareLimitExceededException = "ShareLimitExceededException"
   204  
   205  	// ErrCodeSnapshotLimitExceededException for service response error code
   206  	// "SnapshotLimitExceededException".
   207  	//
   208  	// The maximum number of manual snapshots for the directory has been reached.
   209  	// You can use the GetSnapshotLimits operation to determine the snapshot limits
   210  	// for a directory.
   211  	ErrCodeSnapshotLimitExceededException = "SnapshotLimitExceededException"
   212  
   213  	// ErrCodeTagLimitExceededException for service response error code
   214  	// "TagLimitExceededException".
   215  	//
   216  	// The maximum allowed number of tags was exceeded.
   217  	ErrCodeTagLimitExceededException = "TagLimitExceededException"
   218  
   219  	// ErrCodeUnsupportedOperationException for service response error code
   220  	// "UnsupportedOperationException".
   221  	//
   222  	// The operation is not supported.
   223  	ErrCodeUnsupportedOperationException = "UnsupportedOperationException"
   224  
   225  	// ErrCodeUserDoesNotExistException for service response error code
   226  	// "UserDoesNotExistException".
   227  	//
   228  	// The user provided a username that does not exist in your directory.
   229  	ErrCodeUserDoesNotExistException = "UserDoesNotExistException"
   230  )
   231  
   232  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   233  	"AccessDeniedException":                  newErrorAccessDeniedException,
   234  	"AuthenticationFailedException":          newErrorAuthenticationFailedException,
   235  	"CertificateAlreadyExistsException":      newErrorCertificateAlreadyExistsException,
   236  	"CertificateDoesNotExistException":       newErrorCertificateDoesNotExistException,
   237  	"CertificateInUseException":              newErrorCertificateInUseException,
   238  	"CertificateLimitExceededException":      newErrorCertificateLimitExceededException,
   239  	"ClientException":                        newErrorClientException,
   240  	"DirectoryAlreadyInRegionException":      newErrorDirectoryAlreadyInRegionException,
   241  	"DirectoryAlreadySharedException":        newErrorDirectoryAlreadySharedException,
   242  	"DirectoryDoesNotExistException":         newErrorDirectoryDoesNotExistException,
   243  	"DirectoryLimitExceededException":        newErrorDirectoryLimitExceededException,
   244  	"DirectoryNotSharedException":            newErrorDirectoryNotSharedException,
   245  	"DirectoryUnavailableException":          newErrorDirectoryUnavailableException,
   246  	"DomainControllerLimitExceededException": newErrorDomainControllerLimitExceededException,
   247  	"EntityAlreadyExistsException":           newErrorEntityAlreadyExistsException,
   248  	"EntityDoesNotExistException":            newErrorEntityDoesNotExistException,
   249  	"InsufficientPermissionsException":       newErrorInsufficientPermissionsException,
   250  	"InvalidCertificateException":            newErrorInvalidCertificateException,
   251  	"InvalidClientAuthStatusException":       newErrorInvalidClientAuthStatusException,
   252  	"InvalidLDAPSStatusException":            newErrorInvalidLDAPSStatusException,
   253  	"InvalidNextTokenException":              newErrorInvalidNextTokenException,
   254  	"InvalidParameterException":              newErrorInvalidParameterException,
   255  	"InvalidPasswordException":               newErrorInvalidPasswordException,
   256  	"InvalidTargetException":                 newErrorInvalidTargetException,
   257  	"IpRouteLimitExceededException":          newErrorIpRouteLimitExceededException,
   258  	"NoAvailableCertificateException":        newErrorNoAvailableCertificateException,
   259  	"OrganizationsException":                 newErrorOrganizationsException,
   260  	"RegionLimitExceededException":           newErrorRegionLimitExceededException,
   261  	"ServiceException":                       newErrorServiceException,
   262  	"ShareLimitExceededException":            newErrorShareLimitExceededException,
   263  	"SnapshotLimitExceededException":         newErrorSnapshotLimitExceededException,
   264  	"TagLimitExceededException":              newErrorTagLimitExceededException,
   265  	"UnsupportedOperationException":          newErrorUnsupportedOperationException,
   266  	"UserDoesNotExistException":              newErrorUserDoesNotExistException,
   267  }