// Code generated by smithy-go-codegen DO NOT EDIT. package types import ( "fmt" smithy "github.com/aws/smithy-go" ) // You do not have sufficient access to perform this action. type AccessDeniedException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *AccessDeniedException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *AccessDeniedException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *AccessDeniedException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride } func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised to indicate a successfully authorized action when the DryRun // flag is set to "true". type DryRunOperation struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *DryRunOperation) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *DryRunOperation) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *DryRunOperation) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "DryRunOperation" } return *e.ErrorCodeOverride } func (e *DryRunOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The home region is not set. Set the home region to continue. type HomeRegionNotSetException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *HomeRegionNotSetException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *HomeRegionNotSetException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *HomeRegionNotSetException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "HomeRegionNotSetException" } return *e.ErrorCodeOverride } func (e *HomeRegionNotSetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised when an internal, configuration, or dependency error is // encountered. type InternalServerError struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *InternalServerError) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *InternalServerError) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *InternalServerError) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride } func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Exception raised when the provided input violates a policy constraint or is // entered in the wrong format or data type. type InvalidInputException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *InvalidInputException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *InvalidInputException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *InvalidInputException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride } func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised when there are problems accessing Application Discovery // Service (Application Discovery Service); most likely due to a misconfigured // policy or the migrationhub-discovery role is missing or not configured // correctly. type PolicyErrorException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *PolicyErrorException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *PolicyErrorException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *PolicyErrorException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "PolicyErrorException" } return *e.ErrorCodeOverride } func (e *PolicyErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not exist // in Application Discovery Service (Application Discovery Service) or in Migration // Hub's repository. type ResourceNotFoundException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ResourceNotFoundException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride } func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised when there is an internal, configuration, or dependency error // encountered. type ServiceUnavailableException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ServiceUnavailableException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ServiceUnavailableException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride } func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was denied due to request throttling. type ThrottlingException struct { Message *string ErrorCodeOverride *string RetryAfterSeconds int32 noSmithyDocumentSerde } func (e *ThrottlingException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ThrottlingException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ThrottlingException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride } func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised to indicate a request was not authorized when the DryRun flag // is set to "true". type UnauthorizedOperation struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *UnauthorizedOperation) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *UnauthorizedOperation) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *UnauthorizedOperation) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedOperation" } return *e.ErrorCodeOverride } func (e *UnauthorizedOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }