{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.AlexaBusiness.Types
(
defaultService,
_SkillNotLinkedException,
_InvalidCertificateAuthorityException,
_DeviceNotRegisteredException,
_ResourceAssociatedException,
_InvalidUserStatusException,
_InvalidDeviceException,
_InvalidServiceLinkedRoleStateException,
_NotFoundException,
_NameInUseException,
_InvalidSecretsManagerResourceException,
_ConcurrentModificationException,
_UnauthorizedException,
_AlreadyExistsException,
_LimitExceededException,
_ResourceInUseException,
BusinessReportFailureCode (..),
BusinessReportFormat (..),
BusinessReportInterval (..),
BusinessReportStatus (..),
CommsProtocol (..),
ConferenceProviderType (..),
ConnectionStatus (..),
DeviceEventType (..),
DeviceStatus (..),
DeviceStatusDetailCode (..),
DeviceUsageType (..),
DistanceUnit (..),
EnablementType (..),
EnablementTypeFilter (..),
EndOfMeetingReminderType (..),
EnrollmentStatus (..),
Feature (..),
Locale (..),
NetworkEapMethod (..),
NetworkSecurityType (..),
PhoneNumberType (..),
RequirePin (..),
SipType (..),
SkillType (..),
SkillTypeFilter (..),
SortValue (..),
TemperatureUnit (..),
WakeWord (..),
AddressBook (..),
newAddressBook,
addressBook_addressBookArn,
addressBook_name,
addressBook_description,
AddressBookData (..),
newAddressBookData,
addressBookData_addressBookArn,
addressBookData_name,
addressBookData_description,
Audio (..),
newAudio,
audio_locale,
audio_location,
BusinessReport (..),
newBusinessReport,
businessReport_status,
businessReport_failureCode,
businessReport_deliveryTime,
businessReport_downloadUrl,
businessReport_s3Location,
BusinessReportContentRange (..),
newBusinessReportContentRange,
businessReportContentRange_interval,
BusinessReportRecurrence (..),
newBusinessReportRecurrence,
businessReportRecurrence_startDate,
BusinessReportS3Location (..),
newBusinessReportS3Location,
businessReportS3Location_path,
businessReportS3Location_bucketName,
BusinessReportSchedule (..),
newBusinessReportSchedule,
businessReportSchedule_s3KeyPrefix,
businessReportSchedule_lastBusinessReport,
businessReportSchedule_format,
businessReportSchedule_recurrence,
businessReportSchedule_scheduleName,
businessReportSchedule_scheduleArn,
businessReportSchedule_contentRange,
businessReportSchedule_s3BucketName,
Category (..),
newCategory,
category_categoryName,
category_categoryId,
ConferencePreference (..),
newConferencePreference,
conferencePreference_defaultConferenceProviderArn,
ConferenceProvider (..),
newConferenceProvider,
conferenceProvider_meetingSetting,
conferenceProvider_arn,
conferenceProvider_pSTNDialIn,
conferenceProvider_name,
conferenceProvider_type,
conferenceProvider_iPDialIn,
Contact (..),
newContact,
contact_lastName,
contact_contactArn,
contact_phoneNumbers,
contact_phoneNumber,
contact_sipAddresses,
contact_firstName,
contact_displayName,
ContactData (..),
newContactData,
contactData_lastName,
contactData_contactArn,
contactData_phoneNumbers,
contactData_phoneNumber,
contactData_sipAddresses,
contactData_firstName,
contactData_displayName,
Content (..),
newContent,
content_audioList,
content_textList,
content_ssmlList,
CreateEndOfMeetingReminder (..),
newCreateEndOfMeetingReminder,
createEndOfMeetingReminder_reminderAtMinutes,
createEndOfMeetingReminder_reminderType,
createEndOfMeetingReminder_enabled,
CreateInstantBooking (..),
newCreateInstantBooking,
createInstantBooking_durationInMinutes,
createInstantBooking_enabled,
CreateMeetingRoomConfiguration (..),
newCreateMeetingRoomConfiguration,
createMeetingRoomConfiguration_instantBooking,
createMeetingRoomConfiguration_endOfMeetingReminder,
createMeetingRoomConfiguration_requireCheckIn,
createMeetingRoomConfiguration_roomUtilizationMetricsEnabled,
CreateRequireCheckIn (..),
newCreateRequireCheckIn,
createRequireCheckIn_releaseAfterMinutes,
createRequireCheckIn_enabled,
DeveloperInfo (..),
newDeveloperInfo,
developerInfo_email,
developerInfo_url,
developerInfo_privacyPolicy,
developerInfo_developerName,
Device (..),
newDevice,
device_deviceStatus,
device_deviceStatusInfo,
device_deviceArn,
device_macAddress,
device_deviceName,
device_roomArn,
device_softwareVersion,
device_deviceType,
device_networkProfileInfo,
device_deviceSerialNumber,
DeviceData (..),
newDeviceData,
deviceData_deviceStatus,
deviceData_networkProfileName,
deviceData_deviceStatusInfo,
deviceData_createdTime,
deviceData_deviceArn,
deviceData_networkProfileArn,
deviceData_macAddress,
deviceData_deviceName,
deviceData_roomArn,
deviceData_softwareVersion,
deviceData_deviceType,
deviceData_roomName,
deviceData_deviceSerialNumber,
DeviceEvent (..),
newDeviceEvent,
deviceEvent_value,
deviceEvent_type,
deviceEvent_timestamp,
DeviceNetworkProfileInfo (..),
newDeviceNetworkProfileInfo,
deviceNetworkProfileInfo_certificateArn,
deviceNetworkProfileInfo_networkProfileArn,
deviceNetworkProfileInfo_certificateExpirationTime,
DeviceStatusDetail (..),
newDeviceStatusDetail,
deviceStatusDetail_feature,
deviceStatusDetail_code,
DeviceStatusInfo (..),
newDeviceStatusInfo,
deviceStatusInfo_connectionStatusUpdatedTime,
deviceStatusInfo_deviceStatusDetails,
deviceStatusInfo_connectionStatus,
EndOfMeetingReminder (..),
newEndOfMeetingReminder,
endOfMeetingReminder_enabled,
endOfMeetingReminder_reminderAtMinutes,
endOfMeetingReminder_reminderType,
Filter (..),
newFilter,
filter_key,
filter_values,
Gateway (..),
newGateway,
gateway_arn,
gateway_name,
gateway_gatewayGroupArn,
gateway_softwareVersion,
gateway_description,
GatewayGroup (..),
newGatewayGroup,
gatewayGroup_arn,
gatewayGroup_name,
gatewayGroup_description,
GatewayGroupSummary (..),
newGatewayGroupSummary,
gatewayGroupSummary_arn,
gatewayGroupSummary_name,
gatewayGroupSummary_description,
GatewaySummary (..),
newGatewaySummary,
gatewaySummary_arn,
gatewaySummary_name,
gatewaySummary_gatewayGroupArn,
gatewaySummary_softwareVersion,
gatewaySummary_description,
IPDialIn (..),
newIPDialIn,
iPDialIn_endpoint,
iPDialIn_commsProtocol,
InstantBooking (..),
newInstantBooking,
instantBooking_enabled,
instantBooking_durationInMinutes,
MeetingRoomConfiguration (..),
newMeetingRoomConfiguration,
meetingRoomConfiguration_instantBooking,
meetingRoomConfiguration_endOfMeetingReminder,
meetingRoomConfiguration_requireCheckIn,
meetingRoomConfiguration_roomUtilizationMetricsEnabled,
MeetingSetting (..),
newMeetingSetting,
meetingSetting_requirePin,
NetworkProfile (..),
newNetworkProfile,
networkProfile_networkProfileName,
networkProfile_ssid,
networkProfile_networkProfileArn,
networkProfile_securityType,
networkProfile_currentPassword,
networkProfile_nextPassword,
networkProfile_eapMethod,
networkProfile_description,
networkProfile_trustAnchors,
networkProfile_certificateAuthorityArn,
NetworkProfileData (..),
newNetworkProfileData,
networkProfileData_networkProfileName,
networkProfileData_ssid,
networkProfileData_networkProfileArn,
networkProfileData_securityType,
networkProfileData_eapMethod,
networkProfileData_description,
networkProfileData_certificateAuthorityArn,
PSTNDialIn (..),
newPSTNDialIn,
pSTNDialIn_countryCode,
pSTNDialIn_phoneNumber,
pSTNDialIn_oneClickIdDelay,
pSTNDialIn_oneClickPinDelay,
PhoneNumber (..),
newPhoneNumber,
phoneNumber_number,
phoneNumber_type,
Profile (..),
newProfile,
profile_setupModeDisabled,
profile_pSTNEnabled,
profile_addressBookArn,
profile_distanceUnit,
profile_locale,
profile_address,
profile_profileArn,
profile_wakeWord,
profile_meetingRoomConfiguration,
profile_profileName,
profile_temperatureUnit,
profile_dataRetentionOptIn,
profile_timezone,
profile_maxVolumeLimit,
profile_isDefault,
ProfileData (..),
newProfileData,
profileData_distanceUnit,
profileData_locale,
profileData_address,
profileData_profileArn,
profileData_wakeWord,
profileData_profileName,
profileData_temperatureUnit,
profileData_timezone,
profileData_isDefault,
RequireCheckIn (..),
newRequireCheckIn,
requireCheckIn_enabled,
requireCheckIn_releaseAfterMinutes,
Room (..),
newRoom,
room_profileArn,
room_providerCalendarId,
room_roomArn,
room_roomName,
room_description,
RoomData (..),
newRoomData,
roomData_profileArn,
roomData_providerCalendarId,
roomData_profileName,
roomData_roomArn,
roomData_roomName,
roomData_description,
RoomSkillParameter (..),
newRoomSkillParameter,
roomSkillParameter_parameterKey,
roomSkillParameter_parameterValue,
SipAddress (..),
newSipAddress,
sipAddress_uri,
sipAddress_type,
SkillDetails (..),
newSkillDetails,
skillDetails_skillTypes,
skillDetails_productDescription,
skillDetails_invocationPhrase,
skillDetails_developerInfo,
skillDetails_endUserLicenseAgreement,
skillDetails_genericKeywords,
skillDetails_reviews,
skillDetails_releaseDate,
skillDetails_newInThisVersionBulletPoints,
skillDetails_bulletPoints,
SkillGroup (..),
newSkillGroup,
skillGroup_skillGroupArn,
skillGroup_description,
skillGroup_skillGroupName,
SkillGroupData (..),
newSkillGroupData,
skillGroupData_skillGroupArn,
skillGroupData_description,
skillGroupData_skillGroupName,
SkillSummary (..),
newSkillSummary,
skillSummary_skillId,
skillSummary_supportsLinking,
skillSummary_skillType,
skillSummary_enablementType,
skillSummary_skillName,
SkillsStoreSkill (..),
newSkillsStoreSkill,
skillsStoreSkill_skillId,
skillsStoreSkill_supportsLinking,
skillsStoreSkill_sampleUtterances,
skillsStoreSkill_shortDescription,
skillsStoreSkill_iconUrl,
skillsStoreSkill_skillDetails,
skillsStoreSkill_skillName,
SmartHomeAppliance (..),
newSmartHomeAppliance,
smartHomeAppliance_friendlyName,
smartHomeAppliance_manufacturerName,
smartHomeAppliance_description,
Sort (..),
newSort,
sort_key,
sort_value,
Ssml (..),
newSsml,
ssml_locale,
ssml_value,
Tag (..),
newTag,
tag_key,
tag_value,
TextMessage (..),
newTextMessage,
textMessage_locale,
textMessage_value,
UpdateEndOfMeetingReminder (..),
newUpdateEndOfMeetingReminder,
updateEndOfMeetingReminder_enabled,
updateEndOfMeetingReminder_reminderAtMinutes,
updateEndOfMeetingReminder_reminderType,
UpdateInstantBooking (..),
newUpdateInstantBooking,
updateInstantBooking_enabled,
updateInstantBooking_durationInMinutes,
UpdateMeetingRoomConfiguration (..),
newUpdateMeetingRoomConfiguration,
updateMeetingRoomConfiguration_instantBooking,
updateMeetingRoomConfiguration_endOfMeetingReminder,
updateMeetingRoomConfiguration_requireCheckIn,
updateMeetingRoomConfiguration_roomUtilizationMetricsEnabled,
UpdateRequireCheckIn (..),
newUpdateRequireCheckIn,
updateRequireCheckIn_enabled,
updateRequireCheckIn_releaseAfterMinutes,
UserData (..),
newUserData,
userData_email,
userData_lastName,
userData_enrollmentId,
userData_userArn,
userData_firstName,
userData_enrollmentStatus,
)
where
import Amazonka.AlexaBusiness.Types.AddressBook
import Amazonka.AlexaBusiness.Types.AddressBookData
import Amazonka.AlexaBusiness.Types.Audio
import Amazonka.AlexaBusiness.Types.BusinessReport
import Amazonka.AlexaBusiness.Types.BusinessReportContentRange
import Amazonka.AlexaBusiness.Types.BusinessReportFailureCode
import Amazonka.AlexaBusiness.Types.BusinessReportFormat
import Amazonka.AlexaBusiness.Types.BusinessReportInterval
import Amazonka.AlexaBusiness.Types.BusinessReportRecurrence
import Amazonka.AlexaBusiness.Types.BusinessReportS3Location
import Amazonka.AlexaBusiness.Types.BusinessReportSchedule
import Amazonka.AlexaBusiness.Types.BusinessReportStatus
import Amazonka.AlexaBusiness.Types.Category
import Amazonka.AlexaBusiness.Types.CommsProtocol
import Amazonka.AlexaBusiness.Types.ConferencePreference
import Amazonka.AlexaBusiness.Types.ConferenceProvider
import Amazonka.AlexaBusiness.Types.ConferenceProviderType
import Amazonka.AlexaBusiness.Types.ConnectionStatus
import Amazonka.AlexaBusiness.Types.Contact
import Amazonka.AlexaBusiness.Types.ContactData
import Amazonka.AlexaBusiness.Types.Content
import Amazonka.AlexaBusiness.Types.CreateEndOfMeetingReminder
import Amazonka.AlexaBusiness.Types.CreateInstantBooking
import Amazonka.AlexaBusiness.Types.CreateMeetingRoomConfiguration
import Amazonka.AlexaBusiness.Types.CreateRequireCheckIn
import Amazonka.AlexaBusiness.Types.DeveloperInfo
import Amazonka.AlexaBusiness.Types.Device
import Amazonka.AlexaBusiness.Types.DeviceData
import Amazonka.AlexaBusiness.Types.DeviceEvent
import Amazonka.AlexaBusiness.Types.DeviceEventType
import Amazonka.AlexaBusiness.Types.DeviceNetworkProfileInfo
import Amazonka.AlexaBusiness.Types.DeviceStatus
import Amazonka.AlexaBusiness.Types.DeviceStatusDetail
import Amazonka.AlexaBusiness.Types.DeviceStatusDetailCode
import Amazonka.AlexaBusiness.Types.DeviceStatusInfo
import Amazonka.AlexaBusiness.Types.DeviceUsageType
import Amazonka.AlexaBusiness.Types.DistanceUnit
import Amazonka.AlexaBusiness.Types.EnablementType
import Amazonka.AlexaBusiness.Types.EnablementTypeFilter
import Amazonka.AlexaBusiness.Types.EndOfMeetingReminder
import Amazonka.AlexaBusiness.Types.EndOfMeetingReminderType
import Amazonka.AlexaBusiness.Types.EnrollmentStatus
import Amazonka.AlexaBusiness.Types.Feature
import Amazonka.AlexaBusiness.Types.Filter
import Amazonka.AlexaBusiness.Types.Gateway
import Amazonka.AlexaBusiness.Types.GatewayGroup
import Amazonka.AlexaBusiness.Types.GatewayGroupSummary
import Amazonka.AlexaBusiness.Types.GatewaySummary
import Amazonka.AlexaBusiness.Types.IPDialIn
import Amazonka.AlexaBusiness.Types.InstantBooking
import Amazonka.AlexaBusiness.Types.Locale
import Amazonka.AlexaBusiness.Types.MeetingRoomConfiguration
import Amazonka.AlexaBusiness.Types.MeetingSetting
import Amazonka.AlexaBusiness.Types.NetworkEapMethod
import Amazonka.AlexaBusiness.Types.NetworkProfile
import Amazonka.AlexaBusiness.Types.NetworkProfileData
import Amazonka.AlexaBusiness.Types.NetworkSecurityType
import Amazonka.AlexaBusiness.Types.PSTNDialIn
import Amazonka.AlexaBusiness.Types.PhoneNumber
import Amazonka.AlexaBusiness.Types.PhoneNumberType
import Amazonka.AlexaBusiness.Types.Profile
import Amazonka.AlexaBusiness.Types.ProfileData
import Amazonka.AlexaBusiness.Types.RequireCheckIn
import Amazonka.AlexaBusiness.Types.RequirePin
import Amazonka.AlexaBusiness.Types.Room
import Amazonka.AlexaBusiness.Types.RoomData
import Amazonka.AlexaBusiness.Types.RoomSkillParameter
import Amazonka.AlexaBusiness.Types.SipAddress
import Amazonka.AlexaBusiness.Types.SipType
import Amazonka.AlexaBusiness.Types.SkillDetails
import Amazonka.AlexaBusiness.Types.SkillGroup
import Amazonka.AlexaBusiness.Types.SkillGroupData
import Amazonka.AlexaBusiness.Types.SkillSummary
import Amazonka.AlexaBusiness.Types.SkillType
import Amazonka.AlexaBusiness.Types.SkillTypeFilter
import Amazonka.AlexaBusiness.Types.SkillsStoreSkill
import Amazonka.AlexaBusiness.Types.SmartHomeAppliance
import Amazonka.AlexaBusiness.Types.Sort
import Amazonka.AlexaBusiness.Types.SortValue
import Amazonka.AlexaBusiness.Types.Ssml
import Amazonka.AlexaBusiness.Types.Tag
import Amazonka.AlexaBusiness.Types.TemperatureUnit
import Amazonka.AlexaBusiness.Types.TextMessage
import Amazonka.AlexaBusiness.Types.UpdateEndOfMeetingReminder
import Amazonka.AlexaBusiness.Types.UpdateInstantBooking
import Amazonka.AlexaBusiness.Types.UpdateMeetingRoomConfiguration
import Amazonka.AlexaBusiness.Types.UpdateRequireCheckIn
import Amazonka.AlexaBusiness.Types.UserData
import Amazonka.AlexaBusiness.Types.WakeWord
import qualified Amazonka.Core as Core
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
"AlexaBusiness",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"a4b",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"a4b",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2017-11-09",
$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
"AlexaBusiness",
$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
_SkillNotLinkedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_SkillNotLinkedException :: Getting (First ServiceError) a ServiceError
_SkillNotLinkedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"SkillNotLinkedException"
_InvalidCertificateAuthorityException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidCertificateAuthorityException :: Getting (First ServiceError) a ServiceError
_InvalidCertificateAuthorityException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidCertificateAuthorityException"
_DeviceNotRegisteredException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_DeviceNotRegisteredException :: Getting (First ServiceError) a ServiceError
_DeviceNotRegisteredException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"DeviceNotRegisteredException"
_ResourceAssociatedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceAssociatedException :: Getting (First ServiceError) a ServiceError
_ResourceAssociatedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceAssociatedException"
_InvalidUserStatusException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidUserStatusException :: Getting (First ServiceError) a ServiceError
_InvalidUserStatusException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidUserStatusException"
_InvalidDeviceException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidDeviceException :: Getting (First ServiceError) a ServiceError
_InvalidDeviceException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidDeviceException"
_InvalidServiceLinkedRoleStateException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidServiceLinkedRoleStateException :: Getting (First ServiceError) a ServiceError
_InvalidServiceLinkedRoleStateException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidServiceLinkedRoleStateException"
_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"
_NameInUseException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_NameInUseException :: Getting (First ServiceError) a ServiceError
_NameInUseException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"NameInUseException"
_InvalidSecretsManagerResourceException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidSecretsManagerResourceException :: Getting (First ServiceError) a ServiceError
_InvalidSecretsManagerResourceException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidSecretsManagerResourceException"
_ConcurrentModificationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ConcurrentModificationException :: Getting (First ServiceError) a ServiceError
_ConcurrentModificationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConcurrentModificationException"
_UnauthorizedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_UnauthorizedException :: Getting (First ServiceError) a ServiceError
_UnauthorizedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UnauthorizedException"
_AlreadyExistsException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_AlreadyExistsException :: Getting (First ServiceError) a ServiceError
_AlreadyExistsException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AlreadyExistsException"
_LimitExceededException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_LimitExceededException :: Getting (First ServiceError) a ServiceError
_LimitExceededException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"LimitExceededException"
_ResourceInUseException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceInUseException :: Getting (First ServiceError) a ServiceError
_ResourceInUseException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceInUseException"