{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.AutoScaling.Types
(
defaultService,
_ActiveInstanceRefreshNotFoundFault,
_AlreadyExistsFault,
_InstanceRefreshInProgressFault,
_InvalidNextToken,
_LimitExceededFault,
_ResourceContentionFault,
_ResourceInUseFault,
_ScalingActivityInProgressFault,
_ServiceLinkedRoleFailure,
AcceleratorManufacturer (..),
AcceleratorName (..),
AcceleratorType (..),
BareMetal (..),
BurstablePerformance (..),
CpuManufacturer (..),
InstanceGeneration (..),
InstanceMetadataEndpointState (..),
InstanceMetadataHttpTokensState (..),
InstanceRefreshStatus (..),
LifecycleState (..),
LocalStorage (..),
LocalStorageType (..),
MetricStatistic (..),
MetricType (..),
PredefinedLoadMetricType (..),
PredefinedMetricPairType (..),
PredefinedScalingMetricType (..),
PredictiveScalingMaxCapacityBreachBehavior (..),
PredictiveScalingMode (..),
RefreshStrategy (..),
ScalingActivityStatusCode (..),
WarmPoolState (..),
WarmPoolStatus (..),
AcceleratorCountRequest (..),
newAcceleratorCountRequest,
acceleratorCountRequest_max,
acceleratorCountRequest_min,
AcceleratorTotalMemoryMiBRequest (..),
newAcceleratorTotalMemoryMiBRequest,
acceleratorTotalMemoryMiBRequest_max,
acceleratorTotalMemoryMiBRequest_min,
Activity (..),
newActivity,
activity_autoScalingGroupARN,
activity_autoScalingGroupState,
activity_description,
activity_details,
activity_endTime,
activity_progress,
activity_statusMessage,
activity_activityId,
activity_autoScalingGroupName,
activity_cause,
activity_startTime,
activity_statusCode,
AdjustmentType (..),
newAdjustmentType,
adjustmentType_adjustmentType,
Alarm (..),
newAlarm,
alarm_alarmARN,
alarm_alarmName,
AutoScalingGroup (..),
newAutoScalingGroup,
autoScalingGroup_autoScalingGroupARN,
autoScalingGroup_capacityRebalance,
autoScalingGroup_context,
autoScalingGroup_defaultInstanceWarmup,
autoScalingGroup_desiredCapacityType,
autoScalingGroup_enabledMetrics,
autoScalingGroup_healthCheckGracePeriod,
autoScalingGroup_instances,
autoScalingGroup_launchConfigurationName,
autoScalingGroup_launchTemplate,
autoScalingGroup_loadBalancerNames,
autoScalingGroup_maxInstanceLifetime,
autoScalingGroup_mixedInstancesPolicy,
autoScalingGroup_newInstancesProtectedFromScaleIn,
autoScalingGroup_placementGroup,
autoScalingGroup_predictedCapacity,
autoScalingGroup_serviceLinkedRoleARN,
autoScalingGroup_status,
autoScalingGroup_suspendedProcesses,
autoScalingGroup_tags,
autoScalingGroup_targetGroupARNs,
autoScalingGroup_terminationPolicies,
autoScalingGroup_trafficSources,
autoScalingGroup_vPCZoneIdentifier,
autoScalingGroup_warmPoolConfiguration,
autoScalingGroup_warmPoolSize,
autoScalingGroup_autoScalingGroupName,
autoScalingGroup_minSize,
autoScalingGroup_maxSize,
autoScalingGroup_desiredCapacity,
autoScalingGroup_defaultCooldown,
autoScalingGroup_availabilityZones,
autoScalingGroup_healthCheckType,
autoScalingGroup_createdTime,
AutoScalingInstanceDetails (..),
newAutoScalingInstanceDetails,
autoScalingInstanceDetails_instanceType,
autoScalingInstanceDetails_launchConfigurationName,
autoScalingInstanceDetails_launchTemplate,
autoScalingInstanceDetails_weightedCapacity,
autoScalingInstanceDetails_instanceId,
autoScalingInstanceDetails_autoScalingGroupName,
autoScalingInstanceDetails_availabilityZone,
autoScalingInstanceDetails_lifecycleState,
autoScalingInstanceDetails_healthStatus,
autoScalingInstanceDetails_protectedFromScaleIn,
BaselineEbsBandwidthMbpsRequest (..),
newBaselineEbsBandwidthMbpsRequest,
baselineEbsBandwidthMbpsRequest_max,
baselineEbsBandwidthMbpsRequest_min,
BlockDeviceMapping (..),
newBlockDeviceMapping,
blockDeviceMapping_ebs,
blockDeviceMapping_noDevice,
blockDeviceMapping_virtualName,
blockDeviceMapping_deviceName,
CapacityForecast (..),
newCapacityForecast,
capacityForecast_timestamps,
capacityForecast_values,
CustomizedMetricSpecification (..),
newCustomizedMetricSpecification,
customizedMetricSpecification_dimensions,
customizedMetricSpecification_metricName,
customizedMetricSpecification_metrics,
customizedMetricSpecification_namespace,
customizedMetricSpecification_statistic,
customizedMetricSpecification_unit,
DesiredConfiguration (..),
newDesiredConfiguration,
desiredConfiguration_launchTemplate,
desiredConfiguration_mixedInstancesPolicy,
Ebs (..),
newEbs,
ebs_deleteOnTermination,
ebs_encrypted,
ebs_iops,
ebs_snapshotId,
ebs_throughput,
ebs_volumeSize,
ebs_volumeType,
EnabledMetric (..),
newEnabledMetric,
enabledMetric_granularity,
enabledMetric_metric,
FailedScheduledUpdateGroupActionRequest (..),
newFailedScheduledUpdateGroupActionRequest,
failedScheduledUpdateGroupActionRequest_errorCode,
failedScheduledUpdateGroupActionRequest_errorMessage,
failedScheduledUpdateGroupActionRequest_scheduledActionName,
Filter (..),
newFilter,
filter_values,
filter_name,
Instance (..),
newInstance,
instance_instanceType,
instance_launchConfigurationName,
instance_launchTemplate,
instance_weightedCapacity,
instance_instanceId,
instance_availabilityZone,
instance_lifecycleState,
instance_healthStatus,
instance_protectedFromScaleIn,
InstanceMetadataOptions (..),
newInstanceMetadataOptions,
instanceMetadataOptions_httpEndpoint,
instanceMetadataOptions_httpPutResponseHopLimit,
instanceMetadataOptions_httpTokens,
InstanceMonitoring (..),
newInstanceMonitoring,
instanceMonitoring_enabled,
InstanceRefresh (..),
newInstanceRefresh,
instanceRefresh_autoScalingGroupName,
instanceRefresh_desiredConfiguration,
instanceRefresh_endTime,
instanceRefresh_instanceRefreshId,
instanceRefresh_instancesToUpdate,
instanceRefresh_percentageComplete,
instanceRefresh_preferences,
instanceRefresh_progressDetails,
instanceRefresh_startTime,
instanceRefresh_status,
instanceRefresh_statusReason,
InstanceRefreshLivePoolProgress (..),
newInstanceRefreshLivePoolProgress,
instanceRefreshLivePoolProgress_instancesToUpdate,
instanceRefreshLivePoolProgress_percentageComplete,
InstanceRefreshProgressDetails (..),
newInstanceRefreshProgressDetails,
instanceRefreshProgressDetails_livePoolProgress,
instanceRefreshProgressDetails_warmPoolProgress,
InstanceRefreshWarmPoolProgress (..),
newInstanceRefreshWarmPoolProgress,
instanceRefreshWarmPoolProgress_instancesToUpdate,
instanceRefreshWarmPoolProgress_percentageComplete,
InstanceRequirements (..),
newInstanceRequirements,
instanceRequirements_acceleratorCount,
instanceRequirements_acceleratorManufacturers,
instanceRequirements_acceleratorNames,
instanceRequirements_acceleratorTotalMemoryMiB,
instanceRequirements_acceleratorTypes,
instanceRequirements_allowedInstanceTypes,
instanceRequirements_bareMetal,
instanceRequirements_baselineEbsBandwidthMbps,
instanceRequirements_burstablePerformance,
instanceRequirements_cpuManufacturers,
instanceRequirements_excludedInstanceTypes,
instanceRequirements_instanceGenerations,
instanceRequirements_localStorage,
instanceRequirements_localStorageTypes,
instanceRequirements_memoryGiBPerVCpu,
instanceRequirements_networkBandwidthGbps,
instanceRequirements_networkInterfaceCount,
instanceRequirements_onDemandMaxPricePercentageOverLowestPrice,
instanceRequirements_requireHibernateSupport,
instanceRequirements_spotMaxPricePercentageOverLowestPrice,
instanceRequirements_totalLocalStorageGB,
instanceRequirements_vCpuCount,
instanceRequirements_memoryMiB,
InstanceReusePolicy (..),
newInstanceReusePolicy,
instanceReusePolicy_reuseOnScaleIn,
InstancesDistribution (..),
newInstancesDistribution,
instancesDistribution_onDemandAllocationStrategy,
instancesDistribution_onDemandBaseCapacity,
instancesDistribution_onDemandPercentageAboveBaseCapacity,
instancesDistribution_spotAllocationStrategy,
instancesDistribution_spotInstancePools,
instancesDistribution_spotMaxPrice,
LaunchConfiguration (..),
newLaunchConfiguration,
launchConfiguration_associatePublicIpAddress,
launchConfiguration_blockDeviceMappings,
launchConfiguration_classicLinkVPCId,
launchConfiguration_classicLinkVPCSecurityGroups,
launchConfiguration_ebsOptimized,
launchConfiguration_iamInstanceProfile,
launchConfiguration_instanceMonitoring,
launchConfiguration_kernelId,
launchConfiguration_keyName,
launchConfiguration_launchConfigurationARN,
launchConfiguration_metadataOptions,
launchConfiguration_placementTenancy,
launchConfiguration_ramdiskId,
launchConfiguration_securityGroups,
launchConfiguration_spotPrice,
launchConfiguration_userData,
launchConfiguration_launchConfigurationName,
launchConfiguration_imageId,
launchConfiguration_instanceType,
launchConfiguration_createdTime,
LaunchTemplate (..),
newLaunchTemplate,
launchTemplate_launchTemplateSpecification,
launchTemplate_overrides,
LaunchTemplateOverrides (..),
newLaunchTemplateOverrides,
launchTemplateOverrides_instanceRequirements,
launchTemplateOverrides_instanceType,
launchTemplateOverrides_launchTemplateSpecification,
launchTemplateOverrides_weightedCapacity,
LaunchTemplateSpecification (..),
newLaunchTemplateSpecification,
launchTemplateSpecification_launchTemplateId,
launchTemplateSpecification_launchTemplateName,
launchTemplateSpecification_version,
LifecycleHook (..),
newLifecycleHook,
lifecycleHook_autoScalingGroupName,
lifecycleHook_defaultResult,
lifecycleHook_globalTimeout,
lifecycleHook_heartbeatTimeout,
lifecycleHook_lifecycleHookName,
lifecycleHook_lifecycleTransition,
lifecycleHook_notificationMetadata,
lifecycleHook_notificationTargetARN,
lifecycleHook_roleARN,
LifecycleHookSpecification (..),
newLifecycleHookSpecification,
lifecycleHookSpecification_defaultResult,
lifecycleHookSpecification_heartbeatTimeout,
lifecycleHookSpecification_notificationMetadata,
lifecycleHookSpecification_notificationTargetARN,
lifecycleHookSpecification_roleARN,
lifecycleHookSpecification_lifecycleHookName,
lifecycleHookSpecification_lifecycleTransition,
LoadBalancerState (..),
newLoadBalancerState,
loadBalancerState_loadBalancerName,
loadBalancerState_state,
LoadBalancerTargetGroupState (..),
newLoadBalancerTargetGroupState,
loadBalancerTargetGroupState_loadBalancerTargetGroupARN,
loadBalancerTargetGroupState_state,
LoadForecast (..),
newLoadForecast,
loadForecast_timestamps,
loadForecast_values,
loadForecast_metricSpecification,
MemoryGiBPerVCpuRequest (..),
newMemoryGiBPerVCpuRequest,
memoryGiBPerVCpuRequest_max,
memoryGiBPerVCpuRequest_min,
MemoryMiBRequest (..),
newMemoryMiBRequest,
memoryMiBRequest_max,
memoryMiBRequest_min,
Metric (..),
newMetric,
metric_dimensions,
metric_namespace,
metric_metricName,
MetricCollectionType (..),
newMetricCollectionType,
metricCollectionType_metric,
MetricDataQuery (..),
newMetricDataQuery,
metricDataQuery_expression,
metricDataQuery_label,
metricDataQuery_metricStat,
metricDataQuery_returnData,
metricDataQuery_id,
MetricDimension (..),
newMetricDimension,
metricDimension_name,
metricDimension_value,
MetricGranularityType (..),
newMetricGranularityType,
metricGranularityType_granularity,
MetricStat (..),
newMetricStat,
metricStat_unit,
metricStat_metric,
metricStat_stat,
MixedInstancesPolicy (..),
newMixedInstancesPolicy,
mixedInstancesPolicy_instancesDistribution,
mixedInstancesPolicy_launchTemplate,
NetworkBandwidthGbpsRequest (..),
newNetworkBandwidthGbpsRequest,
networkBandwidthGbpsRequest_max,
networkBandwidthGbpsRequest_min,
NetworkInterfaceCountRequest (..),
newNetworkInterfaceCountRequest,
networkInterfaceCountRequest_max,
networkInterfaceCountRequest_min,
NotificationConfiguration (..),
newNotificationConfiguration,
notificationConfiguration_autoScalingGroupName,
notificationConfiguration_notificationType,
notificationConfiguration_topicARN,
PredefinedMetricSpecification (..),
newPredefinedMetricSpecification,
predefinedMetricSpecification_resourceLabel,
predefinedMetricSpecification_predefinedMetricType,
PredictiveScalingConfiguration (..),
newPredictiveScalingConfiguration,
predictiveScalingConfiguration_maxCapacityBreachBehavior,
predictiveScalingConfiguration_maxCapacityBuffer,
predictiveScalingConfiguration_mode,
predictiveScalingConfiguration_schedulingBufferTime,
predictiveScalingConfiguration_metricSpecifications,
PredictiveScalingCustomizedCapacityMetric (..),
newPredictiveScalingCustomizedCapacityMetric,
predictiveScalingCustomizedCapacityMetric_metricDataQueries,
PredictiveScalingCustomizedLoadMetric (..),
newPredictiveScalingCustomizedLoadMetric,
predictiveScalingCustomizedLoadMetric_metricDataQueries,
PredictiveScalingCustomizedScalingMetric (..),
newPredictiveScalingCustomizedScalingMetric,
predictiveScalingCustomizedScalingMetric_metricDataQueries,
PredictiveScalingMetricSpecification (..),
newPredictiveScalingMetricSpecification,
predictiveScalingMetricSpecification_customizedCapacityMetricSpecification,
predictiveScalingMetricSpecification_customizedLoadMetricSpecification,
predictiveScalingMetricSpecification_customizedScalingMetricSpecification,
predictiveScalingMetricSpecification_predefinedLoadMetricSpecification,
predictiveScalingMetricSpecification_predefinedMetricPairSpecification,
predictiveScalingMetricSpecification_predefinedScalingMetricSpecification,
predictiveScalingMetricSpecification_targetValue,
PredictiveScalingPredefinedLoadMetric (..),
newPredictiveScalingPredefinedLoadMetric,
predictiveScalingPredefinedLoadMetric_resourceLabel,
predictiveScalingPredefinedLoadMetric_predefinedMetricType,
PredictiveScalingPredefinedMetricPair (..),
newPredictiveScalingPredefinedMetricPair,
predictiveScalingPredefinedMetricPair_resourceLabel,
predictiveScalingPredefinedMetricPair_predefinedMetricType,
PredictiveScalingPredefinedScalingMetric (..),
newPredictiveScalingPredefinedScalingMetric,
predictiveScalingPredefinedScalingMetric_resourceLabel,
predictiveScalingPredefinedScalingMetric_predefinedMetricType,
ProcessType (..),
newProcessType,
processType_processName,
RefreshPreferences (..),
newRefreshPreferences,
refreshPreferences_checkpointDelay,
refreshPreferences_checkpointPercentages,
refreshPreferences_instanceWarmup,
refreshPreferences_minHealthyPercentage,
refreshPreferences_skipMatching,
ScalingPolicy (..),
newScalingPolicy,
scalingPolicy_adjustmentType,
scalingPolicy_alarms,
scalingPolicy_autoScalingGroupName,
scalingPolicy_cooldown,
scalingPolicy_enabled,
scalingPolicy_estimatedInstanceWarmup,
scalingPolicy_metricAggregationType,
scalingPolicy_minAdjustmentMagnitude,
scalingPolicy_minAdjustmentStep,
scalingPolicy_policyARN,
scalingPolicy_policyName,
scalingPolicy_policyType,
scalingPolicy_predictiveScalingConfiguration,
scalingPolicy_scalingAdjustment,
scalingPolicy_stepAdjustments,
scalingPolicy_targetTrackingConfiguration,
ScalingProcessQuery (..),
newScalingProcessQuery,
scalingProcessQuery_scalingProcesses,
scalingProcessQuery_autoScalingGroupName,
ScheduledUpdateGroupAction (..),
newScheduledUpdateGroupAction,
scheduledUpdateGroupAction_autoScalingGroupName,
scheduledUpdateGroupAction_desiredCapacity,
scheduledUpdateGroupAction_endTime,
scheduledUpdateGroupAction_maxSize,
scheduledUpdateGroupAction_minSize,
scheduledUpdateGroupAction_recurrence,
scheduledUpdateGroupAction_scheduledActionARN,
scheduledUpdateGroupAction_scheduledActionName,
scheduledUpdateGroupAction_startTime,
scheduledUpdateGroupAction_time,
scheduledUpdateGroupAction_timeZone,
ScheduledUpdateGroupActionRequest (..),
newScheduledUpdateGroupActionRequest,
scheduledUpdateGroupActionRequest_desiredCapacity,
scheduledUpdateGroupActionRequest_endTime,
scheduledUpdateGroupActionRequest_maxSize,
scheduledUpdateGroupActionRequest_minSize,
scheduledUpdateGroupActionRequest_recurrence,
scheduledUpdateGroupActionRequest_startTime,
scheduledUpdateGroupActionRequest_timeZone,
scheduledUpdateGroupActionRequest_scheduledActionName,
StepAdjustment (..),
newStepAdjustment,
stepAdjustment_metricIntervalLowerBound,
stepAdjustment_metricIntervalUpperBound,
stepAdjustment_scalingAdjustment,
SuspendedProcess (..),
newSuspendedProcess,
suspendedProcess_processName,
suspendedProcess_suspensionReason,
Tag (..),
newTag,
tag_key,
tag_resourceId,
tag_resourceType,
tag_propagateAtLaunch,
tag_value,
TagDescription (..),
newTagDescription,
tagDescription_resourceId,
tagDescription_resourceType,
tagDescription_key,
tagDescription_propagateAtLaunch,
tagDescription_value,
TargetTrackingConfiguration (..),
newTargetTrackingConfiguration,
targetTrackingConfiguration_customizedMetricSpecification,
targetTrackingConfiguration_disableScaleIn,
targetTrackingConfiguration_predefinedMetricSpecification,
targetTrackingConfiguration_targetValue,
TargetTrackingMetricDataQuery (..),
newTargetTrackingMetricDataQuery,
targetTrackingMetricDataQuery_expression,
targetTrackingMetricDataQuery_label,
targetTrackingMetricDataQuery_metricStat,
targetTrackingMetricDataQuery_returnData,
targetTrackingMetricDataQuery_id,
TargetTrackingMetricStat (..),
newTargetTrackingMetricStat,
targetTrackingMetricStat_unit,
targetTrackingMetricStat_metric,
targetTrackingMetricStat_stat,
TotalLocalStorageGBRequest (..),
newTotalLocalStorageGBRequest,
totalLocalStorageGBRequest_max,
totalLocalStorageGBRequest_min,
TrafficSourceIdentifier (..),
newTrafficSourceIdentifier,
trafficSourceIdentifier_identifier,
TrafficSourceState (..),
newTrafficSourceState,
trafficSourceState_state,
trafficSourceState_trafficSource,
VCpuCountRequest (..),
newVCpuCountRequest,
vCpuCountRequest_max,
vCpuCountRequest_min,
WarmPoolConfiguration (..),
newWarmPoolConfiguration,
warmPoolConfiguration_instanceReusePolicy,
warmPoolConfiguration_maxGroupPreparedCapacity,
warmPoolConfiguration_minSize,
warmPoolConfiguration_poolState,
warmPoolConfiguration_status,
)
where
import Amazonka.AutoScaling.Types.AcceleratorCountRequest
import Amazonka.AutoScaling.Types.AcceleratorManufacturer
import Amazonka.AutoScaling.Types.AcceleratorName
import Amazonka.AutoScaling.Types.AcceleratorTotalMemoryMiBRequest
import Amazonka.AutoScaling.Types.AcceleratorType
import Amazonka.AutoScaling.Types.Activity
import Amazonka.AutoScaling.Types.AdjustmentType
import Amazonka.AutoScaling.Types.Alarm
import Amazonka.AutoScaling.Types.AutoScalingGroup
import Amazonka.AutoScaling.Types.AutoScalingInstanceDetails
import Amazonka.AutoScaling.Types.BareMetal
import Amazonka.AutoScaling.Types.BaselineEbsBandwidthMbpsRequest
import Amazonka.AutoScaling.Types.BlockDeviceMapping
import Amazonka.AutoScaling.Types.BurstablePerformance
import Amazonka.AutoScaling.Types.CapacityForecast
import Amazonka.AutoScaling.Types.CpuManufacturer
import Amazonka.AutoScaling.Types.CustomizedMetricSpecification
import Amazonka.AutoScaling.Types.DesiredConfiguration
import Amazonka.AutoScaling.Types.Ebs
import Amazonka.AutoScaling.Types.EnabledMetric
import Amazonka.AutoScaling.Types.FailedScheduledUpdateGroupActionRequest
import Amazonka.AutoScaling.Types.Filter
import Amazonka.AutoScaling.Types.Instance
import Amazonka.AutoScaling.Types.InstanceGeneration
import Amazonka.AutoScaling.Types.InstanceMetadataEndpointState
import Amazonka.AutoScaling.Types.InstanceMetadataHttpTokensState
import Amazonka.AutoScaling.Types.InstanceMetadataOptions
import Amazonka.AutoScaling.Types.InstanceMonitoring
import Amazonka.AutoScaling.Types.InstanceRefresh
import Amazonka.AutoScaling.Types.InstanceRefreshLivePoolProgress
import Amazonka.AutoScaling.Types.InstanceRefreshProgressDetails
import Amazonka.AutoScaling.Types.InstanceRefreshStatus
import Amazonka.AutoScaling.Types.InstanceRefreshWarmPoolProgress
import Amazonka.AutoScaling.Types.InstanceRequirements
import Amazonka.AutoScaling.Types.InstanceReusePolicy
import Amazonka.AutoScaling.Types.InstancesDistribution
import Amazonka.AutoScaling.Types.LaunchConfiguration
import Amazonka.AutoScaling.Types.LaunchTemplate
import Amazonka.AutoScaling.Types.LaunchTemplateOverrides
import Amazonka.AutoScaling.Types.LaunchTemplateSpecification
import Amazonka.AutoScaling.Types.LifecycleHook
import Amazonka.AutoScaling.Types.LifecycleHookSpecification
import Amazonka.AutoScaling.Types.LifecycleState
import Amazonka.AutoScaling.Types.LoadBalancerState
import Amazonka.AutoScaling.Types.LoadBalancerTargetGroupState
import Amazonka.AutoScaling.Types.LoadForecast
import Amazonka.AutoScaling.Types.LocalStorage
import Amazonka.AutoScaling.Types.LocalStorageType
import Amazonka.AutoScaling.Types.MemoryGiBPerVCpuRequest
import Amazonka.AutoScaling.Types.MemoryMiBRequest
import Amazonka.AutoScaling.Types.Metric
import Amazonka.AutoScaling.Types.MetricCollectionType
import Amazonka.AutoScaling.Types.MetricDataQuery
import Amazonka.AutoScaling.Types.MetricDimension
import Amazonka.AutoScaling.Types.MetricGranularityType
import Amazonka.AutoScaling.Types.MetricStat
import Amazonka.AutoScaling.Types.MetricStatistic
import Amazonka.AutoScaling.Types.MetricType
import Amazonka.AutoScaling.Types.MixedInstancesPolicy
import Amazonka.AutoScaling.Types.NetworkBandwidthGbpsRequest
import Amazonka.AutoScaling.Types.NetworkInterfaceCountRequest
import Amazonka.AutoScaling.Types.NotificationConfiguration
import Amazonka.AutoScaling.Types.PredefinedLoadMetricType
import Amazonka.AutoScaling.Types.PredefinedMetricPairType
import Amazonka.AutoScaling.Types.PredefinedMetricSpecification
import Amazonka.AutoScaling.Types.PredefinedScalingMetricType
import Amazonka.AutoScaling.Types.PredictiveScalingConfiguration
import Amazonka.AutoScaling.Types.PredictiveScalingCustomizedCapacityMetric
import Amazonka.AutoScaling.Types.PredictiveScalingCustomizedLoadMetric
import Amazonka.AutoScaling.Types.PredictiveScalingCustomizedScalingMetric
import Amazonka.AutoScaling.Types.PredictiveScalingMaxCapacityBreachBehavior
import Amazonka.AutoScaling.Types.PredictiveScalingMetricSpecification
import Amazonka.AutoScaling.Types.PredictiveScalingMode
import Amazonka.AutoScaling.Types.PredictiveScalingPredefinedLoadMetric
import Amazonka.AutoScaling.Types.PredictiveScalingPredefinedMetricPair
import Amazonka.AutoScaling.Types.PredictiveScalingPredefinedScalingMetric
import Amazonka.AutoScaling.Types.ProcessType
import Amazonka.AutoScaling.Types.RefreshPreferences
import Amazonka.AutoScaling.Types.RefreshStrategy
import Amazonka.AutoScaling.Types.ScalingActivityStatusCode
import Amazonka.AutoScaling.Types.ScalingPolicy
import Amazonka.AutoScaling.Types.ScalingProcessQuery
import Amazonka.AutoScaling.Types.ScheduledUpdateGroupAction
import Amazonka.AutoScaling.Types.ScheduledUpdateGroupActionRequest
import Amazonka.AutoScaling.Types.StepAdjustment
import Amazonka.AutoScaling.Types.SuspendedProcess
import Amazonka.AutoScaling.Types.Tag
import Amazonka.AutoScaling.Types.TagDescription
import Amazonka.AutoScaling.Types.TargetTrackingConfiguration
import Amazonka.AutoScaling.Types.TargetTrackingMetricDataQuery
import Amazonka.AutoScaling.Types.TargetTrackingMetricStat
import Amazonka.AutoScaling.Types.TotalLocalStorageGBRequest
import Amazonka.AutoScaling.Types.TrafficSourceIdentifier
import Amazonka.AutoScaling.Types.TrafficSourceState
import Amazonka.AutoScaling.Types.VCpuCountRequest
import Amazonka.AutoScaling.Types.WarmPoolConfiguration
import Amazonka.AutoScaling.Types.WarmPoolState
import Amazonka.AutoScaling.Types.WarmPoolStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
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
"AutoScaling",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"autoscaling",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"autoscaling",
$sel:version:Service :: ByteString
Core.version = ByteString
"2011-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.parseXMLError Abbrev
"AutoScaling",
$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
_ActiveInstanceRefreshNotFoundFault :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ActiveInstanceRefreshNotFoundFault :: forall a. AsError a => Fold a ServiceError
_ActiveInstanceRefreshNotFoundFault =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ActiveInstanceRefreshNotFound"
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
_AlreadyExistsFault :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_AlreadyExistsFault :: forall a. AsError a => Fold a ServiceError
_AlreadyExistsFault =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AlreadyExists"
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
_InstanceRefreshInProgressFault :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InstanceRefreshInProgressFault :: forall a. AsError a => Fold a ServiceError
_InstanceRefreshInProgressFault =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InstanceRefreshInProgress"
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
_InvalidNextToken :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidNextToken :: forall a. AsError a => Fold a ServiceError
_InvalidNextToken =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidNextToken"
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
_LimitExceededFault :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_LimitExceededFault :: forall a. AsError a => Fold a ServiceError
_LimitExceededFault =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"LimitExceeded"
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
_ResourceContentionFault :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceContentionFault :: forall a. AsError a => Fold a ServiceError
_ResourceContentionFault =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceContention"
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
_ResourceInUseFault :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceInUseFault :: forall a. AsError a => Fold a ServiceError
_ResourceInUseFault =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceInUse"
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
_ScalingActivityInProgressFault :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ScalingActivityInProgressFault :: forall a. AsError a => Fold a ServiceError
_ScalingActivityInProgressFault =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ScalingActivityInProgress"
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
_ServiceLinkedRoleFailure :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ServiceLinkedRoleFailure :: forall a. AsError a => Fold a ServiceError
_ServiceLinkedRoleFailure =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceLinkedRoleFailure"
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