module Network.AWS.MachineLearning.Types
(
MachineLearning
, _InternalServerException
, _InvalidInputException
, _IdempotentParameterMismatchException
, _PredictorNotMountedException
, _ResourceNotFoundException
, _LimitExceededException
, Algorithm (..)
, BatchPredictionFilterVariable (..)
, DataSourceFilterVariable (..)
, DetailsAttributes (..)
, EntityStatus (..)
, EvaluationFilterVariable (..)
, MLModelFilterVariable (..)
, MLModelType (..)
, RealtimeEndpointStatus (..)
, SortOrder (..)
, BatchPrediction
, batchPrediction
, bpStatus
, bpLastUpdatedAt
, bpCreatedAt
, bpInputDataLocationS3
, bpMLModelId
, bpBatchPredictionDataSourceId
, bpBatchPredictionId
, bpName
, bpCreatedByIAMUser
, bpMessage
, bpOutputURI
, DataSource
, dataSource
, dsStatus
, dsNumberOfFiles
, dsLastUpdatedAt
, dsCreatedAt
, dsRDSMetadata
, dsDataSourceId
, dsDataSizeInBytes
, dsName
, dsCreatedByIAMUser
, dsDataLocationS3
, dsComputeStatistics
, dsMessage
, dsRedshiftMetadata
, dsRoleARN
, dsDataRearrangement
, Evaluation
, evaluation
, eStatus
, ePerformanceMetrics
, eLastUpdatedAt
, eCreatedAt
, eInputDataLocationS3
, eMLModelId
, eName
, eCreatedByIAMUser
, eMessage
, eEvaluationId
, eEvaluationDataSourceId
, MLModel
, mLModel
, mlmStatus
, mlmTrainingParameters
, mlmLastUpdatedAt
, mlmCreatedAt
, mlmScoreThresholdLastUpdatedAt
, mlmInputDataLocationS3
, mlmSizeInBytes
, mlmMLModelId
, mlmScoreThreshold
, mlmName
, mlmAlgorithm
, mlmCreatedByIAMUser
, mlmEndpointInfo
, mlmTrainingDataSourceId
, mlmMessage
, mlmMLModelType
, PerformanceMetrics
, performanceMetrics
, pmProperties
, Prediction
, prediction
, pPredictedValue
, pPredictedLabel
, pPredictedScores
, pDetails
, RDSDataSpec
, rdsDataSpec
, rdsdsDataSchemaURI
, rdsdsDataSchema
, rdsdsDataRearrangement
, rdsdsDatabaseInformation
, rdsdsSelectSqlQuery
, rdsdsDatabaseCredentials
, rdsdsS3StagingLocation
, rdsdsResourceRole
, rdsdsServiceRole
, rdsdsSubnetId
, rdsdsSecurityGroupIds
, RDSDatabase
, rdsDatabase
, rdsdInstanceIdentifier
, rdsdDatabaseName
, RDSDatabaseCredentials
, rdsDatabaseCredentials
, rdsdcUsername
, rdsdcPassword
, RDSMetadata
, rdsMetadata
, rmSelectSqlQuery
, rmDataPipelineId
, rmDatabase
, rmDatabaseUserName
, rmResourceRole
, rmServiceRole
, RealtimeEndpointInfo
, realtimeEndpointInfo
, reiCreatedAt
, reiEndpointURL
, reiEndpointStatus
, reiPeakRequestsPerSecond
, RedshiftDataSpec
, redshiftDataSpec
, rDataSchemaURI
, rDataSchema
, rDataRearrangement
, rDatabaseInformation
, rSelectSqlQuery
, rDatabaseCredentials
, rS3StagingLocation
, RedshiftDatabase
, redshiftDatabase
, rdDatabaseName
, rdClusterIdentifier
, RedshiftDatabaseCredentials
, redshiftDatabaseCredentials
, rdcUsername
, rdcPassword
, RedshiftMetadata
, redshiftMetadata
, redSelectSqlQuery
, redRedshiftDatabase
, redDatabaseUserName
, S3DataSpec
, s3DataSpec
, sdsDataSchema
, sdsDataSchemaLocationS3
, sdsDataRearrangement
, sdsDataLocationS3
) where
import Network.AWS.MachineLearning.Types.Product
import Network.AWS.MachineLearning.Types.Sum
import Network.AWS.Prelude
import Network.AWS.Sign.V4
data MachineLearning
instance AWSService MachineLearning where
type Sg MachineLearning = V4
service = const svc
where
svc =
Service
{ _svcAbbrev = "MachineLearning"
, _svcPrefix = "machinelearning"
, _svcVersion = "2014-12-12"
, _svcEndpoint = defaultEndpoint svc
, _svcTimeout = Just 70
, _svcStatus = statusSuccess
, _svcError = parseJSONError
, _svcRetry = retry
}
retry =
Exponential
{ _retryBase = 5.0e-2
, _retryGrowth = 2
, _retryAttempts = 5
, _retryCheck = check
}
check e
| has (hasCode "ThrottlingException" . hasStatus 400) e =
Just "throttling_exception"
| has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"
| has (hasStatus 503) e = Just "service_unavailable"
| has (hasStatus 500) e = Just "general_server_error"
| has (hasStatus 509) e = Just "limit_exceeded"
| otherwise = Nothing
_InternalServerException :: AsError a => Getting (First ServiceError) a ServiceError
_InternalServerException =
_ServiceError . hasStatus 500 . hasCode "InternalServerException"
_InvalidInputException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidInputException =
_ServiceError . hasStatus 400 . hasCode "InvalidInputException"
_IdempotentParameterMismatchException :: AsError a => Getting (First ServiceError) a ServiceError
_IdempotentParameterMismatchException =
_ServiceError .
hasStatus 400 . hasCode "IdempotentParameterMismatchException"
_PredictorNotMountedException :: AsError a => Getting (First ServiceError) a ServiceError
_PredictorNotMountedException =
_ServiceError . hasStatus 400 . hasCode "PredictorNotMountedException"
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
_ServiceError . hasStatus 404 . hasCode "ResourceNotFoundException"
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_LimitExceededException =
_ServiceError . hasStatus 417 . hasCode "LimitExceededException"