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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package efs
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAccessPointAlreadyExists for service response error code
    12  	// "AccessPointAlreadyExists".
    13  	//
    14  	// Returned if the access point you are trying to create already exists, with
    15  	// the creation token you provided in the request.
    16  	ErrCodeAccessPointAlreadyExists = "AccessPointAlreadyExists"
    17  
    18  	// ErrCodeAccessPointLimitExceeded for service response error code
    19  	// "AccessPointLimitExceeded".
    20  	//
    21  	// Returned if the Amazon Web Services account has already created the maximum
    22  	// number of access points allowed per file system.
    23  	ErrCodeAccessPointLimitExceeded = "AccessPointLimitExceeded"
    24  
    25  	// ErrCodeAccessPointNotFound for service response error code
    26  	// "AccessPointNotFound".
    27  	//
    28  	// Returned if the specified AccessPointId value doesn't exist in the requester's
    29  	// Amazon Web Services account.
    30  	ErrCodeAccessPointNotFound = "AccessPointNotFound"
    31  
    32  	// ErrCodeAvailabilityZonesMismatch for service response error code
    33  	// "AvailabilityZonesMismatch".
    34  	//
    35  	// Returned if the Availability Zone that was specified for a mount target is
    36  	// different from the Availability Zone that was specified for One Zone storage
    37  	// classes. For more information, see Regional and One Zone storage redundancy
    38  	// (https://docs.aws.amazon.com/efs/latest/ug/availability-durability.html).
    39  	ErrCodeAvailabilityZonesMismatch = "AvailabilityZonesMismatch"
    40  
    41  	// ErrCodeBadRequest for service response error code
    42  	// "BadRequest".
    43  	//
    44  	// Returned if the request is malformed or contains an error such as an invalid
    45  	// parameter value or a missing required parameter.
    46  	ErrCodeBadRequest = "BadRequest"
    47  
    48  	// ErrCodeDependencyTimeout for service response error code
    49  	// "DependencyTimeout".
    50  	//
    51  	// The service timed out trying to fulfill the request, and the client should
    52  	// try the call again.
    53  	ErrCodeDependencyTimeout = "DependencyTimeout"
    54  
    55  	// ErrCodeFileSystemAlreadyExists for service response error code
    56  	// "FileSystemAlreadyExists".
    57  	//
    58  	// Returned if the file system you are trying to create already exists, with
    59  	// the creation token you provided.
    60  	ErrCodeFileSystemAlreadyExists = "FileSystemAlreadyExists"
    61  
    62  	// ErrCodeFileSystemInUse for service response error code
    63  	// "FileSystemInUse".
    64  	//
    65  	// Returned if a file system has mount targets.
    66  	ErrCodeFileSystemInUse = "FileSystemInUse"
    67  
    68  	// ErrCodeFileSystemLimitExceeded for service response error code
    69  	// "FileSystemLimitExceeded".
    70  	//
    71  	// Returned if the Amazon Web Services account has already created the maximum
    72  	// number of file systems allowed per account.
    73  	ErrCodeFileSystemLimitExceeded = "FileSystemLimitExceeded"
    74  
    75  	// ErrCodeFileSystemNotFound for service response error code
    76  	// "FileSystemNotFound".
    77  	//
    78  	// Returned if the specified FileSystemId value doesn't exist in the requester's
    79  	// Amazon Web Services account.
    80  	ErrCodeFileSystemNotFound = "FileSystemNotFound"
    81  
    82  	// ErrCodeIncorrectFileSystemLifeCycleState for service response error code
    83  	// "IncorrectFileSystemLifeCycleState".
    84  	//
    85  	// Returned if the file system's lifecycle state is not "available".
    86  	ErrCodeIncorrectFileSystemLifeCycleState = "IncorrectFileSystemLifeCycleState"
    87  
    88  	// ErrCodeIncorrectMountTargetState for service response error code
    89  	// "IncorrectMountTargetState".
    90  	//
    91  	// Returned if the mount target is not in the correct state for the operation.
    92  	ErrCodeIncorrectMountTargetState = "IncorrectMountTargetState"
    93  
    94  	// ErrCodeInsufficientThroughputCapacity for service response error code
    95  	// "InsufficientThroughputCapacity".
    96  	//
    97  	// Returned if there's not enough capacity to provision additional throughput.
    98  	// This value might be returned when you try to create a file system in provisioned
    99  	// throughput mode, when you attempt to increase the provisioned throughput
   100  	// of an existing file system, or when you attempt to change an existing file
   101  	// system from bursting to provisioned throughput mode. Try again later.
   102  	ErrCodeInsufficientThroughputCapacity = "InsufficientThroughputCapacity"
   103  
   104  	// ErrCodeInternalServerError for service response error code
   105  	// "InternalServerError".
   106  	//
   107  	// Returned if an error occurred on the server side.
   108  	ErrCodeInternalServerError = "InternalServerError"
   109  
   110  	// ErrCodeInvalidPolicyException for service response error code
   111  	// "InvalidPolicyException".
   112  	//
   113  	// Returned if the FileSystemPolicy is is malformed or contains an error such
   114  	// as an invalid parameter value or a missing required parameter. Returned in
   115  	// the case of a policy lockout safety check error.
   116  	ErrCodeInvalidPolicyException = "InvalidPolicyException"
   117  
   118  	// ErrCodeIpAddressInUse for service response error code
   119  	// "IpAddressInUse".
   120  	//
   121  	// Returned if the request specified an IpAddress that is already in use in
   122  	// the subnet.
   123  	ErrCodeIpAddressInUse = "IpAddressInUse"
   124  
   125  	// ErrCodeMountTargetConflict for service response error code
   126  	// "MountTargetConflict".
   127  	//
   128  	// Returned if the mount target would violate one of the specified restrictions
   129  	// based on the file system's existing mount targets.
   130  	ErrCodeMountTargetConflict = "MountTargetConflict"
   131  
   132  	// ErrCodeMountTargetNotFound for service response error code
   133  	// "MountTargetNotFound".
   134  	//
   135  	// Returned if there is no mount target with the specified ID found in the caller's
   136  	// Amazon Web Services account.
   137  	ErrCodeMountTargetNotFound = "MountTargetNotFound"
   138  
   139  	// ErrCodeNetworkInterfaceLimitExceeded for service response error code
   140  	// "NetworkInterfaceLimitExceeded".
   141  	//
   142  	// The calling account has reached the limit for elastic network interfaces
   143  	// for the specific Amazon Web Services Region. The client should try to delete
   144  	// some elastic network interfaces or get the account limit raised. For more
   145  	// information, see Amazon VPC Limits (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html)
   146  	// in the Amazon VPC User Guide (see the Network interfaces per VPC entry in
   147  	// the table).
   148  	ErrCodeNetworkInterfaceLimitExceeded = "NetworkInterfaceLimitExceeded"
   149  
   150  	// ErrCodeNoFreeAddressesInSubnet for service response error code
   151  	// "NoFreeAddressesInSubnet".
   152  	//
   153  	// Returned if IpAddress was not specified in the request and there are no free
   154  	// IP addresses in the subnet.
   155  	ErrCodeNoFreeAddressesInSubnet = "NoFreeAddressesInSubnet"
   156  
   157  	// ErrCodePolicyNotFound for service response error code
   158  	// "PolicyNotFound".
   159  	//
   160  	// Returned if the default file system policy is in effect for the EFS file
   161  	// system specified.
   162  	ErrCodePolicyNotFound = "PolicyNotFound"
   163  
   164  	// ErrCodeSecurityGroupLimitExceeded for service response error code
   165  	// "SecurityGroupLimitExceeded".
   166  	//
   167  	// Returned if the size of SecurityGroups specified in the request is greater
   168  	// than five.
   169  	ErrCodeSecurityGroupLimitExceeded = "SecurityGroupLimitExceeded"
   170  
   171  	// ErrCodeSecurityGroupNotFound for service response error code
   172  	// "SecurityGroupNotFound".
   173  	//
   174  	// Returned if one of the specified security groups doesn't exist in the subnet's
   175  	// VPC.
   176  	ErrCodeSecurityGroupNotFound = "SecurityGroupNotFound"
   177  
   178  	// ErrCodeSubnetNotFound for service response error code
   179  	// "SubnetNotFound".
   180  	//
   181  	// Returned if there is no subnet with ID SubnetId provided in the request.
   182  	ErrCodeSubnetNotFound = "SubnetNotFound"
   183  
   184  	// ErrCodeThroughputLimitExceeded for service response error code
   185  	// "ThroughputLimitExceeded".
   186  	//
   187  	// Returned if the throughput mode or amount of provisioned throughput can't
   188  	// be changed because the throughput limit of 1024 MiB/s has been reached.
   189  	ErrCodeThroughputLimitExceeded = "ThroughputLimitExceeded"
   190  
   191  	// ErrCodeTooManyRequests for service response error code
   192  	// "TooManyRequests".
   193  	//
   194  	// Returned if you don’t wait at least 24 hours before changing the throughput
   195  	// mode, or decreasing the Provisioned Throughput value.
   196  	ErrCodeTooManyRequests = "TooManyRequests"
   197  
   198  	// ErrCodeUnsupportedAvailabilityZone for service response error code
   199  	// "UnsupportedAvailabilityZone".
   200  	//
   201  	// Returned if the requested Amazon EFS functionality is not available in the
   202  	// specified Availability Zone.
   203  	ErrCodeUnsupportedAvailabilityZone = "UnsupportedAvailabilityZone"
   204  
   205  	// ErrCodeValidationException for service response error code
   206  	// "ValidationException".
   207  	//
   208  	// Returned if the Backup service is not available in the Amazon Web Services
   209  	// Region in which the request was made.
   210  	ErrCodeValidationException = "ValidationException"
   211  )
   212  
   213  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   214  	"AccessPointAlreadyExists":          newErrorAccessPointAlreadyExists,
   215  	"AccessPointLimitExceeded":          newErrorAccessPointLimitExceeded,
   216  	"AccessPointNotFound":               newErrorAccessPointNotFound,
   217  	"AvailabilityZonesMismatch":         newErrorAvailabilityZonesMismatch,
   218  	"BadRequest":                        newErrorBadRequest,
   219  	"DependencyTimeout":                 newErrorDependencyTimeout,
   220  	"FileSystemAlreadyExists":           newErrorFileSystemAlreadyExists,
   221  	"FileSystemInUse":                   newErrorFileSystemInUse,
   222  	"FileSystemLimitExceeded":           newErrorFileSystemLimitExceeded,
   223  	"FileSystemNotFound":                newErrorFileSystemNotFound,
   224  	"IncorrectFileSystemLifeCycleState": newErrorIncorrectFileSystemLifeCycleState,
   225  	"IncorrectMountTargetState":         newErrorIncorrectMountTargetState,
   226  	"InsufficientThroughputCapacity":    newErrorInsufficientThroughputCapacity,
   227  	"InternalServerError":               newErrorInternalServerError,
   228  	"InvalidPolicyException":            newErrorInvalidPolicyException,
   229  	"IpAddressInUse":                    newErrorIpAddressInUse,
   230  	"MountTargetConflict":               newErrorMountTargetConflict,
   231  	"MountTargetNotFound":               newErrorMountTargetNotFound,
   232  	"NetworkInterfaceLimitExceeded":     newErrorNetworkInterfaceLimitExceeded,
   233  	"NoFreeAddressesInSubnet":           newErrorNoFreeAddressesInSubnet,
   234  	"PolicyNotFound":                    newErrorPolicyNotFound,
   235  	"SecurityGroupLimitExceeded":        newErrorSecurityGroupLimitExceeded,
   236  	"SecurityGroupNotFound":             newErrorSecurityGroupNotFound,
   237  	"SubnetNotFound":                    newErrorSubnetNotFound,
   238  	"ThroughputLimitExceeded":           newErrorThroughputLimitExceeded,
   239  	"TooManyRequests":                   newErrorTooManyRequests,
   240  	"UnsupportedAvailabilityZone":       newErrorUnsupportedAvailabilityZone,
   241  	"ValidationException":               newErrorValidationException,
   242  }