{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.OpenSearch.Types
(
defaultService,
_ValidationException,
_AccessDeniedException,
_ResourceAlreadyExistsException,
_ConflictException,
_BaseException,
_DisabledOperationException,
_InternalException,
_InvalidTypeException,
_ResourceNotFoundException,
_InvalidPaginationTokenException,
_LimitExceededException,
AutoTuneDesiredState (..),
AutoTuneState (..),
AutoTuneType (..),
DeploymentStatus (..),
DescribePackagesFilterName (..),
DomainPackageStatus (..),
EngineType (..),
InboundConnectionStatusCode (..),
LogType (..),
OpenSearchPartitionInstanceType (..),
OpenSearchWarmPartitionInstanceType (..),
OptionState (..),
OutboundConnectionStatusCode (..),
PackageStatus (..),
PackageType (..),
ReservedInstancePaymentOption (..),
RollbackOnDisable (..),
ScheduledAutoTuneActionType (..),
ScheduledAutoTuneSeverityType (..),
TLSSecurityPolicy (..),
TimeUnit (..),
UpgradeStatus (..),
UpgradeStep (..),
VolumeType (..),
AWSDomainInformation (..),
newAWSDomainInformation,
aWSDomainInformation_ownerId,
aWSDomainInformation_region,
aWSDomainInformation_domainName,
AccessPoliciesStatus (..),
newAccessPoliciesStatus,
accessPoliciesStatus_options,
accessPoliciesStatus_status,
AdditionalLimit (..),
newAdditionalLimit,
additionalLimit_limitName,
additionalLimit_limitValues,
AdvancedOptionsStatus (..),
newAdvancedOptionsStatus,
advancedOptionsStatus_options,
advancedOptionsStatus_status,
AdvancedSecurityOptions (..),
newAdvancedSecurityOptions,
advancedSecurityOptions_enabled,
advancedSecurityOptions_internalUserDatabaseEnabled,
advancedSecurityOptions_sAMLOptions,
AdvancedSecurityOptionsInput (..),
newAdvancedSecurityOptionsInput,
advancedSecurityOptionsInput_enabled,
advancedSecurityOptionsInput_internalUserDatabaseEnabled,
advancedSecurityOptionsInput_masterUserOptions,
advancedSecurityOptionsInput_sAMLOptions,
AdvancedSecurityOptionsStatus (..),
newAdvancedSecurityOptionsStatus,
advancedSecurityOptionsStatus_options,
advancedSecurityOptionsStatus_status,
AutoTune (..),
newAutoTune,
autoTune_autoTuneDetails,
autoTune_autoTuneType,
AutoTuneDetails (..),
newAutoTuneDetails,
autoTuneDetails_scheduledAutoTuneDetails,
AutoTuneMaintenanceSchedule (..),
newAutoTuneMaintenanceSchedule,
autoTuneMaintenanceSchedule_startAt,
autoTuneMaintenanceSchedule_cronExpressionForRecurrence,
autoTuneMaintenanceSchedule_duration,
AutoTuneOptions (..),
newAutoTuneOptions,
autoTuneOptions_desiredState,
autoTuneOptions_rollbackOnDisable,
autoTuneOptions_maintenanceSchedules,
AutoTuneOptionsInput (..),
newAutoTuneOptionsInput,
autoTuneOptionsInput_desiredState,
autoTuneOptionsInput_maintenanceSchedules,
AutoTuneOptionsOutput (..),
newAutoTuneOptionsOutput,
autoTuneOptionsOutput_state,
autoTuneOptionsOutput_errorMessage,
AutoTuneOptionsStatus (..),
newAutoTuneOptionsStatus,
autoTuneOptionsStatus_status,
autoTuneOptionsStatus_options,
AutoTuneStatus (..),
newAutoTuneStatus,
autoTuneStatus_pendingDeletion,
autoTuneStatus_errorMessage,
autoTuneStatus_updateVersion,
autoTuneStatus_creationDate,
autoTuneStatus_updateDate,
autoTuneStatus_state,
ClusterConfig (..),
newClusterConfig,
clusterConfig_dedicatedMasterCount,
clusterConfig_dedicatedMasterType,
clusterConfig_dedicatedMasterEnabled,
clusterConfig_instanceCount,
clusterConfig_coldStorageOptions,
clusterConfig_zoneAwarenessEnabled,
clusterConfig_instanceType,
clusterConfig_warmEnabled,
clusterConfig_zoneAwarenessConfig,
clusterConfig_warmCount,
clusterConfig_warmType,
ClusterConfigStatus (..),
newClusterConfigStatus,
clusterConfigStatus_options,
clusterConfigStatus_status,
CognitoOptions (..),
newCognitoOptions,
cognitoOptions_identityPoolId,
cognitoOptions_enabled,
cognitoOptions_userPoolId,
cognitoOptions_roleArn,
CognitoOptionsStatus (..),
newCognitoOptionsStatus,
cognitoOptionsStatus_options,
cognitoOptionsStatus_status,
ColdStorageOptions (..),
newColdStorageOptions,
coldStorageOptions_enabled,
CompatibleVersionsMap (..),
newCompatibleVersionsMap,
compatibleVersionsMap_sourceVersion,
compatibleVersionsMap_targetVersions,
DescribePackagesFilter (..),
newDescribePackagesFilter,
describePackagesFilter_value,
describePackagesFilter_name,
DomainConfig (..),
newDomainConfig,
domainConfig_eBSOptions,
domainConfig_engineVersion,
domainConfig_nodeToNodeEncryptionOptions,
domainConfig_accessPolicies,
domainConfig_autoTuneOptions,
domainConfig_logPublishingOptions,
domainConfig_clusterConfig,
domainConfig_advancedSecurityOptions,
domainConfig_snapshotOptions,
domainConfig_cognitoOptions,
domainConfig_encryptionAtRestOptions,
domainConfig_vPCOptions,
domainConfig_domainEndpointOptions,
domainConfig_advancedOptions,
DomainEndpointOptions (..),
newDomainEndpointOptions,
domainEndpointOptions_enforceHTTPS,
domainEndpointOptions_tLSSecurityPolicy,
domainEndpointOptions_customEndpointEnabled,
domainEndpointOptions_customEndpoint,
domainEndpointOptions_customEndpointCertificateArn,
DomainEndpointOptionsStatus (..),
newDomainEndpointOptionsStatus,
domainEndpointOptionsStatus_options,
domainEndpointOptionsStatus_status,
DomainInfo (..),
newDomainInfo,
domainInfo_domainName,
domainInfo_engineType,
DomainInformationContainer (..),
newDomainInformationContainer,
domainInformationContainer_aWSDomainInformation,
DomainPackageDetails (..),
newDomainPackageDetails,
domainPackageDetails_lastUpdated,
domainPackageDetails_packageID,
domainPackageDetails_packageType,
domainPackageDetails_packageName,
domainPackageDetails_packageVersion,
domainPackageDetails_domainPackageStatus,
domainPackageDetails_domainName,
domainPackageDetails_errorDetails,
domainPackageDetails_referencePath,
DomainStatus (..),
newDomainStatus,
domainStatus_eBSOptions,
domainStatus_engineVersion,
domainStatus_nodeToNodeEncryptionOptions,
domainStatus_accessPolicies,
domainStatus_serviceSoftwareOptions,
domainStatus_autoTuneOptions,
domainStatus_logPublishingOptions,
domainStatus_advancedSecurityOptions,
domainStatus_created,
domainStatus_snapshotOptions,
domainStatus_cognitoOptions,
domainStatus_encryptionAtRestOptions,
domainStatus_deleted,
domainStatus_vPCOptions,
domainStatus_endpoints,
domainStatus_domainEndpointOptions,
domainStatus_processing,
domainStatus_endpoint,
domainStatus_upgradeProcessing,
domainStatus_advancedOptions,
domainStatus_domainId,
domainStatus_domainName,
domainStatus_arn,
domainStatus_clusterConfig,
Duration (..),
newDuration,
duration_value,
duration_unit,
EBSOptions (..),
newEBSOptions,
eBSOptions_volumeSize,
eBSOptions_iops,
eBSOptions_volumeType,
eBSOptions_eBSEnabled,
EBSOptionsStatus (..),
newEBSOptionsStatus,
eBSOptionsStatus_options,
eBSOptionsStatus_status,
EncryptionAtRestOptions (..),
newEncryptionAtRestOptions,
encryptionAtRestOptions_enabled,
encryptionAtRestOptions_kmsKeyId,
EncryptionAtRestOptionsStatus (..),
newEncryptionAtRestOptionsStatus,
encryptionAtRestOptionsStatus_options,
encryptionAtRestOptionsStatus_status,
ErrorDetails (..),
newErrorDetails,
errorDetails_errorType,
errorDetails_errorMessage,
Filter (..),
newFilter,
filter_values,
filter_name,
InboundConnection (..),
newInboundConnection,
inboundConnection_remoteDomainInfo,
inboundConnection_localDomainInfo,
inboundConnection_connectionId,
inboundConnection_connectionStatus,
InboundConnectionStatus (..),
newInboundConnectionStatus,
inboundConnectionStatus_message,
inboundConnectionStatus_statusCode,
InstanceCountLimits (..),
newInstanceCountLimits,
instanceCountLimits_maximumInstanceCount,
instanceCountLimits_minimumInstanceCount,
InstanceLimits (..),
newInstanceLimits,
instanceLimits_instanceCountLimits,
InstanceTypeDetails (..),
newInstanceTypeDetails,
instanceTypeDetails_encryptionEnabled,
instanceTypeDetails_cognitoEnabled,
instanceTypeDetails_instanceRole,
instanceTypeDetails_instanceType,
instanceTypeDetails_warmEnabled,
instanceTypeDetails_advancedSecurityEnabled,
instanceTypeDetails_appLogsEnabled,
Limits (..),
newLimits,
limits_instanceLimits,
limits_additionalLimits,
limits_storageTypes,
LogPublishingOption (..),
newLogPublishingOption,
logPublishingOption_enabled,
logPublishingOption_cloudWatchLogsLogGroupArn,
LogPublishingOptionsStatus (..),
newLogPublishingOptionsStatus,
logPublishingOptionsStatus_status,
logPublishingOptionsStatus_options,
MasterUserOptions (..),
newMasterUserOptions,
masterUserOptions_masterUserPassword,
masterUserOptions_masterUserName,
masterUserOptions_masterUserARN,
NodeToNodeEncryptionOptions (..),
newNodeToNodeEncryptionOptions,
nodeToNodeEncryptionOptions_enabled,
NodeToNodeEncryptionOptionsStatus (..),
newNodeToNodeEncryptionOptionsStatus,
nodeToNodeEncryptionOptionsStatus_options,
nodeToNodeEncryptionOptionsStatus_status,
OptionStatus (..),
newOptionStatus,
optionStatus_pendingDeletion,
optionStatus_updateVersion,
optionStatus_creationDate,
optionStatus_updateDate,
optionStatus_state,
OutboundConnection (..),
newOutboundConnection,
outboundConnection_remoteDomainInfo,
outboundConnection_connectionAlias,
outboundConnection_localDomainInfo,
outboundConnection_connectionId,
outboundConnection_connectionStatus,
OutboundConnectionStatus (..),
newOutboundConnectionStatus,
outboundConnectionStatus_message,
outboundConnectionStatus_statusCode,
PackageDetails (..),
newPackageDetails,
packageDetails_packageID,
packageDetails_packageType,
packageDetails_lastUpdatedAt,
packageDetails_createdAt,
packageDetails_packageName,
packageDetails_packageStatus,
packageDetails_packageDescription,
packageDetails_errorDetails,
packageDetails_availablePackageVersion,
PackageSource (..),
newPackageSource,
packageSource_s3Key,
packageSource_s3BucketName,
PackageVersionHistory (..),
newPackageVersionHistory,
packageVersionHistory_createdAt,
packageVersionHistory_packageVersion,
packageVersionHistory_commitMessage,
RecurringCharge (..),
newRecurringCharge,
recurringCharge_recurringChargeFrequency,
recurringCharge_recurringChargeAmount,
ReservedInstance (..),
newReservedInstance,
reservedInstance_state,
reservedInstance_currencyCode,
reservedInstance_instanceCount,
reservedInstance_startTime,
reservedInstance_instanceType,
reservedInstance_reservationName,
reservedInstance_billingSubscriptionId,
reservedInstance_recurringCharges,
reservedInstance_usagePrice,
reservedInstance_reservedInstanceId,
reservedInstance_reservedInstanceOfferingId,
reservedInstance_fixedPrice,
reservedInstance_duration,
reservedInstance_paymentOption,
ReservedInstanceOffering (..),
newReservedInstanceOffering,
reservedInstanceOffering_currencyCode,
reservedInstanceOffering_instanceType,
reservedInstanceOffering_recurringCharges,
reservedInstanceOffering_usagePrice,
reservedInstanceOffering_reservedInstanceOfferingId,
reservedInstanceOffering_fixedPrice,
reservedInstanceOffering_duration,
reservedInstanceOffering_paymentOption,
SAMLIdp (..),
newSAMLIdp,
sAMLIdp_metadataContent,
sAMLIdp_entityId,
SAMLOptionsInput (..),
newSAMLOptionsInput,
sAMLOptionsInput_masterUserName,
sAMLOptionsInput_enabled,
sAMLOptionsInput_idp,
sAMLOptionsInput_rolesKey,
sAMLOptionsInput_masterBackendRole,
sAMLOptionsInput_sessionTimeoutMinutes,
sAMLOptionsInput_subjectKey,
SAMLOptionsOutput (..),
newSAMLOptionsOutput,
sAMLOptionsOutput_enabled,
sAMLOptionsOutput_idp,
sAMLOptionsOutput_rolesKey,
sAMLOptionsOutput_sessionTimeoutMinutes,
sAMLOptionsOutput_subjectKey,
ScheduledAutoTuneDetails (..),
newScheduledAutoTuneDetails,
scheduledAutoTuneDetails_severity,
scheduledAutoTuneDetails_action,
scheduledAutoTuneDetails_date,
scheduledAutoTuneDetails_actionType,
ServiceSoftwareOptions (..),
newServiceSoftwareOptions,
serviceSoftwareOptions_automatedUpdateDate,
serviceSoftwareOptions_currentVersion,
serviceSoftwareOptions_optionalDeployment,
serviceSoftwareOptions_updateStatus,
serviceSoftwareOptions_cancellable,
serviceSoftwareOptions_updateAvailable,
serviceSoftwareOptions_description,
serviceSoftwareOptions_newVersion,
SnapshotOptions (..),
newSnapshotOptions,
snapshotOptions_automatedSnapshotStartHour,
SnapshotOptionsStatus (..),
newSnapshotOptionsStatus,
snapshotOptionsStatus_options,
snapshotOptionsStatus_status,
StorageType (..),
newStorageType,
storageType_storageTypeLimits,
storageType_storageSubTypeName,
storageType_storageTypeName,
StorageTypeLimit (..),
newStorageTypeLimit,
storageTypeLimit_limitName,
storageTypeLimit_limitValues,
Tag (..),
newTag,
tag_key,
tag_value,
UpgradeHistory (..),
newUpgradeHistory,
upgradeHistory_upgradeStatus,
upgradeHistory_stepsList,
upgradeHistory_upgradeName,
upgradeHistory_startTimestamp,
UpgradeStepItem (..),
newUpgradeStepItem,
upgradeStepItem_upgradeStepStatus,
upgradeStepItem_progressPercent,
upgradeStepItem_issues,
upgradeStepItem_upgradeStep,
VPCDerivedInfo (..),
newVPCDerivedInfo,
vPCDerivedInfo_securityGroupIds,
vPCDerivedInfo_subnetIds,
vPCDerivedInfo_vPCId,
vPCDerivedInfo_availabilityZones,
VPCDerivedInfoStatus (..),
newVPCDerivedInfoStatus,
vPCDerivedInfoStatus_options,
vPCDerivedInfoStatus_status,
VPCOptions (..),
newVPCOptions,
vPCOptions_securityGroupIds,
vPCOptions_subnetIds,
VersionStatus (..),
newVersionStatus,
versionStatus_options,
versionStatus_status,
ZoneAwarenessConfig (..),
newZoneAwarenessConfig,
zoneAwarenessConfig_availabilityZoneCount,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.OpenSearch.Types.AWSDomainInformation
import Amazonka.OpenSearch.Types.AccessPoliciesStatus
import Amazonka.OpenSearch.Types.AdditionalLimit
import Amazonka.OpenSearch.Types.AdvancedOptionsStatus
import Amazonka.OpenSearch.Types.AdvancedSecurityOptions
import Amazonka.OpenSearch.Types.AdvancedSecurityOptionsInput
import Amazonka.OpenSearch.Types.AdvancedSecurityOptionsStatus
import Amazonka.OpenSearch.Types.AutoTune
import Amazonka.OpenSearch.Types.AutoTuneDesiredState
import Amazonka.OpenSearch.Types.AutoTuneDetails
import Amazonka.OpenSearch.Types.AutoTuneMaintenanceSchedule
import Amazonka.OpenSearch.Types.AutoTuneOptions
import Amazonka.OpenSearch.Types.AutoTuneOptionsInput
import Amazonka.OpenSearch.Types.AutoTuneOptionsOutput
import Amazonka.OpenSearch.Types.AutoTuneOptionsStatus
import Amazonka.OpenSearch.Types.AutoTuneState
import Amazonka.OpenSearch.Types.AutoTuneStatus
import Amazonka.OpenSearch.Types.AutoTuneType
import Amazonka.OpenSearch.Types.ClusterConfig
import Amazonka.OpenSearch.Types.ClusterConfigStatus
import Amazonka.OpenSearch.Types.CognitoOptions
import Amazonka.OpenSearch.Types.CognitoOptionsStatus
import Amazonka.OpenSearch.Types.ColdStorageOptions
import Amazonka.OpenSearch.Types.CompatibleVersionsMap
import Amazonka.OpenSearch.Types.DeploymentStatus
import Amazonka.OpenSearch.Types.DescribePackagesFilter
import Amazonka.OpenSearch.Types.DescribePackagesFilterName
import Amazonka.OpenSearch.Types.DomainConfig
import Amazonka.OpenSearch.Types.DomainEndpointOptions
import Amazonka.OpenSearch.Types.DomainEndpointOptionsStatus
import Amazonka.OpenSearch.Types.DomainInfo
import Amazonka.OpenSearch.Types.DomainInformationContainer
import Amazonka.OpenSearch.Types.DomainPackageDetails
import Amazonka.OpenSearch.Types.DomainPackageStatus
import Amazonka.OpenSearch.Types.DomainStatus
import Amazonka.OpenSearch.Types.Duration
import Amazonka.OpenSearch.Types.EBSOptions
import Amazonka.OpenSearch.Types.EBSOptionsStatus
import Amazonka.OpenSearch.Types.EncryptionAtRestOptions
import Amazonka.OpenSearch.Types.EncryptionAtRestOptionsStatus
import Amazonka.OpenSearch.Types.EngineType
import Amazonka.OpenSearch.Types.ErrorDetails
import Amazonka.OpenSearch.Types.Filter
import Amazonka.OpenSearch.Types.InboundConnection
import Amazonka.OpenSearch.Types.InboundConnectionStatus
import Amazonka.OpenSearch.Types.InboundConnectionStatusCode
import Amazonka.OpenSearch.Types.InstanceCountLimits
import Amazonka.OpenSearch.Types.InstanceLimits
import Amazonka.OpenSearch.Types.InstanceTypeDetails
import Amazonka.OpenSearch.Types.Limits
import Amazonka.OpenSearch.Types.LogPublishingOption
import Amazonka.OpenSearch.Types.LogPublishingOptionsStatus
import Amazonka.OpenSearch.Types.LogType
import Amazonka.OpenSearch.Types.MasterUserOptions
import Amazonka.OpenSearch.Types.NodeToNodeEncryptionOptions
import Amazonka.OpenSearch.Types.NodeToNodeEncryptionOptionsStatus
import Amazonka.OpenSearch.Types.OpenSearchPartitionInstanceType
import Amazonka.OpenSearch.Types.OpenSearchWarmPartitionInstanceType
import Amazonka.OpenSearch.Types.OptionState
import Amazonka.OpenSearch.Types.OptionStatus
import Amazonka.OpenSearch.Types.OutboundConnection
import Amazonka.OpenSearch.Types.OutboundConnectionStatus
import Amazonka.OpenSearch.Types.OutboundConnectionStatusCode
import Amazonka.OpenSearch.Types.PackageDetails
import Amazonka.OpenSearch.Types.PackageSource
import Amazonka.OpenSearch.Types.PackageStatus
import Amazonka.OpenSearch.Types.PackageType
import Amazonka.OpenSearch.Types.PackageVersionHistory
import Amazonka.OpenSearch.Types.RecurringCharge
import Amazonka.OpenSearch.Types.ReservedInstance
import Amazonka.OpenSearch.Types.ReservedInstanceOffering
import Amazonka.OpenSearch.Types.ReservedInstancePaymentOption
import Amazonka.OpenSearch.Types.RollbackOnDisable
import Amazonka.OpenSearch.Types.SAMLIdp
import Amazonka.OpenSearch.Types.SAMLOptionsInput
import Amazonka.OpenSearch.Types.SAMLOptionsOutput
import Amazonka.OpenSearch.Types.ScheduledAutoTuneActionType
import Amazonka.OpenSearch.Types.ScheduledAutoTuneDetails
import Amazonka.OpenSearch.Types.ScheduledAutoTuneSeverityType
import Amazonka.OpenSearch.Types.ServiceSoftwareOptions
import Amazonka.OpenSearch.Types.SnapshotOptions
import Amazonka.OpenSearch.Types.SnapshotOptionsStatus
import Amazonka.OpenSearch.Types.StorageType
import Amazonka.OpenSearch.Types.StorageTypeLimit
import Amazonka.OpenSearch.Types.TLSSecurityPolicy
import Amazonka.OpenSearch.Types.Tag
import Amazonka.OpenSearch.Types.TimeUnit
import Amazonka.OpenSearch.Types.UpgradeHistory
import Amazonka.OpenSearch.Types.UpgradeStatus
import Amazonka.OpenSearch.Types.UpgradeStep
import Amazonka.OpenSearch.Types.UpgradeStepItem
import Amazonka.OpenSearch.Types.VPCDerivedInfo
import Amazonka.OpenSearch.Types.VPCDerivedInfoStatus
import Amazonka.OpenSearch.Types.VPCOptions
import Amazonka.OpenSearch.Types.VersionStatus
import Amazonka.OpenSearch.Types.VolumeType
import Amazonka.OpenSearch.Types.ZoneAwarenessConfig
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
"OpenSearch",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"es",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"es",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2021-01-01",
$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
"OpenSearch",
$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
_ValidationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ValidationException :: Getting (First ServiceError) a ServiceError
_ValidationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ValidationException"
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
_AccessDeniedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_AccessDeniedException :: Getting (First ServiceError) a ServiceError
_AccessDeniedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccessDeniedException"
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
_ResourceAlreadyExistsException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceAlreadyExistsException :: Getting (First ServiceError) a ServiceError
_ResourceAlreadyExistsException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceAlreadyExistsException"
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
409
_ConflictException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ConflictException :: Getting (First ServiceError) a ServiceError
_ConflictException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConflictException"
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
409
_BaseException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_BaseException :: Getting (First ServiceError) a ServiceError
_BaseException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"BaseException"
_DisabledOperationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_DisabledOperationException :: Getting (First ServiceError) a ServiceError
_DisabledOperationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"DisabledOperationException"
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
409
_InternalException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InternalException :: Getting (First ServiceError) a ServiceError
_InternalException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalException"
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
_InvalidTypeException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidTypeException :: Getting (First ServiceError) a ServiceError
_InvalidTypeException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidTypeException"
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
409
_ResourceNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceNotFoundException :: Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFoundException"
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
409
_InvalidPaginationTokenException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
=
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidPaginationTokenException"
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
_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"
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
409