{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Greengrass.Types
(
defaultService,
_InternalServerErrorException,
_BadRequestException,
BulkDeploymentStatus (..),
ConfigurationSyncStatus (..),
DeploymentType (..),
EncodingType (..),
FunctionIsolationMode (..),
LoggerComponent (..),
LoggerLevel (..),
LoggerType (..),
Permission (..),
SoftwareToUpdate (..),
Telemetry (..),
UpdateAgentLogLevel (..),
UpdateTargetsArchitecture (..),
UpdateTargetsOperatingSystem (..),
BulkDeployment (..),
newBulkDeployment,
bulkDeployment_bulkDeploymentArn,
bulkDeployment_bulkDeploymentId,
bulkDeployment_createdAt,
BulkDeploymentMetrics (..),
newBulkDeploymentMetrics,
bulkDeploymentMetrics_recordsProcessed,
bulkDeploymentMetrics_retryAttempts,
bulkDeploymentMetrics_invalidInputRecords,
BulkDeploymentResult (..),
newBulkDeploymentResult,
bulkDeploymentResult_deploymentId,
bulkDeploymentResult_deploymentArn,
bulkDeploymentResult_createdAt,
bulkDeploymentResult_deploymentType,
bulkDeploymentResult_errorDetails,
bulkDeploymentResult_groupArn,
bulkDeploymentResult_deploymentStatus,
bulkDeploymentResult_errorMessage,
ConnectivityInfo (..),
newConnectivityInfo,
connectivityInfo_portNumber,
connectivityInfo_id,
connectivityInfo_metadata,
connectivityInfo_hostAddress,
Connector (..),
newConnector,
connector_parameters,
connector_connectorArn,
connector_id,
ConnectorDefinitionVersion (..),
newConnectorDefinitionVersion,
connectorDefinitionVersion_connectors,
Core (..),
newCore,
core_syncShadow,
core_thingArn,
core_id,
core_certificateArn,
CoreDefinitionVersion (..),
newCoreDefinitionVersion,
coreDefinitionVersion_cores,
DefinitionInformation (..),
newDefinitionInformation,
definitionInformation_latestVersionArn,
definitionInformation_arn,
definitionInformation_name,
definitionInformation_creationTimestamp,
definitionInformation_id,
definitionInformation_tags,
definitionInformation_latestVersion,
definitionInformation_lastUpdatedTimestamp,
Deployment (..),
newDeployment,
deployment_deploymentId,
deployment_deploymentArn,
deployment_createdAt,
deployment_deploymentType,
deployment_groupArn,
Device (..),
newDevice,
device_syncShadow,
device_thingArn,
device_id,
device_certificateArn,
DeviceDefinitionVersion (..),
newDeviceDefinitionVersion,
deviceDefinitionVersion_devices,
ErrorDetail (..),
newErrorDetail,
errorDetail_detailedErrorCode,
errorDetail_detailedErrorMessage,
Function (..),
newFunction,
function_functionArn,
function_functionConfiguration,
function_id,
FunctionConfiguration (..),
newFunctionConfiguration,
functionConfiguration_memorySize,
functionConfiguration_execArgs,
functionConfiguration_environment,
functionConfiguration_executable,
functionConfiguration_pinned,
functionConfiguration_encodingType,
functionConfiguration_timeout,
FunctionConfigurationEnvironment (..),
newFunctionConfigurationEnvironment,
functionConfigurationEnvironment_variables,
functionConfigurationEnvironment_execution,
functionConfigurationEnvironment_resourceAccessPolicies,
functionConfigurationEnvironment_accessSysfs,
FunctionDefaultConfig (..),
newFunctionDefaultConfig,
functionDefaultConfig_execution,
FunctionDefaultExecutionConfig (..),
newFunctionDefaultExecutionConfig,
functionDefaultExecutionConfig_runAs,
functionDefaultExecutionConfig_isolationMode,
FunctionDefinitionVersion (..),
newFunctionDefinitionVersion,
functionDefinitionVersion_defaultConfig,
functionDefinitionVersion_functions,
FunctionExecutionConfig (..),
newFunctionExecutionConfig,
functionExecutionConfig_runAs,
functionExecutionConfig_isolationMode,
FunctionRunAsConfig (..),
newFunctionRunAsConfig,
functionRunAsConfig_uid,
functionRunAsConfig_gid,
GreengrassLogger (..),
newGreengrassLogger,
greengrassLogger_space,
greengrassLogger_type,
greengrassLogger_level,
greengrassLogger_id,
greengrassLogger_component,
GroupCertificateAuthorityProperties (..),
newGroupCertificateAuthorityProperties,
groupCertificateAuthorityProperties_groupCertificateAuthorityArn,
groupCertificateAuthorityProperties_groupCertificateAuthorityId,
GroupInformation (..),
newGroupInformation,
groupInformation_latestVersionArn,
groupInformation_arn,
groupInformation_name,
groupInformation_creationTimestamp,
groupInformation_id,
groupInformation_latestVersion,
groupInformation_lastUpdatedTimestamp,
GroupOwnerSetting (..),
newGroupOwnerSetting,
groupOwnerSetting_autoAddGroupOwner,
groupOwnerSetting_groupOwner,
GroupVersion (..),
newGroupVersion,
groupVersion_resourceDefinitionVersionArn,
groupVersion_subscriptionDefinitionVersionArn,
groupVersion_coreDefinitionVersionArn,
groupVersion_deviceDefinitionVersionArn,
groupVersion_functionDefinitionVersionArn,
groupVersion_loggerDefinitionVersionArn,
groupVersion_connectorDefinitionVersionArn,
LocalDeviceResourceData (..),
newLocalDeviceResourceData,
localDeviceResourceData_groupOwnerSetting,
localDeviceResourceData_sourcePath,
LocalVolumeResourceData (..),
newLocalVolumeResourceData,
localVolumeResourceData_groupOwnerSetting,
localVolumeResourceData_destinationPath,
localVolumeResourceData_sourcePath,
LoggerDefinitionVersion (..),
newLoggerDefinitionVersion,
loggerDefinitionVersion_loggers,
Resource (..),
newResource,
resource_resourceDataContainer,
resource_id,
resource_name,
ResourceAccessPolicy (..),
newResourceAccessPolicy,
resourceAccessPolicy_permission,
resourceAccessPolicy_resourceId,
ResourceDataContainer (..),
newResourceDataContainer,
resourceDataContainer_s3MachineLearningModelResourceData,
resourceDataContainer_sageMakerMachineLearningModelResourceData,
resourceDataContainer_localVolumeResourceData,
resourceDataContainer_localDeviceResourceData,
resourceDataContainer_secretsManagerSecretResourceData,
ResourceDefinitionVersion (..),
newResourceDefinitionVersion,
resourceDefinitionVersion_resources,
ResourceDownloadOwnerSetting (..),
newResourceDownloadOwnerSetting,
resourceDownloadOwnerSetting_groupOwner,
resourceDownloadOwnerSetting_groupPermission,
RuntimeConfiguration (..),
newRuntimeConfiguration,
runtimeConfiguration_telemetryConfiguration,
S3MachineLearningModelResourceData (..),
newS3MachineLearningModelResourceData,
s3MachineLearningModelResourceData_ownerSetting,
s3MachineLearningModelResourceData_destinationPath,
s3MachineLearningModelResourceData_s3Uri,
SageMakerMachineLearningModelResourceData (..),
newSageMakerMachineLearningModelResourceData,
sageMakerMachineLearningModelResourceData_ownerSetting,
sageMakerMachineLearningModelResourceData_sageMakerJobArn,
sageMakerMachineLearningModelResourceData_destinationPath,
SecretsManagerSecretResourceData (..),
newSecretsManagerSecretResourceData,
secretsManagerSecretResourceData_additionalStagingLabelsToDownload,
secretsManagerSecretResourceData_arn,
Subscription (..),
newSubscription,
subscription_target,
subscription_id,
subscription_subject,
subscription_source,
SubscriptionDefinitionVersion (..),
newSubscriptionDefinitionVersion,
subscriptionDefinitionVersion_subscriptions,
TelemetryConfiguration (..),
newTelemetryConfiguration,
telemetryConfiguration_configurationSyncStatus,
telemetryConfiguration_telemetry,
TelemetryConfigurationUpdate (..),
newTelemetryConfigurationUpdate,
telemetryConfigurationUpdate_telemetry,
VersionInformation (..),
newVersionInformation,
versionInformation_arn,
versionInformation_creationTimestamp,
versionInformation_version,
versionInformation_id,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Greengrass.Types.BulkDeployment
import Amazonka.Greengrass.Types.BulkDeploymentMetrics
import Amazonka.Greengrass.Types.BulkDeploymentResult
import Amazonka.Greengrass.Types.BulkDeploymentStatus
import Amazonka.Greengrass.Types.ConfigurationSyncStatus
import Amazonka.Greengrass.Types.ConnectivityInfo
import Amazonka.Greengrass.Types.Connector
import Amazonka.Greengrass.Types.ConnectorDefinitionVersion
import Amazonka.Greengrass.Types.Core
import Amazonka.Greengrass.Types.CoreDefinitionVersion
import Amazonka.Greengrass.Types.DefinitionInformation
import Amazonka.Greengrass.Types.Deployment
import Amazonka.Greengrass.Types.DeploymentType
import Amazonka.Greengrass.Types.Device
import Amazonka.Greengrass.Types.DeviceDefinitionVersion
import Amazonka.Greengrass.Types.EncodingType
import Amazonka.Greengrass.Types.ErrorDetail
import Amazonka.Greengrass.Types.Function
import Amazonka.Greengrass.Types.FunctionConfiguration
import Amazonka.Greengrass.Types.FunctionConfigurationEnvironment
import Amazonka.Greengrass.Types.FunctionDefaultConfig
import Amazonka.Greengrass.Types.FunctionDefaultExecutionConfig
import Amazonka.Greengrass.Types.FunctionDefinitionVersion
import Amazonka.Greengrass.Types.FunctionExecutionConfig
import Amazonka.Greengrass.Types.FunctionIsolationMode
import Amazonka.Greengrass.Types.FunctionRunAsConfig
import Amazonka.Greengrass.Types.GreengrassLogger
import Amazonka.Greengrass.Types.GroupCertificateAuthorityProperties
import Amazonka.Greengrass.Types.GroupInformation
import Amazonka.Greengrass.Types.GroupOwnerSetting
import Amazonka.Greengrass.Types.GroupVersion
import Amazonka.Greengrass.Types.LocalDeviceResourceData
import Amazonka.Greengrass.Types.LocalVolumeResourceData
import Amazonka.Greengrass.Types.LoggerComponent
import Amazonka.Greengrass.Types.LoggerDefinitionVersion
import Amazonka.Greengrass.Types.LoggerLevel
import Amazonka.Greengrass.Types.LoggerType
import Amazonka.Greengrass.Types.Permission
import Amazonka.Greengrass.Types.Resource
import Amazonka.Greengrass.Types.ResourceAccessPolicy
import Amazonka.Greengrass.Types.ResourceDataContainer
import Amazonka.Greengrass.Types.ResourceDefinitionVersion
import Amazonka.Greengrass.Types.ResourceDownloadOwnerSetting
import Amazonka.Greengrass.Types.RuntimeConfiguration
import Amazonka.Greengrass.Types.S3MachineLearningModelResourceData
import Amazonka.Greengrass.Types.SageMakerMachineLearningModelResourceData
import Amazonka.Greengrass.Types.SecretsManagerSecretResourceData
import Amazonka.Greengrass.Types.SoftwareToUpdate
import Amazonka.Greengrass.Types.Subscription
import Amazonka.Greengrass.Types.SubscriptionDefinitionVersion
import Amazonka.Greengrass.Types.Telemetry
import Amazonka.Greengrass.Types.TelemetryConfiguration
import Amazonka.Greengrass.Types.TelemetryConfigurationUpdate
import Amazonka.Greengrass.Types.UpdateAgentLogLevel
import Amazonka.Greengrass.Types.UpdateTargetsArchitecture
import Amazonka.Greengrass.Types.UpdateTargetsOperatingSystem
import Amazonka.Greengrass.Types.VersionInformation
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
defaultService :: Core.Service
defaultService :: Service
defaultService =
Service :: Abbrev
-> Signer
-> ByteString
-> ByteString
-> ByteString
-> (Region -> Endpoint)
-> Maybe Seconds
-> (Status -> Bool)
-> (Status -> [Header] -> ByteStringLazy -> Error)
-> Retry
-> Service
Core.Service
{ $sel:_serviceAbbrev:Service :: Abbrev
Core._serviceAbbrev = Abbrev
"Greengrass",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"greengrass",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"greengrass",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2017-06-07",
$sel:_serviceEndpoint:Service :: Region -> Endpoint
Core._serviceEndpoint =
Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:_serviceTimeout:Service :: Maybe Seconds
Core._serviceTimeout = Seconds -> Maybe Seconds
forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:_serviceCheck:Service :: Status -> Bool
Core._serviceCheck = Status -> Bool
Core.statusSuccess,
$sel:_serviceError:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core._serviceError =
Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"Greengrass",
$sel:_serviceRetry:Service :: Retry
Core._serviceRetry = Retry
retry
}
where
retry :: Retry
retry =
Exponential :: Double -> Int -> Int -> (ServiceError -> Maybe Text) -> Retry
Core.Exponential
{ $sel:_retryBase:Exponential :: Double
Core._retryBase = Double
5.0e-2,
$sel:_retryGrowth:Exponential :: Int
Core._retryGrowth = Int
2,
$sel:_retryAttempts:Exponential :: Int
Core._retryAttempts = Int
5,
$sel:_retryCheck:Exponential :: ServiceError -> Maybe Text
Core._retryCheck = ServiceError -> Maybe Text
forall a. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| Bool
Prelude.otherwise = Maybe a
forall a. Maybe a
Prelude.Nothing
_InternalServerErrorException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InternalServerErrorException :: Getting (First ServiceError) a ServiceError
_InternalServerErrorException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServerErrorException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500
_BadRequestException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_BadRequestException :: Getting (First ServiceError) a ServiceError
_BadRequestException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"BadRequestException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400