{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.GroundStation.Types
(
defaultService,
_DependencyException,
_InvalidParameterException,
_ResourceLimitExceededException,
_ResourceNotFoundException,
AngleUnits (..),
BandwidthUnits (..),
ConfigCapabilityType (..),
ContactStatus (..),
Criticality (..),
EirpUnits (..),
EndpointStatus (..),
EphemerisInvalidReason (..),
EphemerisSource (..),
EphemerisStatus (..),
FrequencyUnits (..),
Polarization (..),
AntennaDemodDecodeDetails (..),
newAntennaDemodDecodeDetails,
antennaDemodDecodeDetails_outputNode,
AntennaDownlinkConfig (..),
newAntennaDownlinkConfig,
antennaDownlinkConfig_spectrumConfig,
AntennaDownlinkDemodDecodeConfig (..),
newAntennaDownlinkDemodDecodeConfig,
antennaDownlinkDemodDecodeConfig_decodeConfig,
antennaDownlinkDemodDecodeConfig_demodulationConfig,
antennaDownlinkDemodDecodeConfig_spectrumConfig,
AntennaUplinkConfig (..),
newAntennaUplinkConfig,
antennaUplinkConfig_transmitDisabled,
antennaUplinkConfig_spectrumConfig,
antennaUplinkConfig_targetEirp,
ConfigDetails (..),
newConfigDetails,
configDetails_antennaDemodDecodeDetails,
configDetails_endpointDetails,
configDetails_s3RecordingDetails,
ConfigIdResponse (..),
newConfigIdResponse,
configIdResponse_configArn,
configIdResponse_configId,
configIdResponse_configType,
ConfigListItem (..),
newConfigListItem,
configListItem_configArn,
configListItem_configId,
configListItem_configType,
configListItem_name,
ConfigTypeData (..),
newConfigTypeData,
configTypeData_antennaDownlinkConfig,
configTypeData_antennaDownlinkDemodDecodeConfig,
configTypeData_antennaUplinkConfig,
configTypeData_dataflowEndpointConfig,
configTypeData_s3RecordingConfig,
configTypeData_trackingConfig,
configTypeData_uplinkEchoConfig,
ContactData (..),
newContactData,
contactData_contactId,
contactData_contactStatus,
contactData_endTime,
contactData_errorMessage,
contactData_groundStation,
contactData_maximumElevation,
contactData_missionProfileArn,
contactData_postPassEndTime,
contactData_prePassStartTime,
contactData_region,
contactData_satelliteArn,
contactData_startTime,
contactData_tags,
ContactIdResponse (..),
newContactIdResponse,
contactIdResponse_contactId,
DataflowDetail (..),
newDataflowDetail,
dataflowDetail_destination,
dataflowDetail_errorMessage,
dataflowDetail_source,
DataflowEndpoint (..),
newDataflowEndpoint,
dataflowEndpoint_address,
dataflowEndpoint_mtu,
dataflowEndpoint_name,
dataflowEndpoint_status,
DataflowEndpointConfig (..),
newDataflowEndpointConfig,
dataflowEndpointConfig_dataflowEndpointRegion,
dataflowEndpointConfig_dataflowEndpointName,
DataflowEndpointGroupIdResponse (..),
newDataflowEndpointGroupIdResponse,
dataflowEndpointGroupIdResponse_dataflowEndpointGroupId,
DataflowEndpointListItem (..),
newDataflowEndpointListItem,
dataflowEndpointListItem_dataflowEndpointGroupArn,
dataflowEndpointListItem_dataflowEndpointGroupId,
DecodeConfig (..),
newDecodeConfig,
decodeConfig_unvalidatedJSON,
DemodulationConfig (..),
newDemodulationConfig,
demodulationConfig_unvalidatedJSON,
Destination (..),
newDestination,
destination_configDetails,
destination_configId,
destination_configType,
destination_dataflowDestinationRegion,
Eirp (..),
newEirp,
eirp_units,
eirp_value,
Elevation (..),
newElevation,
elevation_unit,
elevation_value,
EndpointDetails (..),
newEndpointDetails,
endpointDetails_endpoint,
endpointDetails_securityDetails,
EphemerisData (..),
newEphemerisData,
ephemerisData_oem,
ephemerisData_tle,
EphemerisDescription (..),
newEphemerisDescription,
ephemerisDescription_ephemerisData,
ephemerisDescription_sourceS3Object,
EphemerisIdResponse (..),
newEphemerisIdResponse,
ephemerisIdResponse_ephemerisId,
EphemerisItem (..),
newEphemerisItem,
ephemerisItem_creationTime,
ephemerisItem_enabled,
ephemerisItem_ephemerisId,
ephemerisItem_name,
ephemerisItem_priority,
ephemerisItem_sourceS3Object,
ephemerisItem_status,
EphemerisMetaData (..),
newEphemerisMetaData,
ephemerisMetaData_ephemerisId,
ephemerisMetaData_epoch,
ephemerisMetaData_name,
ephemerisMetaData_source,
EphemerisTypeDescription (..),
newEphemerisTypeDescription,
ephemerisTypeDescription_oem,
ephemerisTypeDescription_tle,
Frequency (..),
newFrequency,
frequency_units,
frequency_value,
FrequencyBandwidth (..),
newFrequencyBandwidth,
frequencyBandwidth_units,
frequencyBandwidth_value,
GroundStationData (..),
newGroundStationData,
groundStationData_groundStationId,
groundStationData_groundStationName,
groundStationData_region,
MissionProfileIdResponse (..),
newMissionProfileIdResponse,
missionProfileIdResponse_missionProfileId,
MissionProfileListItem (..),
newMissionProfileListItem,
missionProfileListItem_missionProfileArn,
missionProfileListItem_missionProfileId,
missionProfileListItem_name,
missionProfileListItem_region,
OEMEphemeris (..),
newOEMEphemeris,
oEMEphemeris_oemData,
oEMEphemeris_s3Object,
S3Object (..),
newS3Object,
s3Object_bucket,
s3Object_key,
s3Object_version,
S3RecordingConfig (..),
newS3RecordingConfig,
s3RecordingConfig_prefix,
s3RecordingConfig_bucketArn,
s3RecordingConfig_roleArn,
S3RecordingDetails (..),
newS3RecordingDetails,
s3RecordingDetails_bucketArn,
s3RecordingDetails_keyTemplate,
SatelliteListItem (..),
newSatelliteListItem,
satelliteListItem_currentEphemeris,
satelliteListItem_groundStations,
satelliteListItem_noradSatelliteID,
satelliteListItem_satelliteArn,
satelliteListItem_satelliteId,
SecurityDetails (..),
newSecurityDetails,
securityDetails_roleArn,
securityDetails_securityGroupIds,
securityDetails_subnetIds,
SocketAddress (..),
newSocketAddress,
socketAddress_name,
socketAddress_port,
Source (..),
newSource,
source_configDetails,
source_configId,
source_configType,
source_dataflowSourceRegion,
SpectrumConfig (..),
newSpectrumConfig,
spectrumConfig_polarization,
spectrumConfig_bandwidth,
spectrumConfig_centerFrequency,
TLEData (..),
newTLEData,
tLEData_tleLine1,
tLEData_tleLine2,
tLEData_validTimeRange,
TLEEphemeris (..),
newTLEEphemeris,
tLEEphemeris_s3Object,
tLEEphemeris_tleData,
TimeRange (..),
newTimeRange,
timeRange_endTime,
timeRange_startTime,
TrackingConfig (..),
newTrackingConfig,
trackingConfig_autotrack,
UplinkEchoConfig (..),
newUplinkEchoConfig,
uplinkEchoConfig_antennaUplinkConfigArn,
uplinkEchoConfig_enabled,
UplinkSpectrumConfig (..),
newUplinkSpectrumConfig,
uplinkSpectrumConfig_polarization,
uplinkSpectrumConfig_centerFrequency,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.GroundStation.Types.AngleUnits
import Amazonka.GroundStation.Types.AntennaDemodDecodeDetails
import Amazonka.GroundStation.Types.AntennaDownlinkConfig
import Amazonka.GroundStation.Types.AntennaDownlinkDemodDecodeConfig
import Amazonka.GroundStation.Types.AntennaUplinkConfig
import Amazonka.GroundStation.Types.BandwidthUnits
import Amazonka.GroundStation.Types.ConfigCapabilityType
import Amazonka.GroundStation.Types.ConfigDetails
import Amazonka.GroundStation.Types.ConfigIdResponse
import Amazonka.GroundStation.Types.ConfigListItem
import Amazonka.GroundStation.Types.ConfigTypeData
import Amazonka.GroundStation.Types.ContactData
import Amazonka.GroundStation.Types.ContactIdResponse
import Amazonka.GroundStation.Types.ContactStatus
import Amazonka.GroundStation.Types.Criticality
import Amazonka.GroundStation.Types.DataflowDetail
import Amazonka.GroundStation.Types.DataflowEndpoint
import Amazonka.GroundStation.Types.DataflowEndpointConfig
import Amazonka.GroundStation.Types.DataflowEndpointGroupIdResponse
import Amazonka.GroundStation.Types.DataflowEndpointListItem
import Amazonka.GroundStation.Types.DecodeConfig
import Amazonka.GroundStation.Types.DemodulationConfig
import Amazonka.GroundStation.Types.Destination
import Amazonka.GroundStation.Types.Eirp
import Amazonka.GroundStation.Types.EirpUnits
import Amazonka.GroundStation.Types.Elevation
import Amazonka.GroundStation.Types.EndpointDetails
import Amazonka.GroundStation.Types.EndpointStatus
import Amazonka.GroundStation.Types.EphemerisData
import Amazonka.GroundStation.Types.EphemerisDescription
import Amazonka.GroundStation.Types.EphemerisIdResponse
import Amazonka.GroundStation.Types.EphemerisInvalidReason
import Amazonka.GroundStation.Types.EphemerisItem
import Amazonka.GroundStation.Types.EphemerisMetaData
import Amazonka.GroundStation.Types.EphemerisSource
import Amazonka.GroundStation.Types.EphemerisStatus
import Amazonka.GroundStation.Types.EphemerisTypeDescription
import Amazonka.GroundStation.Types.Frequency
import Amazonka.GroundStation.Types.FrequencyBandwidth
import Amazonka.GroundStation.Types.FrequencyUnits
import Amazonka.GroundStation.Types.GroundStationData
import Amazonka.GroundStation.Types.MissionProfileIdResponse
import Amazonka.GroundStation.Types.MissionProfileListItem
import Amazonka.GroundStation.Types.OEMEphemeris
import Amazonka.GroundStation.Types.Polarization
import Amazonka.GroundStation.Types.S3Object
import Amazonka.GroundStation.Types.S3RecordingConfig
import Amazonka.GroundStation.Types.S3RecordingDetails
import Amazonka.GroundStation.Types.SatelliteListItem
import Amazonka.GroundStation.Types.SecurityDetails
import Amazonka.GroundStation.Types.SocketAddress
import Amazonka.GroundStation.Types.Source
import Amazonka.GroundStation.Types.SpectrumConfig
import Amazonka.GroundStation.Types.TLEData
import Amazonka.GroundStation.Types.TLEEphemeris
import Amazonka.GroundStation.Types.TimeRange
import Amazonka.GroundStation.Types.TrackingConfig
import Amazonka.GroundStation.Types.UplinkEchoConfig
import Amazonka.GroundStation.Types.UplinkSpectrumConfig
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
"GroundStation",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"groundstation",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"groundstation",
$sel:version:Service :: ByteString
Core.version = ByteString
"2019-05-23",
$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
"GroundStation",
$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
_DependencyException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DependencyException :: forall a. AsError a => Fold a ServiceError
_DependencyException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"DependencyException"
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
531
_InvalidParameterException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidParameterException :: forall a. AsError a => Fold a ServiceError
_InvalidParameterException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidParameterException"
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
431
_ResourceLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceLimitExceededException :: forall a. AsError a => Fold a ServiceError
_ResourceLimitExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceLimitExceededException"
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
429
_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
434