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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package applicationautoscaling
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeConcurrentUpdateException for service response error code
    12  	// "ConcurrentUpdateException".
    13  	//
    14  	// Concurrent updates caused an exception, for example, if you request an update
    15  	// to an Application Auto Scaling resource that already has a pending update.
    16  	ErrCodeConcurrentUpdateException = "ConcurrentUpdateException"
    17  
    18  	// ErrCodeFailedResourceAccessException for service response error code
    19  	// "FailedResourceAccessException".
    20  	//
    21  	// Failed access to resources caused an exception. This exception is thrown
    22  	// when Application Auto Scaling is unable to retrieve the alarms associated
    23  	// with a scaling policy due to a client error, for example, if the role ARN
    24  	// specified for a scalable target does not have permission to call the CloudWatch
    25  	// DescribeAlarms (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html)
    26  	// on your behalf.
    27  	ErrCodeFailedResourceAccessException = "FailedResourceAccessException"
    28  
    29  	// ErrCodeInternalServiceException for service response error code
    30  	// "InternalServiceException".
    31  	//
    32  	// The service encountered an internal error.
    33  	ErrCodeInternalServiceException = "InternalServiceException"
    34  
    35  	// ErrCodeInvalidNextTokenException for service response error code
    36  	// "InvalidNextTokenException".
    37  	//
    38  	// The next token supplied was invalid.
    39  	ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
    40  
    41  	// ErrCodeLimitExceededException for service response error code
    42  	// "LimitExceededException".
    43  	//
    44  	// A per-account resource limit is exceeded. For more information, see Application
    45  	// Auto Scaling service quotas (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-limits.html).
    46  	ErrCodeLimitExceededException = "LimitExceededException"
    47  
    48  	// ErrCodeObjectNotFoundException for service response error code
    49  	// "ObjectNotFoundException".
    50  	//
    51  	// The specified object could not be found. For any operation that depends on
    52  	// the existence of a scalable target, this exception is thrown if the scalable
    53  	// target with the specified service namespace, resource ID, and scalable dimension
    54  	// does not exist. For any operation that deletes or deregisters a resource,
    55  	// this exception is thrown if the resource cannot be found.
    56  	ErrCodeObjectNotFoundException = "ObjectNotFoundException"
    57  
    58  	// ErrCodeValidationException for service response error code
    59  	// "ValidationException".
    60  	//
    61  	// An exception was thrown for a validation issue. Review the available parameters
    62  	// for the API request.
    63  	ErrCodeValidationException = "ValidationException"
    64  )
    65  
    66  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    67  	"ConcurrentUpdateException":     newErrorConcurrentUpdateException,
    68  	"FailedResourceAccessException": newErrorFailedResourceAccessException,
    69  	"InternalServiceException":      newErrorInternalServiceException,
    70  	"InvalidNextTokenException":     newErrorInvalidNextTokenException,
    71  	"LimitExceededException":        newErrorLimitExceededException,
    72  	"ObjectNotFoundException":       newErrorObjectNotFoundException,
    73  	"ValidationException":           newErrorValidationException,
    74  }