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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package fsx
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeActiveDirectoryError for service response error code
    12  	// "ActiveDirectoryError".
    13  	//
    14  	// An Active Directory error.
    15  	ErrCodeActiveDirectoryError = "ActiveDirectoryError"
    16  
    17  	// ErrCodeBackupBeingCopied for service response error code
    18  	// "BackupBeingCopied".
    19  	//
    20  	// You can't delete a backup while it's being copied.
    21  	ErrCodeBackupBeingCopied = "BackupBeingCopied"
    22  
    23  	// ErrCodeBackupInProgress for service response error code
    24  	// "BackupInProgress".
    25  	//
    26  	// Another backup is already under way. Wait for completion before initiating
    27  	// additional backups of this file system.
    28  	ErrCodeBackupInProgress = "BackupInProgress"
    29  
    30  	// ErrCodeBackupNotFound for service response error code
    31  	// "BackupNotFound".
    32  	//
    33  	// No Amazon FSx backups were found based upon the supplied parameters.
    34  	ErrCodeBackupNotFound = "BackupNotFound"
    35  
    36  	// ErrCodeBackupRestoring for service response error code
    37  	// "BackupRestoring".
    38  	//
    39  	// You can't delete a backup while it's being used to restore a file system.
    40  	ErrCodeBackupRestoring = "BackupRestoring"
    41  
    42  	// ErrCodeBadRequest for service response error code
    43  	// "BadRequest".
    44  	//
    45  	// A generic error indicating a failure with a client request.
    46  	ErrCodeBadRequest = "BadRequest"
    47  
    48  	// ErrCodeDataRepositoryTaskEnded for service response error code
    49  	// "DataRepositoryTaskEnded".
    50  	//
    51  	// The data repository task could not be canceled because the task has already
    52  	// ended.
    53  	ErrCodeDataRepositoryTaskEnded = "DataRepositoryTaskEnded"
    54  
    55  	// ErrCodeDataRepositoryTaskExecuting for service response error code
    56  	// "DataRepositoryTaskExecuting".
    57  	//
    58  	// An existing data repository task is currently executing on the file system.
    59  	// Wait until the existing task has completed, then create the new task.
    60  	ErrCodeDataRepositoryTaskExecuting = "DataRepositoryTaskExecuting"
    61  
    62  	// ErrCodeDataRepositoryTaskNotFound for service response error code
    63  	// "DataRepositoryTaskNotFound".
    64  	//
    65  	// The data repository task or tasks you specified could not be found.
    66  	ErrCodeDataRepositoryTaskNotFound = "DataRepositoryTaskNotFound"
    67  
    68  	// ErrCodeFileSystemNotFound for service response error code
    69  	// "FileSystemNotFound".
    70  	//
    71  	// No Amazon FSx file systems were found based upon supplied parameters.
    72  	ErrCodeFileSystemNotFound = "FileSystemNotFound"
    73  
    74  	// ErrCodeIncompatibleParameterError for service response error code
    75  	// "IncompatibleParameterError".
    76  	//
    77  	// The error returned when a second request is received with the same client
    78  	// request token but different parameters settings. A client request token should
    79  	// always uniquely identify a single request.
    80  	ErrCodeIncompatibleParameterError = "IncompatibleParameterError"
    81  
    82  	// ErrCodeIncompatibleRegionForMultiAZ for service response error code
    83  	// "IncompatibleRegionForMultiAZ".
    84  	//
    85  	// Amazon FSx doesn't support Multi-AZ Windows File Server copy backup in the
    86  	// destination Region, so the copied backup can't be restored.
    87  	ErrCodeIncompatibleRegionForMultiAZ = "IncompatibleRegionForMultiAZ"
    88  
    89  	// ErrCodeInternalServerError for service response error code
    90  	// "InternalServerError".
    91  	//
    92  	// A generic error indicating a server-side failure.
    93  	ErrCodeInternalServerError = "InternalServerError"
    94  
    95  	// ErrCodeInvalidDestinationKmsKey for service response error code
    96  	// "InvalidDestinationKmsKey".
    97  	//
    98  	// The Key Management Service (KMS) key of the destination backup is invalid.
    99  	ErrCodeInvalidDestinationKmsKey = "InvalidDestinationKmsKey"
   100  
   101  	// ErrCodeInvalidExportPath for service response error code
   102  	// "InvalidExportPath".
   103  	//
   104  	// The path provided for data repository export isn't valid.
   105  	ErrCodeInvalidExportPath = "InvalidExportPath"
   106  
   107  	// ErrCodeInvalidImportPath for service response error code
   108  	// "InvalidImportPath".
   109  	//
   110  	// The path provided for data repository import isn't valid.
   111  	ErrCodeInvalidImportPath = "InvalidImportPath"
   112  
   113  	// ErrCodeInvalidNetworkSettings for service response error code
   114  	// "InvalidNetworkSettings".
   115  	//
   116  	// One or more network settings specified in the request are invalid.
   117  	ErrCodeInvalidNetworkSettings = "InvalidNetworkSettings"
   118  
   119  	// ErrCodeInvalidPerUnitStorageThroughput for service response error code
   120  	// "InvalidPerUnitStorageThroughput".
   121  	//
   122  	// An invalid value for PerUnitStorageThroughput was provided. Please create
   123  	// your file system again, using a valid value.
   124  	ErrCodeInvalidPerUnitStorageThroughput = "InvalidPerUnitStorageThroughput"
   125  
   126  	// ErrCodeInvalidRegion for service response error code
   127  	// "InvalidRegion".
   128  	//
   129  	// The Region provided for Source Region is invalid or is in a different Amazon
   130  	// Web Services partition.
   131  	ErrCodeInvalidRegion = "InvalidRegion"
   132  
   133  	// ErrCodeInvalidSourceKmsKey for service response error code
   134  	// "InvalidSourceKmsKey".
   135  	//
   136  	// The Key Management Service (KMS) key of the source backup is invalid.
   137  	ErrCodeInvalidSourceKmsKey = "InvalidSourceKmsKey"
   138  
   139  	// ErrCodeMissingFileSystemConfiguration for service response error code
   140  	// "MissingFileSystemConfiguration".
   141  	//
   142  	// A file system configuration is required for this operation.
   143  	ErrCodeMissingFileSystemConfiguration = "MissingFileSystemConfiguration"
   144  
   145  	// ErrCodeMissingVolumeConfiguration for service response error code
   146  	// "MissingVolumeConfiguration".
   147  	//
   148  	// A volume configuration is required for this operation.
   149  	ErrCodeMissingVolumeConfiguration = "MissingVolumeConfiguration"
   150  
   151  	// ErrCodeNotServiceResourceError for service response error code
   152  	// "NotServiceResourceError".
   153  	//
   154  	// The resource specified for the tagging operation is not a resource type owned
   155  	// by Amazon FSx. Use the API of the relevant service to perform the operation.
   156  	ErrCodeNotServiceResourceError = "NotServiceResourceError"
   157  
   158  	// ErrCodeResourceDoesNotSupportTagging for service response error code
   159  	// "ResourceDoesNotSupportTagging".
   160  	//
   161  	// The resource specified does not support tagging.
   162  	ErrCodeResourceDoesNotSupportTagging = "ResourceDoesNotSupportTagging"
   163  
   164  	// ErrCodeResourceNotFound for service response error code
   165  	// "ResourceNotFound".
   166  	//
   167  	// The resource specified by the Amazon Resource Name (ARN) can't be found.
   168  	ErrCodeResourceNotFound = "ResourceNotFound"
   169  
   170  	// ErrCodeServiceLimitExceeded for service response error code
   171  	// "ServiceLimitExceeded".
   172  	//
   173  	// An error indicating that a particular service limit was exceeded. You can
   174  	// increase some service limits by contacting Amazon Web Services Support.
   175  	ErrCodeServiceLimitExceeded = "ServiceLimitExceeded"
   176  
   177  	// ErrCodeSourceBackupUnavailable for service response error code
   178  	// "SourceBackupUnavailable".
   179  	//
   180  	// The request was rejected because the lifecycle status of the source backup
   181  	// is not AVAILABLE.
   182  	ErrCodeSourceBackupUnavailable = "SourceBackupUnavailable"
   183  
   184  	// ErrCodeStorageVirtualMachineNotFound for service response error code
   185  	// "StorageVirtualMachineNotFound".
   186  	//
   187  	// No Amazon FSx for NetApp ONTAP SVMs were found based upon the supplied parameters.
   188  	ErrCodeStorageVirtualMachineNotFound = "StorageVirtualMachineNotFound"
   189  
   190  	// ErrCodeUnsupportedOperation for service response error code
   191  	// "UnsupportedOperation".
   192  	//
   193  	// The requested operation is not supported for this resource or API.
   194  	ErrCodeUnsupportedOperation = "UnsupportedOperation"
   195  
   196  	// ErrCodeVolumeNotFound for service response error code
   197  	// "VolumeNotFound".
   198  	//
   199  	// No Amazon FSx for NetApp ONTAP volumes were found based upon the supplied
   200  	// parameters.
   201  	ErrCodeVolumeNotFound = "VolumeNotFound"
   202  )
   203  
   204  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   205  	"ActiveDirectoryError":            newErrorActiveDirectoryError,
   206  	"BackupBeingCopied":               newErrorBackupBeingCopied,
   207  	"BackupInProgress":                newErrorBackupInProgress,
   208  	"BackupNotFound":                  newErrorBackupNotFound,
   209  	"BackupRestoring":                 newErrorBackupRestoring,
   210  	"BadRequest":                      newErrorBadRequest,
   211  	"DataRepositoryTaskEnded":         newErrorDataRepositoryTaskEnded,
   212  	"DataRepositoryTaskExecuting":     newErrorDataRepositoryTaskExecuting,
   213  	"DataRepositoryTaskNotFound":      newErrorDataRepositoryTaskNotFound,
   214  	"FileSystemNotFound":              newErrorFileSystemNotFound,
   215  	"IncompatibleParameterError":      newErrorIncompatibleParameterError,
   216  	"IncompatibleRegionForMultiAZ":    newErrorIncompatibleRegionForMultiAZ,
   217  	"InternalServerError":             newErrorInternalServerError,
   218  	"InvalidDestinationKmsKey":        newErrorInvalidDestinationKmsKey,
   219  	"InvalidExportPath":               newErrorInvalidExportPath,
   220  	"InvalidImportPath":               newErrorInvalidImportPath,
   221  	"InvalidNetworkSettings":          newErrorInvalidNetworkSettings,
   222  	"InvalidPerUnitStorageThroughput": newErrorInvalidPerUnitStorageThroughput,
   223  	"InvalidRegion":                   newErrorInvalidRegion,
   224  	"InvalidSourceKmsKey":             newErrorInvalidSourceKmsKey,
   225  	"MissingFileSystemConfiguration":  newErrorMissingFileSystemConfiguration,
   226  	"MissingVolumeConfiguration":      newErrorMissingVolumeConfiguration,
   227  	"NotServiceResourceError":         newErrorNotServiceResourceError,
   228  	"ResourceDoesNotSupportTagging":   newErrorResourceDoesNotSupportTagging,
   229  	"ResourceNotFound":                newErrorResourceNotFound,
   230  	"ServiceLimitExceeded":            newErrorServiceLimitExceeded,
   231  	"SourceBackupUnavailable":         newErrorSourceBackupUnavailable,
   232  	"StorageVirtualMachineNotFound":   newErrorStorageVirtualMachineNotFound,
   233  	"UnsupportedOperation":            newErrorUnsupportedOperation,
   234  	"VolumeNotFound":                  newErrorVolumeNotFound,
   235  }