{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.MediaConnect.Types
(
defaultService,
_GrantFlowEntitlements420Exception,
_ForbiddenException,
_NotFoundException,
_CreateFlow420Exception,
_TooManyRequestsException,
_InternalServerErrorException,
_ServiceUnavailableException,
_AddFlowOutputs420Exception,
_BadRequestException,
Algorithm (..),
Colorimetry (..),
DurationUnits (..),
EncoderProfile (..),
EncodingName (..),
EntitlementStatus (..),
FailoverMode (..),
KeyType (..),
MediaStreamType (..),
NetworkInterfaceType (..),
PriceUnits (..),
Protocol (..),
Range (..),
ReservationState (..),
ResourceType (..),
ScanMode (..),
SourceType (..),
State (..),
Status (..),
Tcs (..),
AddMediaStreamRequest (..),
newAddMediaStreamRequest,
addMediaStreamRequest_videoFormat,
addMediaStreamRequest_attributes,
addMediaStreamRequest_clockRate,
addMediaStreamRequest_description,
addMediaStreamRequest_mediaStreamType,
addMediaStreamRequest_mediaStreamId,
addMediaStreamRequest_mediaStreamName,
AddOutputRequest (..),
newAddOutputRequest,
addOutputRequest_destination,
addOutputRequest_maxLatency,
addOutputRequest_mediaStreamOutputConfigurations,
addOutputRequest_encryption,
addOutputRequest_name,
addOutputRequest_cidrAllowList,
addOutputRequest_smoothingLatency,
addOutputRequest_minLatency,
addOutputRequest_description,
addOutputRequest_port,
addOutputRequest_streamId,
addOutputRequest_remoteId,
addOutputRequest_vpcInterfaceAttachment,
addOutputRequest_protocol,
DestinationConfiguration (..),
newDestinationConfiguration,
destinationConfiguration_destinationIp,
destinationConfiguration_destinationPort,
destinationConfiguration_interface,
destinationConfiguration_outboundIp,
DestinationConfigurationRequest (..),
newDestinationConfigurationRequest,
destinationConfigurationRequest_destinationIp,
destinationConfigurationRequest_destinationPort,
destinationConfigurationRequest_interface,
EncodingParameters (..),
newEncodingParameters,
encodingParameters_encoderProfile,
encodingParameters_compressionFactor,
EncodingParametersRequest (..),
newEncodingParametersRequest,
encodingParametersRequest_encoderProfile,
encodingParametersRequest_compressionFactor,
Encryption (..),
newEncryption,
encryption_keyType,
encryption_resourceId,
encryption_url,
encryption_algorithm,
encryption_constantInitializationVector,
encryption_deviceId,
encryption_region,
encryption_secretArn,
encryption_roleArn,
Entitlement (..),
newEntitlement,
entitlement_dataTransferSubscriberFeePercent,
entitlement_encryption,
entitlement_entitlementStatus,
entitlement_description,
entitlement_entitlementArn,
entitlement_subscribers,
entitlement_name,
FailoverConfig (..),
newFailoverConfig,
failoverConfig_state,
failoverConfig_recoveryWindow,
failoverConfig_sourcePriority,
failoverConfig_failoverMode,
Flow (..),
newFlow,
flow_mediaStreams,
flow_sourceFailoverConfig,
flow_vpcInterfaces,
flow_sources,
flow_egressIp,
flow_description,
flow_status,
flow_entitlements,
flow_outputs,
flow_availabilityZone,
flow_flowArn,
flow_source,
flow_name,
Fmtp (..),
newFmtp,
fmtp_tcs,
fmtp_exactFramerate,
fmtp_par,
fmtp_scanMode,
fmtp_range,
fmtp_channelOrder,
fmtp_colorimetry,
FmtpRequest (..),
newFmtpRequest,
fmtpRequest_tcs,
fmtpRequest_exactFramerate,
fmtpRequest_par,
fmtpRequest_scanMode,
fmtpRequest_range,
fmtpRequest_channelOrder,
fmtpRequest_colorimetry,
GrantEntitlementRequest (..),
newGrantEntitlementRequest,
grantEntitlementRequest_dataTransferSubscriberFeePercent,
grantEntitlementRequest_encryption,
grantEntitlementRequest_name,
grantEntitlementRequest_entitlementStatus,
grantEntitlementRequest_description,
grantEntitlementRequest_subscribers,
InputConfiguration (..),
newInputConfiguration,
inputConfiguration_inputPort,
inputConfiguration_inputIp,
inputConfiguration_interface,
InputConfigurationRequest (..),
newInputConfigurationRequest,
inputConfigurationRequest_inputPort,
inputConfigurationRequest_interface,
Interface (..),
newInterface,
interface_name,
InterfaceRequest (..),
newInterfaceRequest,
interfaceRequest_name,
ListedEntitlement (..),
newListedEntitlement,
listedEntitlement_dataTransferSubscriberFeePercent,
listedEntitlement_entitlementArn,
listedEntitlement_entitlementName,
ListedFlow (..),
newListedFlow,
listedFlow_status,
listedFlow_description,
listedFlow_sourceType,
listedFlow_availabilityZone,
listedFlow_flowArn,
listedFlow_name,
MediaStream (..),
newMediaStream,
mediaStream_videoFormat,
mediaStream_attributes,
mediaStream_clockRate,
mediaStream_description,
mediaStream_mediaStreamType,
mediaStream_mediaStreamId,
mediaStream_mediaStreamName,
mediaStream_fmt,
MediaStreamAttributes (..),
newMediaStreamAttributes,
mediaStreamAttributes_lang,
mediaStreamAttributes_fmtp,
MediaStreamAttributesRequest (..),
newMediaStreamAttributesRequest,
mediaStreamAttributesRequest_lang,
mediaStreamAttributesRequest_fmtp,
MediaStreamOutputConfiguration (..),
newMediaStreamOutputConfiguration,
mediaStreamOutputConfiguration_destinationConfigurations,
mediaStreamOutputConfiguration_encodingParameters,
mediaStreamOutputConfiguration_mediaStreamName,
mediaStreamOutputConfiguration_encodingName,
MediaStreamOutputConfigurationRequest (..),
newMediaStreamOutputConfigurationRequest,
mediaStreamOutputConfigurationRequest_destinationConfigurations,
mediaStreamOutputConfigurationRequest_encodingParameters,
mediaStreamOutputConfigurationRequest_mediaStreamName,
mediaStreamOutputConfigurationRequest_encodingName,
MediaStreamSourceConfiguration (..),
newMediaStreamSourceConfiguration,
mediaStreamSourceConfiguration_inputConfigurations,
mediaStreamSourceConfiguration_mediaStreamName,
mediaStreamSourceConfiguration_encodingName,
MediaStreamSourceConfigurationRequest (..),
newMediaStreamSourceConfigurationRequest,
mediaStreamSourceConfigurationRequest_inputConfigurations,
mediaStreamSourceConfigurationRequest_mediaStreamName,
mediaStreamSourceConfigurationRequest_encodingName,
Messages (..),
newMessages,
messages_errors,
Offering (..),
newOffering,
offering_currencyCode,
offering_offeringArn,
offering_offeringDescription,
offering_durationUnits,
offering_duration,
offering_pricePerUnit,
offering_resourceSpecification,
offering_priceUnits,
Output (..),
newOutput,
output_entitlementArn,
output_dataTransferSubscriberFeePercent,
output_destination,
output_mediaStreamOutputConfigurations,
output_mediaLiveInputArn,
output_encryption,
output_listenerAddress,
output_transport,
output_description,
output_port,
output_vpcInterfaceAttachment,
output_outputArn,
output_name,
Reservation (..),
newReservation,
reservation_currencyCode,
reservation_reservationState,
reservation_offeringArn,
reservation_reservationArn,
reservation_start,
reservation_offeringDescription,
reservation_reservationName,
reservation_end,
reservation_duration,
reservation_durationUnits,
reservation_pricePerUnit,
reservation_resourceSpecification,
reservation_priceUnits,
ResourceSpecification (..),
newResourceSpecification,
resourceSpecification_reservedBitrate,
resourceSpecification_resourceType,
SetSourceRequest (..),
newSetSourceRequest,
setSourceRequest_entitlementArn,
setSourceRequest_maxLatency,
setSourceRequest_vpcInterfaceName,
setSourceRequest_decryption,
setSourceRequest_maxSyncBuffer,
setSourceRequest_protocol,
setSourceRequest_name,
setSourceRequest_minLatency,
setSourceRequest_ingestPort,
setSourceRequest_description,
setSourceRequest_mediaStreamSourceConfigurations,
setSourceRequest_whitelistCidr,
setSourceRequest_maxBitrate,
setSourceRequest_streamId,
Source (..),
newSource,
source_entitlementArn,
source_dataTransferSubscriberFeePercent,
source_vpcInterfaceName,
source_decryption,
source_ingestIp,
source_ingestPort,
source_transport,
source_description,
source_mediaStreamSourceConfigurations,
source_whitelistCidr,
source_sourceArn,
source_name,
SourcePriority (..),
newSourcePriority,
sourcePriority_primarySource,
Transport (..),
newTransport,
transport_maxLatency,
transport_maxSyncBuffer,
transport_cidrAllowList,
transport_smoothingLatency,
transport_minLatency,
transport_maxBitrate,
transport_streamId,
transport_remoteId,
transport_protocol,
UpdateEncryption (..),
newUpdateEncryption,
updateEncryption_keyType,
updateEncryption_resourceId,
updateEncryption_url,
updateEncryption_algorithm,
updateEncryption_constantInitializationVector,
updateEncryption_deviceId,
updateEncryption_region,
updateEncryption_secretArn,
updateEncryption_roleArn,
UpdateFailoverConfig (..),
newUpdateFailoverConfig,
updateFailoverConfig_state,
updateFailoverConfig_recoveryWindow,
updateFailoverConfig_sourcePriority,
updateFailoverConfig_failoverMode,
VpcInterface (..),
newVpcInterface,
vpcInterface_networkInterfaceType,
vpcInterface_networkInterfaceIds,
vpcInterface_subnetId,
vpcInterface_securityGroupIds,
vpcInterface_roleArn,
vpcInterface_name,
VpcInterfaceAttachment (..),
newVpcInterfaceAttachment,
vpcInterfaceAttachment_vpcInterfaceName,
VpcInterfaceRequest (..),
newVpcInterfaceRequest,
vpcInterfaceRequest_networkInterfaceType,
vpcInterfaceRequest_subnetId,
vpcInterfaceRequest_securityGroupIds,
vpcInterfaceRequest_roleArn,
vpcInterfaceRequest_name,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaConnect.Types.AddMediaStreamRequest
import Amazonka.MediaConnect.Types.AddOutputRequest
import Amazonka.MediaConnect.Types.Algorithm
import Amazonka.MediaConnect.Types.Colorimetry
import Amazonka.MediaConnect.Types.DestinationConfiguration
import Amazonka.MediaConnect.Types.DestinationConfigurationRequest
import Amazonka.MediaConnect.Types.DurationUnits
import Amazonka.MediaConnect.Types.EncoderProfile
import Amazonka.MediaConnect.Types.EncodingName
import Amazonka.MediaConnect.Types.EncodingParameters
import Amazonka.MediaConnect.Types.EncodingParametersRequest
import Amazonka.MediaConnect.Types.Encryption
import Amazonka.MediaConnect.Types.Entitlement
import Amazonka.MediaConnect.Types.EntitlementStatus
import Amazonka.MediaConnect.Types.FailoverConfig
import Amazonka.MediaConnect.Types.FailoverMode
import Amazonka.MediaConnect.Types.Flow
import Amazonka.MediaConnect.Types.Fmtp
import Amazonka.MediaConnect.Types.FmtpRequest
import Amazonka.MediaConnect.Types.GrantEntitlementRequest
import Amazonka.MediaConnect.Types.InputConfiguration
import Amazonka.MediaConnect.Types.InputConfigurationRequest
import Amazonka.MediaConnect.Types.Interface
import Amazonka.MediaConnect.Types.InterfaceRequest
import Amazonka.MediaConnect.Types.KeyType
import Amazonka.MediaConnect.Types.ListedEntitlement
import Amazonka.MediaConnect.Types.ListedFlow
import Amazonka.MediaConnect.Types.MediaStream
import Amazonka.MediaConnect.Types.MediaStreamAttributes
import Amazonka.MediaConnect.Types.MediaStreamAttributesRequest
import Amazonka.MediaConnect.Types.MediaStreamOutputConfiguration
import Amazonka.MediaConnect.Types.MediaStreamOutputConfigurationRequest
import Amazonka.MediaConnect.Types.MediaStreamSourceConfiguration
import Amazonka.MediaConnect.Types.MediaStreamSourceConfigurationRequest
import Amazonka.MediaConnect.Types.MediaStreamType
import Amazonka.MediaConnect.Types.Messages
import Amazonka.MediaConnect.Types.NetworkInterfaceType
import Amazonka.MediaConnect.Types.Offering
import Amazonka.MediaConnect.Types.Output
import Amazonka.MediaConnect.Types.PriceUnits
import Amazonka.MediaConnect.Types.Protocol
import Amazonka.MediaConnect.Types.Range
import Amazonka.MediaConnect.Types.Reservation
import Amazonka.MediaConnect.Types.ReservationState
import Amazonka.MediaConnect.Types.ResourceSpecification
import Amazonka.MediaConnect.Types.ResourceType
import Amazonka.MediaConnect.Types.ScanMode
import Amazonka.MediaConnect.Types.SetSourceRequest
import Amazonka.MediaConnect.Types.Source
import Amazonka.MediaConnect.Types.SourcePriority
import Amazonka.MediaConnect.Types.SourceType
import Amazonka.MediaConnect.Types.State
import Amazonka.MediaConnect.Types.Status
import Amazonka.MediaConnect.Types.Tcs
import Amazonka.MediaConnect.Types.Transport
import Amazonka.MediaConnect.Types.UpdateEncryption
import Amazonka.MediaConnect.Types.UpdateFailoverConfig
import Amazonka.MediaConnect.Types.VpcInterface
import Amazonka.MediaConnect.Types.VpcInterfaceAttachment
import Amazonka.MediaConnect.Types.VpcInterfaceRequest
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
"MediaConnect",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"mediaconnect",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"mediaconnect",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2018-11-14",
$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
"MediaConnect",
$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
_GrantFlowEntitlements420Exception :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_GrantFlowEntitlements420Exception :: Getting (First ServiceError) a ServiceError
_GrantFlowEntitlements420Exception =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"GrantFlowEntitlements420Exception"
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
420
_ForbiddenException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ForbiddenException :: Getting (First ServiceError) a ServiceError
_ForbiddenException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ForbiddenException"
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
403
_NotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_NotFoundException :: Getting (First ServiceError) a ServiceError
_NotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"NotFoundException"
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
404
_CreateFlow420Exception :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_CreateFlow420Exception :: Getting (First ServiceError) a ServiceError
_CreateFlow420Exception =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"CreateFlow420Exception"
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
420
_TooManyRequestsException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TooManyRequestsException :: Getting (First ServiceError) a ServiceError
_TooManyRequestsException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TooManyRequestsException"
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
429
_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
_ServiceUnavailableException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ServiceUnavailableException :: Getting (First ServiceError) a ServiceError
_ServiceUnavailableException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceUnavailableException"
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
503
_AddFlowOutputs420Exception :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_AddFlowOutputs420Exception :: Getting (First ServiceError) a ServiceError
_AddFlowOutputs420Exception =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AddFlowOutputs420Exception"
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
420
_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