{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.ElasticSearch.Types
(
defaultService,
_ValidationException,
_AccessDeniedException,
_ResourceAlreadyExistsException,
_ConflictException,
_BaseException,
_DisabledOperationException,
_InternalException,
_InvalidTypeException,
_ResourceNotFoundException,
_InvalidPaginationTokenException,
_LimitExceededException,
AutoTuneDesiredState (..),
AutoTuneState (..),
AutoTuneType (..),
DeploymentStatus (..),
DescribePackagesFilterName (..),
DomainPackageStatus (..),
ESPartitionInstanceType (..),
ESWarmPartitionInstanceType (..),
EngineType (..),
InboundCrossClusterSearchConnectionStatusCode (..),
LogType (..),
OptionState (..),
OutboundCrossClusterSearchConnectionStatusCode (..),
PackageStatus (..),
PackageType (..),
ReservedElasticsearchInstancePaymentOption (..),
RollbackOnDisable (..),
ScheduledAutoTuneActionType (..),
ScheduledAutoTuneSeverityType (..),
TLSSecurityPolicy (..),
TimeUnit (..),
UpgradeStatus (..),
UpgradeStep (..),
VolumeType (..),
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,
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,
DomainEndpointOptions (..),
newDomainEndpointOptions,
domainEndpointOptions_enforceHTTPS,
domainEndpointOptions_tLSSecurityPolicy,
domainEndpointOptions_customEndpointEnabled,
domainEndpointOptions_customEndpoint,
domainEndpointOptions_customEndpointCertificateArn,
DomainEndpointOptionsStatus (..),
newDomainEndpointOptionsStatus,
domainEndpointOptionsStatus_options,
domainEndpointOptionsStatus_status,
DomainInfo (..),
newDomainInfo,
domainInfo_domainName,
domainInfo_engineType,
DomainInformation (..),
newDomainInformation,
domainInformation_ownerId,
domainInformation_region,
domainInformation_domainName,
DomainPackageDetails (..),
newDomainPackageDetails,
domainPackageDetails_lastUpdated,
domainPackageDetails_packageID,
domainPackageDetails_packageType,
domainPackageDetails_packageName,
domainPackageDetails_packageVersion,
domainPackageDetails_domainPackageStatus,
domainPackageDetails_domainName,
domainPackageDetails_errorDetails,
domainPackageDetails_referencePath,
Duration (..),
newDuration,
duration_value,
duration_unit,
EBSOptions (..),
newEBSOptions,
eBSOptions_volumeSize,
eBSOptions_iops,
eBSOptions_volumeType,
eBSOptions_eBSEnabled,
EBSOptionsStatus (..),
newEBSOptionsStatus,
eBSOptionsStatus_options,
eBSOptionsStatus_status,
ElasticsearchClusterConfig (..),
newElasticsearchClusterConfig,
elasticsearchClusterConfig_dedicatedMasterCount,
elasticsearchClusterConfig_dedicatedMasterType,
elasticsearchClusterConfig_dedicatedMasterEnabled,
elasticsearchClusterConfig_instanceCount,
elasticsearchClusterConfig_coldStorageOptions,
elasticsearchClusterConfig_zoneAwarenessEnabled,
elasticsearchClusterConfig_instanceType,
elasticsearchClusterConfig_warmEnabled,
elasticsearchClusterConfig_zoneAwarenessConfig,
elasticsearchClusterConfig_warmCount,
elasticsearchClusterConfig_warmType,
ElasticsearchClusterConfigStatus (..),
newElasticsearchClusterConfigStatus,
elasticsearchClusterConfigStatus_options,
elasticsearchClusterConfigStatus_status,
ElasticsearchDomainConfig (..),
newElasticsearchDomainConfig,
elasticsearchDomainConfig_eBSOptions,
elasticsearchDomainConfig_nodeToNodeEncryptionOptions,
elasticsearchDomainConfig_accessPolicies,
elasticsearchDomainConfig_autoTuneOptions,
elasticsearchDomainConfig_logPublishingOptions,
elasticsearchDomainConfig_advancedSecurityOptions,
elasticsearchDomainConfig_elasticsearchClusterConfig,
elasticsearchDomainConfig_snapshotOptions,
elasticsearchDomainConfig_cognitoOptions,
elasticsearchDomainConfig_encryptionAtRestOptions,
elasticsearchDomainConfig_vPCOptions,
elasticsearchDomainConfig_domainEndpointOptions,
elasticsearchDomainConfig_advancedOptions,
elasticsearchDomainConfig_elasticsearchVersion,
ElasticsearchDomainStatus (..),
newElasticsearchDomainStatus,
elasticsearchDomainStatus_eBSOptions,
elasticsearchDomainStatus_nodeToNodeEncryptionOptions,
elasticsearchDomainStatus_accessPolicies,
elasticsearchDomainStatus_serviceSoftwareOptions,
elasticsearchDomainStatus_autoTuneOptions,
elasticsearchDomainStatus_logPublishingOptions,
elasticsearchDomainStatus_advancedSecurityOptions,
elasticsearchDomainStatus_created,
elasticsearchDomainStatus_snapshotOptions,
elasticsearchDomainStatus_cognitoOptions,
elasticsearchDomainStatus_encryptionAtRestOptions,
elasticsearchDomainStatus_deleted,
elasticsearchDomainStatus_vPCOptions,
elasticsearchDomainStatus_endpoints,
elasticsearchDomainStatus_domainEndpointOptions,
elasticsearchDomainStatus_processing,
elasticsearchDomainStatus_endpoint,
elasticsearchDomainStatus_upgradeProcessing,
elasticsearchDomainStatus_advancedOptions,
elasticsearchDomainStatus_elasticsearchVersion,
elasticsearchDomainStatus_domainId,
elasticsearchDomainStatus_domainName,
elasticsearchDomainStatus_arn,
elasticsearchDomainStatus_elasticsearchClusterConfig,
ElasticsearchVersionStatus (..),
newElasticsearchVersionStatus,
elasticsearchVersionStatus_options,
elasticsearchVersionStatus_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,
InboundCrossClusterSearchConnection (..),
newInboundCrossClusterSearchConnection,
inboundCrossClusterSearchConnection_destinationDomainInfo,
inboundCrossClusterSearchConnection_crossClusterSearchConnectionId,
inboundCrossClusterSearchConnection_connectionStatus,
inboundCrossClusterSearchConnection_sourceDomainInfo,
InboundCrossClusterSearchConnectionStatus (..),
newInboundCrossClusterSearchConnectionStatus,
inboundCrossClusterSearchConnectionStatus_message,
inboundCrossClusterSearchConnectionStatus_statusCode,
InstanceCountLimits (..),
newInstanceCountLimits,
instanceCountLimits_maximumInstanceCount,
instanceCountLimits_minimumInstanceCount,
InstanceLimits (..),
newInstanceLimits,
instanceLimits_instanceCountLimits,
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,
OutboundCrossClusterSearchConnection (..),
newOutboundCrossClusterSearchConnection,
outboundCrossClusterSearchConnection_destinationDomainInfo,
outboundCrossClusterSearchConnection_connectionAlias,
outboundCrossClusterSearchConnection_crossClusterSearchConnectionId,
outboundCrossClusterSearchConnection_connectionStatus,
outboundCrossClusterSearchConnection_sourceDomainInfo,
OutboundCrossClusterSearchConnectionStatus (..),
newOutboundCrossClusterSearchConnectionStatus,
outboundCrossClusterSearchConnectionStatus_message,
outboundCrossClusterSearchConnectionStatus_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,
ReservedElasticsearchInstance (..),
newReservedElasticsearchInstance,
reservedElasticsearchInstance_state,
reservedElasticsearchInstance_currencyCode,
reservedElasticsearchInstance_startTime,
reservedElasticsearchInstance_reservedElasticsearchInstanceOfferingId,
reservedElasticsearchInstance_reservedElasticsearchInstanceId,
reservedElasticsearchInstance_elasticsearchInstanceCount,
reservedElasticsearchInstance_reservationName,
reservedElasticsearchInstance_elasticsearchInstanceType,
reservedElasticsearchInstance_recurringCharges,
reservedElasticsearchInstance_usagePrice,
reservedElasticsearchInstance_fixedPrice,
reservedElasticsearchInstance_duration,
reservedElasticsearchInstance_paymentOption,
ReservedElasticsearchInstanceOffering (..),
newReservedElasticsearchInstanceOffering,
reservedElasticsearchInstanceOffering_currencyCode,
reservedElasticsearchInstanceOffering_reservedElasticsearchInstanceOfferingId,
reservedElasticsearchInstanceOffering_elasticsearchInstanceType,
reservedElasticsearchInstanceOffering_recurringCharges,
reservedElasticsearchInstanceOffering_usagePrice,
reservedElasticsearchInstanceOffering_fixedPrice,
reservedElasticsearchInstanceOffering_duration,
reservedElasticsearchInstanceOffering_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,
ZoneAwarenessConfig (..),
newZoneAwarenessConfig,
zoneAwarenessConfig_availabilityZoneCount,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ElasticSearch.Types.AccessPoliciesStatus
import Amazonka.ElasticSearch.Types.AdditionalLimit
import Amazonka.ElasticSearch.Types.AdvancedOptionsStatus
import Amazonka.ElasticSearch.Types.AdvancedSecurityOptions
import Amazonka.ElasticSearch.Types.AdvancedSecurityOptionsInput
import Amazonka.ElasticSearch.Types.AdvancedSecurityOptionsStatus
import Amazonka.ElasticSearch.Types.AutoTune
import Amazonka.ElasticSearch.Types.AutoTuneDesiredState
import Amazonka.ElasticSearch.Types.AutoTuneDetails
import Amazonka.ElasticSearch.Types.AutoTuneMaintenanceSchedule
import Amazonka.ElasticSearch.Types.AutoTuneOptions
import Amazonka.ElasticSearch.Types.AutoTuneOptionsInput
import Amazonka.ElasticSearch.Types.AutoTuneOptionsOutput
import Amazonka.ElasticSearch.Types.AutoTuneOptionsStatus
import Amazonka.ElasticSearch.Types.AutoTuneState
import Amazonka.ElasticSearch.Types.AutoTuneStatus
import Amazonka.ElasticSearch.Types.AutoTuneType
import Amazonka.ElasticSearch.Types.CognitoOptions
import Amazonka.ElasticSearch.Types.CognitoOptionsStatus
import Amazonka.ElasticSearch.Types.ColdStorageOptions
import Amazonka.ElasticSearch.Types.CompatibleVersionsMap
import Amazonka.ElasticSearch.Types.DeploymentStatus
import Amazonka.ElasticSearch.Types.DescribePackagesFilter
import Amazonka.ElasticSearch.Types.DescribePackagesFilterName
import Amazonka.ElasticSearch.Types.DomainEndpointOptions
import Amazonka.ElasticSearch.Types.DomainEndpointOptionsStatus
import Amazonka.ElasticSearch.Types.DomainInfo
import Amazonka.ElasticSearch.Types.DomainInformation
import Amazonka.ElasticSearch.Types.DomainPackageDetails
import Amazonka.ElasticSearch.Types.DomainPackageStatus
import Amazonka.ElasticSearch.Types.Duration
import Amazonka.ElasticSearch.Types.EBSOptions
import Amazonka.ElasticSearch.Types.EBSOptionsStatus
import Amazonka.ElasticSearch.Types.ESPartitionInstanceType
import Amazonka.ElasticSearch.Types.ESWarmPartitionInstanceType
import Amazonka.ElasticSearch.Types.ElasticsearchClusterConfig
import Amazonka.ElasticSearch.Types.ElasticsearchClusterConfigStatus
import Amazonka.ElasticSearch.Types.ElasticsearchDomainConfig
import Amazonka.ElasticSearch.Types.ElasticsearchDomainStatus
import Amazonka.ElasticSearch.Types.ElasticsearchVersionStatus
import Amazonka.ElasticSearch.Types.EncryptionAtRestOptions
import Amazonka.ElasticSearch.Types.EncryptionAtRestOptionsStatus
import Amazonka.ElasticSearch.Types.EngineType
import Amazonka.ElasticSearch.Types.ErrorDetails
import Amazonka.ElasticSearch.Types.Filter
import Amazonka.ElasticSearch.Types.InboundCrossClusterSearchConnection
import Amazonka.ElasticSearch.Types.InboundCrossClusterSearchConnectionStatus
import Amazonka.ElasticSearch.Types.InboundCrossClusterSearchConnectionStatusCode
import Amazonka.ElasticSearch.Types.InstanceCountLimits
import Amazonka.ElasticSearch.Types.InstanceLimits
import Amazonka.ElasticSearch.Types.Limits
import Amazonka.ElasticSearch.Types.LogPublishingOption
import Amazonka.ElasticSearch.Types.LogPublishingOptionsStatus
import Amazonka.ElasticSearch.Types.LogType
import Amazonka.ElasticSearch.Types.MasterUserOptions
import Amazonka.ElasticSearch.Types.NodeToNodeEncryptionOptions
import Amazonka.ElasticSearch.Types.NodeToNodeEncryptionOptionsStatus
import Amazonka.ElasticSearch.Types.OptionState
import Amazonka.ElasticSearch.Types.OptionStatus
import Amazonka.ElasticSearch.Types.OutboundCrossClusterSearchConnection
import Amazonka.ElasticSearch.Types.OutboundCrossClusterSearchConnectionStatus
import Amazonka.ElasticSearch.Types.OutboundCrossClusterSearchConnectionStatusCode
import Amazonka.ElasticSearch.Types.PackageDetails
import Amazonka.ElasticSearch.Types.PackageSource
import Amazonka.ElasticSearch.Types.PackageStatus
import Amazonka.ElasticSearch.Types.PackageType
import Amazonka.ElasticSearch.Types.PackageVersionHistory
import Amazonka.ElasticSearch.Types.RecurringCharge
import Amazonka.ElasticSearch.Types.ReservedElasticsearchInstance
import Amazonka.ElasticSearch.Types.ReservedElasticsearchInstanceOffering
import Amazonka.ElasticSearch.Types.ReservedElasticsearchInstancePaymentOption
import Amazonka.ElasticSearch.Types.RollbackOnDisable
import Amazonka.ElasticSearch.Types.SAMLIdp
import Amazonka.ElasticSearch.Types.SAMLOptionsInput
import Amazonka.ElasticSearch.Types.SAMLOptionsOutput
import Amazonka.ElasticSearch.Types.ScheduledAutoTuneActionType
import Amazonka.ElasticSearch.Types.ScheduledAutoTuneDetails
import Amazonka.ElasticSearch.Types.ScheduledAutoTuneSeverityType
import Amazonka.ElasticSearch.Types.ServiceSoftwareOptions
import Amazonka.ElasticSearch.Types.SnapshotOptions
import Amazonka.ElasticSearch.Types.SnapshotOptionsStatus
import Amazonka.ElasticSearch.Types.StorageType
import Amazonka.ElasticSearch.Types.StorageTypeLimit
import Amazonka.ElasticSearch.Types.TLSSecurityPolicy
import Amazonka.ElasticSearch.Types.Tag
import Amazonka.ElasticSearch.Types.TimeUnit
import Amazonka.ElasticSearch.Types.UpgradeHistory
import Amazonka.ElasticSearch.Types.UpgradeStatus
import Amazonka.ElasticSearch.Types.UpgradeStep
import Amazonka.ElasticSearch.Types.UpgradeStepItem
import Amazonka.ElasticSearch.Types.VPCDerivedInfo
import Amazonka.ElasticSearch.Types.VPCDerivedInfoStatus
import Amazonka.ElasticSearch.Types.VPCOptions
import Amazonka.ElasticSearch.Types.VolumeType
import Amazonka.ElasticSearch.Types.ZoneAwarenessConfig
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
"ElasticSearch",
$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
"2015-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
"ElasticSearch",
$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