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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package inspector
     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 required permissions to access the requested resource.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeAgentsAlreadyRunningAssessmentException for service response error code
    18  	// "AgentsAlreadyRunningAssessmentException".
    19  	//
    20  	// You started an assessment run, but one of the instances is already participating
    21  	// in another assessment run.
    22  	ErrCodeAgentsAlreadyRunningAssessmentException = "AgentsAlreadyRunningAssessmentException"
    23  
    24  	// ErrCodeAssessmentRunInProgressException for service response error code
    25  	// "AssessmentRunInProgressException".
    26  	//
    27  	// You cannot perform a specified action if an assessment run is currently in
    28  	// progress.
    29  	ErrCodeAssessmentRunInProgressException = "AssessmentRunInProgressException"
    30  
    31  	// ErrCodeInternalException for service response error code
    32  	// "InternalException".
    33  	//
    34  	// Internal server error.
    35  	ErrCodeInternalException = "InternalException"
    36  
    37  	// ErrCodeInvalidCrossAccountRoleException for service response error code
    38  	// "InvalidCrossAccountRoleException".
    39  	//
    40  	// Amazon Inspector cannot assume the cross-account role that it needs to list
    41  	// your EC2 instances during the assessment run.
    42  	ErrCodeInvalidCrossAccountRoleException = "InvalidCrossAccountRoleException"
    43  
    44  	// ErrCodeInvalidInputException for service response error code
    45  	// "InvalidInputException".
    46  	//
    47  	// The request was rejected because an invalid or out-of-range value was supplied
    48  	// for an input parameter.
    49  	ErrCodeInvalidInputException = "InvalidInputException"
    50  
    51  	// ErrCodeLimitExceededException for service response error code
    52  	// "LimitExceededException".
    53  	//
    54  	// The request was rejected because it attempted to create resources beyond
    55  	// the current AWS account limits. The error code describes the limit exceeded.
    56  	ErrCodeLimitExceededException = "LimitExceededException"
    57  
    58  	// ErrCodeNoSuchEntityException for service response error code
    59  	// "NoSuchEntityException".
    60  	//
    61  	// The request was rejected because it referenced an entity that does not exist.
    62  	// The error code describes the entity.
    63  	ErrCodeNoSuchEntityException = "NoSuchEntityException"
    64  
    65  	// ErrCodePreviewGenerationInProgressException for service response error code
    66  	// "PreviewGenerationInProgressException".
    67  	//
    68  	// The request is rejected. The specified assessment template is currently generating
    69  	// an exclusions preview.
    70  	ErrCodePreviewGenerationInProgressException = "PreviewGenerationInProgressException"
    71  
    72  	// ErrCodeServiceTemporarilyUnavailableException for service response error code
    73  	// "ServiceTemporarilyUnavailableException".
    74  	//
    75  	// The serice is temporary unavailable.
    76  	ErrCodeServiceTemporarilyUnavailableException = "ServiceTemporarilyUnavailableException"
    77  
    78  	// ErrCodeUnsupportedFeatureException for service response error code
    79  	// "UnsupportedFeatureException".
    80  	//
    81  	// Used by the GetAssessmentReport API. The request was rejected because you
    82  	// tried to generate a report for an assessment run that existed before reporting
    83  	// was supported in Amazon Inspector. You can only generate reports for assessment
    84  	// runs that took place or will take place after generating reports in Amazon
    85  	// Inspector became available.
    86  	ErrCodeUnsupportedFeatureException = "UnsupportedFeatureException"
    87  )
    88  
    89  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    90  	"AccessDeniedException":                   newErrorAccessDeniedException,
    91  	"AgentsAlreadyRunningAssessmentException": newErrorAgentsAlreadyRunningAssessmentException,
    92  	"AssessmentRunInProgressException":        newErrorAssessmentRunInProgressException,
    93  	"InternalException":                       newErrorInternalException,
    94  	"InvalidCrossAccountRoleException":        newErrorInvalidCrossAccountRoleException,
    95  	"InvalidInputException":                   newErrorInvalidInputException,
    96  	"LimitExceededException":                  newErrorLimitExceededException,
    97  	"NoSuchEntityException":                   newErrorNoSuchEntityException,
    98  	"PreviewGenerationInProgressException":    newErrorPreviewGenerationInProgressException,
    99  	"ServiceTemporarilyUnavailableException":  newErrorServiceTemporarilyUnavailableException,
   100  	"UnsupportedFeatureException":             newErrorUnsupportedFeatureException,
   101  }