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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package ecs
     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  	// You do not have authorization to perform the requested action.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeAttributeLimitExceededException for service response error code
    18  	// "AttributeLimitExceededException".
    19  	//
    20  	// You can apply up to 10 custom attributes per resource. You can view the attributes
    21  	// of a resource with ListAttributes. You can remove existing attributes on
    22  	// a resource with DeleteAttributes.
    23  	ErrCodeAttributeLimitExceededException = "AttributeLimitExceededException"
    24  
    25  	// ErrCodeBlockedException for service response error code
    26  	// "BlockedException".
    27  	//
    28  	// Your Amazon Web Services account has been blocked. For more information,
    29  	// contact Amazon Web Services Support (http://aws.amazon.com/contact-us/).
    30  	ErrCodeBlockedException = "BlockedException"
    31  
    32  	// ErrCodeClientException for service response error code
    33  	// "ClientException".
    34  	//
    35  	// These errors are usually caused by a client action, such as using an action
    36  	// or resource on behalf of a user that doesn't have permissions to use the
    37  	// action or resource, or specifying an identifier that is not valid.
    38  	ErrCodeClientException = "ClientException"
    39  
    40  	// ErrCodeClusterContainsContainerInstancesException for service response error code
    41  	// "ClusterContainsContainerInstancesException".
    42  	//
    43  	// You cannot delete a cluster that has registered container instances. First,
    44  	// deregister the container instances before you can delete the cluster. For
    45  	// more information, see DeregisterContainerInstance.
    46  	ErrCodeClusterContainsContainerInstancesException = "ClusterContainsContainerInstancesException"
    47  
    48  	// ErrCodeClusterContainsServicesException for service response error code
    49  	// "ClusterContainsServicesException".
    50  	//
    51  	// You cannot delete a cluster that contains services. First, update the service
    52  	// to reduce its desired task count to 0 and then delete the service. For more
    53  	// information, see UpdateService and DeleteService.
    54  	ErrCodeClusterContainsServicesException = "ClusterContainsServicesException"
    55  
    56  	// ErrCodeClusterContainsTasksException for service response error code
    57  	// "ClusterContainsTasksException".
    58  	//
    59  	// You cannot delete a cluster that has active tasks.
    60  	ErrCodeClusterContainsTasksException = "ClusterContainsTasksException"
    61  
    62  	// ErrCodeClusterNotFoundException for service response error code
    63  	// "ClusterNotFoundException".
    64  	//
    65  	// The specified cluster could not be found. You can view your available clusters
    66  	// with ListClusters. Amazon ECS clusters are Region-specific.
    67  	ErrCodeClusterNotFoundException = "ClusterNotFoundException"
    68  
    69  	// ErrCodeInvalidParameterException for service response error code
    70  	// "InvalidParameterException".
    71  	//
    72  	// The specified parameter is invalid. Review the available parameters for the
    73  	// API request.
    74  	ErrCodeInvalidParameterException = "InvalidParameterException"
    75  
    76  	// ErrCodeLimitExceededException for service response error code
    77  	// "LimitExceededException".
    78  	//
    79  	// The limit for the resource has been exceeded.
    80  	ErrCodeLimitExceededException = "LimitExceededException"
    81  
    82  	// ErrCodeMissingVersionException for service response error code
    83  	// "MissingVersionException".
    84  	//
    85  	// Amazon ECS is unable to determine the current version of the Amazon ECS container
    86  	// agent on the container instance and does not have enough information to proceed
    87  	// with an update. This could be because the agent running on the container
    88  	// instance is an older or custom version that does not use our version information.
    89  	ErrCodeMissingVersionException = "MissingVersionException"
    90  
    91  	// ErrCodeNoUpdateAvailableException for service response error code
    92  	// "NoUpdateAvailableException".
    93  	//
    94  	// There is no update available for this Amazon ECS container agent. This could
    95  	// be because the agent is already running the latest version, or it is so old
    96  	// that there is no update path to the current version.
    97  	ErrCodeNoUpdateAvailableException = "NoUpdateAvailableException"
    98  
    99  	// ErrCodePlatformTaskDefinitionIncompatibilityException for service response error code
   100  	// "PlatformTaskDefinitionIncompatibilityException".
   101  	//
   102  	// The specified platform version does not satisfy the task definition's required
   103  	// capabilities.
   104  	ErrCodePlatformTaskDefinitionIncompatibilityException = "PlatformTaskDefinitionIncompatibilityException"
   105  
   106  	// ErrCodePlatformUnknownException for service response error code
   107  	// "PlatformUnknownException".
   108  	//
   109  	// The specified platform version does not exist.
   110  	ErrCodePlatformUnknownException = "PlatformUnknownException"
   111  
   112  	// ErrCodeResourceInUseException for service response error code
   113  	// "ResourceInUseException".
   114  	//
   115  	// The specified resource is in-use and cannot be removed.
   116  	ErrCodeResourceInUseException = "ResourceInUseException"
   117  
   118  	// ErrCodeResourceNotFoundException for service response error code
   119  	// "ResourceNotFoundException".
   120  	//
   121  	// The specified resource could not be found.
   122  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
   123  
   124  	// ErrCodeServerException for service response error code
   125  	// "ServerException".
   126  	//
   127  	// These errors are usually caused by a server issue.
   128  	ErrCodeServerException = "ServerException"
   129  
   130  	// ErrCodeServiceNotActiveException for service response error code
   131  	// "ServiceNotActiveException".
   132  	//
   133  	// The specified service is not active. You can't update a service that is inactive.
   134  	// If you have previously deleted a service, you can re-create it with CreateService.
   135  	ErrCodeServiceNotActiveException = "ServiceNotActiveException"
   136  
   137  	// ErrCodeServiceNotFoundException for service response error code
   138  	// "ServiceNotFoundException".
   139  	//
   140  	// The specified service could not be found. You can view your available services
   141  	// with ListServices. Amazon ECS services are cluster-specific and Region-specific.
   142  	ErrCodeServiceNotFoundException = "ServiceNotFoundException"
   143  
   144  	// ErrCodeTargetNotConnectedException for service response error code
   145  	// "TargetNotConnectedException".
   146  	//
   147  	// The target container is not properly configured with the execute command
   148  	// agent or the container is no longer active or running.
   149  	ErrCodeTargetNotConnectedException = "TargetNotConnectedException"
   150  
   151  	// ErrCodeTargetNotFoundException for service response error code
   152  	// "TargetNotFoundException".
   153  	//
   154  	// The specified target could not be found. You can view your available container
   155  	// instances with ListContainerInstances. Amazon ECS container instances are
   156  	// cluster-specific and Region-specific.
   157  	ErrCodeTargetNotFoundException = "TargetNotFoundException"
   158  
   159  	// ErrCodeTaskSetNotFoundException for service response error code
   160  	// "TaskSetNotFoundException".
   161  	//
   162  	// The specified task set could not be found. You can view your available task
   163  	// sets with DescribeTaskSets. Task sets are specific to each cluster, service
   164  	// and Region.
   165  	ErrCodeTaskSetNotFoundException = "TaskSetNotFoundException"
   166  
   167  	// ErrCodeUnsupportedFeatureException for service response error code
   168  	// "UnsupportedFeatureException".
   169  	//
   170  	// The specified task is not supported in this Region.
   171  	ErrCodeUnsupportedFeatureException = "UnsupportedFeatureException"
   172  
   173  	// ErrCodeUpdateInProgressException for service response error code
   174  	// "UpdateInProgressException".
   175  	//
   176  	// There is already a current Amazon ECS container agent update in progress
   177  	// on the specified container instance. If the container agent becomes disconnected
   178  	// while it is in a transitional stage, such as PENDING or STAGING, the update
   179  	// process can get stuck in that state. However, when the agent reconnects,
   180  	// it resumes where it stopped previously.
   181  	ErrCodeUpdateInProgressException = "UpdateInProgressException"
   182  )
   183  
   184  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   185  	"AccessDeniedException":                          newErrorAccessDeniedException,
   186  	"AttributeLimitExceededException":                newErrorAttributeLimitExceededException,
   187  	"BlockedException":                               newErrorBlockedException,
   188  	"ClientException":                                newErrorClientException,
   189  	"ClusterContainsContainerInstancesException":     newErrorClusterContainsContainerInstancesException,
   190  	"ClusterContainsServicesException":               newErrorClusterContainsServicesException,
   191  	"ClusterContainsTasksException":                  newErrorClusterContainsTasksException,
   192  	"ClusterNotFoundException":                       newErrorClusterNotFoundException,
   193  	"InvalidParameterException":                      newErrorInvalidParameterException,
   194  	"LimitExceededException":                         newErrorLimitExceededException,
   195  	"MissingVersionException":                        newErrorMissingVersionException,
   196  	"NoUpdateAvailableException":                     newErrorNoUpdateAvailableException,
   197  	"PlatformTaskDefinitionIncompatibilityException": newErrorPlatformTaskDefinitionIncompatibilityException,
   198  	"PlatformUnknownException":                       newErrorPlatformUnknownException,
   199  	"ResourceInUseException":                         newErrorResourceInUseException,
   200  	"ResourceNotFoundException":                      newErrorResourceNotFoundException,
   201  	"ServerException":                                newErrorServerException,
   202  	"ServiceNotActiveException":                      newErrorServiceNotActiveException,
   203  	"ServiceNotFoundException":                       newErrorServiceNotFoundException,
   204  	"TargetNotConnectedException":                    newErrorTargetNotConnectedException,
   205  	"TargetNotFoundException":                        newErrorTargetNotFoundException,
   206  	"TaskSetNotFoundException":                       newErrorTaskSetNotFoundException,
   207  	"UnsupportedFeatureException":                    newErrorUnsupportedFeatureException,
   208  	"UpdateInProgressException":                      newErrorUpdateInProgressException,
   209  }