{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.ElasticSearch.Types
(
defaultService,
_AccessDeniedException,
_BaseException,
_ConflictException,
_DisabledOperationException,
_InternalException,
_InvalidPaginationTokenException,
_InvalidTypeException,
_LimitExceededException,
_ResourceAlreadyExistsException,
_ResourceNotFoundException,
_ValidationException,
AutoTuneDesiredState (..),
AutoTuneState (..),
AutoTuneType (..),
DeploymentStatus (..),
DescribePackagesFilterName (..),
DomainPackageStatus (..),
ESPartitionInstanceType (..),
ESWarmPartitionInstanceType (..),
EngineType (..),
InboundCrossClusterSearchConnectionStatusCode (..),
LogType (..),
OptionState (..),
OutboundCrossClusterSearchConnectionStatusCode (..),
OverallChangeStatus (..),
PackageStatus (..),
PackageType (..),
PrincipalType (..),
ReservedElasticsearchInstancePaymentOption (..),
RollbackOnDisable (..),
ScheduledAutoTuneActionType (..),
ScheduledAutoTuneSeverityType (..),
TLSSecurityPolicy (..),
TimeUnit (..),
UpgradeStatus (..),
UpgradeStep (..),
VolumeType (..),
VpcEndpointErrorCode (..),
VpcEndpointStatus (..),
AccessPoliciesStatus (..),
newAccessPoliciesStatus,
accessPoliciesStatus_options,
accessPoliciesStatus_status,
AdditionalLimit (..),
newAdditionalLimit,
additionalLimit_limitName,
additionalLimit_limitValues,
AdvancedOptionsStatus (..),
newAdvancedOptionsStatus,
advancedOptionsStatus_options,
advancedOptionsStatus_status,
AdvancedSecurityOptions (..),
newAdvancedSecurityOptions,
advancedSecurityOptions_anonymousAuthDisableDate,
advancedSecurityOptions_anonymousAuthEnabled,
advancedSecurityOptions_enabled,
advancedSecurityOptions_internalUserDatabaseEnabled,
advancedSecurityOptions_sAMLOptions,
AdvancedSecurityOptionsInput (..),
newAdvancedSecurityOptionsInput,
advancedSecurityOptionsInput_anonymousAuthEnabled,
advancedSecurityOptionsInput_enabled,
advancedSecurityOptionsInput_internalUserDatabaseEnabled,
advancedSecurityOptionsInput_masterUserOptions,
advancedSecurityOptionsInput_sAMLOptions,
AdvancedSecurityOptionsStatus (..),
newAdvancedSecurityOptionsStatus,
advancedSecurityOptionsStatus_options,
advancedSecurityOptionsStatus_status,
AuthorizedPrincipal (..),
newAuthorizedPrincipal,
authorizedPrincipal_principal,
authorizedPrincipal_principalType,
AutoTune (..),
newAutoTune,
autoTune_autoTuneDetails,
autoTune_autoTuneType,
AutoTuneDetails (..),
newAutoTuneDetails,
autoTuneDetails_scheduledAutoTuneDetails,
AutoTuneMaintenanceSchedule (..),
newAutoTuneMaintenanceSchedule,
autoTuneMaintenanceSchedule_cronExpressionForRecurrence,
autoTuneMaintenanceSchedule_duration,
autoTuneMaintenanceSchedule_startAt,
AutoTuneOptions (..),
newAutoTuneOptions,
autoTuneOptions_desiredState,
autoTuneOptions_maintenanceSchedules,
autoTuneOptions_rollbackOnDisable,
AutoTuneOptionsInput (..),
newAutoTuneOptionsInput,
autoTuneOptionsInput_desiredState,
autoTuneOptionsInput_maintenanceSchedules,
AutoTuneOptionsOutput (..),
newAutoTuneOptionsOutput,
autoTuneOptionsOutput_errorMessage,
autoTuneOptionsOutput_state,
AutoTuneOptionsStatus (..),
newAutoTuneOptionsStatus,
autoTuneOptionsStatus_options,
autoTuneOptionsStatus_status,
AutoTuneStatus (..),
newAutoTuneStatus,
autoTuneStatus_errorMessage,
autoTuneStatus_pendingDeletion,
autoTuneStatus_updateVersion,
autoTuneStatus_creationDate,
autoTuneStatus_updateDate,
autoTuneStatus_state,
ChangeProgressDetails (..),
newChangeProgressDetails,
changeProgressDetails_changeId,
changeProgressDetails_message,
ChangeProgressStage (..),
newChangeProgressStage,
changeProgressStage_description,
changeProgressStage_lastUpdated,
changeProgressStage_name,
changeProgressStage_status,
ChangeProgressStatusDetails (..),
newChangeProgressStatusDetails,
changeProgressStatusDetails_changeId,
changeProgressStatusDetails_changeProgressStages,
changeProgressStatusDetails_completedProperties,
changeProgressStatusDetails_pendingProperties,
changeProgressStatusDetails_startTime,
changeProgressStatusDetails_status,
changeProgressStatusDetails_totalNumberOfStages,
CognitoOptions (..),
newCognitoOptions,
cognitoOptions_enabled,
cognitoOptions_identityPoolId,
cognitoOptions_roleArn,
cognitoOptions_userPoolId,
CognitoOptionsStatus (..),
newCognitoOptionsStatus,
cognitoOptionsStatus_options,
cognitoOptionsStatus_status,
ColdStorageOptions (..),
newColdStorageOptions,
coldStorageOptions_enabled,
CompatibleVersionsMap (..),
newCompatibleVersionsMap,
compatibleVersionsMap_sourceVersion,
compatibleVersionsMap_targetVersions,
DescribePackagesFilter (..),
newDescribePackagesFilter,
describePackagesFilter_name,
describePackagesFilter_value,
DomainEndpointOptions (..),
newDomainEndpointOptions,
domainEndpointOptions_customEndpoint,
domainEndpointOptions_customEndpointCertificateArn,
domainEndpointOptions_customEndpointEnabled,
domainEndpointOptions_enforceHTTPS,
domainEndpointOptions_tLSSecurityPolicy,
DomainEndpointOptionsStatus (..),
newDomainEndpointOptionsStatus,
domainEndpointOptionsStatus_options,
domainEndpointOptionsStatus_status,
DomainInfo (..),
newDomainInfo,
domainInfo_domainName,
domainInfo_engineType,
DomainInformation (..),
newDomainInformation,
domainInformation_ownerId,
domainInformation_region,
domainInformation_domainName,
DomainPackageDetails (..),
newDomainPackageDetails,
domainPackageDetails_domainName,
domainPackageDetails_domainPackageStatus,
domainPackageDetails_errorDetails,
domainPackageDetails_lastUpdated,
domainPackageDetails_packageID,
domainPackageDetails_packageName,
domainPackageDetails_packageType,
domainPackageDetails_packageVersion,
domainPackageDetails_referencePath,
DryRunResults (..),
newDryRunResults,
dryRunResults_deploymentType,
dryRunResults_message,
Duration (..),
newDuration,
duration_unit,
duration_value,
EBSOptions (..),
newEBSOptions,
eBSOptions_eBSEnabled,
eBSOptions_iops,
eBSOptions_throughput,
eBSOptions_volumeSize,
eBSOptions_volumeType,
EBSOptionsStatus (..),
newEBSOptionsStatus,
eBSOptionsStatus_options,
eBSOptionsStatus_status,
ElasticsearchClusterConfig (..),
newElasticsearchClusterConfig,
elasticsearchClusterConfig_coldStorageOptions,
elasticsearchClusterConfig_dedicatedMasterCount,
elasticsearchClusterConfig_dedicatedMasterEnabled,
elasticsearchClusterConfig_dedicatedMasterType,
elasticsearchClusterConfig_instanceCount,
elasticsearchClusterConfig_instanceType,
elasticsearchClusterConfig_warmCount,
elasticsearchClusterConfig_warmEnabled,
elasticsearchClusterConfig_warmType,
elasticsearchClusterConfig_zoneAwarenessConfig,
elasticsearchClusterConfig_zoneAwarenessEnabled,
ElasticsearchClusterConfigStatus (..),
newElasticsearchClusterConfigStatus,
elasticsearchClusterConfigStatus_options,
elasticsearchClusterConfigStatus_status,
ElasticsearchDomainConfig (..),
newElasticsearchDomainConfig,
elasticsearchDomainConfig_accessPolicies,
elasticsearchDomainConfig_advancedOptions,
elasticsearchDomainConfig_advancedSecurityOptions,
elasticsearchDomainConfig_autoTuneOptions,
elasticsearchDomainConfig_changeProgressDetails,
elasticsearchDomainConfig_cognitoOptions,
elasticsearchDomainConfig_domainEndpointOptions,
elasticsearchDomainConfig_eBSOptions,
elasticsearchDomainConfig_elasticsearchClusterConfig,
elasticsearchDomainConfig_elasticsearchVersion,
elasticsearchDomainConfig_encryptionAtRestOptions,
elasticsearchDomainConfig_logPublishingOptions,
elasticsearchDomainConfig_nodeToNodeEncryptionOptions,
elasticsearchDomainConfig_snapshotOptions,
elasticsearchDomainConfig_vPCOptions,
ElasticsearchDomainStatus (..),
newElasticsearchDomainStatus,
elasticsearchDomainStatus_accessPolicies,
elasticsearchDomainStatus_advancedOptions,
elasticsearchDomainStatus_advancedSecurityOptions,
elasticsearchDomainStatus_autoTuneOptions,
elasticsearchDomainStatus_changeProgressDetails,
elasticsearchDomainStatus_cognitoOptions,
elasticsearchDomainStatus_created,
elasticsearchDomainStatus_deleted,
elasticsearchDomainStatus_domainEndpointOptions,
elasticsearchDomainStatus_eBSOptions,
elasticsearchDomainStatus_elasticsearchVersion,
elasticsearchDomainStatus_encryptionAtRestOptions,
elasticsearchDomainStatus_endpoint,
elasticsearchDomainStatus_endpoints,
elasticsearchDomainStatus_logPublishingOptions,
elasticsearchDomainStatus_nodeToNodeEncryptionOptions,
elasticsearchDomainStatus_processing,
elasticsearchDomainStatus_serviceSoftwareOptions,
elasticsearchDomainStatus_snapshotOptions,
elasticsearchDomainStatus_upgradeProcessing,
elasticsearchDomainStatus_vPCOptions,
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_errorMessage,
errorDetails_errorType,
Filter (..),
newFilter,
filter_name,
filter_values,
InboundCrossClusterSearchConnection (..),
newInboundCrossClusterSearchConnection,
inboundCrossClusterSearchConnection_connectionStatus,
inboundCrossClusterSearchConnection_crossClusterSearchConnectionId,
inboundCrossClusterSearchConnection_destinationDomainInfo,
inboundCrossClusterSearchConnection_sourceDomainInfo,
InboundCrossClusterSearchConnectionStatus (..),
newInboundCrossClusterSearchConnectionStatus,
inboundCrossClusterSearchConnectionStatus_message,
inboundCrossClusterSearchConnectionStatus_statusCode,
InstanceCountLimits (..),
newInstanceCountLimits,
instanceCountLimits_maximumInstanceCount,
instanceCountLimits_minimumInstanceCount,
InstanceLimits (..),
newInstanceLimits,
instanceLimits_instanceCountLimits,
Limits (..),
newLimits,
limits_additionalLimits,
limits_instanceLimits,
limits_storageTypes,
LogPublishingOption (..),
newLogPublishingOption,
logPublishingOption_cloudWatchLogsLogGroupArn,
logPublishingOption_enabled,
LogPublishingOptionsStatus (..),
newLogPublishingOptionsStatus,
logPublishingOptionsStatus_options,
logPublishingOptionsStatus_status,
MasterUserOptions (..),
newMasterUserOptions,
masterUserOptions_masterUserARN,
masterUserOptions_masterUserName,
masterUserOptions_masterUserPassword,
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_connectionAlias,
outboundCrossClusterSearchConnection_connectionStatus,
outboundCrossClusterSearchConnection_crossClusterSearchConnectionId,
outboundCrossClusterSearchConnection_destinationDomainInfo,
outboundCrossClusterSearchConnection_sourceDomainInfo,
OutboundCrossClusterSearchConnectionStatus (..),
newOutboundCrossClusterSearchConnectionStatus,
outboundCrossClusterSearchConnectionStatus_message,
outboundCrossClusterSearchConnectionStatus_statusCode,
PackageDetails (..),
newPackageDetails,
packageDetails_availablePackageVersion,
packageDetails_createdAt,
packageDetails_errorDetails,
packageDetails_lastUpdatedAt,
packageDetails_packageDescription,
packageDetails_packageID,
packageDetails_packageName,
packageDetails_packageStatus,
packageDetails_packageType,
PackageSource (..),
newPackageSource,
packageSource_s3BucketName,
packageSource_s3Key,
PackageVersionHistory (..),
newPackageVersionHistory,
packageVersionHistory_commitMessage,
packageVersionHistory_createdAt,
packageVersionHistory_packageVersion,
RecurringCharge (..),
newRecurringCharge,
recurringCharge_recurringChargeAmount,
recurringCharge_recurringChargeFrequency,
ReservedElasticsearchInstance (..),
newReservedElasticsearchInstance,
reservedElasticsearchInstance_currencyCode,
reservedElasticsearchInstance_duration,
reservedElasticsearchInstance_elasticsearchInstanceCount,
reservedElasticsearchInstance_elasticsearchInstanceType,
reservedElasticsearchInstance_fixedPrice,
reservedElasticsearchInstance_paymentOption,
reservedElasticsearchInstance_recurringCharges,
reservedElasticsearchInstance_reservationName,
reservedElasticsearchInstance_reservedElasticsearchInstanceId,
reservedElasticsearchInstance_reservedElasticsearchInstanceOfferingId,
reservedElasticsearchInstance_startTime,
reservedElasticsearchInstance_state,
reservedElasticsearchInstance_usagePrice,
ReservedElasticsearchInstanceOffering (..),
newReservedElasticsearchInstanceOffering,
reservedElasticsearchInstanceOffering_currencyCode,
reservedElasticsearchInstanceOffering_duration,
reservedElasticsearchInstanceOffering_elasticsearchInstanceType,
reservedElasticsearchInstanceOffering_fixedPrice,
reservedElasticsearchInstanceOffering_paymentOption,
reservedElasticsearchInstanceOffering_recurringCharges,
reservedElasticsearchInstanceOffering_reservedElasticsearchInstanceOfferingId,
reservedElasticsearchInstanceOffering_usagePrice,
SAMLIdp (..),
newSAMLIdp,
sAMLIdp_metadataContent,
sAMLIdp_entityId,
SAMLOptionsInput (..),
newSAMLOptionsInput,
sAMLOptionsInput_enabled,
sAMLOptionsInput_idp,
sAMLOptionsInput_masterBackendRole,
sAMLOptionsInput_masterUserName,
sAMLOptionsInput_rolesKey,
sAMLOptionsInput_sessionTimeoutMinutes,
sAMLOptionsInput_subjectKey,
SAMLOptionsOutput (..),
newSAMLOptionsOutput,
sAMLOptionsOutput_enabled,
sAMLOptionsOutput_idp,
sAMLOptionsOutput_rolesKey,
sAMLOptionsOutput_sessionTimeoutMinutes,
sAMLOptionsOutput_subjectKey,
ScheduledAutoTuneDetails (..),
newScheduledAutoTuneDetails,
scheduledAutoTuneDetails_action,
scheduledAutoTuneDetails_actionType,
scheduledAutoTuneDetails_date,
scheduledAutoTuneDetails_severity,
ServiceSoftwareOptions (..),
newServiceSoftwareOptions,
serviceSoftwareOptions_automatedUpdateDate,
serviceSoftwareOptions_cancellable,
serviceSoftwareOptions_currentVersion,
serviceSoftwareOptions_description,
serviceSoftwareOptions_newVersion,
serviceSoftwareOptions_optionalDeployment,
serviceSoftwareOptions_updateAvailable,
serviceSoftwareOptions_updateStatus,
SnapshotOptions (..),
newSnapshotOptions,
snapshotOptions_automatedSnapshotStartHour,
SnapshotOptionsStatus (..),
newSnapshotOptionsStatus,
snapshotOptionsStatus_options,
snapshotOptionsStatus_status,
StorageType (..),
newStorageType,
storageType_storageSubTypeName,
storageType_storageTypeLimits,
storageType_storageTypeName,
StorageTypeLimit (..),
newStorageTypeLimit,
storageTypeLimit_limitName,
storageTypeLimit_limitValues,
Tag (..),
newTag,
tag_key,
tag_value,
UpgradeHistory (..),
newUpgradeHistory,
upgradeHistory_startTimestamp,
upgradeHistory_stepsList,
upgradeHistory_upgradeName,
upgradeHistory_upgradeStatus,
UpgradeStepItem (..),
newUpgradeStepItem,
upgradeStepItem_issues,
upgradeStepItem_progressPercent,
upgradeStepItem_upgradeStep,
upgradeStepItem_upgradeStepStatus,
VPCDerivedInfo (..),
newVPCDerivedInfo,
vPCDerivedInfo_availabilityZones,
vPCDerivedInfo_securityGroupIds,
vPCDerivedInfo_subnetIds,
vPCDerivedInfo_vPCId,
VPCDerivedInfoStatus (..),
newVPCDerivedInfoStatus,
vPCDerivedInfoStatus_options,
vPCDerivedInfoStatus_status,
VPCOptions (..),
newVPCOptions,
vPCOptions_securityGroupIds,
vPCOptions_subnetIds,
VpcEndpoint (..),
newVpcEndpoint,
vpcEndpoint_domainArn,
vpcEndpoint_endpoint,
vpcEndpoint_status,
vpcEndpoint_vpcEndpointId,
vpcEndpoint_vpcEndpointOwner,
vpcEndpoint_vpcOptions,
VpcEndpointError (..),
newVpcEndpointError,
vpcEndpointError_errorCode,
vpcEndpointError_errorMessage,
vpcEndpointError_vpcEndpointId,
VpcEndpointSummary (..),
newVpcEndpointSummary,
vpcEndpointSummary_domainArn,
vpcEndpointSummary_status,
vpcEndpointSummary_vpcEndpointId,
vpcEndpointSummary_vpcEndpointOwner,
ZoneAwarenessConfig (..),
newZoneAwarenessConfig,
zoneAwarenessConfig_availabilityZoneCount,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
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.AuthorizedPrincipal
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.ChangeProgressDetails
import Amazonka.ElasticSearch.Types.ChangeProgressStage
import Amazonka.ElasticSearch.Types.ChangeProgressStatusDetails
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.DryRunResults
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.OverallChangeStatus
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.PrincipalType
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.VpcEndpoint
import Amazonka.ElasticSearch.Types.VpcEndpointError
import Amazonka.ElasticSearch.Types.VpcEndpointErrorCode
import Amazonka.ElasticSearch.Types.VpcEndpointStatus
import Amazonka.ElasticSearch.Types.VpcEndpointSummary
import Amazonka.ElasticSearch.Types.ZoneAwarenessConfig
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
defaultService :: Core.Service
defaultService :: Service
defaultService =
Core.Service
{ $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"ElasticSearch",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"es",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"es",
$sel:version:Service :: ByteString
Core.version = ByteString
"2015-01-01",
$sel:s3AddressingStyle:Service :: S3AddressingStyle
Core.s3AddressingStyle = S3AddressingStyle
Core.S3AddressingStyleAuto,
$sel:endpoint:Service :: Region -> Endpoint
Core.endpoint = Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:timeout:Service :: Maybe Seconds
Core.timeout = forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:check:Service :: Status -> Bool
Core.check = Status -> Bool
Core.statusSuccess,
$sel:error:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core.error = Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"ElasticSearch",
$sel:retry:Service :: Retry
Core.retry = Retry
retry
}
where
retry :: Retry
retry =
Core.Exponential
{ $sel:base:Exponential :: Double
Core.base = Double
5.0e-2,
$sel:growth:Exponential :: Int
Core.growth = Int
2,
$sel:attempts:Exponential :: Int
Core.attempts = Int
5,
$sel:check:Exponential :: ServiceError -> Maybe Text
Core.check = forall {a}. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Bool
Prelude.otherwise = forall a. Maybe a
Prelude.Nothing
_AccessDeniedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_AccessDeniedException :: forall a. AsError a => Fold a ServiceError
_AccessDeniedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccessDeniedException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
403
_BaseException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_BaseException :: forall a. AsError a => Fold a ServiceError
_BaseException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"BaseException"
_ConflictException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ConflictException :: forall a. AsError a => Fold a ServiceError
_ConflictException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConflictException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_DisabledOperationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DisabledOperationException :: forall a. AsError a => Fold a ServiceError
_DisabledOperationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"DisabledOperationException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_InternalException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InternalException :: forall a. AsError a => Fold a ServiceError
_InternalException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500
_InvalidPaginationTokenException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
=
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidPaginationTokenException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_InvalidTypeException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidTypeException :: forall a. AsError a => Fold a ServiceError
_InvalidTypeException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidTypeException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_LimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_LimitExceededException :: forall a. AsError a => Fold a ServiceError
_LimitExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"LimitExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_ResourceAlreadyExistsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceAlreadyExistsException :: forall a. AsError a => Fold a ServiceError
_ResourceAlreadyExistsException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceAlreadyExistsException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_ResourceNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceNotFoundException :: forall a. AsError a => Fold a ServiceError
_ResourceNotFoundException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFoundException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_ValidationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ValidationException :: forall a. AsError a => Fold a ServiceError
_ValidationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ValidationException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400