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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package alexaforbusiness
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAlreadyExistsException for service response error code
    12  	// "AlreadyExistsException".
    13  	//
    14  	// The resource being created already exists.
    15  	ErrCodeAlreadyExistsException = "AlreadyExistsException"
    16  
    17  	// ErrCodeConcurrentModificationException for service response error code
    18  	// "ConcurrentModificationException".
    19  	//
    20  	// There is a concurrent modification of resources.
    21  	ErrCodeConcurrentModificationException = "ConcurrentModificationException"
    22  
    23  	// ErrCodeDeviceNotRegisteredException for service response error code
    24  	// "DeviceNotRegisteredException".
    25  	//
    26  	// The request failed because this device is no longer registered and therefore
    27  	// no longer managed by this account.
    28  	ErrCodeDeviceNotRegisteredException = "DeviceNotRegisteredException"
    29  
    30  	// ErrCodeInvalidCertificateAuthorityException for service response error code
    31  	// "InvalidCertificateAuthorityException".
    32  	//
    33  	// The Certificate Authority can't issue or revoke a certificate.
    34  	ErrCodeInvalidCertificateAuthorityException = "InvalidCertificateAuthorityException"
    35  
    36  	// ErrCodeInvalidDeviceException for service response error code
    37  	// "InvalidDeviceException".
    38  	//
    39  	// The device is in an invalid state.
    40  	ErrCodeInvalidDeviceException = "InvalidDeviceException"
    41  
    42  	// ErrCodeInvalidSecretsManagerResourceException for service response error code
    43  	// "InvalidSecretsManagerResourceException".
    44  	//
    45  	// A password in SecretsManager is in an invalid state.
    46  	ErrCodeInvalidSecretsManagerResourceException = "InvalidSecretsManagerResourceException"
    47  
    48  	// ErrCodeInvalidServiceLinkedRoleStateException for service response error code
    49  	// "InvalidServiceLinkedRoleStateException".
    50  	//
    51  	// The service linked role is locked for deletion.
    52  	ErrCodeInvalidServiceLinkedRoleStateException = "InvalidServiceLinkedRoleStateException"
    53  
    54  	// ErrCodeInvalidUserStatusException for service response error code
    55  	// "InvalidUserStatusException".
    56  	//
    57  	// The attempt to update a user is invalid due to the user's current status.
    58  	ErrCodeInvalidUserStatusException = "InvalidUserStatusException"
    59  
    60  	// ErrCodeLimitExceededException for service response error code
    61  	// "LimitExceededException".
    62  	//
    63  	// You are performing an action that would put you beyond your account's limits.
    64  	ErrCodeLimitExceededException = "LimitExceededException"
    65  
    66  	// ErrCodeNameInUseException for service response error code
    67  	// "NameInUseException".
    68  	//
    69  	// The name sent in the request is already in use.
    70  	ErrCodeNameInUseException = "NameInUseException"
    71  
    72  	// ErrCodeNotFoundException for service response error code
    73  	// "NotFoundException".
    74  	//
    75  	// The resource is not found.
    76  	ErrCodeNotFoundException = "NotFoundException"
    77  
    78  	// ErrCodeResourceAssociatedException for service response error code
    79  	// "ResourceAssociatedException".
    80  	//
    81  	// Another resource is associated with the resource in the request.
    82  	ErrCodeResourceAssociatedException = "ResourceAssociatedException"
    83  
    84  	// ErrCodeResourceInUseException for service response error code
    85  	// "ResourceInUseException".
    86  	//
    87  	// The resource in the request is already in use.
    88  	ErrCodeResourceInUseException = "ResourceInUseException"
    89  
    90  	// ErrCodeSkillNotLinkedException for service response error code
    91  	// "SkillNotLinkedException".
    92  	//
    93  	// The skill must be linked to a third-party account.
    94  	ErrCodeSkillNotLinkedException = "SkillNotLinkedException"
    95  
    96  	// ErrCodeUnauthorizedException for service response error code
    97  	// "UnauthorizedException".
    98  	//
    99  	// The caller has no permissions to operate on the resource involved in the
   100  	// API call.
   101  	ErrCodeUnauthorizedException = "UnauthorizedException"
   102  )
   103  
   104  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   105  	"AlreadyExistsException":                 newErrorAlreadyExistsException,
   106  	"ConcurrentModificationException":        newErrorConcurrentModificationException,
   107  	"DeviceNotRegisteredException":           newErrorDeviceNotRegisteredException,
   108  	"InvalidCertificateAuthorityException":   newErrorInvalidCertificateAuthorityException,
   109  	"InvalidDeviceException":                 newErrorInvalidDeviceException,
   110  	"InvalidSecretsManagerResourceException": newErrorInvalidSecretsManagerResourceException,
   111  	"InvalidServiceLinkedRoleStateException": newErrorInvalidServiceLinkedRoleStateException,
   112  	"InvalidUserStatusException":             newErrorInvalidUserStatusException,
   113  	"LimitExceededException":                 newErrorLimitExceededException,
   114  	"NameInUseException":                     newErrorNameInUseException,
   115  	"NotFoundException":                      newErrorNotFoundException,
   116  	"ResourceAssociatedException":            newErrorResourceAssociatedException,
   117  	"ResourceInUseException":                 newErrorResourceInUseException,
   118  	"SkillNotLinkedException":                newErrorSkillNotLinkedException,
   119  	"UnauthorizedException":                  newErrorUnauthorizedException,
   120  }