{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Panorama.Types
(
defaultService,
_AccessDeniedException,
_ConflictException,
_InternalServerException,
_ResourceNotFoundException,
_ServiceQuotaExceededException,
_ValidationException,
ApplicationInstanceHealthStatus (..),
ApplicationInstanceStatus (..),
ConnectionType (..),
DesiredState (..),
DeviceAggregatedStatus (..),
DeviceBrand (..),
DeviceConnectionStatus (..),
DeviceReportedStatus (..),
DeviceStatus (..),
DeviceType (..),
JobResourceType (..),
JobType (..),
ListDevicesSortBy (..),
NetworkConnectionStatus (..),
NodeCategory (..),
NodeFromTemplateJobStatus (..),
NodeInstanceStatus (..),
NodeSignalValue (..),
PackageImportJobStatus (..),
PackageImportJobType (..),
PackageVersionStatus (..),
PortType (..),
SortOrder (..),
StatusFilter (..),
TemplateType (..),
UpdateProgress (..),
AlternateSoftwareMetadata (..),
newAlternateSoftwareMetadata,
alternateSoftwareMetadata_version,
ApplicationInstance (..),
newApplicationInstance,
applicationInstance_applicationInstanceId,
applicationInstance_arn,
applicationInstance_createdTime,
applicationInstance_defaultRuntimeContextDevice,
applicationInstance_defaultRuntimeContextDeviceName,
applicationInstance_description,
applicationInstance_healthStatus,
applicationInstance_name,
applicationInstance_runtimeContextStates,
applicationInstance_status,
applicationInstance_statusDescription,
applicationInstance_tags,
Device (..),
newDevice,
device_brand,
device_createdTime,
device_currentSoftware,
device_description,
device_deviceAggregatedStatus,
device_deviceId,
device_lastUpdatedTime,
device_latestDeviceJob,
device_leaseExpirationTime,
device_name,
device_provisioningStatus,
device_tags,
device_type,
DeviceJob (..),
newDeviceJob,
deviceJob_createdTime,
deviceJob_deviceId,
deviceJob_deviceName,
deviceJob_jobId,
deviceJob_jobType,
DeviceJobConfig (..),
newDeviceJobConfig,
deviceJobConfig_oTAJobConfig,
EthernetPayload (..),
newEthernetPayload,
ethernetPayload_staticIpConnectionInfo,
ethernetPayload_connectionType,
EthernetStatus (..),
newEthernetStatus,
ethernetStatus_connectionStatus,
ethernetStatus_hwAddress,
ethernetStatus_ipAddress,
Job (..),
newJob,
job_deviceId,
job_jobId,
JobResourceTags (..),
newJobResourceTags,
jobResourceTags_resourceType,
jobResourceTags_tags,
LatestDeviceJob (..),
newLatestDeviceJob,
latestDeviceJob_imageVersion,
latestDeviceJob_jobType,
latestDeviceJob_status,
ManifestOverridesPayload (..),
newManifestOverridesPayload,
manifestOverridesPayload_payloadData,
ManifestPayload (..),
newManifestPayload,
manifestPayload_payloadData,
NetworkPayload (..),
newNetworkPayload,
networkPayload_ethernet0,
networkPayload_ethernet1,
networkPayload_ntp,
NetworkStatus (..),
newNetworkStatus,
networkStatus_ethernet0Status,
networkStatus_ethernet1Status,
networkStatus_lastUpdatedTime,
networkStatus_ntpStatus,
Node (..),
newNode,
node_description,
node_ownerAccount,
node_packageArn,
node_category,
node_createdTime,
node_name,
node_nodeId,
node_packageId,
node_packageName,
node_packageVersion,
node_patchVersion,
NodeFromTemplateJob (..),
newNodeFromTemplateJob,
nodeFromTemplateJob_createdTime,
nodeFromTemplateJob_jobId,
nodeFromTemplateJob_nodeName,
nodeFromTemplateJob_status,
nodeFromTemplateJob_statusMessage,
nodeFromTemplateJob_templateType,
NodeInputPort (..),
newNodeInputPort,
nodeInputPort_defaultValue,
nodeInputPort_description,
nodeInputPort_maxConnections,
nodeInputPort_name,
nodeInputPort_type,
NodeInstance (..),
newNodeInstance,
nodeInstance_nodeId,
nodeInstance_nodeName,
nodeInstance_packageName,
nodeInstance_packagePatchVersion,
nodeInstance_packageVersion,
nodeInstance_currentStatus,
nodeInstance_nodeInstanceId,
NodeInterface (..),
newNodeInterface,
nodeInterface_inputs,
nodeInterface_outputs,
NodeOutputPort (..),
newNodeOutputPort,
nodeOutputPort_description,
nodeOutputPort_name,
nodeOutputPort_type,
NodeSignal (..),
newNodeSignal,
nodeSignal_nodeInstanceId,
nodeSignal_signal,
NtpPayload (..),
newNtpPayload,
ntpPayload_ntpServers,
NtpStatus (..),
newNtpStatus,
ntpStatus_connectionStatus,
ntpStatus_ipAddress,
ntpStatus_ntpServerName,
OTAJobConfig (..),
newOTAJobConfig,
oTAJobConfig_imageVersion,
OutPutS3Location (..),
newOutPutS3Location,
outPutS3Location_bucketName,
outPutS3Location_objectKey,
PackageImportJob (..),
newPackageImportJob,
packageImportJob_createdTime,
packageImportJob_jobId,
packageImportJob_jobType,
packageImportJob_lastUpdatedTime,
packageImportJob_status,
packageImportJob_statusMessage,
PackageImportJobInputConfig (..),
newPackageImportJobInputConfig,
packageImportJobInputConfig_packageVersionInputConfig,
PackageImportJobOutput (..),
newPackageImportJobOutput,
packageImportJobOutput_outputS3Location,
packageImportJobOutput_packageId,
packageImportJobOutput_packageVersion,
packageImportJobOutput_patchVersion,
PackageImportJobOutputConfig (..),
newPackageImportJobOutputConfig,
packageImportJobOutputConfig_packageVersionOutputConfig,
PackageListItem (..),
newPackageListItem,
packageListItem_arn,
packageListItem_createdTime,
packageListItem_packageId,
packageListItem_packageName,
packageListItem_tags,
PackageObject (..),
newPackageObject,
packageObject_name,
packageObject_packageVersion,
packageObject_patchVersion,
PackageVersionInputConfig (..),
newPackageVersionInputConfig,
packageVersionInputConfig_s3Location,
PackageVersionOutputConfig (..),
newPackageVersionOutputConfig,
packageVersionOutputConfig_markLatest,
packageVersionOutputConfig_packageName,
packageVersionOutputConfig_packageVersion,
ReportedRuntimeContextState (..),
newReportedRuntimeContextState,
reportedRuntimeContextState_desiredState,
reportedRuntimeContextState_deviceReportedStatus,
reportedRuntimeContextState_deviceReportedTime,
reportedRuntimeContextState_runtimeContextName,
S3Location (..),
newS3Location,
s3Location_region,
s3Location_bucketName,
s3Location_objectKey,
StaticIpConnectionInfo (..),
newStaticIpConnectionInfo,
staticIpConnectionInfo_defaultGateway,
staticIpConnectionInfo_dns,
staticIpConnectionInfo_ipAddress,
staticIpConnectionInfo_mask,
StorageLocation (..),
newStorageLocation,
storageLocation_binaryPrefixLocation,
storageLocation_bucket,
storageLocation_generatedPrefixLocation,
storageLocation_manifestPrefixLocation,
storageLocation_repoPrefixLocation,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.Panorama.Types.AlternateSoftwareMetadata
import Amazonka.Panorama.Types.ApplicationInstance
import Amazonka.Panorama.Types.ApplicationInstanceHealthStatus
import Amazonka.Panorama.Types.ApplicationInstanceStatus
import Amazonka.Panorama.Types.ConnectionType
import Amazonka.Panorama.Types.DesiredState
import Amazonka.Panorama.Types.Device
import Amazonka.Panorama.Types.DeviceAggregatedStatus
import Amazonka.Panorama.Types.DeviceBrand
import Amazonka.Panorama.Types.DeviceConnectionStatus
import Amazonka.Panorama.Types.DeviceJob
import Amazonka.Panorama.Types.DeviceJobConfig
import Amazonka.Panorama.Types.DeviceReportedStatus
import Amazonka.Panorama.Types.DeviceStatus
import Amazonka.Panorama.Types.DeviceType
import Amazonka.Panorama.Types.EthernetPayload
import Amazonka.Panorama.Types.EthernetStatus
import Amazonka.Panorama.Types.Job
import Amazonka.Panorama.Types.JobResourceTags
import Amazonka.Panorama.Types.JobResourceType
import Amazonka.Panorama.Types.JobType
import Amazonka.Panorama.Types.LatestDeviceJob
import Amazonka.Panorama.Types.ListDevicesSortBy
import Amazonka.Panorama.Types.ManifestOverridesPayload
import Amazonka.Panorama.Types.ManifestPayload
import Amazonka.Panorama.Types.NetworkConnectionStatus
import Amazonka.Panorama.Types.NetworkPayload
import Amazonka.Panorama.Types.NetworkStatus
import Amazonka.Panorama.Types.Node
import Amazonka.Panorama.Types.NodeCategory
import Amazonka.Panorama.Types.NodeFromTemplateJob
import Amazonka.Panorama.Types.NodeFromTemplateJobStatus
import Amazonka.Panorama.Types.NodeInputPort
import Amazonka.Panorama.Types.NodeInstance
import Amazonka.Panorama.Types.NodeInstanceStatus
import Amazonka.Panorama.Types.NodeInterface
import Amazonka.Panorama.Types.NodeOutputPort
import Amazonka.Panorama.Types.NodeSignal
import Amazonka.Panorama.Types.NodeSignalValue
import Amazonka.Panorama.Types.NtpPayload
import Amazonka.Panorama.Types.NtpStatus
import Amazonka.Panorama.Types.OTAJobConfig
import Amazonka.Panorama.Types.OutPutS3Location
import Amazonka.Panorama.Types.PackageImportJob
import Amazonka.Panorama.Types.PackageImportJobInputConfig
import Amazonka.Panorama.Types.PackageImportJobOutput
import Amazonka.Panorama.Types.PackageImportJobOutputConfig
import Amazonka.Panorama.Types.PackageImportJobStatus
import Amazonka.Panorama.Types.PackageImportJobType
import Amazonka.Panorama.Types.PackageListItem
import Amazonka.Panorama.Types.PackageObject
import Amazonka.Panorama.Types.PackageVersionInputConfig
import Amazonka.Panorama.Types.PackageVersionOutputConfig
import Amazonka.Panorama.Types.PackageVersionStatus
import Amazonka.Panorama.Types.PortType
import Amazonka.Panorama.Types.ReportedRuntimeContextState
import Amazonka.Panorama.Types.S3Location
import Amazonka.Panorama.Types.SortOrder
import Amazonka.Panorama.Types.StaticIpConnectionInfo
import Amazonka.Panorama.Types.StatusFilter
import Amazonka.Panorama.Types.StorageLocation
import Amazonka.Panorama.Types.TemplateType
import Amazonka.Panorama.Types.UpdateProgress
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
defaultService :: Core.Service
defaultService :: Service
defaultService =
Core.Service
{ $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"Panorama",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"panorama",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"panorama",
$sel:version:Service :: ByteString
Core.version = ByteString
"2019-07-24",
$sel:s3AddressingStyle:Service :: S3AddressingStyle
Core.s3AddressingStyle = S3AddressingStyle
Core.S3AddressingStyleAuto,
$sel:endpoint:Service :: Region -> Endpoint
Core.endpoint = Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:timeout:Service :: Maybe Seconds
Core.timeout = forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:check:Service :: Status -> Bool
Core.check = Status -> Bool
Core.statusSuccess,
$sel:error:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core.error = Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"Panorama",
$sel:retry:Service :: Retry
Core.retry = Retry
retry
}
where
retry :: Retry
retry =
Core.Exponential
{ $sel:base:Exponential :: Double
Core.base = Double
5.0e-2,
$sel:growth:Exponential :: Int
Core.growth = Int
2,
$sel:attempts:Exponential :: Int
Core.attempts = Int
5,
$sel:check:Exponential :: ServiceError -> Maybe Text
Core.check = forall {a}. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Bool
Prelude.otherwise = forall a. Maybe a
Prelude.Nothing
_AccessDeniedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_AccessDeniedException :: forall a. AsError a => Fold a ServiceError
_AccessDeniedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccessDeniedException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
403
_ConflictException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ConflictException :: forall a. AsError a => Fold a ServiceError
_ConflictException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConflictException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_InternalServerException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InternalServerException :: forall a. AsError a => Fold a ServiceError
_InternalServerException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServerException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500
_ResourceNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceNotFoundException :: forall a. AsError a => Fold a ServiceError
_ResourceNotFoundException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFoundException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
404
_ServiceQuotaExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ServiceQuotaExceededException :: forall a. AsError a => Fold a ServiceError
_ServiceQuotaExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceQuotaExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
402
_ValidationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ValidationException :: forall a. AsError a => Fold a ServiceError
_ValidationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ValidationException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400