Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- Service Configuration
- Errors
- Waiters
- Operations
- DescribeMetricCollectionTypes
- DescribeLoadBalancers
- PutNotificationConfiguration
- DescribeTags (Paginated)
- DeleteNotificationConfiguration
- PutScalingPolicy
- AttachLoadBalancerTargetGroups
- DeleteLaunchConfiguration
- EnterStandby
- SuspendProcesses
- SetInstanceHealth
- ExitStandby
- DescribeTerminationPolicyTypes
- DescribeAutoScalingInstances (Paginated)
- RecordLifecycleActionHeartbeat
- DisableMetricsCollection
- DetachInstances
- EnableMetricsCollection
- DescribeScalingProcessTypes
- DeleteTags
- DetachLoadBalancerTargetGroups
- DescribeLifecycleHooks
- DescribeAutoScalingGroups (Paginated)
- DeleteScheduledAction
- SetDesiredCapacity
- DetachLoadBalancers
- DescribeAutoScalingNotificationTypes
- DescribeScheduledActions (Paginated)
- CreateOrUpdateTags
- CompleteLifecycleAction
- DeletePolicy
- AttachInstances
- UpdateAutoScalingGroup
- DeleteAutoScalingGroup
- PutLifecycleHook
- DeleteLifecycleHook
- ResumeProcesses
- ExecutePolicy
- DescribeAccountLimits
- AttachLoadBalancers
- TerminateInstanceInAutoScalingGroup
- DescribeLoadBalancerTargetGroups
- PutScheduledUpdateGroupAction
- SetInstanceProtection
- DescribePolicies (Paginated)
- DescribeLaunchConfigurations (Paginated)
- DescribeScalingActivities (Paginated)
- DescribeNotificationConfigurations (Paginated)
- DescribeLifecycleHookTypes
- DescribeAdjustmentTypes
- CreateAutoScalingGroup
- CreateLaunchConfiguration
- Types
- LifecycleState
- MetricStatistic
- MetricType
- ScalingActivityStatusCode
- Activity
- AdjustmentType
- Alarm
- AutoScalingGroup
- AutoScalingInstanceDetails
- BlockDeviceMapping
- CustomizedMetricSpecification
- EBS
- EnabledMetric
- Filter
- Instance
- InstanceMonitoring
- LaunchConfiguration
- LaunchTemplateSpecification
- LifecycleHook
- LifecycleHookSpecification
- LoadBalancerState
- LoadBalancerTargetGroupState
- MetricCollectionType
- MetricDimension
- MetricGranularityType
- NotificationConfiguration
- PredefinedMetricSpecification
- ProcessType
- ScalingPolicy
- ScalingProcessQuery
- ScheduledUpdateGroupAction
- StepAdjustment
- SuspendedProcess
- Tag
- TagDescription
- TargetTrackingConfiguration
Amazon EC2 Auto Scaling
Amazon EC2 Auto Scaling is designed to automatically launch or terminate EC2 instances based on user-defined policies, schedules, and health checks. Use this service in conjunction with the AWS Auto Scaling, Amazon CloudWatch, and Elastic Load Balancing services.
- autoScaling :: Service
- _AlreadyExistsFault :: AsError a => Getting (First ServiceError) a ServiceError
- _LimitExceededFault :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceInUseFault :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidNextToken :: AsError a => Getting (First ServiceError) a ServiceError
- _ScalingActivityInProgressFault :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceContentionFault :: AsError a => Getting (First ServiceError) a ServiceError
- _ServiceLinkedRoleFailure :: AsError a => Getting (First ServiceError) a ServiceError
- module Network.AWS.AutoScaling.DescribeMetricCollectionTypes
- module Network.AWS.AutoScaling.DescribeLoadBalancers
- module Network.AWS.AutoScaling.PutNotificationConfiguration
- module Network.AWS.AutoScaling.DescribeTags
- module Network.AWS.AutoScaling.DeleteNotificationConfiguration
- module Network.AWS.AutoScaling.PutScalingPolicy
- module Network.AWS.AutoScaling.AttachLoadBalancerTargetGroups
- module Network.AWS.AutoScaling.DeleteLaunchConfiguration
- module Network.AWS.AutoScaling.EnterStandby
- module Network.AWS.AutoScaling.SuspendProcesses
- module Network.AWS.AutoScaling.SetInstanceHealth
- module Network.AWS.AutoScaling.ExitStandby
- module Network.AWS.AutoScaling.DescribeTerminationPolicyTypes
- module Network.AWS.AutoScaling.DescribeAutoScalingInstances
- module Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat
- module Network.AWS.AutoScaling.DisableMetricsCollection
- module Network.AWS.AutoScaling.DetachInstances
- module Network.AWS.AutoScaling.EnableMetricsCollection
- module Network.AWS.AutoScaling.DescribeScalingProcessTypes
- module Network.AWS.AutoScaling.DeleteTags
- module Network.AWS.AutoScaling.DetachLoadBalancerTargetGroups
- module Network.AWS.AutoScaling.DescribeLifecycleHooks
- module Network.AWS.AutoScaling.DescribeAutoScalingGroups
- module Network.AWS.AutoScaling.DeleteScheduledAction
- module Network.AWS.AutoScaling.SetDesiredCapacity
- module Network.AWS.AutoScaling.DetachLoadBalancers
- module Network.AWS.AutoScaling.DescribeAutoScalingNotificationTypes
- module Network.AWS.AutoScaling.DescribeScheduledActions
- module Network.AWS.AutoScaling.CreateOrUpdateTags
- module Network.AWS.AutoScaling.CompleteLifecycleAction
- module Network.AWS.AutoScaling.DeletePolicy
- module Network.AWS.AutoScaling.AttachInstances
- module Network.AWS.AutoScaling.UpdateAutoScalingGroup
- module Network.AWS.AutoScaling.DeleteAutoScalingGroup
- module Network.AWS.AutoScaling.PutLifecycleHook
- module Network.AWS.AutoScaling.DeleteLifecycleHook
- module Network.AWS.AutoScaling.ResumeProcesses
- module Network.AWS.AutoScaling.ExecutePolicy
- module Network.AWS.AutoScaling.DescribeAccountLimits
- module Network.AWS.AutoScaling.AttachLoadBalancers
- module Network.AWS.AutoScaling.TerminateInstanceInAutoScalingGroup
- module Network.AWS.AutoScaling.DescribeLoadBalancerTargetGroups
- module Network.AWS.AutoScaling.PutScheduledUpdateGroupAction
- module Network.AWS.AutoScaling.SetInstanceProtection
- module Network.AWS.AutoScaling.DescribePolicies
- module Network.AWS.AutoScaling.DescribeLaunchConfigurations
- module Network.AWS.AutoScaling.DescribeScalingActivities
- module Network.AWS.AutoScaling.DescribeNotificationConfigurations
- module Network.AWS.AutoScaling.DescribeLifecycleHookTypes
- module Network.AWS.AutoScaling.DescribeAdjustmentTypes
- module Network.AWS.AutoScaling.CreateAutoScalingGroup
- module Network.AWS.AutoScaling.CreateLaunchConfiguration
- data LifecycleState
- data MetricStatistic
- = Average
- | Maximum
- | Minimum
- | SampleCount
- | Sum
- data MetricType
- data ScalingActivityStatusCode
- data Activity
- activity :: Text -> Text -> Text -> UTCTime -> ScalingActivityStatusCode -> Activity
- aProgress :: Lens' Activity (Maybe Int)
- aStatusMessage :: Lens' Activity (Maybe Text)
- aEndTime :: Lens' Activity (Maybe UTCTime)
- aDetails :: Lens' Activity (Maybe Text)
- aDescription :: Lens' Activity (Maybe Text)
- aActivityId :: Lens' Activity Text
- aAutoScalingGroupName :: Lens' Activity Text
- aCause :: Lens' Activity Text
- aStartTime :: Lens' Activity UTCTime
- aStatusCode :: Lens' Activity ScalingActivityStatusCode
- data AdjustmentType
- adjustmentType :: AdjustmentType
- atAdjustmentType :: Lens' AdjustmentType (Maybe Text)
- data Alarm
- alarm :: Alarm
- aAlarmName :: Lens' Alarm (Maybe Text)
- aAlarmARN :: Lens' Alarm (Maybe Text)
- data AutoScalingGroup
- autoScalingGroup :: Text -> Int -> Int -> Int -> Int -> NonEmpty Text -> Text -> UTCTime -> AutoScalingGroup
- asgStatus :: Lens' AutoScalingGroup (Maybe Text)
- asgTerminationPolicies :: Lens' AutoScalingGroup [Text]
- asgHealthCheckGracePeriod :: Lens' AutoScalingGroup (Maybe Int)
- asgServiceLinkedRoleARN :: Lens' AutoScalingGroup (Maybe Text)
- asgNewInstancesProtectedFromScaleIn :: Lens' AutoScalingGroup (Maybe Bool)
- asgVPCZoneIdentifier :: Lens' AutoScalingGroup (Maybe Text)
- asgTargetGroupARNs :: Lens' AutoScalingGroup [Text]
- asgEnabledMetrics :: Lens' AutoScalingGroup [EnabledMetric]
- asgLaunchConfigurationName :: Lens' AutoScalingGroup (Maybe Text)
- asgInstances :: Lens' AutoScalingGroup [Instance]
- asgLaunchTemplate :: Lens' AutoScalingGroup (Maybe LaunchTemplateSpecification)
- asgAutoScalingGroupARN :: Lens' AutoScalingGroup (Maybe Text)
- asgPlacementGroup :: Lens' AutoScalingGroup (Maybe Text)
- asgSuspendedProcesses :: Lens' AutoScalingGroup [SuspendedProcess]
- asgLoadBalancerNames :: Lens' AutoScalingGroup [Text]
- asgTags :: Lens' AutoScalingGroup [TagDescription]
- asgAutoScalingGroupName :: Lens' AutoScalingGroup Text
- asgMinSize :: Lens' AutoScalingGroup Int
- asgMaxSize :: Lens' AutoScalingGroup Int
- asgDesiredCapacity :: Lens' AutoScalingGroup Int
- asgDefaultCooldown :: Lens' AutoScalingGroup Int
- asgAvailabilityZones :: Lens' AutoScalingGroup (NonEmpty Text)
- asgHealthCheckType :: Lens' AutoScalingGroup Text
- asgCreatedTime :: Lens' AutoScalingGroup UTCTime
- data AutoScalingInstanceDetails
- autoScalingInstanceDetails :: Text -> Text -> Text -> Text -> Text -> Bool -> AutoScalingInstanceDetails
- asidLaunchConfigurationName :: Lens' AutoScalingInstanceDetails (Maybe Text)
- asidLaunchTemplate :: Lens' AutoScalingInstanceDetails (Maybe LaunchTemplateSpecification)
- asidInstanceId :: Lens' AutoScalingInstanceDetails Text
- asidAutoScalingGroupName :: Lens' AutoScalingInstanceDetails Text
- asidAvailabilityZone :: Lens' AutoScalingInstanceDetails Text
- asidLifecycleState :: Lens' AutoScalingInstanceDetails Text
- asidHealthStatus :: Lens' AutoScalingInstanceDetails Text
- asidProtectedFromScaleIn :: Lens' AutoScalingInstanceDetails Bool
- data BlockDeviceMapping
- blockDeviceMapping :: Text -> BlockDeviceMapping
- bdmVirtualName :: Lens' BlockDeviceMapping (Maybe Text)
- bdmNoDevice :: Lens' BlockDeviceMapping (Maybe Bool)
- bdmEBS :: Lens' BlockDeviceMapping (Maybe EBS)
- bdmDeviceName :: Lens' BlockDeviceMapping Text
- data CustomizedMetricSpecification
- customizedMetricSpecification :: Text -> Text -> MetricStatistic -> CustomizedMetricSpecification
- cmsDimensions :: Lens' CustomizedMetricSpecification [MetricDimension]
- cmsUnit :: Lens' CustomizedMetricSpecification (Maybe Text)
- cmsMetricName :: Lens' CustomizedMetricSpecification Text
- cmsNamespace :: Lens' CustomizedMetricSpecification Text
- cmsStatistic :: Lens' CustomizedMetricSpecification MetricStatistic
- data EBS
- ebs :: EBS
- ebsDeleteOnTermination :: Lens' EBS (Maybe Bool)
- ebsVolumeSize :: Lens' EBS (Maybe Natural)
- ebsIOPS :: Lens' EBS (Maybe Natural)
- ebsEncrypted :: Lens' EBS (Maybe Bool)
- ebsVolumeType :: Lens' EBS (Maybe Text)
- ebsSnapshotId :: Lens' EBS (Maybe Text)
- data EnabledMetric
- enabledMetric :: EnabledMetric
- emGranularity :: Lens' EnabledMetric (Maybe Text)
- emMetric :: Lens' EnabledMetric (Maybe Text)
- data Filter
- filter' :: Text -> Filter
- fValues :: Lens' Filter [Text]
- fName :: Lens' Filter Text
- data Instance
- instance' :: Text -> Text -> LifecycleState -> Text -> Bool -> Instance
- iLaunchConfigurationName :: Lens' Instance (Maybe Text)
- iLaunchTemplate :: Lens' Instance (Maybe LaunchTemplateSpecification)
- iInstanceId :: Lens' Instance Text
- iAvailabilityZone :: Lens' Instance Text
- iLifecycleState :: Lens' Instance LifecycleState
- iHealthStatus :: Lens' Instance Text
- iProtectedFromScaleIn :: Lens' Instance Bool
- data InstanceMonitoring
- instanceMonitoring :: InstanceMonitoring
- imEnabled :: Lens' InstanceMonitoring (Maybe Bool)
- data LaunchConfiguration
- launchConfiguration :: Text -> Text -> Text -> UTCTime -> LaunchConfiguration
- lcAssociatePublicIPAddress :: Lens' LaunchConfiguration (Maybe Bool)
- lcSecurityGroups :: Lens' LaunchConfiguration [Text]
- lcSpotPrice :: Lens' LaunchConfiguration (Maybe Text)
- lcInstanceMonitoring :: Lens' LaunchConfiguration (Maybe InstanceMonitoring)
- lcKeyName :: Lens' LaunchConfiguration (Maybe Text)
- lcClassicLinkVPCSecurityGroups :: Lens' LaunchConfiguration [Text]
- lcRAMDiskId :: Lens' LaunchConfiguration (Maybe Text)
- lcKernelId :: Lens' LaunchConfiguration (Maybe Text)
- lcEBSOptimized :: Lens' LaunchConfiguration (Maybe Bool)
- lcUserData :: Lens' LaunchConfiguration (Maybe Text)
- lcClassicLinkVPCId :: Lens' LaunchConfiguration (Maybe Text)
- lcIAMInstanceProfile :: Lens' LaunchConfiguration (Maybe Text)
- lcLaunchConfigurationARN :: Lens' LaunchConfiguration (Maybe Text)
- lcPlacementTenancy :: Lens' LaunchConfiguration (Maybe Text)
- lcBlockDeviceMappings :: Lens' LaunchConfiguration [BlockDeviceMapping]
- lcLaunchConfigurationName :: Lens' LaunchConfiguration Text
- lcImageId :: Lens' LaunchConfiguration Text
- lcInstanceType :: Lens' LaunchConfiguration Text
- lcCreatedTime :: Lens' LaunchConfiguration UTCTime
- data LaunchTemplateSpecification
- launchTemplateSpecification :: LaunchTemplateSpecification
- ltsLaunchTemplateName :: Lens' LaunchTemplateSpecification (Maybe Text)
- ltsLaunchTemplateId :: Lens' LaunchTemplateSpecification (Maybe Text)
- ltsVersion :: Lens' LaunchTemplateSpecification (Maybe Text)
- data LifecycleHook
- lifecycleHook :: LifecycleHook
- lhDefaultResult :: Lens' LifecycleHook (Maybe Text)
- lhLifecycleHookName :: Lens' LifecycleHook (Maybe Text)
- lhHeartbeatTimeout :: Lens' LifecycleHook (Maybe Int)
- lhAutoScalingGroupName :: Lens' LifecycleHook (Maybe Text)
- lhNotificationMetadata :: Lens' LifecycleHook (Maybe Text)
- lhGlobalTimeout :: Lens' LifecycleHook (Maybe Int)
- lhNotificationTargetARN :: Lens' LifecycleHook (Maybe Text)
- lhLifecycleTransition :: Lens' LifecycleHook (Maybe Text)
- lhRoleARN :: Lens' LifecycleHook (Maybe Text)
- data LifecycleHookSpecification
- lifecycleHookSpecification :: Text -> Text -> LifecycleHookSpecification
- lhsDefaultResult :: Lens' LifecycleHookSpecification (Maybe Text)
- lhsHeartbeatTimeout :: Lens' LifecycleHookSpecification (Maybe Int)
- lhsNotificationMetadata :: Lens' LifecycleHookSpecification (Maybe Text)
- lhsNotificationTargetARN :: Lens' LifecycleHookSpecification (Maybe Text)
- lhsRoleARN :: Lens' LifecycleHookSpecification (Maybe Text)
- lhsLifecycleHookName :: Lens' LifecycleHookSpecification Text
- lhsLifecycleTransition :: Lens' LifecycleHookSpecification Text
- data LoadBalancerState
- loadBalancerState :: LoadBalancerState
- lbsState :: Lens' LoadBalancerState (Maybe Text)
- lbsLoadBalancerName :: Lens' LoadBalancerState (Maybe Text)
- data LoadBalancerTargetGroupState
- loadBalancerTargetGroupState :: LoadBalancerTargetGroupState
- lbtgsState :: Lens' LoadBalancerTargetGroupState (Maybe Text)
- lbtgsLoadBalancerTargetGroupARN :: Lens' LoadBalancerTargetGroupState (Maybe Text)
- data MetricCollectionType
- metricCollectionType :: MetricCollectionType
- mctMetric :: Lens' MetricCollectionType (Maybe Text)
- data MetricDimension
- metricDimension :: Text -> Text -> MetricDimension
- mdName :: Lens' MetricDimension Text
- mdValue :: Lens' MetricDimension Text
- data MetricGranularityType
- metricGranularityType :: MetricGranularityType
- mgtGranularity :: Lens' MetricGranularityType (Maybe Text)
- data NotificationConfiguration
- notificationConfiguration :: NotificationConfiguration
- ncTopicARN :: Lens' NotificationConfiguration (Maybe Text)
- ncAutoScalingGroupName :: Lens' NotificationConfiguration (Maybe Text)
- ncNotificationType :: Lens' NotificationConfiguration (Maybe Text)
- data PredefinedMetricSpecification
- predefinedMetricSpecification :: MetricType -> PredefinedMetricSpecification
- pmsResourceLabel :: Lens' PredefinedMetricSpecification (Maybe Text)
- pmsPredefinedMetricType :: Lens' PredefinedMetricSpecification MetricType
- data ProcessType
- processType :: Text -> ProcessType
- ptProcessName :: Lens' ProcessType Text
- data ScalingPolicy
- scalingPolicy :: ScalingPolicy
- sMinAdjustmentStep :: Lens' ScalingPolicy (Maybe Int)
- sEstimatedInstanceWarmup :: Lens' ScalingPolicy (Maybe Int)
- sPolicyName :: Lens' ScalingPolicy (Maybe Text)
- sPolicyType :: Lens' ScalingPolicy (Maybe Text)
- sStepAdjustments :: Lens' ScalingPolicy [StepAdjustment]
- sTargetTrackingConfiguration :: Lens' ScalingPolicy (Maybe TargetTrackingConfiguration)
- sAdjustmentType :: Lens' ScalingPolicy (Maybe Text)
- sAutoScalingGroupName :: Lens' ScalingPolicy (Maybe Text)
- sScalingAdjustment :: Lens' ScalingPolicy (Maybe Int)
- sCooldown :: Lens' ScalingPolicy (Maybe Int)
- sPolicyARN :: Lens' ScalingPolicy (Maybe Text)
- sAlarms :: Lens' ScalingPolicy [Alarm]
- sMetricAggregationType :: Lens' ScalingPolicy (Maybe Text)
- sMinAdjustmentMagnitude :: Lens' ScalingPolicy (Maybe Int)
- data ScalingProcessQuery
- scalingProcessQuery :: Text -> ScalingProcessQuery
- spqScalingProcesses :: Lens' ScalingProcessQuery [Text]
- spqAutoScalingGroupName :: Lens' ScalingProcessQuery Text
- data ScheduledUpdateGroupAction
- scheduledUpdateGroupAction :: ScheduledUpdateGroupAction
- sugaScheduledActionARN :: Lens' ScheduledUpdateGroupAction (Maybe Text)
- sugaStartTime :: Lens' ScheduledUpdateGroupAction (Maybe UTCTime)
- sugaTime :: Lens' ScheduledUpdateGroupAction (Maybe UTCTime)
- sugaScheduledActionName :: Lens' ScheduledUpdateGroupAction (Maybe Text)
- sugaMaxSize :: Lens' ScheduledUpdateGroupAction (Maybe Int)
- sugaRecurrence :: Lens' ScheduledUpdateGroupAction (Maybe Text)
- sugaDesiredCapacity :: Lens' ScheduledUpdateGroupAction (Maybe Int)
- sugaMinSize :: Lens' ScheduledUpdateGroupAction (Maybe Int)
- sugaAutoScalingGroupName :: Lens' ScheduledUpdateGroupAction (Maybe Text)
- sugaEndTime :: Lens' ScheduledUpdateGroupAction (Maybe UTCTime)
- data StepAdjustment
- stepAdjustment :: Int -> StepAdjustment
- saMetricIntervalLowerBound :: Lens' StepAdjustment (Maybe Double)
- saMetricIntervalUpperBound :: Lens' StepAdjustment (Maybe Double)
- saScalingAdjustment :: Lens' StepAdjustment Int
- data SuspendedProcess
- suspendedProcess :: SuspendedProcess
- spProcessName :: Lens' SuspendedProcess (Maybe Text)
- spSuspensionReason :: Lens' SuspendedProcess (Maybe Text)
- data Tag
- tag :: Text -> Text -> Text -> Bool -> Text -> Tag
- tagKey :: Lens' Tag Text
- tagResourceId :: Lens' Tag Text
- tagResourceType :: Lens' Tag Text
- tagPropagateAtLaunch :: Lens' Tag Bool
- tagValue :: Lens' Tag Text
- data TagDescription
- tagDescription :: Text -> Text -> Text -> Bool -> Text -> TagDescription
- tdResourceId :: Lens' TagDescription Text
- tdResourceType :: Lens' TagDescription Text
- tdKey :: Lens' TagDescription Text
- tdPropagateAtLaunch :: Lens' TagDescription Bool
- tdValue :: Lens' TagDescription Text
- data TargetTrackingConfiguration
- targetTrackingConfiguration :: Double -> TargetTrackingConfiguration
- ttcPredefinedMetricSpecification :: Lens' TargetTrackingConfiguration (Maybe PredefinedMetricSpecification)
- ttcCustomizedMetricSpecification :: Lens' TargetTrackingConfiguration (Maybe CustomizedMetricSpecification)
- ttcDisableScaleIn :: Lens' TargetTrackingConfiguration (Maybe Bool)
- ttcTargetValue :: Lens' TargetTrackingConfiguration Double
Service Configuration
autoScaling :: Service Source #
API version 2011-01-01
of the Amazon Auto Scaling SDK configuration.
Errors
Error matchers are designed for use with the functions provided by
Control.Exception.Lens.
This allows catching (and rethrowing) service specific errors returned
by AutoScaling
.
AlreadyExistsFault
_AlreadyExistsFault :: AsError a => Getting (First ServiceError) a ServiceError Source #
You already have an Auto Scaling group or launch configuration with this name.
LimitExceededFault
_LimitExceededFault :: AsError a => Getting (First ServiceError) a ServiceError Source #
You have already reached a limit for your Auto Scaling resources (for example, groups, launch configurations, or lifecycle hooks). For more information, see DescribeAccountLimits
.
ResourceInUseFault
_ResourceInUseFault :: AsError a => Getting (First ServiceError) a ServiceError Source #
The operation can't be performed because the resource is in use.
InvalidNextToken
_InvalidNextToken :: AsError a => Getting (First ServiceError) a ServiceError Source #
The NextToken
value is not valid.
ScalingActivityInProgressFault
_ScalingActivityInProgressFault :: AsError a => Getting (First ServiceError) a ServiceError Source #
The operation can't be performed because there are scaling activities in progress.
ResourceContentionFault
_ResourceContentionFault :: AsError a => Getting (First ServiceError) a ServiceError Source #
You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load balancer).
ServiceLinkedRoleFailure
_ServiceLinkedRoleFailure :: AsError a => Getting (First ServiceError) a ServiceError Source #
The service-linked role is not yet ready for use.
Waiters
Waiters poll by repeatedly sending a request until some remote success condition
configured by the Wait
specification is fulfilled. The Wait
specification
determines how many attempts should be made, in addition to delay and retry strategies.
Operations
Some AWS operations return results that are incomplete and require subsequent
requests in order to obtain the entire result set. The process of sending
subsequent requests to continue where a previous request left off is called
pagination. For example, the ListObjects
operation of Amazon S3 returns up to
1000 objects at a time, and you must send subsequent requests with the
appropriate Marker in order to retrieve the next page of results.
Operations that have an AWSPager
instance can transparently perform subsequent
requests, correctly setting Markers and other request facets to iterate through
the entire result set of a truncated API operation. Operations which support
this have an additional note in the documentation.
Many operations have the ability to filter results on the server side. See the individual operation parameters for details.
DescribeMetricCollectionTypes
DescribeLoadBalancers
PutNotificationConfiguration
DescribeTags (Paginated)
DeleteNotificationConfiguration
PutScalingPolicy
AttachLoadBalancerTargetGroups
DeleteLaunchConfiguration
EnterStandby
SuspendProcesses
SetInstanceHealth
ExitStandby
DescribeTerminationPolicyTypes
DescribeAutoScalingInstances (Paginated)
RecordLifecycleActionHeartbeat
DisableMetricsCollection
DetachInstances
EnableMetricsCollection
DescribeScalingProcessTypes
DeleteTags
DetachLoadBalancerTargetGroups
DescribeLifecycleHooks
DescribeAutoScalingGroups (Paginated)
DeleteScheduledAction
SetDesiredCapacity
DetachLoadBalancers
DescribeAutoScalingNotificationTypes
DescribeScheduledActions (Paginated)
CreateOrUpdateTags
CompleteLifecycleAction
DeletePolicy
AttachInstances
UpdateAutoScalingGroup
DeleteAutoScalingGroup
PutLifecycleHook
DeleteLifecycleHook
ResumeProcesses
ExecutePolicy
DescribeAccountLimits
AttachLoadBalancers
TerminateInstanceInAutoScalingGroup
DescribeLoadBalancerTargetGroups
PutScheduledUpdateGroupAction
SetInstanceProtection
DescribePolicies (Paginated)
DescribeLaunchConfigurations (Paginated)
DescribeScalingActivities (Paginated)
DescribeNotificationConfigurations (Paginated)
DescribeLifecycleHookTypes
DescribeAdjustmentTypes
CreateAutoScalingGroup
CreateLaunchConfiguration
Types
LifecycleState
data LifecycleState Source #
Detached | |
Detaching | |
EnteringStandby | |
InService | |
Pending | |
PendingProceed | |
PendingWait | |
Quarantined | |
Standby | |
Terminated | |
Terminating | |
TerminatingProceed | |
TerminatingWait |
MetricStatistic
data MetricStatistic Source #
MetricType
data MetricType Source #
ScalingActivityStatusCode
data ScalingActivityStatusCode Source #
Activity
Describes scaling activity, which is a long-running process that represents a change to your Auto Scaling group, such as changing its size or replacing an instance.
See: activity
smart constructor.
Creates a value of Activity
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aProgress
- A value between 0 and 100 that indicates the progress of the activity.aStatusMessage
- A friendly, more verbose description of the activity status.aEndTime
- The end time of the activity.aDetails
- The details about the activity.aDescription
- A friendly, more verbose description of the activity.aActivityId
- The ID of the activity.aAutoScalingGroupName
- The name of the Auto Scaling group.aCause
- The reason the activity began.aStartTime
- The start time of the activity.aStatusCode
- The current status of the activity.
aProgress :: Lens' Activity (Maybe Int) Source #
A value between 0 and 100 that indicates the progress of the activity.
aStatusMessage :: Lens' Activity (Maybe Text) Source #
A friendly, more verbose description of the activity status.
aDescription :: Lens' Activity (Maybe Text) Source #
A friendly, more verbose description of the activity.
aStatusCode :: Lens' Activity ScalingActivityStatusCode Source #
The current status of the activity.
AdjustmentType
data AdjustmentType Source #
Describes a policy adjustment type.
For more information, see Dynamic Scaling in the Auto Scaling User Guide .
See: adjustmentType
smart constructor.
adjustmentType :: AdjustmentType Source #
Creates a value of AdjustmentType
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
atAdjustmentType
- The policy adjustment type. The valid values areChangeInCapacity
,ExactCapacity
, andPercentChangeInCapacity
.
atAdjustmentType :: Lens' AdjustmentType (Maybe Text) Source #
The policy adjustment type. The valid values are ChangeInCapacity
, ExactCapacity
, and PercentChangeInCapacity
.
Alarm
Describes an alarm.
See: alarm
smart constructor.
Creates a value of Alarm
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aAlarmName
- The name of the alarm.aAlarmARN
- The Amazon Resource Name (ARN) of the alarm.
AutoScalingGroup
data AutoScalingGroup Source #
Describes an Auto Scaling group.
See: autoScalingGroup
smart constructor.
Creates a value of AutoScalingGroup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
asgStatus
- The current state of the group whenDeleteAutoScalingGroup
is in progress.asgTerminationPolicies
- The termination policies for the group.asgHealthCheckGracePeriod
- The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service.asgServiceLinkedRoleARN
- The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf.asgNewInstancesProtectedFromScaleIn
- Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.asgVPCZoneIdentifier
- One or more subnet IDs, if applicable, separated by commas. If you specifyVPCZoneIdentifier
andAvailabilityZones
, ensure that the Availability Zones of the subnets match the values forAvailabilityZones
.asgTargetGroupARNs
- The Amazon Resource Names (ARN) of the target groups for your load balancer.asgEnabledMetrics
- The metrics enabled for the group.asgLaunchConfigurationName
- The name of the associated launch configuration.asgInstances
- The EC2 instances associated with the group.asgLaunchTemplate
- The launch template for the group.asgAutoScalingGroupARN
- The Amazon Resource Name (ARN) of the Auto Scaling group.asgPlacementGroup
- The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide .asgSuspendedProcesses
- The suspended processes associated with the group.asgLoadBalancerNames
- One or more load balancers associated with the group.asgTags
- The tags for the group.asgAutoScalingGroupName
- The name of the Auto Scaling group.asgMinSize
- The minimum size of the group.asgMaxSize
- The maximum size of the group.asgDesiredCapacity
- The desired size of the group.asgDefaultCooldown
- The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.asgAvailabilityZones
- One or more Availability Zones for the group.asgHealthCheckType
- The service to use for the health checks. The valid values areEC2
andELB
.asgCreatedTime
- The date and time the group was created.
asgStatus :: Lens' AutoScalingGroup (Maybe Text) Source #
The current state of the group when DeleteAutoScalingGroup
is in progress.
asgTerminationPolicies :: Lens' AutoScalingGroup [Text] Source #
The termination policies for the group.
asgHealthCheckGracePeriod :: Lens' AutoScalingGroup (Maybe Int) Source #
The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service.
asgServiceLinkedRoleARN :: Lens' AutoScalingGroup (Maybe Text) Source #
The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf.
asgNewInstancesProtectedFromScaleIn :: Lens' AutoScalingGroup (Maybe Bool) Source #
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
asgVPCZoneIdentifier :: Lens' AutoScalingGroup (Maybe Text) Source #
One or more subnet IDs, if applicable, separated by commas. If you specify VPCZoneIdentifier
and AvailabilityZones
, ensure that the Availability Zones of the subnets match the values for AvailabilityZones
.
asgTargetGroupARNs :: Lens' AutoScalingGroup [Text] Source #
The Amazon Resource Names (ARN) of the target groups for your load balancer.
asgEnabledMetrics :: Lens' AutoScalingGroup [EnabledMetric] Source #
The metrics enabled for the group.
asgLaunchConfigurationName :: Lens' AutoScalingGroup (Maybe Text) Source #
The name of the associated launch configuration.
asgInstances :: Lens' AutoScalingGroup [Instance] Source #
The EC2 instances associated with the group.
asgLaunchTemplate :: Lens' AutoScalingGroup (Maybe LaunchTemplateSpecification) Source #
The launch template for the group.
asgAutoScalingGroupARN :: Lens' AutoScalingGroup (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Auto Scaling group.
asgPlacementGroup :: Lens' AutoScalingGroup (Maybe Text) Source #
The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide .
asgSuspendedProcesses :: Lens' AutoScalingGroup [SuspendedProcess] Source #
The suspended processes associated with the group.
asgLoadBalancerNames :: Lens' AutoScalingGroup [Text] Source #
One or more load balancers associated with the group.
asgTags :: Lens' AutoScalingGroup [TagDescription] Source #
The tags for the group.
asgAutoScalingGroupName :: Lens' AutoScalingGroup Text Source #
The name of the Auto Scaling group.
asgMinSize :: Lens' AutoScalingGroup Int Source #
The minimum size of the group.
asgMaxSize :: Lens' AutoScalingGroup Int Source #
The maximum size of the group.
asgDesiredCapacity :: Lens' AutoScalingGroup Int Source #
The desired size of the group.
asgDefaultCooldown :: Lens' AutoScalingGroup Int Source #
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
asgAvailabilityZones :: Lens' AutoScalingGroup (NonEmpty Text) Source #
One or more Availability Zones for the group.
asgHealthCheckType :: Lens' AutoScalingGroup Text Source #
The service to use for the health checks. The valid values are EC2
and ELB
.
asgCreatedTime :: Lens' AutoScalingGroup UTCTime Source #
The date and time the group was created.
AutoScalingInstanceDetails
data AutoScalingInstanceDetails Source #
Describes an EC2 instance associated with an Auto Scaling group.
See: autoScalingInstanceDetails
smart constructor.
autoScalingInstanceDetails Source #
Creates a value of AutoScalingInstanceDetails
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
asidLaunchConfigurationName
- The launch configuration used to launch the instance. This value is not available if you attached the instance to the Auto Scaling group.asidLaunchTemplate
- The launch template for the instance.asidInstanceId
- The ID of the instance.asidAutoScalingGroupName
- The name of the Auto Scaling group for the instance.asidAvailabilityZone
- The Availability Zone for the instance.asidLifecycleState
- The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide .asidHealthStatus
- The last reported health status of this instance. Healthy means that the instance is healthy and should remain in service. Unhealthy means that the instance is unhealthy and Auto Scaling should terminate and replace it.asidProtectedFromScaleIn
- Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
asidLaunchConfigurationName :: Lens' AutoScalingInstanceDetails (Maybe Text) Source #
The launch configuration used to launch the instance. This value is not available if you attached the instance to the Auto Scaling group.
asidLaunchTemplate :: Lens' AutoScalingInstanceDetails (Maybe LaunchTemplateSpecification) Source #
The launch template for the instance.
asidInstanceId :: Lens' AutoScalingInstanceDetails Text Source #
The ID of the instance.
asidAutoScalingGroupName :: Lens' AutoScalingInstanceDetails Text Source #
The name of the Auto Scaling group for the instance.
asidAvailabilityZone :: Lens' AutoScalingInstanceDetails Text Source #
The Availability Zone for the instance.
asidLifecycleState :: Lens' AutoScalingInstanceDetails Text Source #
The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide .
asidProtectedFromScaleIn :: Lens' AutoScalingInstanceDetails Bool Source #
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
BlockDeviceMapping
data BlockDeviceMapping Source #
Describes a block device mapping.
See: blockDeviceMapping
smart constructor.
Creates a value of BlockDeviceMapping
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bdmVirtualName
- The name of the virtual device (for example,ephemeral0
).bdmNoDevice
- Suppresses a device mapping. If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.bdmEBS
- The information about the Amazon EBS volume.bdmDeviceName
- The device name exposed to the EC2 instance (for example,devsdh
orxvdh
).
bdmVirtualName :: Lens' BlockDeviceMapping (Maybe Text) Source #
The name of the virtual device (for example, ephemeral0
).
bdmNoDevice :: Lens' BlockDeviceMapping (Maybe Bool) Source #
Suppresses a device mapping. If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
bdmDeviceName :: Lens' BlockDeviceMapping Text Source #
The device name exposed to the EC2 instance (for example, devsdh
or xvdh
).
CustomizedMetricSpecification
data CustomizedMetricSpecification Source #
Configures a customized metric for a target tracking policy.
See: customizedMetricSpecification
smart constructor.
customizedMetricSpecification Source #
Creates a value of CustomizedMetricSpecification
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cmsDimensions
- The dimensions of the metric.cmsUnit
- The unit of the metric.cmsMetricName
- The name of the metric.cmsNamespace
- The namespace of the metric.cmsStatistic
- The statistic of the metric.
cmsDimensions :: Lens' CustomizedMetricSpecification [MetricDimension] Source #
The dimensions of the metric.
cmsMetricName :: Lens' CustomizedMetricSpecification Text Source #
The name of the metric.
cmsNamespace :: Lens' CustomizedMetricSpecification Text Source #
The namespace of the metric.
cmsStatistic :: Lens' CustomizedMetricSpecification MetricStatistic Source #
The statistic of the metric.
EBS
Describes an Amazon EBS volume.
See: ebs
smart constructor.
Creates a value of EBS
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ebsDeleteOnTermination
- Indicates whether the volume is deleted on instance termination. The default istrue
.ebsVolumeSize
- The volume size, in GiB. Forstandard
volumes, specify a value from 1 to 1,024. Forio1
volumes, specify a value from 4 to 16,384. Forgp2
volumes, specify a value from 1 to 16,384. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size. Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the snapshot size.ebsIOPS
- The number of I/O operations per second (IOPS) to provision for the volume. Constraint: Required when the volume type isio1
.ebsEncrypted
- Indicates whether the volume should be encrypted. Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or an unencrypted volume from an encrypted snapshot. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide .ebsVolumeType
- The volume type. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide . Valid values:standard
|io1
|gp2
Default:standard
ebsSnapshotId
- The ID of the snapshot.
ebsDeleteOnTermination :: Lens' EBS (Maybe Bool) Source #
Indicates whether the volume is deleted on instance termination. The default is true
.
ebsVolumeSize :: Lens' EBS (Maybe Natural) Source #
The volume size, in GiB. For standard
volumes, specify a value from 1 to 1,024. For io1
volumes, specify a value from 4 to 16,384. For gp2
volumes, specify a value from 1 to 16,384. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size. Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the snapshot size.
ebsIOPS :: Lens' EBS (Maybe Natural) Source #
The number of I/O operations per second (IOPS) to provision for the volume. Constraint: Required when the volume type is io1
.
ebsEncrypted :: Lens' EBS (Maybe Bool) Source #
Indicates whether the volume should be encrypted. Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or an unencrypted volume from an encrypted snapshot. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide .
ebsVolumeType :: Lens' EBS (Maybe Text) Source #
The volume type. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide . Valid values: standard
| io1
| gp2
Default: standard
EnabledMetric
data EnabledMetric Source #
Describes an enabled metric.
See: enabledMetric
smart constructor.
enabledMetric :: EnabledMetric Source #
Creates a value of EnabledMetric
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
emGranularity
- The granularity of the metric. The only valid value is1Minute
.emMetric
- One of the following metrics: *GroupMinSize
*GroupMaxSize
*GroupDesiredCapacity
*GroupInServiceInstances
*GroupPendingInstances
*GroupStandbyInstances
*GroupTerminatingInstances
*GroupTotalInstances
emGranularity :: Lens' EnabledMetric (Maybe Text) Source #
The granularity of the metric. The only valid value is 1Minute
.
emMetric :: Lens' EnabledMetric (Maybe Text) Source #
One of the following metrics: * GroupMinSize
* GroupMaxSize
* GroupDesiredCapacity
* GroupInServiceInstances
* GroupPendingInstances
* GroupStandbyInstances
* GroupTerminatingInstances
* GroupTotalInstances
Filter
Describes a filter.
See: filter'
smart constructor.
fName :: Lens' Filter Text Source #
The name of the filter. The valid values are: "auto-scaling-group"
, "key"
, "value"
, and "propagate-at-launch"
.
Instance
Describes an EC2 instance.
See: instance'
smart constructor.
Creates a value of Instance
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
iLaunchConfigurationName
- The launch configuration associated with the instance.iLaunchTemplate
- The launch template for the instance.iInstanceId
- The ID of the instance.iAvailabilityZone
- The Availability Zone in which the instance is running.iLifecycleState
- A description of the current lifecycle state. Note that theQuarantined
state is not used.iHealthStatus
- The last reported health status of the instance. Healthy means that the instance is healthy and should remain in service. Unhealthy means that the instance is unhealthy and Auto Scaling should terminate and replace it.iProtectedFromScaleIn
- Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
iLaunchConfigurationName :: Lens' Instance (Maybe Text) Source #
The launch configuration associated with the instance.
iLaunchTemplate :: Lens' Instance (Maybe LaunchTemplateSpecification) Source #
The launch template for the instance.
iAvailabilityZone :: Lens' Instance Text Source #
The Availability Zone in which the instance is running.
iLifecycleState :: Lens' Instance LifecycleState Source #
A description of the current lifecycle state. Note that the Quarantined
state is not used.
iProtectedFromScaleIn :: Lens' Instance Bool Source #
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
InstanceMonitoring
data InstanceMonitoring Source #
Describes whether detailed monitoring is enabled for the Auto Scaling instances.
See: instanceMonitoring
smart constructor.
instanceMonitoring :: InstanceMonitoring Source #
Creates a value of InstanceMonitoring
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
imEnabled
- Iftrue
, detailed monitoring is enabled. Otherwise, basic monitoring is enabled.
imEnabled :: Lens' InstanceMonitoring (Maybe Bool) Source #
If true
, detailed monitoring is enabled. Otherwise, basic monitoring is enabled.
LaunchConfiguration
data LaunchConfiguration Source #
Describes a launch configuration.
See: launchConfiguration
smart constructor.
:: Text | |
-> Text | |
-> Text | |
-> UTCTime | |
-> LaunchConfiguration |
Creates a value of LaunchConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lcAssociatePublicIPAddress
- [EC2-VPC] Indicates whether to assign a public IP address to each instance.lcSecurityGroups
- The security groups to associate with the instances.lcSpotPrice
- The price to bid when launching Spot Instances.lcInstanceMonitoring
- Controls whether instances in this group are launched with detailed (true
) or basic (false
) monitoring.lcKeyName
- The name of the key pair.lcClassicLinkVPCSecurityGroups
- The IDs of one or more security groups for the VPC specified inClassicLinkVPCId
. This parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide .lcRAMDiskId
- The ID of the RAM disk associated with the AMI.lcKernelId
- The ID of the kernel associated with the AMI.lcEBSOptimized
- Controls whether the instance is optimized for EBS I/O (true
) or not (false
).lcUserData
- The user data available to the instances.lcClassicLinkVPCId
- The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter can only be used if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide .lcIAMInstanceProfile
- The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.lcLaunchConfigurationARN
- The Amazon Resource Name (ARN) of the launch configuration.lcPlacementTenancy
- The tenancy of the instance, eitherdefault
ordedicated
. An instance withdedicated
tenancy runs in an isolated, single-tenant hardware and can only be launched into a VPC.lcBlockDeviceMappings
- A block device mapping, which specifies the block devices for the instance.lcLaunchConfigurationName
- The name of the launch configuration.lcImageId
- The ID of the Amazon Machine Image (AMI).lcInstanceType
- The instance type for the instances.lcCreatedTime
- The creation date and time for the launch configuration.
lcAssociatePublicIPAddress :: Lens' LaunchConfiguration (Maybe Bool) Source #
- EC2-VPC
- Indicates whether to assign a public IP address to each instance.
lcSecurityGroups :: Lens' LaunchConfiguration [Text] Source #
The security groups to associate with the instances.
lcSpotPrice :: Lens' LaunchConfiguration (Maybe Text) Source #
The price to bid when launching Spot Instances.
lcInstanceMonitoring :: Lens' LaunchConfiguration (Maybe InstanceMonitoring) Source #
Controls whether instances in this group are launched with detailed (true
) or basic (false
) monitoring.
lcClassicLinkVPCSecurityGroups :: Lens' LaunchConfiguration [Text] Source #
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
. This parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide .
lcRAMDiskId :: Lens' LaunchConfiguration (Maybe Text) Source #
The ID of the RAM disk associated with the AMI.
lcKernelId :: Lens' LaunchConfiguration (Maybe Text) Source #
The ID of the kernel associated with the AMI.
lcEBSOptimized :: Lens' LaunchConfiguration (Maybe Bool) Source #
Controls whether the instance is optimized for EBS I/O (true
) or not (false
).
lcUserData :: Lens' LaunchConfiguration (Maybe Text) Source #
The user data available to the instances.
lcClassicLinkVPCId :: Lens' LaunchConfiguration (Maybe Text) Source #
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter can only be used if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide .
lcIAMInstanceProfile :: Lens' LaunchConfiguration (Maybe Text) Source #
The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
lcLaunchConfigurationARN :: Lens' LaunchConfiguration (Maybe Text) Source #
The Amazon Resource Name (ARN) of the launch configuration.
lcPlacementTenancy :: Lens' LaunchConfiguration (Maybe Text) Source #
The tenancy of the instance, either default
or dedicated
. An instance with dedicated
tenancy runs in an isolated, single-tenant hardware and can only be launched into a VPC.
lcBlockDeviceMappings :: Lens' LaunchConfiguration [BlockDeviceMapping] Source #
A block device mapping, which specifies the block devices for the instance.
lcLaunchConfigurationName :: Lens' LaunchConfiguration Text Source #
The name of the launch configuration.
lcInstanceType :: Lens' LaunchConfiguration Text Source #
The instance type for the instances.
lcCreatedTime :: Lens' LaunchConfiguration UTCTime Source #
The creation date and time for the launch configuration.
LaunchTemplateSpecification
data LaunchTemplateSpecification Source #
Describes a launch template.
See: launchTemplateSpecification
smart constructor.
launchTemplateSpecification :: LaunchTemplateSpecification Source #
Creates a value of LaunchTemplateSpecification
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltsLaunchTemplateName
- The name of the launch template. You must specify either a template name or a template ID.ltsLaunchTemplateId
- The ID of the launch template. You must specify either a template ID or a template name.ltsVersion
- The version number,> Latest
, or> Default
. If the value is> Latest
, Auto Scaling selects the latest version of the launch template when launching instances. If the value is> Default
, Auto Scaling selects the default version of the launch template when launching instances. The default value is> Default
.
ltsLaunchTemplateName :: Lens' LaunchTemplateSpecification (Maybe Text) Source #
The name of the launch template. You must specify either a template name or a template ID.
ltsLaunchTemplateId :: Lens' LaunchTemplateSpecification (Maybe Text) Source #
The ID of the launch template. You must specify either a template ID or a template name.
ltsVersion :: Lens' LaunchTemplateSpecification (Maybe Text) Source #
The version number, > Latest
, or > Default
. If the value is > Latest
, Auto Scaling selects the latest version of the launch template when launching instances. If the value is > Default
, Auto Scaling selects the default version of the launch template when launching instances. The default value is > Default
.
LifecycleHook
data LifecycleHook Source #
Describes a lifecycle hook, which tells Auto Scaling that you want to perform an action whenever it launches instances or whenever it terminates instances.
For more information, see Auto Scaling Lifecycle Hooks in the Auto Scaling User Guide .
See: lifecycleHook
smart constructor.
lifecycleHook :: LifecycleHook Source #
Creates a value of LifecycleHook
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lhDefaultResult
- Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values areCONTINUE
andABANDON
. The default value isCONTINUE
.lhLifecycleHookName
- The name of the lifecycle hook.lhHeartbeatTimeout
- The maximum time, in seconds, that can elapse before the lifecycle hook times out. If the lifecycle hook times out, Auto Scaling performs the default action. You can prevent the lifecycle hook from timing out by callingRecordLifecycleActionHeartbeat
.lhAutoScalingGroupName
- The name of the Auto Scaling group for the lifecycle hook.lhNotificationMetadata
- Additional information that you want to include any time Auto Scaling sends a message to the notification target.lhGlobalTimeout
- The maximum time, in seconds, that an instance can remain in aPending:Wait
orTerminating:Wait
state. The maximum is 172800 seconds (48 hours) or 100 timesHeartbeatTimeout
, whichever is smaller.lhNotificationTargetARN
- The ARN of the target that Auto Scaling sends notifications to when an instance is in the transition state for the lifecycle hook. The notification target can be either an SQS queue or an SNS topic.lhLifecycleTransition
- The state of the EC2 instance to which you want to attach the lifecycle hook. For a list of lifecycle hook types, seeDescribeLifecycleHookTypes
.lhRoleARN
- The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.
lhDefaultResult :: Lens' LifecycleHook (Maybe Text) Source #
Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE
and ABANDON
. The default value is CONTINUE
.
lhLifecycleHookName :: Lens' LifecycleHook (Maybe Text) Source #
The name of the lifecycle hook.
lhHeartbeatTimeout :: Lens' LifecycleHook (Maybe Int) Source #
The maximum time, in seconds, that can elapse before the lifecycle hook times out. If the lifecycle hook times out, Auto Scaling performs the default action. You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat
.
lhAutoScalingGroupName :: Lens' LifecycleHook (Maybe Text) Source #
The name of the Auto Scaling group for the lifecycle hook.
lhNotificationMetadata :: Lens' LifecycleHook (Maybe Text) Source #
Additional information that you want to include any time Auto Scaling sends a message to the notification target.
lhGlobalTimeout :: Lens' LifecycleHook (Maybe Int) Source #
The maximum time, in seconds, that an instance can remain in a Pending:Wait
or Terminating:Wait
state. The maximum is 172800 seconds (48 hours) or 100 times HeartbeatTimeout
, whichever is smaller.
lhNotificationTargetARN :: Lens' LifecycleHook (Maybe Text) Source #
The ARN of the target that Auto Scaling sends notifications to when an instance is in the transition state for the lifecycle hook. The notification target can be either an SQS queue or an SNS topic.
lhLifecycleTransition :: Lens' LifecycleHook (Maybe Text) Source #
The state of the EC2 instance to which you want to attach the lifecycle hook. For a list of lifecycle hook types, see DescribeLifecycleHookTypes
.
lhRoleARN :: Lens' LifecycleHook (Maybe Text) Source #
The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.
LifecycleHookSpecification
data LifecycleHookSpecification Source #
Describes a lifecycle hook, which tells Auto Scaling that you want to perform an action whenever it launches instances or whenever it terminates instances.
For more information, see Auto Scaling Lifecycle Hooks in the Auto Scaling User Guide .
See: lifecycleHookSpecification
smart constructor.
lifecycleHookSpecification Source #
Creates a value of LifecycleHookSpecification
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lhsDefaultResult
- Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values areCONTINUE
andABANDON
.lhsHeartbeatTimeout
- The maximum time, in seconds, that can elapse before the lifecycle hook times out. If the lifecycle hook times out, Auto Scaling performs the default action. You can prevent the lifecycle hook from timing out by callingRecordLifecycleActionHeartbeat
.lhsNotificationMetadata
- Additional information that you want to include any time Auto Scaling sends a message to the notification target.lhsNotificationTargetARN
- The ARN of the target that Auto Scaling sends notifications to when an instance is in the transition state for the lifecycle hook. The notification target can be either an SQS queue or an SNS topic.lhsRoleARN
- The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.lhsLifecycleHookName
- The name of the lifecycle hook.lhsLifecycleTransition
- The state of the EC2 instance to which you want to attach the lifecycle hook. For a list of lifecycle hook types, seeDescribeLifecycleHookTypes
.
lhsDefaultResult :: Lens' LifecycleHookSpecification (Maybe Text) Source #
Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE
and ABANDON
.
lhsHeartbeatTimeout :: Lens' LifecycleHookSpecification (Maybe Int) Source #
The maximum time, in seconds, that can elapse before the lifecycle hook times out. If the lifecycle hook times out, Auto Scaling performs the default action. You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat
.
lhsNotificationMetadata :: Lens' LifecycleHookSpecification (Maybe Text) Source #
Additional information that you want to include any time Auto Scaling sends a message to the notification target.
lhsNotificationTargetARN :: Lens' LifecycleHookSpecification (Maybe Text) Source #
The ARN of the target that Auto Scaling sends notifications to when an instance is in the transition state for the lifecycle hook. The notification target can be either an SQS queue or an SNS topic.
lhsRoleARN :: Lens' LifecycleHookSpecification (Maybe Text) Source #
The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.
lhsLifecycleHookName :: Lens' LifecycleHookSpecification Text Source #
The name of the lifecycle hook.
lhsLifecycleTransition :: Lens' LifecycleHookSpecification Text Source #
The state of the EC2 instance to which you want to attach the lifecycle hook. For a list of lifecycle hook types, see DescribeLifecycleHookTypes
.
LoadBalancerState
data LoadBalancerState Source #
Describes the state of a Classic Load Balancer.
If you specify a load balancer when creating the Auto Scaling group, the state of the load balancer is InService
.
If you attach a load balancer to an existing Auto Scaling group, the initial state is Adding
. The state transitions to Added
after all instances in the group are registered with the load balancer. If ELB health checks are enabled for the load balancer, the state transitions to InService
after at least one instance in the group passes the health check. If EC2 health checks are enabled instead, the load balancer remains in the Added
state.
See: loadBalancerState
smart constructor.
loadBalancerState :: LoadBalancerState Source #
Creates a value of LoadBalancerState
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lbsState
- One of the following load balancer states: *Adding
- The instances in the group are being registered with the load balancer. *Added
- All instances in the group are registered with the load balancer. *InService
- At least one instance in the group passed an ELB health check. *Removing
- The instances in the group are being deregistered from the load balancer. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances. *Removed
- All instances in the group are deregistered from the load balancer.lbsLoadBalancerName
- The name of the load balancer.
lbsState :: Lens' LoadBalancerState (Maybe Text) Source #
One of the following load balancer states: * Adding
- The instances in the group are being registered with the load balancer. * Added
- All instances in the group are registered with the load balancer. * InService
- At least one instance in the group passed an ELB health check. * Removing
- The instances in the group are being deregistered from the load balancer. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances. * Removed
- All instances in the group are deregistered from the load balancer.
lbsLoadBalancerName :: Lens' LoadBalancerState (Maybe Text) Source #
The name of the load balancer.
LoadBalancerTargetGroupState
data LoadBalancerTargetGroupState Source #
Describes the state of a target group.
If you attach a target group to an existing Auto Scaling group, the initial state is Adding
. The state transitions to Added
after all Auto Scaling instances are registered with the target group. If ELB health checks are enabled, the state transitions to InService
after at least one Auto Scaling instance passes the health check. If EC2 health checks are enabled instead, the target group remains in the Added
state.
See: loadBalancerTargetGroupState
smart constructor.
loadBalancerTargetGroupState :: LoadBalancerTargetGroupState Source #
Creates a value of LoadBalancerTargetGroupState
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lbtgsState
- The state of the target group. *Adding
- The Auto Scaling instances are being registered with the target group. *Added
- All Auto Scaling instances are registered with the target group. *InService
- At least one Auto Scaling instance passed an ELB health check. *Removing
- The Auto Scaling instances are being deregistered from the target group. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances. *Removed
- All Auto Scaling instances are deregistered from the target group.lbtgsLoadBalancerTargetGroupARN
- The Amazon Resource Name (ARN) of the target group.
lbtgsState :: Lens' LoadBalancerTargetGroupState (Maybe Text) Source #
The state of the target group. * Adding
- The Auto Scaling instances are being registered with the target group. * Added
- All Auto Scaling instances are registered with the target group. * InService
- At least one Auto Scaling instance passed an ELB health check. * Removing
- The Auto Scaling instances are being deregistered from the target group. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances. * Removed
- All Auto Scaling instances are deregistered from the target group.
lbtgsLoadBalancerTargetGroupARN :: Lens' LoadBalancerTargetGroupState (Maybe Text) Source #
The Amazon Resource Name (ARN) of the target group.
MetricCollectionType
data MetricCollectionType Source #
Describes a metric.
See: metricCollectionType
smart constructor.
metricCollectionType :: MetricCollectionType Source #
Creates a value of MetricCollectionType
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mctMetric
- One of the following metrics: *GroupMinSize
*GroupMaxSize
*GroupDesiredCapacity
*GroupInServiceInstances
*GroupPendingInstances
*GroupStandbyInstances
*GroupTerminatingInstances
*GroupTotalInstances
mctMetric :: Lens' MetricCollectionType (Maybe Text) Source #
One of the following metrics: * GroupMinSize
* GroupMaxSize
* GroupDesiredCapacity
* GroupInServiceInstances
* GroupPendingInstances
* GroupStandbyInstances
* GroupTerminatingInstances
* GroupTotalInstances
MetricDimension
data MetricDimension Source #
Describes the dimension of a metric.
See: metricDimension
smart constructor.
:: Text | |
-> Text | |
-> MetricDimension |
Creates a value of MetricDimension
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
MetricGranularityType
data MetricGranularityType Source #
Describes a granularity of a metric.
See: metricGranularityType
smart constructor.
metricGranularityType :: MetricGranularityType Source #
Creates a value of MetricGranularityType
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mgtGranularity
- The granularity. The only valid value is1Minute
.
mgtGranularity :: Lens' MetricGranularityType (Maybe Text) Source #
The granularity. The only valid value is 1Minute
.
NotificationConfiguration
data NotificationConfiguration Source #
Describes a notification.
See: notificationConfiguration
smart constructor.
notificationConfiguration :: NotificationConfiguration Source #
Creates a value of NotificationConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ncTopicARN
- The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.ncAutoScalingGroupName
- The name of the Auto Scaling group.ncNotificationType
- One of the following event notification types: *autoscaling:EC2_INSTANCE_LAUNCH
*autoscaling:EC2_INSTANCE_LAUNCH_ERROR
*autoscaling:EC2_INSTANCE_TERMINATE
*autoscaling:EC2_INSTANCE_TERMINATE_ERROR
*autoscaling:TEST_NOTIFICATION
ncTopicARN :: Lens' NotificationConfiguration (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.
ncAutoScalingGroupName :: Lens' NotificationConfiguration (Maybe Text) Source #
The name of the Auto Scaling group.
ncNotificationType :: Lens' NotificationConfiguration (Maybe Text) Source #
One of the following event notification types: * autoscaling:EC2_INSTANCE_LAUNCH
* autoscaling:EC2_INSTANCE_LAUNCH_ERROR
* autoscaling:EC2_INSTANCE_TERMINATE
* autoscaling:EC2_INSTANCE_TERMINATE_ERROR
* autoscaling:TEST_NOTIFICATION
PredefinedMetricSpecification
data PredefinedMetricSpecification Source #
Configures a predefined metric for a target tracking policy.
See: predefinedMetricSpecification
smart constructor.
predefinedMetricSpecification Source #
Creates a value of PredefinedMetricSpecification
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pmsResourceLabel
- Identifies the resource associated with the metric type. The following predefined metrics are available: *ASGAverageCPUUtilization
- average CPU utilization of the Auto Scaling group *ASGAverageNetworkIn
- average number of bytes received on all network interfaces by the Auto Scaling group *ASGAverageNetworkOut
- average number of bytes sent out on all network interfaces by the Auto Scaling group *ALBRequestCountPerTarget
- number of requests completed per target in an Application Load Balancer target group For predefined metric typesASGAverageCPUUtilization
,ASGAverageNetworkIn
, andASGAverageNetworkOut
, the parameter must not be specified as the resource associated with the metric type is the Auto Scaling group. For predefined metric typeALBRequestCountPerTarget
, the parameter must be specified in the format:app/load-balancer-name /load-balancer-id targetgrouptarget-group-name /target-group-id
, whereapp/load-balancer-name /load-balancer-id
is the final portion of the load balancer ARN, andtargetgroup/target-group-name /target-group-id
is the final portion of the target group ARN. The target group must be attached to the Auto Scaling group.pmsPredefinedMetricType
- The metric type.
pmsResourceLabel :: Lens' PredefinedMetricSpecification (Maybe Text) Source #
Identifies the resource associated with the metric type. The following predefined metrics are available: * ASGAverageCPUUtilization
- average CPU utilization of the Auto Scaling group * ASGAverageNetworkIn
- average number of bytes received on all network interfaces by the Auto Scaling group * ASGAverageNetworkOut
- average number of bytes sent out on all network interfaces by the Auto Scaling group * ALBRequestCountPerTarget
- number of requests completed per target in an Application Load Balancer target group For predefined metric types ASGAverageCPUUtilization
, ASGAverageNetworkIn
, and ASGAverageNetworkOut
, the parameter must not be specified as the resource associated with the metric type is the Auto Scaling group. For predefined metric type ALBRequestCountPerTarget
, the parameter must be specified in the format: app/load-balancer-name /load-balancer-id targetgrouptarget-group-name /target-group-id
, where app/load-balancer-name /load-balancer-id
is the final portion of the load balancer ARN, and targetgroup/target-group-name /target-group-id
is the final portion of the target group ARN. The target group must be attached to the Auto Scaling group.
pmsPredefinedMetricType :: Lens' PredefinedMetricSpecification MetricType Source #
The metric type.
ProcessType
data ProcessType Source #
Describes a process type.
For more information, see Auto Scaling Processes in the Auto Scaling User Guide .
See: processType
smart constructor.
Creates a value of ProcessType
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ptProcessName
- One of the following processes: *Launch
*Terminate
*AddToLoadBalancer
*AlarmNotification
*AZRebalance
*HealthCheck
*ReplaceUnhealthy
*ScheduledActions
ptProcessName :: Lens' ProcessType Text Source #
One of the following processes: * Launch
* Terminate
* AddToLoadBalancer
* AlarmNotification
* AZRebalance
* HealthCheck
* ReplaceUnhealthy
* ScheduledActions
ScalingPolicy
data ScalingPolicy Source #
Describes a scaling policy.
See: scalingPolicy
smart constructor.
scalingPolicy :: ScalingPolicy Source #
Creates a value of ScalingPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sMinAdjustmentStep
- Available for backward compatibility. UseMinAdjustmentMagnitude
instead.sEstimatedInstanceWarmup
- The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.sPolicyName
- The name of the scaling policy.sPolicyType
- The policy type. Valid values areSimpleScaling
andStepScaling
.sStepAdjustments
- A set of adjustments that enable you to scale based on the size of the alarm breach.sTargetTrackingConfiguration
- A target tracking policy.sAdjustmentType
- The adjustment type, which specifies howScalingAdjustment
is interpreted. Valid values areChangeInCapacity
,ExactCapacity
, andPercentChangeInCapacity
.sAutoScalingGroupName
- The name of the Auto Scaling group.sScalingAdjustment
- The amount by which to scale, based on the specified adjustment type. A positive value adds to the current capacity while a negative number removes from the current capacity.sCooldown
- The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling activities can start.sPolicyARN
- The Amazon Resource Name (ARN) of the policy.sAlarms
- The CloudWatch alarms related to the policy.sMetricAggregationType
- The aggregation type for the CloudWatch metrics. Valid values areMinimum
,Maximum
, andAverage
.sMinAdjustmentMagnitude
- The minimum number of instances to scale. If the value ofAdjustmentType
isPercentChangeInCapacity
, the scaling policy changes theDesiredCapacity
of the Auto Scaling group by at least this many instances. Otherwise, the error isValidationError
.
sMinAdjustmentStep :: Lens' ScalingPolicy (Maybe Int) Source #
Available for backward compatibility. Use MinAdjustmentMagnitude
instead.
sEstimatedInstanceWarmup :: Lens' ScalingPolicy (Maybe Int) Source #
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
sPolicyName :: Lens' ScalingPolicy (Maybe Text) Source #
The name of the scaling policy.
sPolicyType :: Lens' ScalingPolicy (Maybe Text) Source #
The policy type. Valid values are SimpleScaling
and StepScaling
.
sStepAdjustments :: Lens' ScalingPolicy [StepAdjustment] Source #
A set of adjustments that enable you to scale based on the size of the alarm breach.
sTargetTrackingConfiguration :: Lens' ScalingPolicy (Maybe TargetTrackingConfiguration) Source #
A target tracking policy.
sAdjustmentType :: Lens' ScalingPolicy (Maybe Text) Source #
The adjustment type, which specifies how ScalingAdjustment
is interpreted. Valid values are ChangeInCapacity
, ExactCapacity
, and PercentChangeInCapacity
.
sAutoScalingGroupName :: Lens' ScalingPolicy (Maybe Text) Source #
The name of the Auto Scaling group.
sScalingAdjustment :: Lens' ScalingPolicy (Maybe Int) Source #
The amount by which to scale, based on the specified adjustment type. A positive value adds to the current capacity while a negative number removes from the current capacity.
sCooldown :: Lens' ScalingPolicy (Maybe Int) Source #
The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling activities can start.
sPolicyARN :: Lens' ScalingPolicy (Maybe Text) Source #
The Amazon Resource Name (ARN) of the policy.
sMetricAggregationType :: Lens' ScalingPolicy (Maybe Text) Source #
The aggregation type for the CloudWatch metrics. Valid values are Minimum
, Maximum
, and Average
.
sMinAdjustmentMagnitude :: Lens' ScalingPolicy (Maybe Int) Source #
The minimum number of instances to scale. If the value of AdjustmentType
is PercentChangeInCapacity
, the scaling policy changes the DesiredCapacity
of the Auto Scaling group by at least this many instances. Otherwise, the error is ValidationError
.
ScalingProcessQuery
data ScalingProcessQuery Source #
See: scalingProcessQuery
smart constructor.
Creates a value of ScalingProcessQuery
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
spqScalingProcesses
- One or more of the following processes. If you omit this parameter, all processes are specified. *Launch
*Terminate
*HealthCheck
*ReplaceUnhealthy
*AZRebalance
*AlarmNotification
*ScheduledActions
*AddToLoadBalancer
spqAutoScalingGroupName
- The name of the Auto Scaling group.
spqScalingProcesses :: Lens' ScalingProcessQuery [Text] Source #
One or more of the following processes. If you omit this parameter, all processes are specified. * Launch
* Terminate
* HealthCheck
* ReplaceUnhealthy
* AZRebalance
* AlarmNotification
* ScheduledActions
* AddToLoadBalancer
spqAutoScalingGroupName :: Lens' ScalingProcessQuery Text Source #
The name of the Auto Scaling group.
ScheduledUpdateGroupAction
data ScheduledUpdateGroupAction Source #
Describes a scheduled update to an Auto Scaling group.
See: scheduledUpdateGroupAction
smart constructor.
scheduledUpdateGroupAction :: ScheduledUpdateGroupAction Source #
Creates a value of ScheduledUpdateGroupAction
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sugaScheduledActionARN
- The Amazon Resource Name (ARN) of the scheduled action.sugaStartTime
- The date and time that the action is scheduled to begin. This date and time can be up to one month in the future. WhenStartTime
andEndTime
are specified withRecurrence
, they form the boundaries of when the recurring action will start and stop.sugaTime
- This parameter is deprecated.sugaScheduledActionName
- The name of the scheduled action.sugaMaxSize
- The maximum size of the group.sugaRecurrence
- The recurring schedule for the action.sugaDesiredCapacity
- The number of instances you prefer to maintain in the group.sugaMinSize
- The minimum size of the group.sugaAutoScalingGroupName
- The name of the Auto Scaling group.sugaEndTime
- The date and time that the action is scheduled to end. This date and time can be up to one month in the future.
sugaScheduledActionARN :: Lens' ScheduledUpdateGroupAction (Maybe Text) Source #
The Amazon Resource Name (ARN) of the scheduled action.
sugaStartTime :: Lens' ScheduledUpdateGroupAction (Maybe UTCTime) Source #
The date and time that the action is scheduled to begin. This date and time can be up to one month in the future. When StartTime
and EndTime
are specified with Recurrence
, they form the boundaries of when the recurring action will start and stop.
sugaScheduledActionName :: Lens' ScheduledUpdateGroupAction (Maybe Text) Source #
The name of the scheduled action.
sugaMaxSize :: Lens' ScheduledUpdateGroupAction (Maybe Int) Source #
The maximum size of the group.
sugaRecurrence :: Lens' ScheduledUpdateGroupAction (Maybe Text) Source #
The recurring schedule for the action.
sugaDesiredCapacity :: Lens' ScheduledUpdateGroupAction (Maybe Int) Source #
The number of instances you prefer to maintain in the group.
sugaMinSize :: Lens' ScheduledUpdateGroupAction (Maybe Int) Source #
The minimum size of the group.
sugaAutoScalingGroupName :: Lens' ScheduledUpdateGroupAction (Maybe Text) Source #
The name of the Auto Scaling group.
sugaEndTime :: Lens' ScheduledUpdateGroupAction (Maybe UTCTime) Source #
The date and time that the action is scheduled to end. This date and time can be up to one month in the future.
StepAdjustment
data StepAdjustment Source #
Describes an adjustment based on the difference between the value of the aggregated CloudWatch metric and the breach threshold that you've defined for the alarm.
For the following examples, suppose that you have an alarm with a breach threshold of 50:
- If you want the adjustment to be triggered when the metric is greater than or equal to 50 and less than 60, specify a lower bound of 0 and an upper bound of 10.
- If you want the adjustment to be triggered when the metric is greater than 40 and less than or equal to 50, specify a lower bound of -10 and an upper bound of 0.
There are a few rules for the step adjustments for your step policy:
- The ranges of your step adjustments can't overlap or have a gap.
- At most one step adjustment can have a null lower bound. If one step adjustment has a negative lower bound, then there must be a step adjustment with a null lower bound.
- At most one step adjustment can have a null upper bound. If one step adjustment has a positive upper bound, then there must be a step adjustment with a null upper bound.
- The upper and lower bound can't be null in the same step adjustment.
See: stepAdjustment
smart constructor.
Creates a value of StepAdjustment
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
saMetricIntervalLowerBound
- The lower bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the lower bound is inclusive (the metric must be greater than or equal to the threshold plus the lower bound). Otherwise, it is exclusive (the metric must be greater than the threshold plus the lower bound). A null value indicates negative infinity.saMetricIntervalUpperBound
- The upper bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the upper bound is exclusive (the metric must be less than the threshold plus the upper bound). Otherwise, it is inclusive (the metric must be less than or equal to the threshold plus the upper bound). A null value indicates positive infinity. The upper bound must be greater than the lower bound.saScalingAdjustment
- The amount by which to scale, based on the specified adjustment type. A positive value adds to the current capacity while a negative number removes from the current capacity.
saMetricIntervalLowerBound :: Lens' StepAdjustment (Maybe Double) Source #
The lower bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the lower bound is inclusive (the metric must be greater than or equal to the threshold plus the lower bound). Otherwise, it is exclusive (the metric must be greater than the threshold plus the lower bound). A null value indicates negative infinity.
saMetricIntervalUpperBound :: Lens' StepAdjustment (Maybe Double) Source #
The upper bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the upper bound is exclusive (the metric must be less than the threshold plus the upper bound). Otherwise, it is inclusive (the metric must be less than or equal to the threshold plus the upper bound). A null value indicates positive infinity. The upper bound must be greater than the lower bound.
saScalingAdjustment :: Lens' StepAdjustment Int Source #
The amount by which to scale, based on the specified adjustment type. A positive value adds to the current capacity while a negative number removes from the current capacity.
SuspendedProcess
data SuspendedProcess Source #
Describes an Auto Scaling process that has been suspended. For more information, see ProcessType
.
See: suspendedProcess
smart constructor.
suspendedProcess :: SuspendedProcess Source #
Creates a value of SuspendedProcess
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
spProcessName
- The name of the suspended process.spSuspensionReason
- The reason that the process was suspended.
spProcessName :: Lens' SuspendedProcess (Maybe Text) Source #
The name of the suspended process.
spSuspensionReason :: Lens' SuspendedProcess (Maybe Text) Source #
The reason that the process was suspended.
Tag
Describes a tag for an Auto Scaling group.
See: tag
smart constructor.
Creates a value of Tag
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tagKey
- The tag key.tagResourceId
- The name of the group.tagResourceType
- The type of resource. The only supported value isauto-scaling-group
.tagPropagateAtLaunch
- Determines whether the tag is added to new instances as they are launched in the group.tagValue
- The tag value.
tagResourceType :: Lens' Tag Text Source #
The type of resource. The only supported value is auto-scaling-group
.
tagPropagateAtLaunch :: Lens' Tag Bool Source #
Determines whether the tag is added to new instances as they are launched in the group.
TagDescription
data TagDescription Source #
Describes a tag for an Auto Scaling group.
See: tagDescription
smart constructor.
Creates a value of TagDescription
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tdResourceId
- The name of the group.tdResourceType
- The type of resource. The only supported value isauto-scaling-group
.tdKey
- The tag key.tdPropagateAtLaunch
- Determines whether the tag is added to new instances as they are launched in the group.tdValue
- The tag value.
tdResourceId :: Lens' TagDescription Text Source #
The name of the group.
tdResourceType :: Lens' TagDescription Text Source #
The type of resource. The only supported value is auto-scaling-group
.
tdPropagateAtLaunch :: Lens' TagDescription Bool Source #
Determines whether the tag is added to new instances as they are launched in the group.
TargetTrackingConfiguration
data TargetTrackingConfiguration Source #
Represents a target tracking policy configuration.
See: targetTrackingConfiguration
smart constructor.
targetTrackingConfiguration Source #
Creates a value of TargetTrackingConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ttcPredefinedMetricSpecification
- A predefined metric. You can specify either a predefined metric or a customized metric.ttcCustomizedMetricSpecification
- A customized metric.ttcDisableScaleIn
- Indicates whether scale in by the target tracking policy is disabled. If scale in is disabled, the target tracking policy won't remove instances from the Auto Scaling group. Otherwise, the target tracking policy can remove instances from the Auto Scaling group. The default is disabled.ttcTargetValue
- The target value for the metric.
ttcPredefinedMetricSpecification :: Lens' TargetTrackingConfiguration (Maybe PredefinedMetricSpecification) Source #
A predefined metric. You can specify either a predefined metric or a customized metric.
ttcCustomizedMetricSpecification :: Lens' TargetTrackingConfiguration (Maybe CustomizedMetricSpecification) Source #
A customized metric.
ttcDisableScaleIn :: Lens' TargetTrackingConfiguration (Maybe Bool) Source #
Indicates whether scale in by the target tracking policy is disabled. If scale in is disabled, the target tracking policy won't remove instances from the Auto Scaling group. Otherwise, the target tracking policy can remove instances from the Auto Scaling group. The default is disabled.
ttcTargetValue :: Lens' TargetTrackingConfiguration Double Source #
The target value for the metric.